From 883681518662694c1049a9d3a6295b654d937dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Thu, 19 May 2022 09:17:42 +0200 Subject: [PATCH] improved safeHTML method --- server/src/uds/static/admin/main.js | 2 +- server/src/uds/static/modern/main.js | 2 +- server/src/uds/templates/uds/admin/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/uds/static/admin/main.js b/server/src/uds/static/admin/main.js index eef23efb..8e2ab348 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,v=!1;return{s:function(){r=r.call(i)},n:function(){var M=r.next();return c=M.done,M},e:function(M){v=!0,_=M},f:function(){try{!c&&null!=r.return&&r.return()}finally{if(v)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 v,_,n=[],l=!0,c=!1;try{for(r=r.call(i);!(l=(v=r.next()).done)&&(n.push(v.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,v){var _=[null];_.push.apply(_,c);var M=new(Function.bind.apply(l,_));return v&&_t(M,v.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 v=this,M=this.observers;return this.hasError||this.isStopped?At:(this.currentObservers=null,M.push(c),new Te(function(){v.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,v;null===(v=null===(c=this.destination)||void 0===c?void 0:c.next)||void 0===v||v.call(c,l)}},{key:"error",value:function(l){var c,v;null===(v=null===(c=this.destination)||void 0===c?void 0:c.error)||void 0===v||v.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,v;return null!==(v=null===(c=this.source)||void 0===c?void 0:c.subscribe(l))&&void 0!==v?v: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 pe(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,v,_,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=v?function(Y){try{v(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(pe(n,function(c){n.next(i.call(s,c,l++))}))})}var Ct=Ht(9473),vv=Ht.n(Ct);function Zt(i,s,r,n){return new(r||(r=Promise))(function(c,v){function _(A){try{M(n.next(A))}catch(O){v(O)}}function w(A){try{M(n.throw(A))}catch(O){v(O)}}function M(A){A.done?c(A.value):function l(c){return c instanceof r?c:new r(function(v){v(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={},v("next"),v("throw"),v("return"),l[Symbol.asyncIterator]=function(){return this},l;function v(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 pv(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(v){return new Promise(function(_,w){!function l(c,v,_,w){Promise.resolve(w).then(function(M){c({value:M,done:_})},v)}(_,w,(v=i[c](v)).done,v.value)})}}}var gv=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,vv().mark(function s(){var r,n,l;return vv().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(gv(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,v,_){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,v){return s(n,c,l,v)})(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 GP(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(pe(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 UP(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(gv(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 UP(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 v=n.next();l=v.value,c=v.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 UP($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 YP(i,Wa)||YP(i,Pb)}function YP(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 ZP(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,KP="undefined"!=typeof window&&window,az="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,$P="undefined"!=typeof global&&global,cr=iz||$P||KP||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,v=i.pipes;return n.id+=Fb++,n.inputs=QP(i.inputs,r),n.outputs=QP(i.outputs),c&&c.forEach(function(_){return _(n)}),n.directiveDefs=l?function(){return("function"==typeof l?l():l).map(id)}:null,n.pipeDefs=v?function(){return("function"==typeof v?v():v).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 QP(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 wv(i){return 0!=(512&i[2])}function fs(i,s){return i.hasOwnProperty(Xs)?i[Xs]:null}var rO=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=aO(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=aO(i)||function fz(i,s){return i[iO]=s}(i,{previous:rd,current:null}),c=l.current||(l.current={}),v=l.previous,_=this.declaredInputs[r],w=v[_];c[_]=new rO(w&&w.currentValue,s,v===rd),i[n]=s}xn.ngInherit=!0;var iO="__ngSimpleChanges__";function aO(i){return i[iO]||null}var vM=void 0;function Yb(){return void 0!==vM?vM:"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 Mv(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 vs(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 xv(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 pO(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=Tv();return c.currentTNode=s,c.lView=i,!0}function ka(i){var s=Tv(),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 Tv(){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 ps=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){v=c-1;break}}}for(;c>16}(i),n=s;r>0;)n=n[15],r--;return n}var sm=!0;function Av(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 v=om(l),_=Ou(l,s),w=_[1].data,M=0;M<8;M++)s[c+M]=_[v+M]|w[v+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],v=c.type;if(null===(n=2===v?c.declTNode:1===v?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(!pO(s,i,n))return n&It.Host?AM(l,r,n):EM(s,r,n,l);try{var v=c(n);if(null!=v||n&It.Optional)return v;qs(r)}finally{ps()}}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])&&yO(n,!1)?(_=s[1],w=om(M),s=Ou(M,s)):w=-1);-1!==w;){var O=s[1];if(_O(c,w,O.data)){var F=kz(w,s,r,_,n,A);if(F!==lm)return F}-1!==(M=s[w+8])&&yO(n,s[1].data[w+8]===A)&&_O(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 Ev(di(),Oe())}function kz(i,s,r,n,l,c){var v=s[1],_=v.data[i+8],A=t0(_,v,r,null==n?Hb(_)&&sm:n!=v&&0!=(3&_.type),l&It.Host&&c===_);return null!==A?um(s,v,A,_):lm}function t0(i,s,r,n,l){for(var c=i.providerIndexes,v=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=v[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 v=l;v.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 _=Av(v.canSeeViewProviders);v.resolving=!0;var w=v.injectImpl?Mu(v.injectImpl):null;pO(i,n,It.Default);try{l=i[r]=v.factory(void 0,c,i,n),s.firstCreatePass&&r>=n.directiveStart&&function Cz(i,s,r){var n=s.type.prototype,c=n.ngOnInit,v=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),v&&((r.preOrderHooks||(r.preOrderHooks=[])).push(i,v),(r.preOrderCheckHooks||(r.preOrderCheckHooks=[])).push(i,v))}(r,c[r],s)}finally{null!==w&&Mu(w),Av(_),v.resolving=!1,ps()}}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 _O(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 Rv(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=Lv(i,s);if(r>=0)return i[1|r]}function Lv(i,s){return function kO(i,s,r){for(var n=0,l=i.length>>r;l!==n;){var c=n+(l-n>>1),v=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?ZP(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 v in s)if(s.hasOwnProperty(v)){var _=s[v];c.push(v+":"+("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 Nv,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===Nv&&(Nv=null,cr.trustedTypes))try{Nv=cr.trustedTypes.createPolicy("angular",{createHTML:function(s){return s},createScript:function(s){return s},createScriptURL:function(s){return s}})}catch(i){}return Nv}())||void 0===s?void 0:s.createHTML(i))||i}function FO(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),BO=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=VO(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 VO(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(v0(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 v0(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 p0(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?FO(s.sanitize(br.HTML,i)||""):sl(i,"HTML")?FO(Ta(i)):p0(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 v=c[19];null!==v&&v.detachView(c[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function qv(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 nI(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!==vk(Y,M,0)||2&n&&M!==F){if(fl(n))return!1;v=!0}}}}else{if(!v&&!fl(n)&&!fl(w))return!1;if(v&&fl(w))continue;v=!1,n=w|1&n}}return fl(n)||v}function fl(i){return 0==(1&i)}function sI(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+="."+v:4&n&&(l+=" "+v);else""!==l&&!fl(v)&&(s+=gk(c,l),l=""),n=v,c=c||!fl(n);r++}return""!==l&&(s+=gk(c,l)),s}var Kt={};function G(i){uI(zn(),Oe(),Da()+i,!1)}function uI(i,s,r,n){if(!n)if(3==(3&s[2])){var c=i.preOrderCheckHooks;null!==c&&rm(s,c,r)}else{var v=i.preOrderHooks;null!==v&&gs(s,v,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&&uI(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,v)}}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&&tp(r)}}function tp(i){for(var s=pt(i);null!==s;s=wm(s))for(var r=10;r0&&tp(n)}var v=i[1].components;if(null!==v)for(var _=0;_0&&tp(w)}}function AI(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]:vm;if(n===vm){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={},RI={},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 v=[];r&&al(r,function(w){return l.processProvider(w,s,r)}),al([s],function(w){return l.processInjectorType(w,[],v)}),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]:vm,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:It.Default;this.assertNotDestroyed();var c=ii(this),v=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===vm?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(v),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 v=Eb(r),_=null==v&&r.ngModule||void 0,w=void 0===_?r:_,O=-1!==l.indexOf(w);if(void 0!==_&&(v=Eb(_)),null==v)return!1;if(null!=v.imports&&!O){var F;l.push(w);try{al(v.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 Rv(s,"?"),new st(204,!1);var n=function aM(i){var s=i&&(i[Wa]||i[Pb]);if(s){var r=function qP(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 LI(i,s,r){var n=void 0;if(ip(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&&pm in i}function ip(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 v=null!==(c=n.name)&&void 0!==c?c:"";return Ji({name:v},n.parent,n.providers,v)}}]),s}();return i.THROW_IF_NOT_FOUND=vm,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 YI(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 v=i;v.inputs=Qd(i.inputs),v.declaredInputs=Qd(i.declaredInputs),v.outputs=Qd(i.outputs);var _=l.hostBindings;_&&Pa(i,_);var w=l.viewQuery,M=l.contentQueries;if(w&&qI(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 qI(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 v=l?"class":"style";sn(i,r,s.inputs[v],v,n)}function I(i,s,r,n){var l=Oe(),c=zn(),v=20+i,_=l[11],w=l[v]=Uv(_,s,function wM(){return nn.lFrame.currentNamespace}()),M=c.firstCreatePass?function Qk(i,s,r,n,l,c,v){var _=s.consts,M=Kv(s,i,2,l,hs(_,c));return H0(s,r,M,hs(_,v)),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}(v,c,l,0,s,r,n):c.data[v];vs(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&&Qv(l,M),I}function B(){var i=di();yM()?em():vs(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,v=l.firstCreatePass?function hR(i,s,r,n,l){var c=s.consts,v=hs(c,n),_=Kv(s,i,8,"ng-container",v);return null!==v&&zu(_,v,!0),H0(s,r,_,hs(c,l)),null!==s.queries&&s.queries.elementStart(s,_),_}(c,l,n,s,r):l.data[c];vs(v,!0);var _=n[c]=n[11].createComment("");return k0(l,n,_,v),Ea(_,n),Nc(v)&&(Ud(l,n,v),wk(l,v,n)),null!=r&&Qv(n,v),Rn}function On(){var i=di(),s=zn();return yM()?em():vs(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(),v=di();return Ym(c,l,l[11],v,i,s,!!r,n),ne}function cp(i,s){var r=di(),n=Oe(),l=zn();return Ym(l,n,Xd(xv(l.data),r,n),r,i,s,!1),cp}function Ym(i,s,r,n,l,c,v,_){var w=Nc(n),A=i.firstCreatePass&&PI(i),O=s[8],F=Ik(s),Y=!0;if(3&n.type||_){var $=ds(n,s),oe=_?_($):$,le=F.length,fe=_?function(dv){return _(ri(dv[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 v&&(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,v),F.push(c),A&&A.push(l,fe,le,v)}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=Kv(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(),v=eh(c,s,r,n);return v!==Kt&&Xa(zn(),Wr(),c,i,v,c[11],l,!1),$0}function iD(i,s,r,n,l){for(var c=i[r+1],v=null===s,_=n?dl(c):Ut(c),w=!1;0!==_&&(!1===w||v);){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)&&Lv(i,s)>=0}var Si={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function CR(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),fp(i,s,r))}function fp(i,s,r){for(;s=0;r=qm(s,r))yo(i,CR(s),!0)}function _l(i,s,r,n){var l=Oe(),c=zn(),v=Qs(2);c.firstUpdatePass&&Zm(c,i,v,n),s!==Kt&&ea(l,v,s)&&uD(c,c.data[Da()],l,l[11],i,l[v+1]=function kR(i,s){return null==i||("string"==typeof s?i+=s:"object"==typeof i&&(i=Zn(Ta(i)))),i}(s,r),n,v)}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()],v=nC(i,r);DR(c,n)&&null===s&&!v&&(s=!1),s=function rC(i,s,r,n){var l=xv(i),c=n?s.residualClasses:s.residualStyles;if(null===l)0===(n?s.classBindings:s.styleBindings)&&(r=hp(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 SR(i,s,r,n){i[dl(r?s.classBindings:s.styleBindings)]=n}(i,s,n,M=hp(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 Zv(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 bR(i,s,r,n,l){var c=l?i.residualClasses:i.residualStyles;null!=c&&"string"==typeof s&&Lv(c,s)>=0&&(r[n+1]=ru(r[n+1]))}(s,A,i,n,c),v=Tm(_,w),c?s.classBindings=v:s.styleBindings=v}(l,c,s,r,v,n)}}function iC(i,s,r,n,l){var c=null,v=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,v))return _;var $=i[l+1];l=v?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 DR(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?Kv(n,l,1,s,null):n.data[l],v=r[l]=Sm(r[11],s);k0(n,r,v,c),vs(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(),v=op(c,i,s,r,n,l);return v!==Kt&&au(c,Da(),v),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 v=Oe();if(r!==Kt&&ea(v,c,r)){var _=l.data[Da()];if(DR(_,n)&&!nC(l,c)){var M=n?_.classesWithoutHost:_.stylesWithoutHost;null!==M&&(r=Wl(M,r||"")),$k(l,_,v,r,n)}else!function iG(i,s,r,n,l,c,v,_){l===Kt&&(l=mr);for(var w=0,M=0,A=0>20;if(ip(i)||!i.multi){var $=new nl(M,l,z),oe=bC(w,s,l?O:O+Y,F);-1===oe?(e0(md(A,_),v,w),yp(v,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,_),v,w);var De=function n2(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),yp(v,i,s.length,0),s.push(w),A.directiveStart++,A.directiveEnd++,l&&(A.providerIndexes+=1048576),r.push(De),_.push(De)}else yp(v,i,le>-1?le:fe,xD(r[l?fe:le],M,!l&&n));!l&&n&&we&&r[fe].componentProviders++}}}function yp(i,s,r,n){var l=ip(s),c=function FI(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)}),bp=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 bp,i}();function Cp(){return wp(di(),Oe())}function wp(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__=Cp,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 v=10;v-1&&(Yv(r,l),cm(n,l))}this._attachedToViewContainer=!1}qv(this._lView[1],this._lView)}},{key:"onDestroy",value:function(r){bI(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 OI(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 jv(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}(),v_=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 r2(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 va(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 r2(this.componentDef.inputs)}},{key:"outputs",get:function(){return r2(this.componentDef.outputs)}},{key:"create",value:function(l,c,v,_){var ae,we,w=(_=_||this.ngModule)?function ED(i,s){return{get:function(n,l,c){var v=i.get(n,AD,c);return v!==AD||l===AD?v: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=v?function yI(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,v,this.componentDef.encapsulation):Uv(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 WI(i,s){return{components:[],scheduler:i||$O,clean:rp,playerHandler:s||null,flags:0}}(),le=Jv(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 UI(i,s,r,n,l,c){var v=r[1];r[20]=i;var w=Kv(v,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 v.firstCreatePass&&(e0(md(w,r),v,s.type),z0(v,w),xI(w,r.length,1)),np(r,O),r[20]=O}(Y,this.componentDef,fe,M,O);if(Y)if(v)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,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:It.Default;return l===kr||l===qu||l===Qi?this:this._r3Injector.get(l,c,v)}},{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 a2(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 l2(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 h2(Oe(),ha(),i,s,r,n)}function DC(i,s,r,n,l){return to(Oe(),ha(),i,s,r,n,l)}function Sp(i,s){var r=i[s];return r===Kt?void 0:r}function h2(i,s,r,n,l,c){var v=s+r;return ea(i,v,l)?ou(i,v+1,c?n.call(c,l):n(l)):Sp(i,v+1)}function to(i,s,r,n,l,c,v){var _=s+r;return gl(i,_,l,c)?ou(i,_+2,v?n.call(v,l,c):n(l,c)):Sp(i,_+2)}function pf(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)),v=Mu(z);try{var _=Av(!1),w=c();return Av(_),function QI(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(v)}}function fh(i,s,r){var n=i+20,l=Oe(),c=Tu(l,n);return y_(l,n)?h2(l,ha(),s,c.transform,r,c):c.transform(r)}function TC(i,s,r,n){var l=i+20,c=Oe(),v=Tu(c,l);return y_(c,l)?to(c,ha(),s,v.transform,r,n,v):v.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,v){var _,w,M,A=l,O=c||function(){return null},F=v;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=_2(this._lContainer);return null!==c&&c[l]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(l,c,v){var _=l.createEmbeddedView(c||{});return this.insert(_,v),_}},{key:"createComponent",value:function(l,c,v,_,w){var A,M=l&&!function bd(i){return"function"==typeof i}(l);if(M)A=c;else{var O=c||{};A=O.index,v=O.injector,_=O.projectableNodes,w=O.ngModuleRef}var F=M?l:new PD(Li(l)),Y=v||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 v=l._lView,_=v[1];if(function lO(i){return us(i[3])}(v)){var w=this.indexOf(l);if(-1!==w)this.detach(w);else{var M=v[3],A=new m2(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 _2(i){return i[8]}function FD(i){return i[8]||(i[8]=[])}function y2(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 v=ds(i,s);Wc(c,M0(c,v),l,function rI(i,s){return ni(i)?i.nextSibling(s):s.nextSibling}(c,v),!1)}s[i.index]=r=TI(n,s,l,i),np(s,r)}return new m2(r,i,s)}var w2=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=[],v=0;v2&&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(v[_/2]);else{for(var M=c[_+1],A=s[-w],O=10;O0&&(_=setTimeout(function(){v._callbacks=v._callbacks.filter(function(w){return w.timeoutId!==_}),n(v._didWork,v.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,Tp.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 Tp.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}(),Tp=new I_,Ku=null,z2=new Ae("AllowMultipleToken"),ga=new Ae("PlatformOnDestroy");function b8(i,s,r){var n=new kC(r);return Promise.resolve(n)}var G2=L(function i(s,r){R(this,i),this.name=s,this.token=r});function w8(i){if(Ku&&!Ku.get(z2,!1))throw new st(400,"");Ku=i;var r=i.get(j2),n=i.get(Nt,null);return n&&n.forEach(function(l){return l()}),r}function U2(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]:[],v=HC();if(!v||v.injector.get(z2,!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(j2))&&void 0!==i?i:null}var j2=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 H2:("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(Vv,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){vo(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]:[],v=W2({},c);return b8(0,0,n).then(function(_){return l.bootstrapModuleFactory(_,v)})}},{key:"_moduleDoBootstrap",value:function(n){var l=n.injector.get(F_);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(v){return l.bootstrap(v)});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 W2(i,s){return Array.isArray(s)?s.reduce(W2,i):Object.assign(Object.assign({},i),s)}var F_=function(){var i=function(){function s(r,n,l,c){var v=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(){v._zone.run(function(){v.tick()})}});var _=new Jn(function(M){v._stable=v._zone.isStable&&!v._zone.hasPendingMacrotasks&&!v._zone.hasPendingMicrotasks,v._zone.runOutsideAngular(function(){M.next(v._stable),M.complete()})}),w=new Jn(function(M){var A;v._zone.runOutsideAngular(function(){A=v._zone.onStable.subscribe(function(){Pt.assertNotInAngularZone(),BC(function(){!v._stable&&!v._zone.hasPendingMacrotasks&&!v._zone.hasPendingMicrotasks&&(v._stable=!0,M.next(!0))})})});var O=v._zone.onUnstable.subscribe(function(){Pt.assertInAngularZone(),v._stable&&(v._stable=!1,v._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,v=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,v),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(xp,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 v,c=qt(this._views);try{for(c.s();!(v=c.n()).done;)v.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(Vv),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 Z2(r)}}]),i}(),O8=function(s,r){return r},Z2=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,v=null;n||l;){var _=!l||n&&n.currentIndex<$2(l,c,v)?n:l,w=$2(_,c,v),M=_.currentIndex;if(_===l)c--,l=l._nextRemoved;else if(n=n._next,null==_.previousIndex)c++;else{v||(v=[]);var A=w-c,O=M-c;if(A!=O){for(var F=0;F0&&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 Op(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 iL(ge($o),s&&s.origin||"")}()},providedIn:"root"}),i}(),wf=new Ae("appBaseHref"),iL=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var v;if(R(this,n),(v=r.call(this))._platformLocation=l,v._removeListenerFns=[],null==c&&(c=v._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 v._baseHref=c,v}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],v=this._platformLocation.pathname+du(this._platformLocation.search),_=this._platformLocation.hash;return _&&c?"".concat(v).concat(_):v}},{key:"pushState",value:function(c,v,_,w){var M=this.prepareExternalUrl(_+du(w));this._platformLocation.pushState(c,v,M)}},{key:"replaceState",value:function(c,v,_,w){var M=this.prepareExternalUrl(_+du(w));this._platformLocation.replaceState(c,v,M)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var v,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(v=this._platformLocation).historyGo)||void 0===_||_.call(v,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 v;return R(this,n),(v=r.call(this))._platformLocation=l,v._baseHref="",v._removeListenerFns=[],null!=c&&(v._baseHref=c),v}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 v=this._platformLocation.hash;return null==v&&(v="#"),v.length>0?v.substring(1):v}},{key:"prepareExternalUrl",value:function(c){var v=_x(this._baseHref,c);return v.length>0?"#"+v:v}},{key:"pushState",value:function(c,v,_,w){var M=this.prepareExternalUrl(_+du(w));0==M.length&&(M=this._platformLocation.pathname),this._platformLocation.pushState(c,v,M)}},{key:"replaceState",value:function(c,v,_,w){var M=this.prepareExternalUrl(_+du(w));0==M.length&&(M=this._platformLocation.pathname),this._platformLocation.replaceState(c,v,M)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var v,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(v=this._platformLocation).historyGo)||void 0===_||_.call(v,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(aL(c)),this._platformStrategy.onPopState(function(v){l._subject.emit({url:l.path(!0),pop:!0,state:v.state,type:v.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,aL(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 aL(i){return i.replace(/\/index.html$/,"")}function bL(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(v){l?c._renderer.addClass(c._ngEl.nativeElement,v):c._renderer.removeClass(c._ngEl.nativeElement,v)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(ec),z(Pp),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),CL(Y,A)}});for(var v=0,_=c.length;v<_;v++){var M=c.get(v).context;M.index=v,M.count=_,M.ngForOf=this._ngForOf}n.forEachIdentityChange(function(A){CL(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 CL(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 SL,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}(),SL=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]:AL;if(!n||!(n instanceof Map)&&"object"!=typeof n)return null;this.differ||(this.differ=this.differs.find(n).create());var v=this.differ.diff(n),_=c!==this.compareFn;return v&&(this.keyValues=[],v.forEachItem(function(w){l.keyValues.push(gU(w.key,w.currentValue))})),(v||_)&&(this.keyValues.sort(c),this.compareFn=c),this.keyValues}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Pp,16))},i.\u0275pipe=qi({name:"keyvalue",type:i,pure:!1}),i}();function AL(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],v=r.findTestabilityInTree(l,c);if(null==v)throw new Error("Could not find testability for element.");return v},cr.getAllAngularTestabilities=function(){return r.getAllTestabilities()},cr.getAllAngularRootElements=function(){return r.getAllRootElements()},cr.frameworkStabilizers||(cr.frameworkStabilizers=[]),cr.frameworkStabilizers.push(function(c){var v=cr.getAllAngularTestabilities(),_=v.length,w=!1,M=function(O){w=w||O,0==--_&&c(w)};v.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){Tp=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,v=0;v-1&&(v.splice(F,1),M+=O+".")}),M+=w,0!=v.length||0===w.length)return null;var A={};return A.domEventName=_,A.fullKey=M,A}},{key:"getEventFullKey",value:function(c){var v="",_=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"),GL.forEach(function(w){w!=_&&(0,UL[w])(c)&&(v+=w+".")}),v+=_}},{key:"eventCallback",value:function(c,v,_){return function(w){n.getEventFullKey(w)===c&&_.runGuarded(function(){return v(w)})}}},{key:"_normalizeKey",value:function(c){return"esc"===c?"escape":c}}]),n}(NL);return i.\u0275fac=function(r){return new(r||i)(ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),YL=[{provide:yf,useValue:uw},{provide:Nt,useValue:function K_(){yh.makeCurrent(),xX.init()},multi:!0},{provide:Jt,useFactory:function AU(){return function Wb(i){vM=i}(document),document},deps:[]}],EU=U2(nL,"browser",YL),PU=[{provide:Cs,useValue:"root"},{provide:Vv,useFactory:function WL(){return new Vv},deps:[]},{provide:Hx,useClass:zL,multi:!0,deps:[Jt,Pt,yf]},{provide:Hx,useClass:jL,multi:!0,deps:[Jt]},{provide:Z_,useClass:Z_,deps:[q_,bh,Dp]},{provide:h_,useExisting:Z_},{provide:BL,useExisting:bh},{provide:bh,useClass:bh,deps:[Jt]},{provide:xp,useClass:xp,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:Dp,useValue:n.appId},{provide:SU,useExisting:Dp},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,v){if(null==v)return null;switch(c){case br.NONE:return v;case br.HTML:return sl(v,"HTML")?Ta(v):p0(this._doc,String(v)).toString();case br.STYLE:return sl(v,"Style")?Ta(v):v;case br.SCRIPT:if(sl(v,"Script"))return Ta(v);throw new Error("unsafe value used in a script context");case br.URL:return VO(v),sl(v,"URL")?Ta(v):Hc(String(v));case br.RESOURCE_URL:if(sl(v,"ResourceURL"))return Ta(v);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 BO(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),v=c.toLowerCase(),_=n.slice(l+1).trim();r.maybeSetNormalizedName(c,v),r.headers.has(v)?r.headers.get(v).push(_):r.headers.set(v,[_])}})}: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 v=r.value;if(v){var _=this.headers.get(n);if(!_)return;0===(_=_.filter(function(w){return-1===v.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}(),pw=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 pw,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(v){n.push({param:l,value:v,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)||[],v=c.indexOf(mw(n.value));-1!==v&&c.splice(v,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 eF(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 JL(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 Bp),this.context||(this.context=new YU),this.params){var v=this.params.toString();if(0===v.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,v=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:v,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 Bp,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),nF=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 rF=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,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof Kx)_=n;else{var w=void 0;w=v.headers instanceof Bp?v.headers:new Bp(v.headers);var M=void 0;v.params&&(M=v.params instanceof Df?v.params:new Df({fromObject:v.params})),_=new Kx(n,l,void 0!==v.body?v.body:null,{headers:w,context:v.context,params:M,reportProgress:v.reportProgress,responseType:v.responseType||"json",withCredentials:v.withCredentials})}var A=dt(_).pipe(oc(function(F){return c.handler.handle(F)}));if(n instanceof Kx||"events"===v.observe)return A;var O=A.pipe(Ur(function(F){return F instanceof nF}));switch(v.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(v.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($L))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),iF=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"),aF=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}(),oF=/^\)\]\}',?\n/,lF=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 v=l.xhrFactory.build();if(v.open(n.method,n.urlWithParams),n.withCredentials&&(v.withCredentials=!0),n.headers.forEach(function(fe,ae){return v.setRequestHeader(fe,ae.join(","))}),n.headers.has("Accept")||v.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){var _=n.detectContentTypeHeader();null!==_&&v.setRequestHeader("Content-Type",_)}if(n.responseType){var w=n.responseType.toLowerCase();v.responseType="json"!==w?w:"text"}var M=n.serializeBody(),A=null,O=function(){if(null!==A)return A;var ae=v.statusText||"OK",we=new Bp(v.getAllResponseHeaders()),De=function sF(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}(v)||n.url;return A=new yw({headers:we,status:v.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===v.response?v.responseText:v.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(oF,"");try{bt=""!==bt?JSON.parse(bt):null}catch(ci){bt=bi,Vn&&(Vn=!1,bt={error:ci,text:bt})}}Vn?(c.next(new nF({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:v.status||0,statusText:v.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&&!!v.responseText&&(we.partialText=v.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 v.addEventListener("load",F),v.addEventListener("error",Y),v.addEventListener("timeout",Y),v.addEventListener("abort",Y),n.reportProgress&&(v.addEventListener("progress",oe),null!==M&&v.upload&&v.upload.addEventListener("progress",le)),v.send(M),c.next({type:Ti.Sent}),function(){v.removeEventListener("error",Y),v.removeEventListener("abort",Y),v.removeEventListener("load",F),v.removeEventListener("timeout",Y),n.reportProgress&&(v.removeEventListener("progress",oe),null!==M&&v.upload&&v.upload.removeEventListener("progress",le)),v.readyState!==v.DONE&&v.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=bL(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 v=this.tokenService.getToken();return null!==v&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,v)})),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,v){return new iF(c,v)},this.backend)}return this.chain.handle(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(QL),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:aF}]}}},{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:[rF,{provide:$L,useClass:nT},lF,{provide:QL,useExisting:lF}],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 v=this._value;if(this.hasError)throw this.thrownError;return this._throwIfClosed(),v}},{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 uF(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 cF(i,s){return r6(s)?i.apply(void 0,yt(s)):i(s)}(i,s)})}function fF(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){dF(s,function(){for(var l=i.length,c=new Array(l),v=l,_=l,w=function(O){dF(s,function(){var F=Wi(i[O],s),Y=!1;F.subscribe(pe(n,function($){c[O]=$,Y||(Y=!0,_--),_||n.next(r(c.slice()))},function(){--v||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(pe(r,void 0,void 0,function(v){c=ji(i(v,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(pe(r,function(l){n.push(l),i0&&void 0!==arguments[0]?arguments[0]:l6;return gr(function(s,r){var n=!1;s.subscribe(pe(r,function(l){n=!0,r.next(l)},function(){return n?r.complete():r.error(i())}))})}function l6(){return new ww}function hF(i){return gr(function(s,r){var n=!1;s.subscribe(pe(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?hF(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 v;null===(v=n.subscribe)||void 0===v||v.call(n);var _=!0;l.subscribe(pe(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,v=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=v,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 v;return R(this,r),(v=s.call(this,n,l)).urlAfterRedirects=c,v}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 v;return R(this,r),(v=s.call(this,n,l)).reason=c,v}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 v;return R(this,r),(v=s.call(this,n,l)).error=c,v}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,v){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=v,_}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),pF=function(i){se(r,i);var s=ue(r);function r(n,l,c,v){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=v,_}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,v,_){var w;return R(this,r),(w=s.call(this,n,l)).urlAfterRedirects=c,w.state=v,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,v){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=v,_}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),gF=function(i){se(r,i);var s=ue(r);function r(n,l,c,v){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=v,_}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}(),mF=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}(),_F=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}(),yF=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 vT={exact:function pT(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]||!pT(i.children[n],s.children[n],r))return!1;return!0},subset:Af},SF={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 bF(i[r],s[r])})},ignored:function(){return!0}};function kw(i,s,r){return vT[r.paths](i.root,s.root,r.matrixParams)&&SF[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 v=r.slice(0,i.segments.length),_=r.slice(i.segments.length);return!!(Ph(i.segments,v)&&ay(i.segments,v,n)&&i.children[An])&&Dw(i.children[An],s,_,n)}function ay(i,s,r){return s.every(function(n,l){return SF[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 EF(this)}}]),i}();function Ph(i,s){return i.length===s.length&&i.every(function(r,n){return r.path===s[n].path})}var DF=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(Vp(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 TF(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 EF(s)}).join("/")}function Vp(i,s){if(!i.hasChildren())return sy(i);if(s){var r=i.children[An]?Vp(i.children[An],!1):"",n=[];return ya(i.children,function(c,v){v!==An&&n.push("".concat(v,":").concat(Vp(c,!1)))}),n.length>0?"".concat(r,"(").concat(n.join("//"),")"):r}var l=function kF(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,v){return v===An?[Vp(i.children[An],!1)]:["".concat(v,":").concat(Vp(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 xF(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xw(i){return xF(i).replace(/%3B/gi,";")}function Tw(i){return xF(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Aw(i){return decodeURIComponent(i)}function AF(i){return Aw(i.replace(/\+/g,"%20"))}function EF(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 v=AF(n),_=AF(l);if(r.hasOwnProperty(v)){var w=r[v];Array.isArray(w)||(r[v]=w=[w]),w.push(_)}else r[v]=_}}},{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 v=void 0;l.indexOf(":")>-1?(v=l.substr(0,l.indexOf(":")),this.capture(v),this.capture(":")):r&&(v=An);var _=this.parseChildren();n[v]=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}(),PF=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(v){r.e(v)}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(v){r.e(v)}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 Hp(i){var s={};return i&&i.children.forEach(function(r){return s[r.value.outlet]=r}),s}var OF=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}(PF);function _T(i,s){var r=function D6(i,s){var v=new Ew([],{},{},"",{},An,s,null,i.root,-1,{});return new Pw("",new lc(v,[]))}(i,s),n=new Na([new oy("",{})]),l=new Na({}),c=new Na({}),v=new Na({}),_=new Na(""),w=new Vr(n,l,v,_,c,An,s,r.root);return w.snapshot=r.root,new OF(new lc(w,[]),r)}var Vr=function(){function i(s,r,n,l,c,v,_,w){R(this,i),this.url=s,this.params=r,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=v,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,v,_,w,M,A,O){R(this,i),this.url=s,this.params=r,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=v,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}(PF);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 v6(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),_=v.processChildren?Lw(v.segmentGroup,v.index,c.commands):Ao(v.segmentGroup,v.index,c.commands);return Gp(s.root,v.segmentGroup,_,n,l)}function Rh(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function zp(i){return"object"==typeof i&&null!=i&&i.outlets}function Gp(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 v=ST(i,s,r);return new Ef(v,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 RF=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(zp);if(l&&l!==wF(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 v=i.segments[l],_=r[n];if(zp(_))break;var w="".concat(_),M=n0&&void 0===w)break;if(w&&M&&"object"==typeof M&&void 0===M.outlets){if(!dy(w,M,v))return c;n+=2}else{if(!dy(w,{},v))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({},UF):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};var c=(s.matcher||h6)(r,i,s);if(!c)return Object.assign({},UF);var v={};ya(c.posParams,function(w,M){v[M]=w.path});var _=c.consumed.length>0?Object.assign(Object.assign({},v),c.consumed[c.consumed.length-1].parameters):v;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 v=new Fn(i.segments,fc(i,s,r,n,i.children,l));return v._sourceSegment=i,v._segmentIndexShift=s.length,{segmentGroup:v,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,v={},_=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,v[Rs(M)]=A}}}catch(O){_.e(O)}finally{_.f()}return Object.assign(Object.assign({},l),v)}function DT(i,s,r,n){var l={};l[An]=n,n._sourceSegment=i,n._segmentIndexShift=s.length;var v,c=qt(r);try{for(c.s();!(v=c.n()).done;){var _=v.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 vy(i,s,r){return 0===s.length&&!i.children[r]}var py=L(function i(s){R(this,i),this.segmentGroup=s||null}),jF=L(function i(s){R(this,i),this.urlTree=s});function jp(i){return ry(new py(i))}function TT(i){return ry(new jF(i))}function WF(i){return ry(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(i,"'")))}var ZF=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 jF)return r.allowRedirects=!1,r.match(_.urlTree);throw _ instanceof py?r.noMatchError(_):_}))}},{key:"match",value:function(r){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,r.root,An).pipe(on(function(v){return n.createUrlTree(AT(v),r.queryParams,r.fragment)})).pipe(To(function(v){throw v instanceof py?n.noMatchError(v):v}))}},{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(v){return new Fn([],v)})):this.expandSegment(r,l,n,l.segments,c,!0)}},{key:"expandChildren",value:function(r,n,l){for(var c=this,v=[],_=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?hF(s):oT(function(){return new ww}))}}())}},{key:"expandSegment",value:function(r,n,l,c,v,_){var w=this;return Wi(l).pipe(oc(function(M){return w.expandSegmentAgainstRoute(r,n,l,M,c,v,_).pipe(To(function(O){if(O instanceof py)return dt(null);throw O}))}),xh(function(M){return!!M}),To(function(M,A){if(M instanceof ww||"EmptyError"===M.name)return vy(n,c,v)?dt(new Fn([],{})):jp(n);throw M}))}},{key:"expandSegmentAgainstRoute",value:function(r,n,l,c,v,_,w){return xT(c,n,v,_)?void 0===c.redirectTo?this.matchSegmentAgainstRoute(r,n,c,v,_):w&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,n,l,c,v,_):jp(n):jp(n)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(r,n,l,c,v,_){return"**"===c.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,l,c,_):this.expandRegularSegmentAgainstRouteUsingRedirect(r,n,l,c,v,_)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(r,n,l,c){var v=this,_=this.applyRedirectCommands([],l.redirectTo,{});return l.redirectTo.startsWith("/")?TT(_):this.lineralizeSegments(l,_).pipe(Ri(function(w){var M=new Fn(w,{});return v.expandSegment(r,M,n,w,c,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(r,n,l,c,v,_){var w=this,M=Bw(n,c,v),O=M.consumedSegments,F=M.remainingSegments,Y=M.positionalParamSegments;if(!M.matched)return jp(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,v){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)===v;return _.expandSegment(oe,De,le,we,We?An:v,!0).pipe(on(function(Vn){return new Fn(O.concat(Vn.segments),Vn.children)}))})):jp(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(v){return v?c.configLoader.load(r.injector,n).pipe(on(function(_){return n._loadedConfig=_,_})):function YF(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,v=n.canLoad;if(!v||0===v.length)return dt(!0);var _=v.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 WF(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 v=this.createSegmentGroup(r,n.root,l,c);return new Ef(v,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}},{key:"createQueryParams",value:function(r,n){var l={};return ya(r,function(c,v){if("string"==typeof c&&c.startsWith(":")){var w=c.substring(1);l[v]=n[w]}else l[v]=c}),l}},{key:"createSegmentGroup",value:function(r,n,l,c){var v=this,_=this.createSegments(r,n.segments,l,c),w={};return ya(n.children,function(M,A){w[A]=v.createSegmentGroup(r,M,l,c)}),new Fn(_,w)}},{key:"createSegments",value:function(r,n,l,c){var v=this;return n.map(function(_){return _.path.startsWith(":")?v.findPosParam(r,_,c):v.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 v,l=0,c=qt(n);try{for(c.s();!(v=c.n()).done;){var _=v.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||v.hasChildren())&&(s[l]=v)}return function XF(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 KF=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 $F(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=Hp(s);return i.children.forEach(function(v){QF(v,c[v.value.outlet],r,n.concat([v.value]),l),delete c[v.value.outlet]}),ya(c,function(v,_){return _y(v,r.getContext(_),l)}),l}function QF(i,s,r,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=i.value,v=s?s.value:null,_=r?r.getContext(i.value.outlet):null;if(v&&c.routeConfig===v.routeConfig){var w=my(v,c,c.routeConfig.runGuardsAndResolvers);w?l.canActivateChecks.push(new KF(n)):(c.data=v.data,c._resolvedData=v._resolvedData),gy(i,s,c.component?_?_.children:null:r,n,l),w&&_&&_.outlet&&_.outlet.isActivated&&l.canDeactivateChecks.push(new Hw(_.outlet.component,v))}else v&&_y(s,_,l),l.canActivateChecks.push(new KF(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=Hp(i),l=i.value;ya(n,function(c,v){_y(c,l.component?s?s.children.getContext(v):null:s,r)}),r.canDeactivateChecks.push(new Hw(l.component&&s&&s.outlet&&s.outlet.isActivated?s.outlet.component:null,l))}var iN=L(function i(){R(this,i)});function aN(i){return new Jn(function(s){return s.error(i)})}var oN=function(){function i(s,r,n,l,c,v){R(this,i),this.rootComponentType=s,this.config=r,this.urlTree=n,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=v}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),v=new Pw(this.url,c);return this.inheritParamsAndData(v._root),v}},{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(v){return n.inheritParamsAndData(v)})}},{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,v=Object.keys(n.children);c0?wF(l).parameters:{};v=new Ew(l,M,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cN(r),Rs(r),r.component,r,lN(n),uN(n)+l.length,fN(r))}else{var A=Bw(n,r,l);if(!A.matched)return null;w=A.remainingSegments,v=new Ew(_=A.consumedSegments,A.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cN(r),Rs(r),r.component,r,lN(n),uN(n)+_.length,fN(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(v,oe)]}if(0===O.length&&0===$.length)return[new lc(v,[])];var le=Rs(r)===c,fe=this.processSegment(O,Y,$,le?An:c);return null===fe?null:[new lc(v,fe)]}}]),i}();function sN(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=sN(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 lN(i){for(var s=i;s._sourceSegment;)s=s._sourceSegment;return s}function uN(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 cN(i){return i.data||{}}function fN(i){return i.resolve||{}}function hN(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 v=this.loadModuleFactory(n.loadChildren).pipe(on(function(_){l.onLoadEndListener&&l.onLoadEndListener(n);var w=_.create(r);return new Nw(CF(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(v,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)}),pN=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 gN(i){throw i}function nj(i,s,r){return s.parse("/")}function IT(i,s){return dt(null)}var mN={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_N={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ba=function(){var i=function(){function s(r,n,l,c,v,_,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=gN,this.malformedUriErrorHandler=nj,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:IT,afterPreactivation:IT},this.urlHandlingStrategy=new pN,this.routeReuseStrategy=new ej,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=v.get(qu),this.console=v.get(Zu);var F=v.get(Pt);this.isNgZoneEnabled=F instanceof Pt&&Pt.isInAngularZone(),this.resetConfig(w),this.currentUrlTree=function p6(){return new Ef(new Fn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new vN(v,_,function($){return M.triggerEvent(new dT($))},function($){return M.triggerEvent(new mF($))}),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(v){return 0!==v.id}),on(function(v){return Object.assign(Object.assign({},v),{extractedUrl:l.urlHandlingStrategy.extract(v.rawUrl)})}),_a(function(v){var _=!1,w=!1;return dt(v).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 qF(i,s,r,n,l){return new ZF(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 dN(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 v=new oN(i,s,r,n,l,c).recognize();return null===v?aN(new iN):dt(v)}catch(_){return aN(_)}}(i,s,c.urlAfterRedirects,r(c.urlAfterRedirects),n,l).pipe(on(function(v){return Object.assign(Object.assign({},c),{targetSnapshot:v})}))})}(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 pF(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 JF(i,s){return Ri(function(r){var n=r.targetSnapshot,l=r.currentSnapshot,c=r.guards,v=c.canActivateChecks,_=c.canDeactivateChecks;return 0===_.length&&0===v.length?dt(Object.assign(Object.assign({},r),{guardsResult:!0})):function eN(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 v=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(v).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 tN(i,s,r,n){return Wi(s).pipe(oc(function(l){return Dh(function rN(i,s){return null!==i&&s&&s(new f6(i)),dt(!0)}(l.route.parent,n),function nN(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(v){return function G6(i){var s=i.routeConfig?i.routeConfig.canActivateChild:null;return s&&0!==s.length?{node:i,guards:s}:null}(v)}).filter(function(v){return null!==v}),c=l.map(function(v){return Sw(function(){var _=v.guards.map(function(w){var A,M=zw(w,v.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 _,v=zw(c,s,r);if(function I6(i){return i&&uc(i.canActivate)}(v))_=Os(v.canActivate(s,i));else{if(!uc(v))throw new Error("Invalid CanActivate guard");_=Os(v(s,i))}return _.pipe(xh())})});return dt(l).pipe(Lh())}(i,l.route,r))}),xh(function(l){return!0!==l},!0))}(n,v,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(v){return function K6(i,s,r,n){return function $6(i,s,r,n){var l=hN(i);if(0===l.length)return dt({});var c={};return Wi(l).pipe(Ri(function(v){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[v],s,r,n).pipe(ao(function(_){c[v]=_}))}),xf(1),Ri(function(){return hN(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}))}(v.route,n,i,s)}),ao(function(){return c++}),xf(1),Ri(function(v){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 gF(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 OF(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(v.id," is not equal to the current navigation id ").concat(l.navigationId);l.cancelNavigationTransition(v,A)}(null===(M=l.currentNavigation)||void 0===M?void 0:M.id)===v.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(v,!0));var O=new uT(v.id,l.serializeUrl(v.extractedUrl),M.message);c.next(O),A?setTimeout(function(){var Y=l.urlHandlingStrategy.merge(M.url,l.rawUrlTree),$={skipLocationChange:v.extras.skipLocationChange,replaceUrl:"eager"===l.urlUpdateStrategy||Jo(v.source)};l.scheduleNavigation(Y,"imperative",null,$,{resolve:v.resolve,reject:v.reject,promise:v.promise})},0):v.resolve(!1)}else{l.restoreHistory(v,!0);var F=new vF(v.id,l.serializeUrl(v.extractedUrl),M);c.next(F);try{v.resolve(l.errorHandler(M))}catch(Y){v.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 v,_={replaceUrl:!0},w=(null===(v=l.state)||void 0===v?void 0:v.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){zF(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,v=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),v);break;case"preserve":F=this.currentUrlTree.queryParams;break;default:F=v||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),v=this.urlHandlingStrategy.merge(c,this.rawUrlTree);return this.scheduleNavigation(v,"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({},mN):!1===l?Object.assign({},_N):l,Pf(n))return kw(this.currentUrlTree,n,c);var v=this.parseUrl(n);return kw(this.currentUrlTree,v,c)}},{key:"removeEmptyProps",value:function(n){return Object.keys(n).reduce(function(l,c){var v=n[c];return null!=v&&(l[c]=v),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,v,_){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:v.replaceUrl||v.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:v,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),v=Object.assign(Object.assign({},l.extras.state),this.generateNgRouterState(l.id,l.targetPageId));this.location.isCurrentPathEqualTo(c)||l.extras.replaceUrl?this.location.replaceState(c,"",v):this.location.go(c,"",v)}},{key:"restoreHistory",value:function(n){var c,v,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===(v=this.currentNavigation)||void 0===v?void 0:v.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 yF&&(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 yF(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"),bN=new Ae("ROUTER_FORROOT_GUARD"),LT=[z_,{provide:DF,useClass:m6},{provide:Ba,useFactory:function lj(i,s,r,n,l,c){var v=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,CF(c));return _&&(M.urlHandlingStrategy=_),w&&(M.routeReuseStrategy=w),wy(v,M),v.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:[DF,Tl,z_,kr,L2,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 G2("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,CN(n),{provide:bN,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,IL,Fh]},{provide:yN,useExisting:l&&l.preloadingStrategy?l.preloadingStrategy:RT},{provide:G2,multi:!0,useFactory:Cy},[BT,{provide:FC,multi:!0,useFactory:cj,deps:[BT]},{provide:wN,useFactory:fj,deps:[BT]},{provide:tx,multi:!0,useExisting:wN}]]}}},{key:"forChild",value:function(n){return{ngModule:s,providers:[CN(n)]}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(bN,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 iL(i,s)}function sj(i){return"guarded"}function CN(i){return[{provide:CO,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,v=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),v})}},{key:"bootstrapListener",value:function(n){var l=this.injector.get(Fh),c=this.injector.get(Uw),v=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(),v.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 wN=new Ae("Router Initializer"),MN=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 kN(i)?Number(i):s}function kN(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 pu(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 v=c.value,_="".concat(v).trim();_&&r.push(_)}}catch(w){l.e(w)}finally{l.f()}}return r}var dj=["addListener","removeListener"],hj=["addEventListener","removeEventListener"],vj=["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 xN(i){return Hn(i.addEventListener)&&Hn(i.removeEventListener)}(i)?hj.map(function(w){return function(M){return i[w](s,M,r)}}):function pj(i){return Hn(i.addListener)&&Hn(i.removeListener)}(i)?dj.map(DN(i,s)):function VT(i){return Hn(i.on)&&Hn(i.off)}(i)?vj.map(DN(i,s)):[],2),v=c[0],_=c[1];if(!v&&gv(i))return Ri(function(w){return gu(w,s,r)})(ji(i));if(!v)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 v=this.id,_=this.scheduler;return null!=v&&(this.id=this.recycleAsyncId(_,v,c)),this.pending=!0,this.delay=c,this.id=this.id||this.requestAsyncId(_,this.id,c),this}},{key:"requestAsyncId",value:function(l,c){var v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Sy.setInterval(l.flush.bind(l,this),v)}},{key:"recycleAsyncId",value:function(l,c){var v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=v&&this.delay===v&&!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 v=this._execute(l,c);if(v)return v;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(l,c){var _,v=!1;try{this.work(l)}catch(w){v=!0,_=w||new Error("Scheduled action threw falsy error")}if(v)return this.unsubscribe(),_}},{key:"unsubscribe",value:function(){if(!this.closed){var l=this.id,c=this.scheduler,v=c.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Fe(v,this),null!=l&&(this.id=this.recycleAsyncId(c,l,null)),this.delay=null,Ye(qe(r.prototype),"unsubscribe",this).call(this)}}}]),r}(TN),My={schedule:function(s){var r=requestAnimationFrame,n=cancelAnimationFrame,l=My.delegate;l&&(r=l.requestAnimationFrame,n=l.cancelAnimationFrame);var c=r(function(v){n=void 0,s(v)});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 v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==v&&v>0?Ye(qe(r.prototype),"requestAsyncId",this).call(this,l,c,v):(l.actions.push(this),l._scheduled||(l._scheduled=My.requestAnimationFrame(function(){return l.flush(void 0)})))}},{key:"recycleAsyncId",value:function(l,c){var v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=v&&v>0||null==v&&this.delay>0)return Ye(qe(r.prototype),"recycleAsyncId",this).call(this,l,c,v);l.actions.some(function(_){return _.id===c})||(My.cancelAnimationFrame(c),l._scheduled=void 0)}}]),r}(Zw),AN={now:function(){return(AN.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=AN.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 v;this._active=!0;do{if(v=l.execute(l.state,l.delay))break}while(l=c.shift());if(this._active=!1,v){for(;l=c.shift();)l.unsubscribe();throw v}}}}]),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 _,v=this.actions;l=l||v.shift();do{if(_=l.execute(l.state,l.delay))break}while((l=v[0])&&l.id===c&&v.shift());if(this._active=!1,_){for(;(l=v[0])&&l.id===c&&v.shift();)l.unsubscribe();throw _}}}]),r}(Xw),_j=(new Kw(gj),1),Qw={};function Yp(i){return i in Qw&&(delete Qw[i],!0)}var Zp,GT=function(s){var r=_j++;return Qw[r]=!0,HT||(HT=Promise.resolve()),HT.then(function(){return Yp(r)&&s()}),r},yj=function(s){Yp(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 v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==v&&v>0?Ye(qe(r.prototype),"requestAsyncId",this).call(this,l,c,v):(l.actions.push(this),l._scheduled||(l._scheduled=Jw.setImmediate(l.flush.bind(l,void 0))))}},{key:"recycleAsyncId",value:function(l,c){var v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=v&&v>0||null==v&&this.delay>0)return Ye(qe(r.prototype),"recycleAsyncId",this).call(this,l,c,v);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 _,v=this.actions;l=l||v.shift();do{if(_=l.execute(l.state,l.delay))break}while((l=v[0])&&l.id===c&&v.shift());if(this._active=!1,_){for(;(l=v[0])&&l.id===c&&v.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,v=!1,_=function(){if(null==c||c.unsubscribe(),c=null,n){n=!1;var A=l;l=null,r.next(A)}v&&r.complete()},w=function(){c=null,v&&r.complete()};s.subscribe(pe(r,function(M){n=!0,l=M,c||ji(i(M)).subscribe(c=pe(r,_,w))},function(){v=!0,(!n||!c||c.closed)&&r.complete()}))})}function WT(i){return i instanceof Date&&!isNaN(i)}function qp(){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 v=0;return r.schedule(function(){l.closed||(l.next(v++),0<=n?this.schedule(void 0,n):l.complete())},c)})}function PN(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:El;return jT(function(){return qp(i,s)})}try{Zp="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(i){Zp=!1}var Bh,ky,Hh,zh,vn=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&&!Zp)&&"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}(),ON=["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(ON);var i=document.createElement("input");return Bh=new Set(ON.filter(function(s){return i.setAttribute("type",s),i.type===s}))}function Vh(i){return function IN(){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 RN(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}(),FN=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 v=l>0?n._scrolled.pipe(PN(l)).subscribe(c):n._scrolled.subscribe(c);return n._scrolledCount++,function(){v.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(v){return!v||c.indexOf(v)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var l=this,c=[];return this.scrollContainers.forEach(function(v,_){l._scrollableContainsElement(_,n)&&c.push(_)}),c}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,l){var c=pu(l),v=n.getElementRef().nativeElement;do{if(c==v)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(vn),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(v){c._change.next(v)},this._document=l,n.runOutsideAngular(function(){if(r.isBrowser){var v=c._getWindow();v.addEventListener("resize",c._changeListener),v.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,v=l.height;return{top:n.top,left:n.left,bottom:n.top+v,right:n.left+c,height:v,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,v=c.getBoundingClientRect();return{top:-v.top||n.body.scrollTop||l.scrollY||c.scrollTop||0,left:-v.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(PN(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(vn),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,v){var _;return R(this,r),(_=s.call(this)).component=n,_.viewContainerRef=l,_.injector=c,_.componentFactoryResolver=v,_}return L(r)}(o1),es=function(i){se(r,i);var s=ue(r);function r(n,l,c){var v;return R(this,r),(v=s.call(this)).templateRef=n,v.viewContainerRef=l,v.context=c,v}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,v,_){var w,M;return R(this,r),(M=s.call(this)).outletElement=n,M._componentFactoryResolver=l,M._appRef=c,M._defaultInjector=v,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,v=l.viewContainerRef,_=v.createEmbeddedView(l.templateRef,l.context);return _.rootNodes.forEach(function(w){return c.outletElement.appendChild(w)}),_.detectChanges(),this.setDisposeFn(function(){var w=v.indexOf(_);-1!==w&&v.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}(),vc=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v){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=v,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 v=null!=c.viewContainerRef?c.viewContainerRef:this._viewContainerRef,w=(c.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(c.component),M=v.createComponent(w,v.length,c.injector||v.injector);return v!==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 v=this;c.setAttachedHost(this);var _=this._viewContainerRef.createEmbeddedView(c.templateRef,c.context);return Ye(qe(n.prototype),"setDisposeFn",this).call(this,function(){return v._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}(),Kp=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(pe(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}(),r3=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(),v=c.width,_=c.height;l1(l,[{width:v,height:_,bottom:_,right:v,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 v=this;R(this,s),this._scrollDispatcher=r,this._viewportRuler=n,this._ngZone=l,this.noop=function(){return new lA},this.close=function(_){return new r3(v._scrollDispatcher,v._ngZone,v._viewportRuler,_)},this.block=function(){return new Gj(v._viewportRuler,v._document)},this.reposition=function(_){return new uA(v._scrollDispatcher,v._viewportRuler,v._ngZone,_)},this._document=c});return i.\u0275fac=function(r){return new(r||i)(ge(FN),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 v=this._isRtl()?r.right:r.left,_=this._isRtl()?r.left:r.right;c="start"==l.originX?v:_}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 v=s3(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+v.height-l.height,oe=this._subtractOverflows(v.width,0-_,_+v.width-l.width),le=this._subtractOverflows(v.height,Y,$),fe=oe*le;return{visibleArea:fe,isCompletelyWithinViewport:v.width*v.height===fe,fitsInViewportVertically:le===v.height,fitsInViewportHorizontally:oe==v.width}}},{key:"_canFitWithFlexibleDimensions",value:function(r,n,l){if(this._hasFlexibleDimensions){var c=l.bottom-n.y,v=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<=v)}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=s3(n),v=this._viewportRect,_=Math.max(r.x+c.width-v.width,0),w=Math.max(r.y+c.height-v.height,0),M=Math.max(v.top-l.top-r.y,0),A=Math.max(v.left-l.left-r.x,0);return this._previousPushAmount={x:O=c.width<=v.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:v}}},{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 v=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",v&&(c.maxHeight=Ai(v)),_&&(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(),v=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):v&&(l.maxHeight="")),_.maxWidth&&(c?l.maxWidth=Ai(_.maxWidth):v&&(l.maxWidth="")),Wh(this._pane.style,l)}},{key:"_getExactOverlayY",value:function(r,n,l){var c={top:"",bottom:""},v=this._getOverlayPoint(n,this._overlayRect,r);return this._isPushed&&(v=this._pushOverlayOnScreen(v,this._overlayRect,l)),"bottom"===r.overlayY?c.bottom="".concat(this._document.documentElement.clientHeight-(v.y+this._overlayRect.height),"px"):c.top=Ai(v.y),c}},{key:"_getExactOverlayX",value:function(r,n,l){var c={left:"",right:""},v=this._getOverlayPoint(n,this._overlayRect,r);return this._isPushed&&(v=this._pushOverlayOnScreen(v,this._overlayRect,l)),"right"==(this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left")?c.right="".concat(this._document.documentElement.clientWidth-(v.x+this._overlayRect.width),"px"):c.left=Ai(v.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,v=l.height,_=l.maxWidth,w=l.maxHeight,M=!("100%"!==c&&"100vw"!==c||_&&"100%"!==_&&"100vw"!==_),A=!("100%"!==v&&"100vh"!==v||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}(),l3=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(vn),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 v;return R(this,n),(v=r.call(this,l))._ngZone=c,v._keydownListener=function(_){for(var w=v._attachedOverlays,M=w.length-1;M>-1&&!(w[M]._keydownEvents.observers.length>0&&"break"===function(){var O=w[M]._keydownEvents;return v._ngZone?v._ngZone.run(function(){return O.next(_)}):O.next(_),"break"}());M--);},v}return L(n,[{key:"add",value:function(c){var v=this;Ye(qe(n.prototype),"add",this).call(this,c),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return v._document.body.addEventListener("keydown",v._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,v){var _;return R(this,n),(_=r.call(this,l))._platform=c,_._ngZone=v,_._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 v=this;if(Ye(qe(n.prototype),"add",this).call(this,c),!this._isAttached){var _=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return v._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(vn),ge(Pt,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),vA=0,aa=function(){var i=function(){function s(r,n,l,c,v,_,w,M,A,O,F){R(this,s),this.scrollStrategies=r,this._overlayContainer=n,this._componentFactoryResolver=l,this._positionBuilder=c,this._keyboardDispatcher=v,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),v=this._createPortalOutlet(c),_=new Ff(n);return _.direction=_.direction||this._directionality.value,new o3(v,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(vA++),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(l3),ge(Zj),ge(kr),ge(Pt),ge(Jt),ge(Ei),ge(z_),ge(Xj))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),u3=[{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"}],pA=new Ae("cdk-connected-overlay-scroll-strategy"),c3=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,v){R(this,s),this._overlay=r,this._dir=v,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=u3);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(v){return{originX:v.originX,originY:v.originY,overlayX:v.overlayX,overlayY:v.overlayY,offsetX:v.offsetX||l.offsetX,offsetY:v.offsetY||l.offsetY,panelClass:v.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 c3?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(pe(n,function(c){var v=i(c,l++);(v||s)&&n.next(c),!v&&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(pA),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:pA,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,Kp,$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,v=null,_=function(){if(l){l.unsubscribe(),l=null;var A=c;c=null,n.next(A)}};function w(){var M=v+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(pe(n,function(v){var _=s(v);(c||!i(l,_))&&(c=!1,l=_,n.next(v))}))})}function $j(i,s){return i===s}var d3=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=pu(n);return new Jn(function(v){var w=l._observeElement(c).subscribe(v);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(v){return l.next(v)});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,v=l.stream;c&&c.disconnect(),v.complete(),this._observedElements.delete(n)}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(d3))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),v1=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:[d3]}),i}();function p1(i,s){return(i.getAttribute(s)||"").match(/\S+/g)||[]}var v3="cdk-describedby-message",g1="cdk-describedby-host",p3=0,g3=function(){var i=function(){function s(r,n){R(this,s),this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id="".concat(p3++),this._document=r}return L(s,[{key:"describe",value:function(n,l,c){if(this._canBeDescribed(n,l)){var v=yA(l,c);"string"!=typeof l?(m3(l),this._messageRegistry.set(v,{messageElement:l,referenceCount:0})):this._messageRegistry.has(v)||this._createMessageElement(l,c),this._isElementDescribedByMessage(n,v)||this._addMessageReference(n,v)}}},{key:"removeDescription",value:function(n,l,c){var v;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===(v=this._messagesContainer)||void 0===v?void 0:v.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(),v=1;v0&&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,v=["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&&v){this.setNextItemActive();break}return;case 38:if(this._vertical&&v){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&v){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&v){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&v){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&v){this.setLastItemActive();break}return;default:return void((v||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}(),y3=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}(_3),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}(_3),b3=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===S3(l)||!this.isVisible(l)))return!1;var c=n.nodeName.toLowerCase(),v=S3(n);return n.hasAttribute("contenteditable")?-1!==v:!("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!==v:"video"===c?-1!==v&&(null!==v||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 C3(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")||w3(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(vn))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function w3(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;var s=i.getAttribute("tabindex");return!(!s||isNaN(parseInt(s,10)))}function S3(i){if(!w3(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,v=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,v||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}(),M3=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(b3),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(M3),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 k3=new Ae("cdk-input-modality-detector-options"),D3={ignoreKeys:[18,17,224,91,16]},tg=Vh({passive:!0,capture:!0}),h7=function(){var i=function(){function s(r,n,l,c){var v=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=v._options)||void 0===w?void 0:w.ignoreKeys)||void 0===M?void 0:M.some(function(A){return A===_.keyCode}))||(v._modality.next("keyboard"),v._mostRecentTarget=hc(_))},this._onMousedown=function(_){Date.now()-v._lastTouchMs<650||(v._modality.next(SA(_)?"keyboard":"mouse"),v._mostRecentTarget=hc(_))},this._onTouchstart=function(_){MA(_)?v._modality.next("keyboard"):(v._lastTouchMs=Date.now(),v._modality.next("touch"),v._mostRecentTarget=hc(_))},this._options=Object.assign(Object.assign({},D3),c),this.modalityDetected=this._modality.pipe(_A(1)),this.modalityChanged=this.modalityDetected.pipe(Fy()),r.isBrowser&&n.runOutsideAngular(function(){l.addEventListener("keydown",v._onKeydown,tg),l.addEventListener("mousedown",v._onMousedown,tg),l.addEventListener("touchstart",v._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(vn),ge(Pt),ge(Jt),ge(k3,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),v7=new Ae("liveAnnouncerElement",{providedIn:"root",factory:function T3(){return null}}),A3=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 v,_,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=pu(n);if(!this._platform.isBrowser||1!==c.nodeType)return dt(null);var v=ZT(c)||this._getDocument(),_=this._elementInfo.get(c);if(_)return l&&(_.checkChildren=!0),_.subject;var w={checkChildren:l,subject:new Xe,rootNode:v};return this._elementInfo.set(c,w),this._registerGlobalListeners(w),w.subject}},{key:"stopMonitoring",value:function(n){var l=pu(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 v=this,_=pu(n);_===this._getDocument().activeElement?this._getClosestElementsInfo(_).forEach(function(M){var A=Pr(M,2);return v._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),v=hc(n);!c||!c.checkChildren&&l!==v||this._originChanged(l,this._getFocusOrigin(v),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,v=this._rootNodeFocusListenerCount.get(c)||0;v||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",l._rootNodeFocusAndBlurListener,Bf),c.addEventListener("blur",l._rootNodeFocusAndBlurListener,Bf)}),this._rootNodeFocusListenerCount.set(c,v+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,v){(v===n||c.checkChildren&&v.contains(n))&&l.push([v,c])}),l}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Pt),ge(vn),ge(h7),ge(Jt,8),ge(p7,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),E3=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}(),P3="cdk-high-contrast-black-on-white",O3="cdk-high-contrast-white-on-black",DA="cdk-high-contrast-active",I3=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,v=(c&&c.backgroundColor||"").replace(/ /g,"");switch(n.remove(),v){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(P3),n.remove(O3),this._hasCheckedHighContrastMode=!0;var l=this.getHighContrastMode();1===l?(n.add(DA),n.add(P3)):2===l&&(n.add(DA),n.add(O3))}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(vn),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(I3))},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Ny]]}),i}(),R3=L(function i(){R(this,i)}),g7=L(function i(){R(this,i)}),pc="*";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 L3(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;L3(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}(),F3=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,v=this.players.length;0==v?L3(function(){return r._onFinish()}):this.players.forEach(function(_){_.onDone(function(){++n==v&&r._onFinish()}),_.onDestroy(function(){++l==v&&r._onDestroy()}),_.onStart(function(){++c==v&&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 N3(i){return new st(3e3,Nn)}function G3(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 F3(i)}}function j3(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]:{},v=[],_=[],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,v),le){case"!":le=l[$];break;case pc:le=c[$];break;default:le=s.normalizeStyleValue($,oe,le,v)}Y[oe]=le}),F||_.push(Y),M=Y,w=O}),v.length)throw G3();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),v=i._data;return null!=v&&(c._data=v),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,v=arguments.length>6?arguments[6]:void 0;return{element:i,triggerName:s,fromState:r,toState:n,phaseName:l,totalTime:c,disabled:!!v}}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 W3(i){var s=i.indexOf(":");return[i.substring(1,s),i.substr(s+1)]}var IA=function(s,r){return!1},Y3=function(s,r,n){return[]},q3=null;function S1(i){var s=i.parentNode||i.host;return s===q3?null:s}(EA()||"undefined"!=typeof Element)&&(U7()?(q3=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)},Y3=function(s,r,n){if(n)return Array.from(s.querySelectorAll(r));var l=s.querySelector(r);return l?[l]:[]});var zf=null,Z3=!1;function M1(i){zf||(zf=function W7(){return"undefined"!=typeof document?document.body:null}()||{},Z3=!!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)&&Z3&&(s="Webkit"+i.charAt(0).toUpperCase()+i.substr(1)in zf.style),s}var X3=IA,K3=Y3,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 X3(n,l)}},{key:"getParentElement",value:function(n){return S1(n)}},{key:"query",value:function(n,l,c){return K3(n,l,c)}},{key:"computeStyle",value:function(n,l,c){return c||""}},{key:"animate",value:function(n,l,c,v,_){return new By(c,v)}}]),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}(),J3="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 eB(i,s,r){var l,c=0,v="";if("string"==typeof i){var _=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===_)return s.push(N3()),{duration:0,delay:0,easing:""};l=Gf(parseFloat(_[1]),_[2]);var w=_[3];null!=w&&(c=Gf(parseFloat(w),_[4]));var M=_[5];M&&(v=M)}else l=i;if(!r){var A=!1,O=s.length;l<0&&(s.push(function B3(){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,N3())}return{duration:l,delay:c,easing:v}}(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 tB(i,s,r){return r?s+":"+r+";":""}function nB(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],v=l[2],_=l[3];s.push(GA(c,_)),"<"==v[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 v="*"==i||i==l,_="*"==s||s==c;return!v&&r&&"boolean"==typeof l&&(v=l?P1.has(i):O1.has(i)),!_&&n&&"boolean"==typeof c&&(_=c?P1.has(s):O1.has(s)),v&&_}}var mc=new RegExp("s*".concat(":self","s*,?"),"g");function sB(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 v=so(this,Xh(r),c);return c.unsupportedCSSPropertiesFound.size&&yt(c.unsupportedCSSPropertiesFound.keys()),v}},{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,v=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,v+=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:v,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 v=new Set,_=c||{};l.styles.forEach(function(M){if(I1(M)){var A=M;Object.keys(A).forEach(function(O){rB(A[O]).forEach(function(F){_.hasOwnProperty(F)||v.add(F)})})}}),v.size&&(T1(v.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,v=0,_=r.steps.map(function(w){n.currentTime=c;var M=so(l,w,n);return v=Math.max(v,n.currentTime),M});return n.currentTime=v,{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 v=Hy(n,s);return UA(v.duration,v.delay,v.easing)}(r.timings,n.errors);n.currentAnimateTimings=l;var c,v=r.styles?r.styles:mt({});if(5==v.type)c=this.visitKeyframes(v,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 _?_==pc?l.push(_):n.errors.push(function D7(i){return new st(3002,Nn)}()):l.push(_)}):l.push(r.styles);var c=!1,v=null;return l.forEach(function(_){if(I1(_)){var w=_,M=w.easing;if(M&&(v=M,delete w.easing),!c)for(var A in w)if(w[A].toString().indexOf("{{")>=0){c=!0;break}}}),{type:6,styles:l,easing:v,offset:r.offset,containsDynamicStyles:c,options:null}}},{key:"_validateStyleAst",value:function(r,n){var l=this,c=n.currentAnimateTimings,v=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&&(_!=v&&_>=O.startTime&&v<=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:v}),n.options&&function q7(i,s,r){var n=s.params||{},l=rB(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 v=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(v,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 uB(i,s,r,n,l,c){var v=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:v,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}(),dB=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]:{},v=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,v,_,w,M)}var vB=function(){function i(){R(this,i)}return L(i,[{key:"buildKeyframes",value:function(r,n,l,c,v,_,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,v,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()}):[uB(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),v=n.currentTimeline.currentTime,_=this._visitSubInstructions(l,c,c.options);v!=_&&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 v=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);v=Math.max(v,A.duration+A.delay)}),v}},{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,v=n,_=r.options;if(_&&(_.params||_.delay)&&((v=n.createSubContext(_)).transformIntoNewTimeline(),null!=_.delay)){6==v.previousNode.type&&(v.currentTimeline.snapshotCurrentStyles(),v.previousNode=WA);var w=gc(_.delay);v.delayNextStep(w)}r.steps.length&&(r.steps.forEach(function(M){return so(l,M,v)}),v.currentTimeline.applyStylesToKeyframe(),v.subContextCount>c&&v.transformIntoNewTimeline()),n.previousNode=r}},{key:"visitGroup",value:function(r,n){var l=this,c=[],v=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),v=Math.max(v,M.currentTimeline.currentTime),c.push(M.currentTimeline)}),c.forEach(function(w){return n.currentTimeline.mergeTimelineCollectedStyles(w)}),n.transformIntoNewTimeline(v),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 v=r.style;5==v.type?this.visitKeyframes(v,n):(n.incrementTime(l.duration),this.visitStyle(v,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 v=c&&c.easing||r.easing;r.isEmptyStep?l.applyEmptyStep(v):l.setStyles(r.styles,v,n.errors,n.options),n.previousNode=r}},{key:"visitKeyframes",value:function(r,n){var l=n.currentAnimateTimings,c=n.currentTimeline.duration,v=l.duration,w=n.createSubContext().currentTimeline;w.easing=l.easing,r.styles.forEach(function(M){w.forwardTime((M.offset||0)*v),w.setStyles(M.styles,M.easing,n.errors,n.options),w.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(w),n.transformIntoNewTimeline(c+v),n.previousNode=r}},{key:"visitQuery",value:function(r,n){var l=this,c=n.currentTimeline.currentTime,v=r.options||{},_=v.delay?gc(v.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,!!v.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,v=r.timings,_=Math.abs(v.duration),w=_*(n.currentQueryTotal-1),M=_*n.currentQueryIndex;switch(v.duration<0?"reverse":v.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,v,_,w){R(this,i),this._driver=s,this.element=r,this.subInstructions=n,this._enterClassName=l,this._leaveClassName=c,this.errors=v,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,v=this.options;null!=c.duration&&(v.duration=gc(c.duration)),null!=c.delay&&(v.delay=gc(c.delay));var _=c.params;if(_){var w=v.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,v=new i(this._driver,c,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(c,l||0));return v.previousNode=this.previousNode,v.currentAnimateTimings=this.currentAnimateTimings,v.options=this._copyOptions(),v.updateOptions(r),v.currentQueryIndex=this.currentQueryIndex,v.currentQueryTotal=this.currentQueryTotal,v.parentContext=this,this.subContextCount++,v}},{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:""},v=new rg(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,c,r.stretchStartingKeyframe);return this.timelines.push(v),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,v,_){var w=[];if(c&&w.push(this.element),r.length>0){r=(r=r.replace(dB,"."+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!v&&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]||pc,n._currentKeyframe[l]=pc}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(r,n,l,c){var v=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]=pc}):Uf(l,!1,r)}),r}(r,this._globalTimelineStyles);Object.keys(w).forEach(function(M){var A=zy(w[M],_,l);v._pendingStyles[M]=A,v._localTimelineStyles.hasOwnProperty(M)||(v._backFill[M]=v._globalTimelineStyles.hasOwnProperty(M)?v._globalTimelineStyles[M]:pc),v._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],v=r._styleSummary[l];(!c||v.time>c.time)&&n._updateStyle(l,v.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,v=[];this._keyframes.forEach(function(O,F){var Y=Uf(O,!0);Object.keys(Y).forEach(function($){var oe=Y[$];"!"==oe?n.add($):oe==pc&&l.add($)}),c||(Y.offset=F/r.duration),v.push(Y)});var _=n.size?T1(n.values()):[],w=l.size?T1(l.values()):[];if(c){var M=v[0],A=ng(M);M.offset=0,A.offset=1,v=[M,A]}return uB(this.element,v,_,w,this.duration,this.startTime,this.easing,!1)}}]),i}(),rg=function(i){se(r,i);var s=ue(r);function r(n,l,c,v,_,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=v,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,v=c.delay,_=c.duration,w=c.easing;if(this._stretchStartingKeyframe&&v){var M=[],A=_+v,O=v/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((v+le.offset*_)/A),M.push(le)}_=A,v=0,w="",l=M}return uB(this.element,l,this.preStyleProps,this.postStyleProps,_,v,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,v,_){var w="",M=v.toString().trim();if(cW[c]&&0!==v&&"0"!==v)if("number"==typeof v)w="px";else{var A=v.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,v,_,w,M,A,O,F){return{type:0,element:i,triggerName:s,isRemovalTransition:l,fromState:r,fromStyles:c,toState:n,toStyles:v,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["*"],v=this._stateStyles[r],_=c?c.buildStyles(n,l):{};return v?v.buildStyles(n,l):_}},{key:"build",value:function(r,n,l,c,v,_,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,v,_,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 fv=ts(De,fo,{});ci.postStyleProps.forEach(function(Gl){return fv[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}(),pB=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={},v=ng(this.defaultParams);return Object.keys(r).forEach(function(_){var w=r[_];null!=w&&(v[_]=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,v,n));var O=l.normalizer.normalizePropertyName(M,n);A=l.normalizer.normalizeStyleValue(M,O,A,n),c[O]=A})}}),c}}]),i}(),vW=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 pB(c.style,c.options&&c.options.params||{},n)}),mB(this.states,"true","1"),mB(this.states,"false","0"),r.transitions.forEach(function(c){l.transitionFactories.push(new dW(s,c,l.states))}),this.fallbackTransition=function pW(i,s,r){return new dW(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(v,_){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 mB(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=[],v=sB(this._driver,n,l,[]);if(l.length)throw function L7(i){return new st(3503,Nn)}();this._animations[r]=v}},{key:"_buildPlayer",value:function(r,n,l){var c=r.element,v=j3(this._driver,this._normalizer,c,r.keyframes,n,l);return this._driver.animate(c,v,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]:{},v=[],_=this._animations[r],M=new Map;if(_?(w=jA(this._driver,n,_,J3,NA,{},{},c,gW,v)).forEach(function(F){var Y=ts(M,F.element,{});F.postStyleProps.forEach(function($){return Y[$]=null})}):(v.push(F7()),w=[]),v.length)throw N7();M.forEach(function(F,Y){Object.keys(F).forEach(function($){F[$]=l._driver.computeStyle(Y,$,pc)})});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 v=OA(n,"","","");return PA(this._getPlayer(r),l,v,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 v=this;if(!this._triggers.hasOwnProperty(n))throw function U3(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(){v._engine.afterFlush(function(){var A=_.indexOf(w);A>=0&&_.splice(A,1),v._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,v=!(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(!v)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(v){return v.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(v){if(!v[Eo]){var _=l._engine.fetchNamespacesByElement(v);_.size?_.forEach(function(w){return w.triggerLeaveAnimation(v,n,!1,!0)}):l.clearElementCache(v)}}),this._engine.afterFlushAnimationsDone(function(){return c.forEach(function(v){return l.clearElementCache(v)})})}},{key:"triggerLeaveAnimation",value:function(r,n,l,c){var v=this,_=this._engine.statesByElement.get(r),w=new Map;if(_){var M=[];if(Object.keys(_).forEach(function(A){if(w.set(A,_[A].value),v._triggers[A]){var O=v.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 v._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 v=new Set;l.forEach(function(_){var w=_.name;if(!v.has(w)){v.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 v=!1;if(c.totalAnimations){var _=c.players.length?c.playersByQueriedElement.get(r):[];if(_&&_.length)v=!0;else for(var w=r;w=w.parentNode;)if(c.statesByElement.get(w)){v=!0;break}}if(this.prepareLeaveAnimationListeners(r),v)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 v=c.player;if(!v.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)}}),v.markedForDestroy?n._engine.afterFlush(function(){v.destroy()}):l.push(c)}}),this._queue=[],l.sort(function(c,v){var _=c.transition.ast.depCount,w=v.transition.ast.depCount;return 0==_||0==w?_-w:n._engine.driver.containsElement(c.element,v.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,v=l.length-1;if(v>=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=v;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 v=l._namespaceList.indexOf(c);v>=0&&l._namespaceList.splice(v,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),v=0;v=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 v=r?this._fetchNamespace(r):null;if(v?v.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,v){this.collectedLeaveElements.push(n),n[Eo]={namespaceId:r,setForRemoval:c,hasAnimation:l,removedBeforeQueried:!1,previousTriggersValues:v}}},{key:"listen",value:function(r,n,l,c,v){return H1(n)?this._fetchNamespace(r).listen(n,l,c,v):function(){}}},{key:"_buildInstruction",value:function(r,n,l,c,v){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,l,c,r.fromState.options,r.toState.options,n,v)}},{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 v=this._fetchNamespace(c.namespaceId);v&&v.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 RP=!Y||!l.driver.containsElement(Y,yn),UH=Vn.get(yn),Kq=le.get(yn),ja=l._buildInstruction(ut,c,Kq,UH,RP);if(ja.errors&&ja.errors.length)fo.push(ja);else{if(RP)return un.onStart(function(){return Zh(yn,ja.fromStyles)}),un.onDestroy(function(){return _u(yn,ja.toStyles)}),void v.push(un);if(ut.isFallbackTransition)return un.onStart(function(){return Zh(yn,ja.fromStyles)}),un.onDestroy(function(){return _u(yn,ja.toStyles)}),void v.push(un);var jH=[];ja.timelines.forEach(function(hv){hv.stretchStartingKeyframe=!0,l.disabledNodes.has(hv.element)||jH.push(hv)}),ja.timelines=jH,c.append(yn,ja.timelines),w.push({instruction:ja,player:un,element:yn}),ja.queriedElements.forEach(function(hv){return ts(M,hv,[]).push(un)}),ja.preStyleProps.forEach(function(hv,LP){var WH=Object.keys(hv);if(WH.length){var _b=A.get(LP);_b||A.set(LP,_b=new Set),WH.forEach(function($q){return _b.add($q)})}}),ja.postStyleProps.forEach(function(hv,LP){var WH=Object.keys(hv),_b=O.get(LP);_b||O.set(LP,_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 dv=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,dv))}),v.forEach(function(ut){var un=ut.element;l._getPreviousPlayers(un,!1,ut.namespaceId,ut.triggerName,null).forEach(function(Oi){ts(dv,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,pc).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 v.push(yn);var jS=JJ;if(xg.size>1){for(var Tg=un,RP=[];Tg=Tg.parentNode;){var UH=xg.get(Tg);if(UH){jS=UH;break}RP.push(Tg)}RP.forEach(function(jH){return xg.set(jH,jS)})}var Kq=l._buildAnimation(yn.namespaceId,Oi,dv,_,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)),v.push(yn)}}else Zh(un,Oi.fromStyles),yn.onDestroy(function(){return _u(un,Oi.toStyles)}),QJ.push(yn),F.has(un)&&v.push(yn)}),QJ.forEach(function(ut){var un=_.get(ut.element);if(un&&un.length){var yn=Hf(un);ut.setRealPlayer(yn)}}),v.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 v=[];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,v.push(M))}),i.set(M,A)});var _=0;return r.forEach(function(w){return z1(w,c[_++])}),v}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 v(_){if(!_)return 1;var w=c.get(_);if(w)return w;var M=_.parentNode;return w=r.has(M)?M:l.has(M)?1:v(M),c.set(_,w),w}return s.forEach(function(_){var w=v(_);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 _B(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 yB(i,r,n):null}var yB=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};v&&(M.easing=v);var A={},O=_.filter(function(Y){return Y instanceof bB});K7(l,c)&&O.forEach(function(Y){var $=Y.currentSnapshot;Object.keys($).forEach(function(oe){return A[oe]=$[oe]})});var F=wW(r,n=iB(r,n=n.map(function(Y){return Uf(Y,!1)}),A));return new bB(r,n,M,F)}}]),i}(),CB=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var v;return R(this,n),(v=r.call(this))._nextAnimationId=0,v._renderer=l.createRenderer(c.body,{id:"0",encapsulation:Ya.None,styles:[],data:{animation:[]}}),v}return L(n,[{key:"build",value:function(c){var v=this._nextAnimationId.toString();this._nextAnimationId++;var _=Array.isArray(c)?m1(c):c;return tE(this._renderer,null,v,"register",[_]),new wB(v,this._renderer)}}]),n}(R3);return i.\u0275fac=function(r){return new(r||i)(ge(h_),ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),wB=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==SB?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,v){var _;return R(this,r),(_=s.call(this,l,c,v)).factory=n,_.namespaceId=l,_}return L(r,[{key:"setProperty",value:function(l,c,v){"@"==c.charAt(0)?"."==c.charAt(1)&&c==SB?this.disableAnimations(l,v=void 0===v||!!v):this.engine.process(this.namespaceId,l,c.substr(1),v):this.delegate.setProperty(l,c,v)}},{key:"listen",value:function(l,c,v){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 MB(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,v,Y)})}return this.delegate.listen(l,c,v)}}]),r}(nE),kB=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v){return R(this,n),r.call(this,l.body,c,v)}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:R3,useClass:CB},{provide:ig,useFactory:function DB(){return new uW}},{provide:j1,useClass:kB},{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),xB=[{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?xB: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 AB(i,s){if(1&i&&(I(0,"span",5),K(1),B()),2&i){var r=Q();G(1),Le("(",r.group.label,")")}}var EB=["*"],OB=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 IB(){return!0}}),pn=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(I3),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,v=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 v=arguments.length,_=new Array(v),w=0;w0?l:r}}]),i}(),qf=new Ae("mat-date-formats"),LB=/^\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]:{},v=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),_=Object.assign(Object.assign({},NB),c.animation);c.centered&&(r=v.left+v.width/2,n=v.top+v.height/2);var w=c.radius||uE(r,n,v),M=r-v.left,A=n-v.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({},NB),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=pu(r);!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,this._registerEvents(BB))}},{key:"handleEvent",value:function(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(VB),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&&(BB.forEach(function(n){r._triggerElement.removeEventListener(n,r,lE)}),this._pointerUpEventsRegistered&&VB.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 zB=new Ae("mat-ripple-global-options"),Nl=function(){var i=function(){function s(r,n,l,c,v){R(this,s),this._elementRef=r,this._animationMode=v,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=c||{},this._rippleRenderer=new HB(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(vn),z(zB,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:[[pn],pn]}),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:[[pn]]}),i}(),Xy=new Ae("MAT_OPTION_PARENT_COMPONENT"),$1=new Ae("MatOptgroup"),HW=0,GB=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 GB(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,v,_){return R(this,n),r.call(this,l,c,v,_)}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:EB,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&&(pi(),te(0,aE,1,2,"mat-pseudo-checkbox",0),I(1,"span",1),Gt(2),B(),te(3,AB,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,v=0;vr+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,pn,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}),jB={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,v,_,w,M,A,O){var F;return R(this,n),(F=r.call(this))._elementRef=l,F._focusTrapFactory=c,F._changeDetectorRef=v,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,v){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(v)}},{key:"_focusByCssSelector",value:function(c,v){var _=this._elementRef.nativeElement.querySelector(c);_&&this._forceFocus(_,v)}},{key:"_trapFocus",value:function(){var c=this,v=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||v.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 v=Gh(),_=this._elementRef.nativeElement;(!v||v===this._document.body||v===_||_.contains(v))&&(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,v=Gh();return c===v||c.contains(v)}}]),n}(Ty);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(M3),z(hn),z(Jt,8),z(ug),z(b3),z(Pt),z(Rl))},i.\u0275dir=be({type:i,viewQuery:function(r,n){var l;1&r&&Rt(vc,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 v=c.toState,_=c.totalTime;"enter"===v?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:_})):"exit"===v&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:_}))}},{key:"_onAnimationStart",value:function(c){var v=c.toState,_=c.totalTime;"enter"===v?this._animationStateChanged.next({state:"opening",totalTime:_}):("exit"===v||"void"===v)&&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&&cp("@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),vp("@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:[vc],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:[jB.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"),WB=new Ae("mat-dialog-scroll-strategy"),qW={provide:WB,deps:[aa],useFactory:function YB(i){return function(){return i.scrollStrategies.block()}}},ZW=function(){var i=function(){function s(r,n,l,c,v,_,w,M,A,O){var F=this;R(this,s),this._overlay=r,this._injector=n,this._defaultOptions=l,this._parentDialog=c,this._overlayContainer=v,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 v=this._createOverlay(l),_=this._attachDialogContainer(v,l),w=this._attachDialogContent(n,_,v,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 v=kr.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:ug,useValue:l}]}),_=new Rf(this._dialogContainerType,l.viewContainerRef,v,l.componentFactoryResolver);return n.attach(_).instance}},{key:"_attachDialogContent",value:function(n,l,c,v){var _=new this._dialogRefConstructor(c,l,v.id);if(n instanceof hr)l.attachTemplatePortal(new es(n,null,{$implicit:v.data,dialogRef:_}));else{var w=this._createInjector(v,_,l),M=l.attachComponentPortal(new Rf(n,v.viewContainerRef,w,v.componentFactoryResolver));_.componentInstance=M.instance}return _.updateSize(v.width,v.height).updatePosition(v.position),_}},{key:"_createInjector",value:function(n,l,c){var v=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&&(!v||!v.get(Ei,null,It.Optional))&&_.push({provide:Ei,useValue:{value:n.direction,change:dt()}}),kr.create({parent:v||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,v){c?v.setAttribute("aria-hidden",c):v.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 v=l[c];v!==n&&"SCRIPT"!==v.nodeName&&"STYLE"!==v.nodeName&&!v.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(v,v.getAttribute("aria-hidden")),v.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,v,_,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(WB),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=qB(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=qB(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 qB(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,Kp,pn],pn]}),i}(),ZB=["mat-button",""],dE=["*"],e9=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],XB=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,v){var _;R(this,n),(_=r.call(this,l))._focusMonitor=c,_._animationMode=v,_.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,v){c?this._focusMonitor.focusVia(this._getHostElement(),c,v):this._getHostElement().focus(v)}},{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,v=arguments.length,_=new Array(v),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,v,_){var w;return R(this,n),(w=r.call(this,c,l,v))._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:ZB,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&&(pi(),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,pn],pn]}),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}(),KB=function(){var i=function(){function s(r){R(this,s),this.sanitizer=r}return L(s,[{key:"transform",value:function(n,l){return 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 $B(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}(),QB=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 v=l;return{unsubscribe:function(){v.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),qp(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),pf(1,"safeHtml"),Se(2,"mat-dialog-content",1),pf(3,"safeHtml"),I(4,"mat-dialog-actions"),te(5,t9,4,1,"button",2),te(6,$B,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:[KB],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}(),JB=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)}(JB);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},vE=new Ae("CompositionEventMode"),yi=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v){var _;return R(this,n),(_=r.call(this,l,c))._compositionMode=v,_._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}(JB);return i.\u0275fac=function(r){return new(r||i)(z(Yu),z(tt),z(vE,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 nV(i){return null!=i&&"number"==typeof i.length}var Gi=new Ae("NgValidators"),Zf=new Ae("NgAsyncValidators"),rV=/^(?=.{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 pE(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 aV(r)}},{key:"email",value:function(r){return function oV(i){return wc(i.value)||rV.test(i.value)?null:{email:!0}}(r)}},{key:"minLength",value:function(r){return function gE(i){return function(s){return wc(s.value)||!nV(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 lV(i,s){return s.map(function(r){return r(i)})}function uV(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(lV(r,s))}}function bE(i){return null!=i?yE(uV(i)):null}function cV(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)}(vg),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}(vg),hV=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}(),vr=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)}(hV);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)}(hV);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 pg(i,s){SE(i,s),s.valueAccessor.writeValue(i.value),function _V(i,s){s.valueAccessor.registerOnChange(function(r){i._pendingValue=r,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&p9(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&&p9(i,s),"submit"!==i.updateOn&&i.markAsTouched()})}(i,s),function v9(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=fV(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=fV(i);if(Array.isArray(c)&&c.length>0){var v=c.filter(function(w){return w!==s.asyncValidator});v.length!==c.length&&(r=!0,i.setAsyncValidators(v))}}}var _=function(){};return uS(s._rawValidators,_),uS(s._rawAsyncValidators,_),r}function p9(i,s){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),s.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function yV(i,s){SE(i,s)}function CV(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(vS(i)?i.validators:i)||null}function xE(i){return Array.isArray(i)?bE(i):i||null}function TE(i,s){return(vS(s)?s.asyncValidators:i)||null}function SV(i){return Array.isArray(i)?yu(i):i||null}function vS(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}var MV=function(s){return s instanceof AE},eb=function(s){return s instanceof EE};function kV(i){return MV(i)?i.value:i.getRawValue()}function DV(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 xV(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=SV(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=SV(r)}},{key:"addValidators",value:function(r){this.setValidators(dV(r,this._rawValidators))}},{key:"addAsyncValidators",value:function(r){this.setAsyncValidators(dV(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 TV}(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){vS(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,v=arguments.length>2?arguments[2]:void 0;return R(this,r),(n=s.call(this,hS(c),TE(v,c))).defaultValue=null,n._onChange=[],n._pendingChange=!1,n._applyFormState(l),n._setUpdateStrategy(c),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),vS(c)&&c.initialValueIsDefault&&(n.defaultValue=n._isBoxedValue(l)?l.value:l),n}return L(r,[{key:"setValue",value:function(l){var c=this,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=l,this._onChange.length&&!1!==v.emitModelToViewChange&&this._onChange.forEach(function(_){return _(c.value,!1!==v.emitViewToModelChange)}),this.updateValueAndValidity(v)}},{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 v;return R(this,r),(v=s.call(this,hS(l),TE(c,l))).controls=n,v._initObservables(),v._setUpdateStrategy(l),v._setUpControls(),v.updateValueAndValidity({onlySelf:!0,emitEvent:!!v.asyncValidator}),v}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 v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(l,c),this.updateValueAndValidity({emitEvent:v.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 v=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:v.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,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};xV(this,l),Object.keys(l).forEach(function(_){DV(c,_),c.controls[_].setValue(l[_],{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v)}},{key:"patchValue",value:function(l){var c=this,v=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:v.emitEvent})}),this.updateValueAndValidity(v))}},{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(v,_){v.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,v){return l[v]=kV(c),l})}},{key:"_syncPendingControls",value:function(){var l=this._reduceChildren(!1,function(c,v){return!!v._syncPendingControls()||c});return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_forEachChild",value:function(l){var c=this;Object.keys(this.controls).forEach(function(v){var _=c.controls[v];_&&l(_,v)})}},{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,v=Object.keys(this.controls);c0||this.disabled}}]),r}(tb),TV=function(i){se(r,i);var s=ue(r);function r(n,l,c){var v;return R(this,r),(v=s.call(this,hS(l),TE(c,l))).controls=n,v._initObservables(),v._setUpdateStrategy(l),v._setUpControls(),v.updateValueAndValidity({onlySelf:!0,emitEvent:!!v.asyncValidator}),v}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 v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(l,0,c),this._registerControl(c),this.updateValueAndValidity({emitEvent:v.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 v=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:v.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(l){var c=this,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};xV(this,l),l.forEach(function(_,w){DV(c,w),c.at(w).setValue(_,{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v)}},{key:"patchValue",value:function(l){var c=this,v=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:v.emitEvent})}),this.updateValueAndValidity(v))}},{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(v,_){v.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 kV(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,v){return!!v._syncPendingControls()||c},!1);return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_forEachChild",value:function(l){this.controls.forEach(function(c,v){l(c,v)})}},{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),AV={provide:lo,useExisting:En(function(){return Sc})},tv=function(){return Promise.resolve(null)}(),Sc=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var v;return R(this,n),(v=r.call(this)).submitted=!1,v._directives=new Set,v.ngSubmit=new ye,v.form=new EE({},bE(l),yu(c)),v}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 v=this;tv.then(function(){var _=v._findContainer(c.path);c.control=_.registerControl(c.name,c.control),pg(c.control,c),c.control.updateValueAndValidity({emitEvent:!1}),v._directives.add(c)})}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){var v=this;tv.then(function(){var _=v._findContainer(c.path);_&&_.removeControl(c.name),v._directives.delete(c)})}},{key:"addFormGroup",value:function(c){var v=this;tv.then(function(){var _=v._findContainer(c.path),w=new EE({});yV(w,c),_.registerControl(c.name,w),w.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(c){var v=this;tv.then(function(){var _=v._findContainer(c.path);_&&_.removeControl(c.name)})}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,v){var _=this;tv.then(function(){_.form.get(c.path).setValue(v)})}},{key:"setValue",value:function(c){this.control.setValue(c)}},{key:"onSubmit",value:function(c){return this.submitted=!0,CV(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([AV]),Re]}),i}(),eQ={provide:Bl,useExisting:En(function(){return ar})},OV=function(){return Promise.resolve(null)}(),ar=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v,_,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(v),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 v=c.name.previousValue;this.formDirective.removeControl({name:v,path:this._getPath(v)})}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(){pg(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 v=this;OV.then(function(){var _;v.control.setValue(c,{emitViewToModelChange:!1}),null===(_=v._changeDetectorRef)||void 0===_||_.markForCheck()})}},{key:"_updateDisabled",value:function(c){var v=this,_=c.isDisabled.currentValue,w=""===_||_&&"false"!==_;OV.then(function(){var M;w&&!v.control.disabled?v.control.disable():!w&&v.control.disabled&&v.control.enable(),null===(M=v._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(v){c(""==v?null:parseFloat(v))}}}]),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}(),IV=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 v;return R(this,n),(v=r.call(this)).validators=l,v.asyncValidators=c,v.submitted=!1,v._onCollectionChange=function(){return v._updateDomValue()},v.directives=[],v.form=null,v.ngSubmit=new ye,v._setValidators(l),v._setAsyncValidators(c),v}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 v=this.form.get(c.path);return pg(v,c),v.updateValueAndValidity({emitEvent:!1}),this.directives.push(c),v}},{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,v){this.form.get(c.path).setValue(v)}},{key:"onSubmit",value:function(c){return this.submitted=!0,CV(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(v){var _=v.control,w=c.form.get(v.path);_!==w&&(lS(_||null,v),MV(w)&&(pg(w,v),v.control=w))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(c){var v=this.form.get(c.path);yV(v,c),v.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(c){if(this.form){var v=this.form.get(c.path);if(v){var _=function bV(i,s){return cS(i,s)}(v,c);_&&v.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 nv=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}(nv);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 aV},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)}(nv);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:[[IV]]}),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}(),XV=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 KV(i,s){1&i&&Gt(0)}var $V=["*"];function N9(i,s){}var QV=function(s){return{animationDuration:s}},B9=function(s,r){return{value:s,params:r}},V9=["tabListContainer"],H9=["tabList"],z9=["tabListInner"],JV=["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),v=Q();Ze("mat-tab-label-active",v.selectedIndex===l),U("id",v._getTabLabelId(l))("ngClass",n.labelClass)("disabled",n.disabled)("matRippleDisabled",n.disabled||v.disableRipple),lt("tabIndex",v._getTabIndex(n,l))("aria-posinset",l+1)("aria-setsize",v._tabs.length)("aria-controls",v._getTabContentId(l))("aria-selected",v.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 e5=new Ae("MatInkBarPositioner",{providedIn:"root",factory:function t5(){return function(r){return{left:r?(r.offsetLeft||0)+"px":"0",width:r?(r.offsetWidth||0)+"px":"0"}}}}),n5=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),v=l._elementRef.nativeElement;v.style.left=c.left,v.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(e5),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"),r5=new Ae("MatTabLabel"),a5=new Ae("MAT_TAB"),rs=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v){var _;return R(this,n),(_=r.call(this,l,c))._closestTab=v,_}return L(n)}(Tj);return i.\u0275fac=function(r){return new(r||i)(z(hr),z(wr),z(a5,8))},i.\u0275dir=be({type:i,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[ft([{provide:r5,useExisting:i}]),Re]}),i}(),o5=Fl(function(){return L(function i(){R(this,i)})}()),s5=new Ae("MAT_TAB_GROUP"),Hs=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var v;return R(this,n),(v=r.call(this))._viewContainerRef=l,v._closestTabGroup=c,v.textLabel="",v._contentPortal=null,v._stateChanges=new Xe,v.position=null,v.origin=null,v.isActive=!1,v}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}(o5);return i.\u0275fac=function(r){return new(r||i)(z(wr),z(s5,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-tab"]],contentQueries:function(r,n,l){var c;1&r&&(Mn(l,r5,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:a5,useExisting:i}]),Re,xn],ngContentSelectors:$V,decls:1,vars:0,template:function(r,n){1&r&&(pi(),te(0,KV,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,v,_){var w;return R(this,n),(w=r.call(this,l,c,_))._host=v,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(v){v&&!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}(vc);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}(),l5=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(v){c._computePositionAnimationState(v),l.markForCheck()})),this._translateTabComplete.pipe(Fy(function(v,_){return v.fromState===_.fromState&&v.toState===_.toState})).subscribe(function(v){c._isCenterPosition(v.toState)&&c._isCenterPosition(c._position)&&c._onCentered.emit(),c._isCenterPosition(v.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,v){return R(this,n),r.call(this,l,c,v)}return L(n)}(l5);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(vc,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,QV,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}(),u5=new Ae("MAT_TABS_CONFIG"),J9=Fl(function(){return L(function i(){R(this,i)})}()),c5=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}(),f5=Vh({passive:!0}),qE=function(){var i=function(){function s(r,n,l,c,v,_,w){var M=this;R(this,s),this._elementRef=r,this._changeDetectorRef=n,this._viewportRuler=l,this._dir=c,this._ngZone=v,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,v.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",f5).pipe(Wt(this._destroyed)).subscribe(function(){n._handlePaginatorPress("before")}),gu(this._nextPaginator.nativeElement,"touchstart",f5).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),v=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(v),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)),v()})}),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,v=l.elementRef.nativeElement,_=v.offsetLeft,w=v.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(),qp(650,100).pipe(Wt(Rr(this._stopScrolling,this._destroyed))).subscribe(function(){var v=c._scrollHeader(n),w=v.distance;(0===w||w>=v.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(vn),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,v,_,w,M,A){var O;return R(this,n),(O=r.call(this,l,c,v,_,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(vn),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,v,_,w,M,A){return R(this,n),r.call(this,l,c,v,_,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(vn),z(mi,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-tab-header"]],contentQueries:function(r,n,l){var c;1&r&&Mn(l,c5,4),2&r&&Ve(c=Ge())&&(n._items=c)},viewQuery:function(r,n){var l;1&r&&(Rt(n5,7),Rt(V9,7),Rt(H9,7),Rt(z9,7),Rt(JV,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:$V,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&&(pi(),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,v1,n5],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}(),d5=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,v,_){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=d5++,w.animationDuration=v&&v.animationDuration?v.animationDuration:"500ms",w.disablePagination=!(!v||null==v.disablePagination)&&v.disablePagination,w.dynamicHeight=!(!v||null==v.dynamicHeight)&&v.dynamicHeight,w.contentTabIndex=null!==(M=null==v?void 0:v.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 v=this._elementRef.nativeElement;v.classList.remove("mat-background-".concat(this.backgroundColor)),c&&v.classList.add("mat-background-".concat(c)),this._backgroundColor=c}},{key:"ngAfterContentChecked",value:function(){var c=this,v=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=v){var _=null==this._selectedIndex;if(!_){this.selectedTabChange.emit(this._createChangeEvent(v));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===v}),_||(c.selectedIndexChange.emit(v),c._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(M,A){M.position=A-v,null!=c._selectedIndex&&0==M.position&&!M.origin&&(M.origin=v-c._selectedIndex)}),this._selectedIndex!==v&&(this._selectedIndex=v,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 v=c._clampTabIndex(c._indexToSelect);if(v===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&&_[v]&&Promise.resolve().then(function(){_[v].isActive=!0,c.selectedTabChange.emit(c._createChangeEvent(v))})}c._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var c=this;this._allTabs.changes.pipe(na(this._allTabs)).subscribe(function(v){c._tabs.reset(v.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 v=this._tabHeader;v&&(v.focusIndex=c)}},{key:"_focusChanged",value:function(c){this._lastFocusedTabIndex=c,this.focusChange.emit(this._createChangeEvent(c))}},{key:"_createChangeEvent",value:function(c){var v=new Jf;return v.index=c,this._tabs&&this._tabs.length&&(v.tab=this._tabs.toArray()[c]),v}},{key:"_subscribeToTabLabels",value:function(){var c=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Rr.apply(void 0,yt(this._tabs.map(function(v){return v._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 v=this._tabBodyWrapper.nativeElement;v.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(v.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,v,_){c.disabled||(this.selectedIndex=v.focusIndex=_)}},{key:"_getTabIndex",value:function(c,v){var _;return c.disabled?null:v===(null!==(_=this._lastFocusedTabIndex)&&void 0!==_?_:this.selectedIndex)?0:-1}},{key:"_tabFocusChanged",value:function(c,v){c&&"mouse"!==c&&"touch"!==c&&(this._tabHeader.focusIndex=v)}}]),n}(tY);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(u5,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,v,_){return R(this,n),r.call(this,l,c,v,_)}return L(n)}(nY);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(u5,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:s5,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,c5,Nl,E3,As,en,vc],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,pn,Kp,Cc,Ny,xA],pn]}),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 p5(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,p5,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 g5(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,g5,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 vY(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 pY(i,s){1&i&&te(0,vY,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,pY,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 av,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 v=void 0!==c.values?c.values:c.value;if(c.gui.required&&0!==v&&(!v||v instanceof Array&&0===v.length)&&l.push(c.gui.label),"number"==typeof v){var _=parseInt((c.gui.minValue||987654321).toString(),10),w=parseInt((c.gui.maxValue||987654321).toString(),10);987654321!==_&&v<_&&l.push(c.gui.label+" >= "+c.gui.minValue),987654321!==w&&v>w&&l.push(c.gui.label+" <= "+c.gui.maxValue),v=v.toString()}n[c.name]=v}),{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),pf(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:[KB],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 v=null!=l;l=v?l:{},n.forEach(function(M){(!1===v||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,v,_,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,v,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,v?r.table.rest.save(le.data,v.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],v=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,v,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,v=r.param?r.param.type:void 0,_=new ye;return this.typedForm(r,n,l,c,null,v).subscribe(function(w){_.emit(w)}),_}},{key:"deleteForm",value:function(r,n){var l=this,c=new Array,v=new Array;r.table.selection.selected.forEach(function(w){var M=w.name||w.friendly_name;M.changingThisBreaksApplicationSecurity&&(M=M.changingThisBreaksApplicationSecurity),c.push(M),v.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=v.length,A=function(){l.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),r.table.overview()};v.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,v=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===v[A.name]&&(v[A.name]=!0,c.executeCallback(r,A,l,v))})})}}]),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;",m5=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,v=c||(window.innerWidth<800?"80%":"40%"),_=this.dialog.open(QB,{width:v,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%",v=this.dialog.open(QB,{width:c,data:{title:r,body:n,type:fg.yesno,warnOnYes:l},disableClose:!0});return v.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}(),pr=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"}(pr||(pr={})),pr}(),y5="provider",b5="service",JE="pool",eP="user",DS="transport",iv="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 y5:this.gotoProvider(c(0));break;case b5: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 iv:this.gotoOSManager(c(0));break;case ob:this.gotoCalendar(c(0));break;case sb:this.gotoPoolGroup(c(0))}}catch(v){}}}],[{key:"getGotoButton",value:function(r,n,l){return{id:r,html:'link'+django.gettext("Go to")+" "+CY[r]+"",type:pr.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):w5}return L(s,[{key:"matchMedia",value:function(n){return(this._platform.WEBKIT||this._platform.BLINK)&&function rP(i){if(!tP.has(i))try{av||((av=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(av)),av.sheet&&(av.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(vn))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function w5(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(v){return l._registerQuery(v).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 M5(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"}),k5=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,k5))}},{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,M5,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,v,_,w){var M;return R(this,n),(M=r.call(this))._ngZone=l,M._elementRef=c,M._changeDetectorRef=v,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,v=this.snackBarConfig.panelClass;v&&(Array.isArray(v)?v.forEach(function(_){return c.classList.add(_)}):c.classList.add(v)),"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 v=c._elementRef.nativeElement.querySelector("[aria-hidden]"),_=c._elementRef.nativeElement.querySelector("[aria-live]");if(v&&_){var w=null;c._platform.isBrowser&&document.activeElement instanceof HTMLElement&&v.contains(document.activeElement)&&(w=document.activeElement),v.removeAttribute("aria-hidden"),_.appendChild(v),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(vn),z(xS))},i.\u0275cmp=ke({type:i,selectors:[["snack-bar-container"]],viewQuery:function(r,n){var l;1&r&&Rt(vc,7),2&r&&Ve(l=Ge())&&(n._portalOutlet=l.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(r,n){1&r&&cp("@state.done",function(c){return n.onAnimationEnd(c)}),2&r&&vp("@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:[vc],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}(),D5=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,Kp,io,tS,pn],pn]}),i}(),x5=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,v,_){R(this,s),this._overlay=r,this._live=n,this._injector=l,this._breakpointObserver=c,this._parentSnackBar=v,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,v=Object.assign(Object.assign({},this._defaultConfig),c);return v.data={message:n,action:l},v.announcementMessage===n&&(v.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,v)}},{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 v=kr.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:xS,useValue:l}]}),_=new Rf(this.snackBarContainerComponent,l.viewContainerRef,v),w=n.attach(_);return w.instance.snackBarConfig=l,w.instance}},{key:"_attach",value:function(n,l){var c=this,v=Object.assign(Object.assign(Object.assign({},new xS),this._defaultConfig),l),_=this._createOverlay(v),w=this._attachSnackBarContainer(_,v),M=new lb(w,_);if(n instanceof hr){var A=new es(n,null,{$implicit:v.data,snackBarRef:M});M.instance=w.attachTemplatePortal(A)}else{var O=this._createInjector(v,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)}),v.announcementMessage&&w._onAnnounce.subscribe(function(){c._live.announce(v.announcementMessage,v.politeness)}),this._animateSnackBar(M,v),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(),v="rtl"===n.direction,_="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!v||"end"===n.horizontalPosition&&v,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(x5))},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,v,_,w,M){var A;return R(this,n),(A=r.call(this,l,c,v,_,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(x5))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:D5}),i}(),TS="dark-theme",T5="light-theme",Ot=function(){var i=function(){function s(r,n,l,c,v,_){R(this,s),this.http=r,this.router=n,this.dialog=l,this.snackbar=c,this.sanitizer=v,this.dateAdapter=_,this.user=new MN(udsData.profile),this.navigation=new is(this.router),this.gui=new m5(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,T5].forEach(function(c){l.classList.contains(c)&&l.classList.remove(c)}),l.classList.add(n?TS:T5)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(rF),ge(Ba),ge(eS),ge(xY),ge(Yx),ge(oa))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),A5=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(v,_){return void 0===v?_:v};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 Bp).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 v=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 v.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(v){return n.handleError(v)}))}},{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,v){var _;return R(this,r),(_=s.call(this,n.api,[n.paths.base,l,c].join("/"))).parentModel=n,_.parentId=l,_.model=c,_.perm=v,_}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,v){var _=arguments.length>3&&void 0!==arguments[3]?arguments[3]:12;return this.get(l+"/search?type="+encodeURIComponent(c)+"&term="+encodeURIComponent(v)+"&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),E5=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,v){return this.get(l+"/createFromAssignable?user_id="+encodeURIComponent(c)+"&assignable_id="+encodeURIComponent(v))}}]),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),P5=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 v="stats/"+l;return c&&(v+="/"+c),this.get(v)}},{key:"flushCache",value:function(){return this.doGet(this.getPath("cache","flush"))}}]),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,"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),I5=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 E5(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 P5(r),this.actorToken=new FY(r),this.tunnelToken=new cb(r),this.reports=new O5(r),this.notifiers=new I5(r)});return i.\u0275fac=function(r){return new(r||i)(ge(Ot))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),R5=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],L5=[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||G5).formats=n.formats||{};var c=r.getTime();return(l.utc||"number"==typeof l.timezone)&&(r=F5(r)),"number"==typeof l.timezone&&(r=new Date(r.getTime()+6e4*l.timezone)),s.replace(/%([-_0]?.)/g,function(v,_){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 v;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(N5(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(N5(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())+B5(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(V5(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(V5(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 _}})},F5=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},B5=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"}},V5=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)},H5=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(H5(c),new Date(1e3*r))}return l},fP=function(s){return"yes"===s||!0===s||"true"===s||1===s},G5={days:R5,shortDays:cP(R5),months:L5,shortMonths:cP(L5),AM:"AM",PM:"PM",am:"am",pm:"pm"},U5={leading:!0,trailing:!1};function BY(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U5;return gr(function(r,n){var l=s.leading,c=s.trailing,v=!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(pe(n,A,O))},Y=function(){if(v){v=!1;var oe=_;_=null,n.next(oe),!M&&F(oe)}};r.subscribe(pe(n,function($){v=!0,_=$,(!w||w.closed)&&(l?Y():F($))},function(){M=!0,(!(c&&v&&w)||w.closed)&&n.complete()}))})}var W5=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=W5.of(n);c.notFirstAndEmpty("options").subscribe(function(v){return l.onOptionsChange(v)}),c.notFirstAndEmpty("merge").subscribe(function(v){return l.setOption(v)}),c.has("loading").subscribe(function(v){return l.toggleLoading(!!v)}),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 j5(i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U5,n=qp(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(v){for(;;)switch(v.prev=v.next){case 0:if(n){v.next=2;break}return v.abrupt("return");case 2:if(!this.chart){v.next=6;break}this.setOption(this.options,!0),v.next=11;break;case 6:return v.next=8,this.createChart();case 8:this.chart=v.sent,this.chartInit.emit(this.chart),this.setOption(this.options,!0);case 11:case"end":return v.stop()}},l,this)}))}},{key:"createLazyEvent",value:function(n){var l=this;return this.chartInit.pipe(_a(function(c){return new Jn(function(v){return c.on(n,function(_){return l.ngZone.run(function(){return v.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 Y5(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=v[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,v=["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"),tH=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:tH,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"),vb=new Ae("MatFormField"),or=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v,_,w,M,A){var O;return R(this,n),(O=r.call(this,l))._changeDetectorRef=c,O._dir=v,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 v=this._appearance;this._appearance=c||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&v!==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 v=this._control;v.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(v.controlType)),v.stateChanges.pipe(na(null)).subscribe(function(){c._validatePlaceholders(),c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),v.ngControl&&v.ngControl.valueChanges&&v.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 v=this._control?this._control.ngControl:null;return v&&v[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 v=this._hintChildren?this._hintChildren.find(function(w){return"start"===w.align}):null,_=this._hintChildren?this._hintChildren.find(function(w){return"end"===w.align}):null;v?c.push(v.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,v=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=v.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})))])},ov=0,sH=new Ae("mat-select-scroll-strategy"),lH=new Ae("MAT_SELECT_CONFIG"),dq={provide:sH,deps:[aa],useFactory:function fq(i){return function(){return i.scrollStrategies.reposition()}}},uH=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})}())))),cH=new Ae("MatSelectTrigger"),vq=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:cH,useExisting:i}])]}),i}(),RS=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v,_,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=v,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(ov++),ae._triggerAriaLabelledBy=null,ae._destroy=new Xe,ae._onChange=function(){},ae._onTouched=function(){},ae._valueId="mat-select-value-".concat(ov++),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,v,_,w;return null!==(w=null!==(c=this._required)&&void 0!==c?c:null===(_=null===(v=this.ngControl)||void 0===v?void 0:v.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(v){v.added.forEach(function(_){return _.select()}),v.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(),v=this.ngControl;if(c!==this._triggerAriaLabelledBy){var _=this._elementRef.nativeElement;this._triggerAriaLabelledBy=c,c?_.setAttribute("aria-labelledby",c):_.removeAttribute("aria-labelledby")}v&&(this._previousControl!==v.control&&(void 0!==this._previousControl&&null!==v.disabled&&v.disabled!==this.disabled&&(this.disabled=v.disabled),this._previousControl=v.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,v;return this.multiple?(null===(c=this._selectionModel)||void 0===c?void 0:c.selected)||[]:null===(v=this._selectionModel)||void 0===v?void 0:v.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var c=this._selectionModel.selected.map(function(v){return v.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 v=c.keyCode,_=40===v||38===v||37===v||39===v,w=13===v||32===v,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 v=this._keyManager,_=c.keyCode,w=40===_||38===_,M=v.isTyping();if(w&&c.altKey)c.preventDefault(),this.close();else if(M||13!==_&&32!==_||!v.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=v.activeItemIndex;v.onKeydown(c),this._multiple&&w&&c.shiftKey&&v.activeItem&&v.activeItemIndex!==O&&v.activeItem._selectViaInteraction()}else c.preventDefault(),v.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 v=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 v._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 v=this,_=this.options.find(function(w){if(v._selectionModel.isSelected(w))return!1;try{return null!=w.value&&v._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 y3(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,v=Rr(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Wt(v)).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(v)).subscribe(function(){c._changeDetectorRef.markForCheck(),c.stateChanges.next()})}},{key:"_onSelect",value:function(c,v){var _=this._selectionModel.isSelected(c);null!=c.value||this._multiple?(_!==c.selected&&(c.selected?this._selectionModel.select(c):this._selectionModel.deselect(c)),v&&this._keyManager.setActiveItem(c),this.multiple&&(this._sortValues(),v&&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 v=this.options.toArray();this._selectionModel.sort(function(_,w){return c.sortComparator?c.sortComparator(_,w,v):v.indexOf(_)-v.indexOf(w)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(c){var v;v=this.multiple?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=v,this.valueChange.emit(v),this._onChange(v),this.selectionChange.emit(this._getChangeEvent(v)),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 v=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId();return this.ariaLabelledby?(v?v+" ":"")+this.ariaLabelledby:v}},{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 v=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId(),_=(v?v+" ":"")+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(vb,8),z(Bl,10),Ho("tabindex"),z(sH),z(kA),z(lH,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,v,_){var w=this._getItemHeight();return Math.min(Math.max(0,w*c-v+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 v=cE(c,this.options,this.optionGroups),_=this._getItemHeight();this.panel.nativeElement.scrollTop=0===c&&1===v?0:UB((c+v)*_,_,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 uH(this,c)}},{key:"_calculateOverlayOffsetX",value:function(){var M,c=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),v=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-v.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,v,_){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):v-w/2,Math.round(-1*O-M))}},{key:"_checkOverlayWithinViewport",value:function(c){var v=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()*v,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,v){var _=Math.round(c-v);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,v,_){var w=Math.round(c-v);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(),v=this._getItemCount(),_=Math.min(v*c,256),M=v*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(),v=(c-this._triggerRect.height)/2,_=Math.abs(this._offsetY)-v+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,cH,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:iH,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&&(pi(rH),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:[c3,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:[aH.transformPanelWrap,aH.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,pn],If,PS,Q1,pn]}),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 fH(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),dH=function(){var i=function(){function s(r,n,l,c,v,_,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=v,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 v=this._tooltipInstance=c.attach(this._portal).instance;v._triggerElement=this._elementRef.nativeElement,v._mouseLeaveHideDelay=this._hideDelay,v.afterHidden().pipe(Wt(this._destroyed)).subscribe(function(){return n._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),v.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),v=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(c);return v.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:v,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(),v=this._getOverlayPosition();l.withPositions([this._addOffset(Object.assign(Object.assign({},c.main),v.main)),this._addOffset(Object.assign(Object.assign({},c.fallback),v.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 v=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:v.x,originY:v.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 v=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:v.x,overlayY:v.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 v=function(){clearTimeout(n._touchstartTimeout),n.hide(n._defaultOptions.touchendHideDelay)};c.push(["touchend",v],["touchcancel",v])}this._addListeners(c),(l=this._passiveListeners).push.apply(l,c)}}},{key:"_addListeners",value:function(n){var l=this;n.forEach(function(c){var v=Pr(c,2);l._elementRef.nativeElement.addEventListener(v[0],v[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}(),hH=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v,_,w,M,A,O,F,Y,$,oe){var le;return R(this,n),(le=r.call(this,l,c,v,_,w,M,A,O,F,Y,$,oe))._tooltipComponent=lv,le}return L(n)}(dH);return i.\u0275fac=function(r){return new(r||i)(z(aa),z(tt),z(FN),z(wr),z(Pt),z(vn),z(g3),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}(),kP=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,v=this._hideAnimation;if(l.classList.remove(n?v:c),l.classList.add(n?c:v),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}(),lv=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v){var _;return R(this,n),(_=r.call(this,l,v))._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)}(kP);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(v){return n._handleAnimationEnd(v)}),pf(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}(),DP=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,pn],pn,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 vH(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 xP(i,s){if(1&i&&(I(0,"div",20),K(1),B()),2&i){var r=Q(2);G(1),Ln(r.pageSize)}}function TP(i,s){if(1&i&&(I(0,"div",12)(1,"div",13),K(2),B(),te(3,vH,3,6,"mat-form-field",14),te(4,xP,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,v=c<(l=Math.max(l,0))?Math.min(c+n,l):c+n;return"".concat(c+1," \u2013 ").concat(v," 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 pH(i){return i||new kg}},Cq=new Ae("MAT_PAGINATOR_DEFAULT_OPTIONS"),_H=Fl(RB(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,v){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()}),v){var w=v.pageSize,M=v.pageSizeOptions,A=v.hidePageSize,O=v.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(v){return Va(v)}),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=RB(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 v,_,w;if(!c)return"";var M=null!==(_=null!==(v=null==c?void 0:c.disableClear)&&void 0!==v?v: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,v,_,w,M,A){var O;return R(this,n),(O=r.call(this))._intl=l,O._changeDetectorRef=c,O._sort=v,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(v){var _=!!v;_!==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 v,_;this._sortButton&&(null===(v=this._ariaDescriber)||void 0===v||v.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(g3,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&&(pi(),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,pn]]}),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,v=new Array(c),_=0;_4&&void 0!==arguments[4])||arguments[4],v=!(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=v,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=[],v=qt(r);try{for(v.s();!(_=v.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(_,v),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,v=0;v0;v--)n[v]&&(l[v]=c,c+=r[v]);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,v,_,w,M,A,O,F,Y){R(this,s),this._differs=r,this._changeDetectorRef=n,this._elementRef=l,this._dir=v,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(),vP(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(v,_,w){return n._getEmbeddedViewArgs(v.item,w)},function(v){return v.item.data},function(v){1===v.operation&&v.context&&n._renderCellTemplateForItem(v.record.item.rowDef,v.context)}),this._updateRowIndexContext(),l.forEachIdentityChange(function(v){c.get(v.currentIndex).context.$implicit=v.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 v=this._headerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["top"]),this._stickyStyler.stickRows(n,v,"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 v=this._footerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["bottom"]),this._stickyStyler.stickRows(n,v,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,v),this._footerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var n=this,l=this._getRenderedRows(this._headerRowOutlet),c=this._getRenderedRows(this._rowOutlet),v=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(yt(l),yt(c),yt(v)),["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,v=Array.from(l.columns||[]).map(function(M){return c._columnDefsByName.get(M)}),_=v.map(function(M){return M.sticky}),w=v.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,v,c);return this._renderCellTemplateForItem(l,v),_}},{key:"_renderCellTemplateForItem",value:function(n,l){var v,c=qt(this._getCellTemplates(n));try{for(c.s();!(v=c.n()).done;)Yt.mostRecentCellOutlet&&Yt.mostRecentCellOutlet._viewContainer.createEmbeddedView(v.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,v){var _=c[v];if(kN(_)){var w=Number(_);return wF?oe=1:O0)){var _=Math.ceil(v.length/v.pageSize)-1||0,w=Math.min(v.pageIndex,_);w!==v.pageIndex&&(v.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(pe(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=qp(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=pu(n),v=this._monitoredElements.get(c);if(v)return v.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=pu(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(vn),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,v,_,w,M,A,O,F,Y){var $;R(this,n),($=r.call(this,M,_,w,v))._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,v,_,w;return null!==(w=null!==(c=this._required)&&void 0!==c?c:null===(_=null===(v=this.ngControl)||void 0===v?void 0:v.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(v){c.autofilled=v.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,v,_=(null===(v=null===(c=this._formField)||void 0===c?void 0:c._hideControlPlaceholder)||void 0===v?void 0:v.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,v=c.options[0];return this.focused||c.multiple||!this.empty||!!(c.selectedIndex>-1&&v&&v.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(vn),z(Bl,10),z(Sc,8),z($f,8),z(qy),z(OQ,10),z(kee),z(Pt),z(vb,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,pn],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 _,v=n.searchSelectInput.nativeElement;v=v.parentElement;)if(v.classList.contains("cdk-overlay-pane")){_=v;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 v=n.matSelect.options.map(function(_){return _.value});n.previousSelectedValues.forEach(function(_){-1===l.indexOf(_)&&-1===v.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(v){l.entities.push({id:v.id,text:v.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 v=window.innerWidth<800?"80%":"50%";return n.gui.dialog.open(s,{width:v,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(v){return n.changeAuth(v)})("ngModelChange",function(v){return n.authenticator=v}),te(9,Fee,2,2,"mat-option",6),B()(),I(10,"mat-form-field")(11,"mat-select",7),ne("ngModelChange",function(v){return n.entity=v}),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(v){return n.permission=v}),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,vr,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 v=he(r).$implicit;return Q(2).revokePermission(v)}),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(v){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(v){l.data.rest.addPermission(l.data.item.id,c+"s",v.entity,v.permissision).subscribe(function(_){l.reload()})})}}],[{key:"launch",value:function(n,l,c){var v=window.innerWidth<800?"90%":"60%";n.gui.dialog.open(s,{width:v,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 v=l[c.name];switch(c.type){case ui.DATE:v=zs("SHORT_DATE_FORMAT",v);break;case ui.DATETIME:v=zs("SHORT_DATETIME_FORMAT",v);break;case ui.DATETIMESEC:v=zs("SHORT_DATE_FORMAT",v," H:i:s");break;case ui.TIME:v=zs("TIME_FORMAT",v)}r+=LQ(v)+","}),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,v,_,w){R(this,s),this._template=r,this._componentFactoryResolver=n,this._appRef=l,this._injector=c,this._viewContainerRef=v,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)})}())),AP=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v,_,w){var M,A;return R(this,n),(M=r.call(this))._elementRef=l,M._document=c,M._focusMonitor=v,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,v){this._focusMonitor&&c?this._focusMonitor.focusVia(this._getHostElement(),c,v):this._getHostElement().focus(v),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,v=this._elementRef.nativeElement.cloneNode(!0),_=v.querySelectorAll("mat-icon, .material-icons"),w=0;w<_.length;w++)_[w].remove();return(null===(c=v.textContent)||void 0===c?void 0:c.trim())||""}},{key:"_setHighlighted",value:function(c){var v;this._highlighted=c,null===(v=this._changeDetectorRef)||void 0===v||v.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&&(pi(),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,EP=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(v){l._classList[v]=!1}),this._previousPanelClass=n,n&&n.length&&(n.split(" ").forEach(function(v){l._classList[v]=!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,v=n._keyManager;if("enter"===n._panelAnimationState&&(null===(c=v.activeItem)||void 0===c?void 0:c._hasFocus())){var _=l.toArray(),w=Math.max(0,Math.min(_.length-1,v.activeItemIndex||0));_[w]&&!_[w].disabled?v.setActiveItem(w):v.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 v=n._keyManager;v.setFocusOrigin(l).setFirstItemActive(),!v.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),v="".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[v]=!0,this._previousElevation=v)}},{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,v=this._classList;v["mat-menu-before"]="before"===n,v["mat-menu-after"]="after"===n,v["mat-menu-above"]="above"===l,v["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,AP,5),Mn(l,AP,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,v,_){var w;return R(this,n),(w=r.call(this,l,c,v,_))._elevationPrefix="mat-elevation-z",w._baseElevation=4,w}return L(n)}(EP);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&&(pi(),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,v,_,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=v instanceof EP?v: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(),v=c.positionStrategy;this._setPosition(v),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 EP&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(Wt(this.menu.close)).subscribe(function(){v.withLockedPosition(!1).reapplyLastPosition(),v.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 EP?(c._resetAnimation(),c.lazyContent?c._animationDone.pipe(Ur(function(v){return"void"===v.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 v="start"===c.connectionPair.overlayX?"after":"before",_="top"===c.connectionPair.overlayY?"below":"above";l._ngZone?l._ngZone.run(function(){return l.menu.setPositionClasses(v,_)}):l.menu.setPositionClasses(v,_)})}},{key:"_setPosition",value:function(n){var c=Pr("before"===this.menu.xPosition?["end","start"]:["start","end"],2),v=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,$=v,oe=_,le=0;this.triggersSubmenu()?(oe=v="before"===this.menu.xPosition?"start":"end",_=$="end"===v?"start":"end",le="bottom"===A?8:-8):this.menu.overlapTrigger||(F="top"===A?"bottom":"top",Y="top"===O?"bottom":"top"),n.withPositions([{originX:v,originY:F,overlayX:$,overlayY:A,offsetY:le},{originX:_,originY:F,overlayX:oe,overlayY:A,offsetY:le},{originX:v,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 EP&&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(AP,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,pn,Cc,Nf],If,pn]}),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,v,_,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"===v&&!!_&&!_._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,v=50*(null!==(c=l.currentScale)&&void 0!==c?c:1);return"".concat(v,"% ").concat(v,"%")}},{key:"_attachStyleNode",value:function(){var l=this._styleRoot,c=this._diameter,v=r._diameters,_=v.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),_||v.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(vn),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 vte=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:[[pn,io],pn]}),i}(),pte=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:[[pn],pn]}),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),pf(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),pf(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),pf(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 v=he(r).$implicit,_=Q();return _.detailAction.emit({param:v,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,v){if(!(v in c))return"";var _=c[v];return"number"==typeof _?_:"string"==typeof _?_.toLocaleLowerCase():(null===_&&(_=7226578800),_.changingThisBreaksApplicationSecurity&&(_=_.changingThisBreaksApplicationSecurity),(""+_).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(c,v){try{n.columns.forEach(function(_){if((""+c[_.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(v))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(v){n.initialize(v,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 v=[];n.fields.forEach(function(_){for(var w in _)if(_.hasOwnProperty(w)){var M=_[w];v.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=v,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!==pr.ONLY_MENU&&n.type!==pr.ACCELERATOR}):[]}},{key:"getCustomMenu",value:function(){return this.customButtons?this.customButtons.filter(function(n){return n.type!==pr.ACCELERATOR}):[]}},{key:"getCustomAccelerators",value:function(){return this.customButtons?this.customButtons.filter(function(n){return n.type===pr.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(v){}return this.api.safeString(c);case ui.CALLBACK:break;case ui.DICTIONARY:try{c=l.dict[c]}catch(v){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 pr.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===n.disabled;case pr.MULTI_SELECT:return this.selection.isEmpty()||!0===n.disabled;default:return!1}}},{key:"emitCustom",value:function(n){!this.selection.selected.length&&n.type!==pr.ALWAYS||(n.type===pr.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 v=n[l.name];v.changingThisBreaksApplicationSecurity&&(v=v.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+v,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(v){return n.filterText=v}),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(v){return n.keyDown(v)}),I(31,"mat-table",19),ne("matSortChange",function(v){return n.sortChanged(v)}),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,AP,jQ,cg,Gn,or,ua,yi,vr,ar,qn,wg,NS,kq,k,TH,xH,AH,DH,EH,T,Dq,Tq,xq,Aq,As,VS,Jee,pte],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:pr.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],v=c.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+c.name,v).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 v={};return v[c.field]={visible:!0,title:c.title,type:void 0===c.type?ui.ALPHANUMERIC:c.type},v})}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,vr,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 vne(i,s){1&i&&(I(0,"uds-translate"),K(1,"Logs"),B())}var pne=[{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")},pne,this.service.id+"infopsls")}}],[{key:"launch",value:function(n,l,c){var v=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:v,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,vne,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 v=n.value[c.name];switch(c.gui.type){case za.CHECKBOX:c.value=v?django.gettext("Yes"):django.gettext("No");break;case za.PASSWORD:c.value=django.gettext("(hidden)");break;case za.CHOICE:var _=nS.locateChoice(v,c);c.value=_.text;break;case za.MULTI_CHOICE:c.value=django.gettext("Selected items :")+v.length;break;case za.IMAGECHOICE:var w=nS.locateChoice(v,c);c.value=n.api.safeString(n.api.gui.icon(w.img)+" "+w.text);break;default:c.value=v}(""===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:pr.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(v){n.gui=v})})}},{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(v){v.id===l&&c.selection.select(v)})}}}}]),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,v,_){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=!!v.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(v,_){return v[_]=!0,v},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new y3(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(v){c.isOpen&&c.optionActivated.emit({source:c,option:c.options.toArray()[v]||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 v=new Ane(this,c);this.optionSelected.emit(v)}},{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(vn))},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&&(pi(),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,v,_,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=v,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 GB?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),v=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&&(!v||!v.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 v=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!==v)&&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 v=n.panelOpen;n._resetActiveItem(),n.autocomplete._setVisibility(),n._changeDetectorRef.detectChanges(),n.panelOpen&&(n._overlayRef.updatePosition(),v!==n.panelOpen&&n.autocomplete.opened.emit())}),n.panelClosingActions}),gn(1)).subscribe(function(v){return n._setValueAndClose(v)})}},{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 v=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&v!==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,v=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:c},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:c}];_="above"===this.position?v:"below"===this.position?l:[].concat(l,v),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 v=l.options.toArray()[n];if(v){var _=v._getHostElement(),w=UB(_.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(vb,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,pn,io],If,Q1,pn]}),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(v){return he(r),Q().user.name=v})("input",function(v){return he(r),Q().filterUser(v)}),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(v){l.users.length=0,v.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 v=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:v,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(v){return n.user.real_name=v}),B()(),I(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),K(16,"Comments"),B()(),I(17,"input",6),ne("ngModelChange",function(v){return n.user.comments=v}),B()(),I(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),K(21,"State"),B()(),I(22,"mat-select",7),ne("ngModelChange",function(v){return n.user.state=v}),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(v){return n.user.role=v})("valueChange",function(v){return n.roleChanged(v)}),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(v){return n.user.groups=v}),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,vr,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,v,_,w,M){var A;return R(this,n),(A=r.call(this,l))._focusMonitor=c,A._changeDetectorRef=v,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(v){v||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,v){v?this._focusMonitor.focusVia(this._inputElement,v,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&&(pi(),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,v1],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,pn,Ny],JQ,pn]}),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(v){return he(r),Q(2).group.name=v})("input",function(v){return he(r),Q(2).filterGroup(v)}),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 vre(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(v){l.fltrGroup.length=0,v.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,v){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:v},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,vre,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),v=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",v)}},directives:[si,en,Gn,jr,or,Tr,ua,yi,vr,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 pre(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,pre,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 v=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:v,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 v=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:v,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:pr.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(v){n.gui=v})})}},{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(y5,"provider_id"),is.getGotoButton(b5,"provider_id","service_id"),is.getGotoButton(iv,"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(v){return n.all[v].gui.rdonly=!0});this.rest.providers.service(n.all.service_id.value).subscribe(function(v){n.all.allow_users_reset.gui.rdonly=!v.info.can_reset,n.all.osmanager_id.gui.values.length=0,l.editing||(n.all.osmanager_id.gui.rdonly=!v.info.needs_manager),!0===v.info.needs_manager?l.rest.osManagers.overview().subscribe(function(_){_.forEach(function(w){w.servicesTypes.forEach(function(M){v.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=!v.info.uses_cache}),n.all.cache_l2_srvs.gui.rdonly=!1===v.info.uses_cache||!1===v.info.uses_cache_l2,n.all.publish_on_save&&(n.all.publish_on_save.gui.rdonly=!v.info.needs_publication)}),c.forEach(function(v){n.all[v].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 v=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:v,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,vr,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,v){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:v},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,vr,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 v=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:v,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,vr,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,vr,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,vr,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 vie(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 pie(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,vie,1,0,"uds-mat-select-search",5),te(7,pie,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 v=window.innerWidth<800?"80%":"60%";return n.gui.dialog.open(s,{width:v,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(v){return n.scheduledAction.calendarId=v}),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(v){return n.scheduledAction.eventsOffset=v}),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(v){return n.scheduledAction.atStart=v}),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(v){return n.scheduledAction.action=v})("valueChange",function(v){return n.changedAction(v)}),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,vr,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 v=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:v,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,vr,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(v){return he(r),Q().selectedTab=v}),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(v){return he(r),Q().onNewGroup(v)})("deleteAction",function(v){return he(r),Q().onDeleteGroup(v)}),B()()(),I(18,"mat-tab"),te(19,Vie,2,0,"ng-template",9),I(20,"div",10)(21,"uds-table",16),ne("newAction",function(v){return he(r),Q().onNewTransport(v)})("deleteAction",function(v){return he(r),Q().onDeleteTransport(v)}),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(v){return he(r),Q().onCustomScheduleAction(v)})("newAction",function(v){return he(r),Q().onNewScheduledAction(v)})("editAction",function(v){return he(r),Q().onEditScheduledAction(v)})("deleteAction",function(v){return he(r),Q().onDeleteScheduledAction(v)}),B()()(),I(27,"mat-tab"),te(28,Uie,2,0,"ng-template",9),I(29,"div",10)(30,"uds-table",18),ne("newAction",function(v){return he(r),Q().onNewAccessCalendar(v)})("editAction",function(v){return he(r),Q().onEditAccessCalendar(v)})("deleteAction",function(v){return he(r),Q().onDeleteAccessCalendar(v)})("loaded",function(v){return he(r),Q().onAccessCalendarLoad(v)}),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:pr.SINGLE_SELECT},is.getGotoButton(ob,"calendarId")],this.customButtonAccessCalendars=[is.getGotoButton(ob,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:lJ,type:pr.SINGLE_SELECT},{id:"log",html:Fq,type:pr.SINGLE_SELECT},is.getGotoButton(eP,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:Fq,type:pr.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:$ie,type:pr.SINGLE_SELECT},{id:"changelog",html:Qie,type:pr.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:pr.ONLY_MENU}),n.servicePool.info.can_list_assignables&&n.customButtonsAssignedServices.push({id:"assign-service",html:Kie,type:pr.ALWAYS}),n.rest.servicesPools.gui().subscribe(function(v){n.gui=v.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(v){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 v=n.table.dataSource.data.filter(function(_){return!0});v.push({id:-1,calendar:"-",priority:l.api.safeString('10000000FallBack'),access:c}),n.table.dataSource.data=v})}},{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 v=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:v,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,vr,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:pr.SINGLE_SELECT},{id:"log",html:Fq,type:pr.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(v){n.gui=v}),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 v=n.table.dataSource.data.filter(function(_){return!0});v.push({id:-1,calendar:"-",priority:l.api.safeString('10000000FallBack'),access:c}),n.table.dataSource.data=v})}},{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 vae(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 pae(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,v=Q();ta("width",v._cellWidth)("padding-top",v._cellPadding)("padding-bottom",v._cellPadding),lt("data-mat-row",c)("data-mat-col",l),G(1),Ze("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",v._isActiveCell(c,l))("mat-calendar-body-range-start",v._isRangeStart(n.compareValue))("mat-calendar-body-range-end",v._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",v._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",v._isComparisonBridgeStart(n.compareValue,c,l))("mat-calendar-body-comparison-bridge-end",v._isComparisonBridgeEnd(n.compareValue,c,l))("mat-calendar-body-comparison-start",v._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",v._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",v._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",v._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",v._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",v._isInPreview(n.compareValue)),U("ngClass",n.cssClasses)("tabindex",v._isActiveCell(c,l)?0:-1),lt("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-pressed",v._isSelected(n.compareValue))("aria-current",v.todayValue===n.compareValue?"date":null),G(1),Ze("mat-calendar-body-selected",v._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",v._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",v.todayValue===n.compareValue),G(1),Le(" ",n.displayValue," ")}}function mae(i,s){if(1&i&&(I(0,"tr",4),te(1,pae,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]:{},v=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=v,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 v=l._getCellFromElement(c.target);v&&l._ngZone.run(function(){return l.previewChange.emit({value:v.enabled?v: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,v=this.numCols;(n.rows||l)&&(this._firstRowOffset=c&&c.length&&c[0].length?v-c[0].length:0),(n.cellAspectRatio||l||!this._cellPadding)&&(this._cellPadding="".concat(50*this.cellAspectRatio/v,"%")),(l||!this._cellWidth)&&(this._cellWidth="".concat(100/v,"%"))}},{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 v=this.rows[l][c-1];if(!v){var _=this.rows[l-1];v=_&&_[_.length-1]}return v&&!this._isRangeEnd(v.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(n,l,c){if(!this._isComparisonEnd(n)||this._isRangeEnd(n)||!this._isInRange(n))return!1;var v=this.rows[l][c+1];if(!v){var _=this.rows[l+1];v=_&&_[0]}return v&&!this._isRangeStart(v.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(vJ(n)?l=n:vJ(n.parentNode)&&(l=n.parentNode),l){var c=l.getAttribute("data-mat-row"),v=l.getAttribute("data-mat-col");if(c&&v)return this.rows[parseInt(c)][parseInt(v)]}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,vae,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 vJ(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}(),pJ={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,v){R(this,s),this._changeDetectorRef=r,this._dateFormats=n,this._dateAdapter=l,this._dir=c,this._rangeStrategy=v,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),v=this._dateAdapter.getMonth(this.activeDate),_=this._dateAdapter.createDate(c,v,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"),v=this._dateAdapter.getDayOfWeekNames("long").map(function(_,w){return{long:_,narrow:l[w]}});this._weekdays=v.slice(n).concat(v.slice(0,n))}},{key:"_createWeekCells",value:function(){var n=this._dateAdapter.getNumDaysInMonth(this.activeDate),l=this._dateAdapter.getDateNames();this._weeks=[[]];for(var c=0,v=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),v=this._dateAdapter.getDate(n);return new Date(l,c,v).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)-PP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var v=0,_=[];v<24;v++)_.push(c+v),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),v=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(l,c,1));this.selectedChange.emit(this._dateAdapter.createDate(l,c,Math.min(this._dateAdapter.getDate(this.activeDate),v)))}},{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,-PP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-PP(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 PP(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),v=this.dateClass?this.dateClass(l,"multi-year"):void 0;return new Nq(n,c,c,this._shouldEnableYear(n),v)}},{key:"_shouldEnableYear",value:function(n){if(null==n||this.maxDate&&n>this._dateAdapter.getYear(this.maxDate)||this.minDate&&nc||n===c&&l>v}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(n,l){if(this.minDate){var c=this._dateAdapter.getYear(this.minDate),v=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,v,_,w,M){var A;return R(this,n),(A=r.call(this,l))._changeDetectorRef=c,A._globalModel=v,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 v=this._model.selection,_=c.value,w=v instanceof Us;if(w&&this._rangeSelectionStrategy){var M=this._rangeSelectionStrategy.selectionFinished(_,v,c.event);this._model.updateSelection(M,this)}else _&&(w||!this._dateAdapter.sameDate(_,v))&&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(OP))},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&&cp("@transformPanel.done",function(){return n._animationDone.next()}),2&r&&(vp("@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(v){return n.datepicker._selectYear(v)})("monthSelected",function(v){return n.datepicker._selectMonth(v)})("viewChanged",function(v){return n.datepicker._viewChanged(v)})("_userSelection",function(v){return n._handleUserSelection(v)}),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,vc],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,v,_,w){R(this,s),this._overlay=r,this._ngZone=n,this._viewContainerRef=l,this._dateAdapter=v,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),v=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(v).subscribe(function(_){_&&_.preventDefault(),n.close()}),this._componentRef=v.attach(c),this._forwardContentValues(this._componentRef.instance),l||this._ngZone.onStable.pipe(gn(1)).subscribe(function(){return v.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",v="above"===this.yPosition?"bottom":"top",_="top"===v?"bottom":"top";return n.withPositions([{originX:l,originY:_,overlayX:l,overlayY:v},{originX:l,originY:v,overlayX:l,overlayY:_},{originX:c,originY:_,overlayX:c,overlayY:v},{originX:c,originY:v,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([pJ,{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(v){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(v.value));return!_||c._matchesFilter(_)?null:{matDatepickerFilter:!0}},this._minValidator=function(v){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(v.value)),w=c._getMinDate();return!w||!_||c._dateAdapter.compareDate(w,_)<=0?null:{matDatepickerMin:{min:w,actual:_}}},this._maxValidator=function(v){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(v.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 v=l._getValueFromModel(c.selection);l._lastValueValid=l._isValidValue(v),l._cvaOnChange(v),l._onTouched(),l._formatValue(v),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(v)}):this._updateModelValue(v)}},{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,v,_,w,M){var A;R(this,n),(A=r.call(this))._changeDetectorRef=c,A._elementRef=v,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 v=gt(c);v!==this._checked&&(this._checked=v,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&&(pi(),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:[[pn,Cc],pn]}),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(v){return{id:v,value:HH[v]}}),this.freqs=Object.keys(VH).map(function(v){return{id:v,value:VH[v][2]}}),this.weekDays=OJ.map(function(v,_){return{id:1<<_,value:v.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=[],v=0;v<7;v++)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 v=window.innerWidth<800?"75%":"50%";return n.gui.dialog.open(s,{width:v,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,vr,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:pr.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(v){v&&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 voe(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 poe=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,voe,7,6,"div",5),B()),2&r&&(G(2),U("routerLink",xs(4,poe,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 v=new FileReader;v.onload=function(_){var w=v.result;l.preview=w,l.image.data=w.substr(w.indexOf("base64,")+7),l.image.name||(l.image.name=c.name)},v.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%",v=n.gui.dialog.open(s,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:l},disableClose:!0});return v.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(v){return n.image.name=v}),B()(),I(10,"input",4,5),ne("change",function(v){return n.onFileChanged(v)}),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,vr,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:pr.SINGLE_SELECT}]}return L(s,[{key:"ngOnInit",value:function(){}},{key:"generateReport",value:function(n){var l=this,c=new ye;c.subscribe(function(v){l.api.gui.snackbar.open(django.gettext("Generating report...")),l.rest.reports.save(v,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:[A5],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,pn,Ny,GJ],pn,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,v,_,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 HB(an(F),c,F._chipRippleTarget,v),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 v=gt(c);v!==this._selected&&(this._selected=v,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",v=this._elementRef.nativeElement;v.hasAttribute(c)||v.tagName.toLowerCase()===c?v.classList.add(c):v.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(vn),z(zB,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,v,_,w,M,A){var O;return R(this,n),(O=r.call(this,M,_,w,A))._elementRef=l,O._changeDetectorRef=c,O._dir=v,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,v;return this.multiple?(null===(c=this._selectionModel)||void 0===c?void 0:c.selected)||[]:null===(v=this._selectionModel)||void 0===v?void 0:v.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,v,_,w;return null!==(w=null!==(c=this._required)&&void 0!==c?c:null===(_=null===(v=this.ngControl)||void 0===v?void 0:v.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 v=this;this._selectable=gt(c),this.chips&&this.chips.forEach(function(_){return _.chipListSelectable=v._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(v){return c._keyManager.withHorizontalOrientation(v)}),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 v=c.target;v&&v.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 v._selectValue(M,_)}),this._sortValues();else{var w=this._selectValue(c,_);w&&_&&this._keyManager.setActiveItem(w)}}},{key:"_selectValue",value:function(c){var v=this,_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],w=this.chips.find(function(M){return null!=M.value&&v._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(v){v!==c&&v.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(v){v.selected&&c._selectionModel.select(v)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(c){var v;v=Array.isArray(this.selected)?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=v,this.change.emit(new sse(this,v)),this.valueChange.emit(v),this._onChange(v),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(v){v.source.selected?c._selectionModel.select(v.source):c._selectionModel.deselect(v.source),c.multiple||c.chips.forEach(function(_){!c._selectionModel.isSelected(_)&&_.selected&&_.deselect()}),v.isUserInput&&c._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var c=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(v){var _=c.chips.toArray().indexOf(v.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(v){var _=v.chip,w=c.chips.toArray().indexOf(v.chip);c._isValidIndex(w)&&_._hasFocus&&(c._lastDestroyedChipIndex=w)})}},{key:"_originatesFromChip",value:function(c){for(var v=c.target;v&&v!==this._elementRef.nativeElement;){if(v.classList.contains("mat-chip"))return!0;v=v.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(v){v._chipListDisabled=c._disabled,v._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&&(pi(),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:[[pn]]}),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,pn,use,Kp]]}),i}(),fse=["*",[["mat-toolbar-row"]]],dse=["*","mat-toolbar-row"],hse=yc(function(){return L(function i(s){R(this,i),this._elementRef=s})}()),vse=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}(),pse=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v){var _;return R(this,n),(_=r.call(this,l))._platform=c,_._document=v,_}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(vn),z(Jt))},i.\u0275cmp=ke({type:i,selectors:[["mat-toolbar"]],contentQueries:function(r,n,l){var c;1&r&&Mn(l,vse,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&&(pi(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:[[pn],pn]}),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,XV,gse,tS,ote,DP,cse,$W,PS,Aee,bP,Zae,RW,bee,a,E,vte,Qoe,v5,lse,Jae,nre,Nne,D5,gte,Zee]}),i}();function _se(i,s){if(1&i){var r=xe();I(0,"button",6),ne("click",function(){var v=he(r).$implicit;return Q().changeLang(v)}),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 v=c.value;v.id===n?this.lang=v:this.langs.push(v)}}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,AP,Gn,en,jQ,pse,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,QO)},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,vr,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(v){return n.field.value=v})("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,vr,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,vr,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,vr,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,vr,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,vr,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,vr,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 v=he(r).index;return Q().removeElement(v)}),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 v=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 v.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 v=window.innerWidth<800?"50%":"30%";return n.gui.dialog.open(s,{width:v,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,vr,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,v){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,vr,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,vr,ar,Vs,vq,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(v){return n.date=v}),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,vr,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(v){return n.add(v)}),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 mv(i,s,r){var n=i.\u0275cmp;n.directiveDefs=function(){return s.map(id)},n.pipeDefs=function(){return r.map(lM)}})(ab,[rc,hH,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 M2},SeriesModel:function(){return fr},color:function(){return Ye},connect:function(){return l8},dataTool:function(){return R2},dependencies:function(){return wr},disConnect:function(){return ZD},disconnect:function(){return u8},dispose:function(){return P2},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 O2},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 lL},parseGeoJson:function(){return lL},registerAction:function(){return uu},registerCoordinateSystem:function(){return f8},registerLayout:function(){return d8},registerLoading:function(){return kp},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 Dp},registerUpdateLifecycle:function(){return QD},registerVisual:function(){return vh},setCanvasCreator:function(){return eX},setPlatformAPI:function(){return Pg},throttle:function(){return pC},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 pe},filter:function(){return Un},find:function(){return XH},guid:function(){return $S},hasOwn:function(){return je},indexOf:function(){return Ct},inherits:function(){return vv},isArray:function(){return Ce},isArrayLike:function(){return Ca},isBuiltInObject:function(){return JS},isDom:function(){return pv},isFunction:function(){return et},isGradientObject:function(){return Sb},isImagePatternObject:function(){return VP},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 gv},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 jP},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 nO},lift:function(){return cM},lum:function(){return Gb},mapToColor:function(){return yZ},modifyAlpha:function(){return Sv},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 Tv},invert:function(){return ud},mul:function(){return Js},rotate:function(){return el},scale:function(){return $b},translate:function(){return ps}});var L={};Ht.r(L),Ht.d(L,{dispose:function(){return _O},disposeAll:function(){return yO},getInstance:function(){return Ev},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 pp},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 zR},createIcon:function(){return gp},extendPath:function(){return VR},extendShape:function(){return BR},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 Xv},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 iL},createScale:function(){return z_},createSymbol:function(){return Dr},createTextStyle:function(){return U8},dataStack:function(){return z8},enableHoverEmphasis:function(){return Yc},getECData:function(){return pt},getLayoutRect:function(){return oi},mixinAxisModelCommonMethods:function(){return G8}});var se={};Ht.r(se),Ht.d(se,{MAX_SAFE_INTEGER:function(){return wO},asc:function(){return Zi},getPercentWithPrecision:function(){return CO},getPixelPrecision:function(){return Ae},getPrecision:function(){return Xl},getPrecisionSafe:function(){return bO},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 Iv},quantity:function(){return Ov},quantityExponent:function(){return IM},reformIntervals:function(){return bd},remRadian:function(){return SO},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 pp},Rect:function(){return fn},Ring:function(){return e_},Sector:function(){return Ja},Text:function(){return dn},clipPointsByRect:function(){return dC},clipRectByRect:function(){return zR},createIcon:function(){return gp},extendPath:function(){return VR},extendShape:function(){return BR},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 TI},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 pe},filter:function(){return Un},indexOf:function(){return Ct},inherits:function(){return vv},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 p=0;p>1)%2;d.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",o[p]+":0",u[g]+":0",o[1-p]+":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=[],p=!0,g=0;g<4;g++){var m=a[g].getBoundingClientRect(),y=2*g,b=m.left,C=m.top;d.push(b,C),p=p&&f&&b===f[y]&&C===f[y+1],h.push(a[g].offsetLeft,a[g].offsetTop)}return p&&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=[],YP=tn.browser.firefox&&+tn.browser.version.split(".")[0]<39;function aM(a,t,e,o){return e=e||{},o?qP(a,t,e):YP&&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):qP(a,t,e),e}function qP(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(WP(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 ZP(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 vZ(){It(this.event)}var pZ=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"],KP=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 pZ,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=$P(this,o,u),d=this._hovered,h=d.target;h&&!h.__zr&&(h=(d=this.findHover(d.x,d.y)).target);var p=this._hovered=f?new Ya(o,u):this.findHover(o,u),g=p.target,m=this.proxy;m.setCursor&&m.setCursor(g?g.cursor:"default"),h&&g!==h&&this.dispatchToElement(d,"mouseout",e),this.dispatchToElement(p,"mousemove",e),g&&g!==h&&this.dispatchToElement(p,"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:vZ}}(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(p){"function"==typeof p[d]&&p[d].call(p,h),p.trigger&&p.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 p=void 0;if(f[h]!==u&&!f[h].ignore&&(p=az(f[h],e,o))&&(!d.topTarget&&(d.topTarget=f[h]),"silent"!==p)){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 $P(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){KP.prototype[a]=function(t){var f,d,e=t.zrX,o=t.zrY,u=$P(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=KP;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=p:d=p+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,p=1;if(f(a,t[e+u])>0){for(h=o-u;p0;)d=p,(p=1+(p<<1))<=0&&(p=h);p>h&&(p=h),d+=u,p+=u}else{for(h=u+1;ph&&(p=h);var g=d;d=u-p,p=u-g}for(d++;d>>1);f(a,t[e+m])>0?d=m+1:p=m}return p}function Xs(a,t,e,o,u,f){var d=0,h=0,p=1;if(f(a,t[e+u])<0){for(h=u+1;ph&&(p=h);var g=d;d=u-p,p=u-g}else{for(h=o-u;p=0;)d=p,(p=1+(p<<1))<=0&&(p=h);p>h&&(p=h),d+=u,p+=u}for(d++;d>>1);f(a,t[e+m])<0?p=m:d=m+1}return p}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,p=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===p-3&&(d[D+1]=d[D+2],h[D+1]=h[D+2]),p--;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=p-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(;p>1;){var D=p-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&&(p=h),Rb(a,e,e+p,e+f,t),f=p}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}(),QP=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,_v=Fi(3),od=1/3,Sa=gn(),_r=gn(),yv=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),p=3*(t-a),g=a-u,m=h*h-3*d*p,y=h*p-9*d*g,b=p*p-3*h*g,C=0;if(Ni(m)&&Ni(y))Ni(h)?f[0]=0:(S=-p/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+_v*Math.sin(N)))/(3*d),(-h+H*(j-_v*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,p=0;if(Ni(d))at(f)&&(g=-h/f)>=0&&g<=1&&(u[p++]=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[p++]=g),b>=0&&b<=1&&(u[p++]=b)}}return p}function Fr(a,t,e,o,u,f){var d=(t-a)*u+a,h=(e-t)*u+t,p=(o-e)*u+e,g=(h-d)*u+d,m=(p-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]=p,f[7]=o}function Lc(a,t,e,o,u,f,d,h,p,g,m){var y,S,k,D,x,b=.005,C=1/0;Sa[0]=p,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,p,h)&&xt(0,u,d,1,h[0])}}}var Cv=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=Cv,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 p=o.head;o.remove(p),delete u[p.key],f=p.value,this._lastRemovedEntry=p}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 wv(a){var t=a;return t.length&&"%"===t.charAt(t.length-1)?Nc(parseFloat(t)/100):Nc(parseFloat(t))}function JP(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 eO(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&&eO(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 eO(t,e);var o=(a+="").replace(/ /g,"").toLowerCase();if(o in us)return eO(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 p=o.substr(0,d),g=o.substr(d+1,h-(d+1)).split(","),m=1;switch(p){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=wv(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]=wv(g[3]),tO(g,t),qg(a,t),t);case"hsl":return 3!==g.length?void cs(t,0,0,0,1):(tO(g,t),qg(a,t),t);default:return}}cs(t,0,0,0,1)}}function tO(a,t){var e=(parseFloat(a[0])%360+360)%360/360,o=wv(a[1]),u=wv(a[2]),f=u<=.5?u*(o+1):u+o-u*o,d=2*u-f;return cs(t=t||[],Lo(255*JP(d,f,e+1/3)),Lo(255*JP(d,f,e)),Lo(255*JP(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],p=o-u;return e[0]=Lo(Bc(d[0],h[0],p)),e[1]=Lo(Bc(d[1],h[1],p)),e[2]=Lo(Bc(d[2],h[2],p)),e[3]=Nc(Bc(d[3],h[3],p)),e}}var _Z=zb;function nO(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]),p=o-u,g=No([Lo(Bc(d[0],h[0],p)),Lo(Bc(d[1],h[1],p)),Lo(Bc(d[2],h[2],p)),Nc(Bc(d[3],h[3],p))],"rgba");return e?{color:g,leftIndex:u,rightIndex:f,value:o}:g}}var yZ=nO;function Zg(a,t,e,o){var u=mo(a);if(a)return u=function gZ(a){if(a){var p,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)p=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?p=b-y:e===f?p=1/3+m-b:o===f&&(p=2/3+y-m),p<0&&(p+=1),p>1&&(p-=1)}var C=[360*p,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]=wv(e)),null!=o&&(u[2]=wv(o)),No(tO(u),"rgba")}function Sv(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 aO={left:"start",right:"end",center:"middle",middle:"middle"};function jb(a){return a&&!!a.image}function oO(a){return"linear"===a.type}function sO(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 vz(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,p=[];return(t||e)&&p.push("translate("+t+"px,"+e+"px)"),o&&p.push("rotate("+o+")"),(1!==u||1!==f)&&p.push("scale("+u+","+f+")"),(d||h)&&p.push("skew("+Ub(d*Bg)+"deg, "+Ub(h*Bg)+"deg)"),p.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 p=f;p=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,p=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&&(p=m,h=3)}else h=0;else if(Sb(e)){var y=pe({},p);y.colorStops=Me(e.colorStops,function(C){return{offset:C.offset,color:mo(C.color)}}),oO(e)?h=4:sO(e)&&(h=5),p=y}0===f?this.valType=h:(h!==this.valType||6===h)&&(d=!0),this.discrete=this.discrete||d;var b={time:t,value:p,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,p=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[p];if((mM(f)||g)&&!T&&(T=this._additiveValue=[]),this.discrete)t[p]=x<1?C.rawValue:S.rawValue;else if(mM(f))1===f?ri(T,C[u],S[u],x):function pz(a,t,e,o){for(var u=t.length,f=u&&t[0].length,d=0;d0&&p.addKeyframe(0,ld(g),u),this._trackKeys.push(h)}p.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 kv(){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=kv()-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=kv(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=kv(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=kv()-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"],Dv=!1;function vs(a){var t=a.pointerType;return"pen"===t||"touch"===t}function em(a){a&&(a.zrByTouch=!0)}function uO(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){uO(this,(t=Wa(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Dv=!0,t=Wa(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Dv||(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){vs(t)||_o.mousemove.call(this,t)},pointerup:function(t){_o.mouseup.call(this,t)},pointerout:function(t){vs(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){vs(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 fO=function a(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},dO=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 fO(e,_o),he&&(u._globalHandlerScope=new fO(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 cO(a,t){function e(o){Eu(t,o,function u(f){f=Eb(f),uO(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=dO,hO=1;tn.hasGlobalWindow&&(hO=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var xv=hO,tm="#333",bM="#ccc";function ka(){return[1,0,0,1,0,0]}function Tv(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],p=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]=p,a}function ps(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],p=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*p,a[5]=m*p-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],p=e*d-f*o;return p?(a[0]=d*(p=1/p),a[1]=-f*p,a[2]=-o*p,a[3]=e*p,a[4]=(o*h-d*u)*p,a[5]=(f*u-e*h)*p,a):null}function Da(a){var t=[1,0,0,1,0,0];return nm(t,a),t}var Pu=Tv;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,p=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||p){var S=o+h,k=u+p;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 p=tl(nl.x,fd.x,dd.x,rl.x),g=tl(nl.y,fd.y,dd.y,rl.y);t.width=p-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=pd(0,f,o);return new zt(d,h,u,f)}function vd(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,p=e.x,g=e.y,m="left",y="top";if(o instanceof Array)p+=il(o[0],e.width),g+=il(o[1],e.height),m=null,y=null;else switch(o){case"left":p-=u,g+=h,m="right",y="middle";break;case"right":p+=u+d,g+=h,y="middle";break;case"top":p+=d/2,g-=u,m="center",y="bottom";break;case"bottom":p+=d/2,g+=f+u,m="center";break;case"inside":p+=d/2,g+=h,m="center",y="middle";break;case"insideLeft":p+=u,g+=h,y="middle";break;case"insideRight":p+=d-u,g+=h,m="right",y="middle";break;case"insideTop":p+=d/2,g+=u,m="center";break;case"insideBottom":p+=d/2,g+=f-u,m="center",y="bottom";break;case"insideTopLeft":p+=u,g+=u;break;case"insideTopRight":p+=d-u,g+=u,m="right";break;case"insideBottomLeft":p+=u,g+=f-u,y="bottom";break;case"insideBottomRight":p+=d-u,g+=f-u,m="right",y="bottom"}return(a=a||{}).x=p,a.y=g,a.align=m,a.verticalAlign=y,a}var sm="__zr_normal__",Av=Vo.concat(["ignore"]),Mz=Ys(Vo,function(a,t){return a[t]=!0,a},{ignore:!1}),gd={},gO=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,p=!1;f.parent=u?this:null;var g=!1;if(f.copyTransform(e),null!=o.position){var m=gO;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)&&(p=!0,D.fill=x,D.stroke=T,D.autoStroke=E,D.align=d,D.verticalAlign=h,e.setDefaultTextStyle(D)),e.__dirty|=1,p&&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||{},pe(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,p=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&&p&&p.duration>0,p);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 p=0;p0,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)/p*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 Pv(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 bO(a)}function bO(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 CO(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)}),p=Ys(h,function(S,k){return S+k},0),g=Me(f,function(S,k){return S-h[k]});pm&&(m=g[b],y=b);++h[y],g[y]=0,++p}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 wO=9007199254740991;function SO(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 Ov(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 Iv(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(p,g){return h(p,g,0)?-1:1});for(var t=-1/0,e=1,o=0;o=0||f&&Ct(f,p)<0)){var g=o.getShallow(p,t);null!=g&&(d[a[h][0]]=g)}}return d}}var xZ=ol([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),IO=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,RO,RO);h.__zrImageSrc=a,UM.put(a,h.__cachedImgObj={image:h,pending:[d]})}return t}return a}return t}function RO(){var a=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=d;p++)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 LO(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=BO(t,p,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 BO(a,t,e,o,u){for(var f=[],d=[],h="",p="",g=0,m=0,y=0;ye:u+m+C>e)?m?(h||p)&&(S?(h||(h=p,p="",m=g=0),f.push(h),d.push(m-g),p+=b,h="",m=g+=C):(p&&(h+=p,p="",g=0),f.push(h),d.push(m),h=b,m=C)):S?(f.push(p),d.push(g),p=b,g=C):(f.push(b),d.push(C)):(m+=C,S?(p+=b,g+=C):(p&&(h+=p,p="",g=0),h+=b))}else p&&(h+=p,m+=g),f.push(h),d.push(m),h="",p="",g=0,m=0}return!f.length&&!h&&(h=a,p="",g=0),p&&(h+=p),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"],VO=["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,p[0]=a+e,void(p[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(p,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(p,Hc,p))}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,v0=Math.PI,ul=2*v0,p0="undefined"!=typeof Float32Array,Id=[];function JM(a){return Math.round(a/v0*1e8)/1e8%2*v0}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/xv/t)||0,this._uy=Fu(o/xv/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)&&p0&&(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=bv(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,p=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++],p=d=t[b++],k=2*t[b++]+2*t[b++];break;case er.Z:var T=h-f;E=p-d,k=Math.sqrt(T*T+E*E),f=h,d=p}k>=0&&(g[y++]=k,m+=k)}return this._pathLen=m,m},a.prototype.rebuildPath=function(t,e){var h,p,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++],p=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++],ve=o[N++],_e=o[N++];if(C){if(D+(X=S[x++])>T){Fr(g,re,ce,ve,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,ve,_e),g=ve,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++],vt=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,vt,ht,Lt,Tt),Je)break e;j&&(h=Pd(ht)*He+Pe,p=Od(ht)*nt+Be),g=Pd(Lt)*He+Pe,m=Od(Lt)*nt+Be;break;case er.R:h=g=o[N],p=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)+p*J);break e}D+=X}t.closePath(),g=h,m=p}}},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 p,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&&p>o+g&&p>f+g||pa+g&&h>e+g&&h>u+g||he||m+gu&&(u+=_m);var b=Math.atan2(p,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,p,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[p++]=g);else{var m=d*d-4*f*h;if(Ni(m))(g=-d/(2*f))>=0&&g<=1&&(u[p++]=g);else if(m>0){var g,y=Fi(m),b=(-d-y)/(2*f);(g=(-d+y)/(2*f))>=0&&g<=1&&(u[p++]=g),b>=0&&b<=1&&(u[p++]=b)}}return p}(t,o,f,h,Aa);if(0===p)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 p=Math.sqrt(e*e-h*h);Aa[0]=-p,Aa[1]=p;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 WO(a,t,e,o,u){for(var b,C,f=a.data,d=a.len(),h=0,p=0,g=0,m=0,y=0,S=0;S1&&(e||(h+=Gc(p,g,m,y,o,u))),D&&(m=p=f[S],y=g=f[S+1]),k){case Rd.M:p=m=f[S++],g=y=f[S++];break;case Rd.L:if(e){if(Qt(p,g,f[S],f[S+1],t,o,u))return!0}else h+=Gc(p,g,f[S],f[S+1],o,u)||0;p=f[S++],g=f[S++];break;case Rd.C:if(e){if(GO(p,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],t,o,u))return!0}else h+=ym(p,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],o,u)||0;p=f[S++],g=f[S++];break;case Rd.Q:if(e){if(UO(p,g,f[S++],f[S++],f[S],f[S+1],t,o,u))return!0}else h+=tk(p,g,f[S++],f[S++],f[S],f[S+1],o,u)||0;p=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(p,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);p=Math.cos(V+N)*E+x,g=Math.sin(V+N)*P+T;break;case Rd.R:if(m=p=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(p,g,m,y,t,o,u))return!0}else h+=Gc(p,g,m,y,o,u);p=m,g=y}}return!e&&!function ek(a,t){return Math.abs(a-t)<1e-4}(g,y)&&(h+=Gc(p,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(p){e.buildPath(p,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 p=o.strokeNoScale?this.getLineScale():1,g=o.lineWidth;if(!this.hasFill()){var m=this.strokeContainThreshold;g=Math.max(g,null==m?4:m)}p>1e-10&&(h.width+=g/p,h.height+=g/p,h.x-=g/p/2,h.y-=g/p/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 p=d.lineWidth,g=d.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(this.hasFill()||(p=Math.max(p,this.strokeContainThreshold)),function jz(a,t,e,o){return WO(a,t,!0,e,o)}(h,p/g,e,o)))return!0}if(this.hasFill())return function YO(a,t,e){return WO(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:pe(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=pe({},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,p=!(o&&f);if(o&&o.shape?d?f?g=o.shape:(g=pe({},u.shape),pe(g,o.shape)):(g=pe({},f?this.shape:u.shape),pe(g,o.shape)):p&&(g=u.shape),g)if(d){this.shape=pe({},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=vd(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);qO.prototype.type="tspan";var Cm=qO,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)},Vv=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);Vv.prototype.type="image";var Ki=Vv,Hv=Math.round;function ZO(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&&(Hv(2*o)===Hv(2*u)&&(a.x1=a.x2=Uc(o,h,!0)),Hv(2*f)===Hv(2*d)&&(a.y1=a.y2=Uc(f,h,!0))),a}}function XO(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=Hv(2*a);return(o+Hv(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={},KO=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 p=XO($z,o,this.style);u=p.x,f=p.y,d=p.width,h=p.height,p.r=o.r,o=p}else u=o.x,f=o.y,d=o.width,h=o.height;o.r?function Xz(a,t){var h,p,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=p=g=m=d:d instanceof Array?1===d.length?h=p=g=m=d[0]:2===d.length?(h=g=d[0],p=m=d[1]):3===d.length?(h=d[0],p=m=d[1],g=d[2]):(h=d[0],p=d[1],g=d[2],m=d[3]):h=p=g=m=0,h+p>u&&(h*=u/(y=h+p),p*=u/y),g+m>u&&(g*=u/(y=g+m),m*=u/y),p+g>f&&(p*=f/(y=p+g),g*=f/y),h+m>f&&(h*=f/(y=h+m),m*=f/y),a.moveTo(e+h,o),a.lineTo(e+u-p,o),0!==p&&a.arc(e+u-p,o+p,p,-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);KO.prototype.type="rect";var fn=KO,$O={fill:"#000"},QO={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)},JO=function(a){function t(e){var o=a.call(this)||this;return o.type="text",o._children=[],o._defaultStyle=$O,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,p[2],t,d,p[1]),h=Nv.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,p){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=eI("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||p||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),pd(D.y,j,D.textBaseline),H,j))},t.prototype._renderBackground=function(e,o,u,f,d,h){var k,D,T,p=e.backgroundColor,g=e.borderWidth,m=e.borderColor,y=p&&p.image,b=p&&!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=p||null,T.fillOpacity=Ft(e.fillOpacity,1);else if(y){(D=this._getOrCreateChild(Ki)).onload=function(){S.dirtyStyle()};var E=D.style;E.image=p.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),zv={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,p=u&&d.selectStroke||d.normalStroke;if(jc(h)||jc(p)){var g=(o=o||{}).style||{};"inherit"===g.fill?(f=!0,o=pe({},o),(g=pe({},g)).fill=h):!jc(g.fill)&&jc(h)?(f=!0,o=pe({},o),(g=pe({},g)).fill=nI(h)):!jc(g.stroke)&&jc(p)&&(f||(o=pe({},o),g=pe({},g)),g.stroke=nI(p)),o.style=g}}if(o&&null==o.z2){f||(o=pe({},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 p={dataIndex:h,seriesIndex:e.seriesIndex};null!=d&&(p.dataType=d),t.push(p)}})}),t}function Yc(a,t,e){Nd(a,!0),nu(a,Nu),pk(a,t,e)}function Yr(a,t,e,o){o?function u4(a){Nd(a,!1)}(a):Yc(a,t,e)}function pk(a,t,e){var o=pt(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 va(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}"},Qv="{yyyy}-{MM}-{dd}",Sk={year:"{yyyy}",month:"{yyyy}-{MM}",day:Qv,hour:Qv+" "+Ud.hour,minute:Qv+" "+Ud.minute,second:Qv+" "+Ud.second,millisecond:Ud.none},Jv=["year","month","day","hour","minute","second","millisecond"],_I=["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 yI(a){return a===Fm(a)}function Nm(a,t,e,o){var u=ms(a),f=u[Xa(e)](),d=u[ep(e)]()+1,h=Math.floor((d-1)/4)+1,p=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||mI)||function $v(){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(p,2)).replace(/{d}/g,p+"").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 wI(a,t){var e=ms(a),o=e[ep(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 SI(a,t,e){var o=Cn(a)?ms(a):a;switch(t=t||wI(a,e)){case"year":return o[Xa(e)]();case"half-year":return o[ep(e)]()>=6?1:0;case"quarter":return Math.floor((o[ep(e)]()+1)/4);case"month":return o[ep(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 ep(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 MI(a){return a?"setUTCHours":"setHours"}function kI(a){return a?"setUTCMinutes":"setMinutes"}function DI(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,xI={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ka(a){return null==a?"":(a+"").replace(y4,function(t,e){return xI[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 p=d?ms(a):a;if(!isNaN(+p))return Nm(p,"{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 TI(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"](),p=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(p,2)).replace("h",p).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 tp=q,AI=["left","right","top","bottom","width","height"],Yd=[["width","left","right"],["height","top","bottom"]];function np(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(p,g){var C,S,m=p.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||p.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||p.newline?(f+=h+e,d=0,S=D,h=m.width):h=Math.max(h,m.width)}p.newline||(p.x=f,p.y=d,p.markRedraw(),"horizontal"===a?f=C+e:d=S+e)})}var Hu=np;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),p=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-p-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-p-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-(p||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],p=u&&u.boundingMode||"all";if((f=f||a).x=a.x,f.y=a.y,!d&&!h)return!1;if("raw"===p)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"===p?(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(tp(m,function(E){S[E]=a[E]}),tp(m,function(E){h(t,E)&&(b[E]=S[E]=t[E]),p(b,E)&&C++,p(S,E)&&k++}),o[y])return p(t,m[1])?S[m[2]]=null:p(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;p--)h=Dt(h,u[p],!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 pI(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,p){if(f.length){var g=function e(f){var d={},h=[];return q(f,function(p){var g=o(d,p),y=function u(f,d){var h=[];return q(f,function(p){Ct(d,p)>=0&&h.push(p)}),h}(g.originalDeps=t(p),f);g.entryCount=y.length,0===g.entryCount&&h.push(p),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(p)})}),{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(p,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 OI(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},II=$e(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),vl="original",Qi="arrayRows",Yo="objectRows",Cs="keyedColumns",qo="typedArray",RI="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=[],p=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=p.get(g)||p.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[p];return u&&(g[u]=y),h.paletteIdx=(p+1)%m.length,y}}var j0,ap,BI,T4="\0_ec_inner",VI=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)):BI(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 p=f.getMediaOption(this);p.length&&q(p,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=[],p=$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),p.set(b,!0)):u[b]=null==u[b]?ot(y):Dt(u[b],y,!0))}),g&&g.each(function(y,b){sn.hasClass(b)&&!p.get(b)&&(h.push(b),p.set(b,!0))}),sn.topologicalTravel(h,sn.getAllClassMainTypes(),function m(y){var b=function ip(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=pe({componentIndex:N},V.keyInfo);pe(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,p=d-1;p>=0;p--)f[p]&&!hm(f[p])?h=!0:(f[p]=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,p)||(u=!1)}}),u}var Re=jI,pl=q,Qd=Ke,qI=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Gk(a){var t=a&&a.itemStyle;if(t)for(var e=0,o=qI.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||RI,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 up(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,p=m(t&&t.modBy),g=t&&t.modDataCount||0;function m(T){return!(T>=1)&&(T=1),T}(d!==p||h!==g)&&(f="reset"),(this._dirty||"reset"===f)&&(this._dirty=!1,y=this._doReset(o)),this._modBy=p,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:pe},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),p=Ne(e);h&&(o=p?t:0),p&&(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 fR(a,t){return"eq"===a||"ne"===a?new Z4("eq"===a,t):je(Y4,a)?new q4(a,t):null}var dR=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 p=new f(o),g=0;gD[1]&&(D[1]=k)}return this._rawCount=this._count=p,{start:h,end:p}},a.prototype._initDataFromProvider=function(t,e,o){for(var u=this._provider,f=this._chunks,d=this._dimensions,h=d.length,p=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,p=-1,g=0,m=0,y=this.count();m=0&&p<0)&&(h=S,p=C,g=0),C===p&&(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))&&(p[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))&&(p[g++]=k),k++}S=!0}}if(!S)if(1===f)for(x=0;x=y&&T<=b||isNaN(T))&&(p[g++]=H)}else for(x=0;xt[W][1])&&(j=!1)}j&&(p[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,p=Math.floor(1/e),g=this.getRawIndex(0),C=new($a(this._rawCount))(Math.min(2*(Math.ceil(d/p)+2),d));C[h++]=g;for(var S=1;Sm&&(m=y,b=P)}X>0&&Xm-S&&(h.length=p=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();fp&&(p=y)}return this._extent[t]=d=[h,p],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,cp=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,p=void 0,g=void 0;if(o){var m=e[0];m.prepareSource(),h=(g=m.getSource()).data,p=g.sourceFormat,f=[m._getVersionSign()]}else p=Oo(h=d.get("data",!0))?qo:vl,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},p)]:[]}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=[],p=[];return q(t,function(g){g.prepareSource();var m=g.getSource(u||0);null!=u&&!m&&tD(""),h.push(m),p.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 pR(a,t,e,o){var u=t.noHeader,f=function mR(a){return{html:K4[a],richText:pi[a]}}(nD(t)),d=[],h=t.blocks||[];fa(!h||Ce(h)),h=h||[];var p=a.orderMode;if(t.sortBlocks&&p){h=h.slice();var g={valueAsc:"asc",valueDesc:"desc"};if(je(g,p)){var m=new Xk(g[p],null);h.sort(function(S,k){return m.evaluate(S.sortParam,k.sortParam)})}else"seriesDesc"===p&&h.reverse()}q(h,function(S,k){var D=t.valueFormatter,x=$0(S)(D?pe(pe({},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 gR(a,t,e,o){var u=a.renderMode,f=t.noName,d=t.noValue,h=!t.markerType,p=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(p,"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 _R(a,t,e){return''+Ka(a)+""}(b,!h,T))+(d?"":function yR(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 bR(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 pe(o,f)}):pe(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),p=Ce(h),g=bR(t,e);if(d>1||p&&!d){var S=function CR(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=[],p=[],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),p.push(C.type)))}return o.length?q(o,function(y){m(up(f,e,y),y)}):q(a,m),{inlineValues:h,inlineValueTypes:p,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=up(u,e,f[0]),y=k.type}else C=m=p?h[0]:h;var D=Fv(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:fp,reset:J4}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,u),(uf(this).sourceManager=new cp(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?rp(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,p=o.length;if(h&&p)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;Fv(a)||(a.name=function wR(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 fp(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 dp=eu.CMD,nG=[[],[],[]],ml=Math.sqrt,_l=Math.atan2;function Ms(a,t){if(t){var u,f,d,h,p,g,e=a.data,o=a.len(),m=dp.M,y=dp.C,b=dp.L,C=dp.R,S=dp.A,k=dp.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,MR=/-?([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,p=a.match(rG);if(!p)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},AR=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 p=t.startAngle,g=t.endAngle;if(!isNaN(p)&&!isNaN(g)){var m=t.cx,y=t.cy,b=!!t.clockwise,C=TR(g-p),S=C>aC&&C%aC;if(S>yl&&(C=S),o>yl)if(C>aC-yl)a.moveTo(m+o*nh(p),y+o*cf(p)),a.arc(m,y,o,p,g,!b),u>yl&&(a.moveTo(m+u*nh(g),y+u*cf(g)),a.arc(m,y,u,g,p,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(p),ce=o*cf(p),me=u*nh(g),ve=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=TR(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(p),re=u*cf(p),Cyl){var Vt=su(x,Z),Lt=su(T,Z),Je=oC(ee,re,ie,ce,o,Vt,b),kt=oC(X,J,me,ve,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,p,g,!b);else a.moveTo(m+ie,y+ce);u>yl&&_e?W>yl?(Vt=su(k,W),Je=oC(me,ve,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+ve),a.arc(m,y,u,g,p,b)):a.lineTo(m+me,y+ve)}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);AR.prototype.type="sector";var Ja=AR,cG=function a(){this.cx=0,this.cy=0,this.r=0,this.r0=0},ER=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);ER.prototype.type="ring";var e_=ER;function hD(a,t,e){var o=t.smooth,u=t.points;if(u&&u.length>=2){if(o){var f=function PR(a,t,e,o){var p,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(p){wD(p)&&p.anid&&(h[p.anid]=p)}),h}(a);t.traverse(function(d){if(wD(d)&&d.anid){var h=f[d.anid];if(h){var p=u(d);d.attr(u(h)),Ut(d,p,e,pt(d).dataIndex)}}})}function u(d){var h={x:d.x,y:d.y,rotation:d.rotation};return function HR(a){return null!=a.shape}(d)&&(h.shape=pe({},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 zR(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 gp(a,t,e){var o=pe({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=GR(C,S,p,g)/b;if(k<0||k>1)return!1;var D=GR(C,S,m,y)/b;return!(D<0||D>1)}function GR(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 p=a.formatterParamsExtra;p&&q(Zt(p),function(m){je(h,m)||(h[m]=p[m],h.$vars.push(m))});var g=pt(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[vC]||u;if(u[qR]!==e||u[oh]!==o){if(null==e||!o)return a[t]=f;(u=a[t]=pC(f,e,"debounce"===o))[vC]=f,u[oh]=o,u[qR]=e}return u}}function c_(a,t){var e=a[t];e&&e[vC]&&(e.clear&&e.clear(),a[t]=e[vC])}var SD=Sn(),ZR={itemStyle:ol(m4,!0),lineStyle:ol(g4,!0)},XR={lineStyle:"stroke",itemStyle:"fill"};function KR(a,t){return a.visualStyleMapper||ZR[t]||(console.warn("Unkown style type '"+t+"'."),ZR.itemStyle)}function gC(a,t){return a.visualDrawType||XR[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=KR(t,u)(f),p=f.getShallow("decal");p&&(o.setVisual("decal",p),p.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=pe({},h);T[g]=y(x),k.setItemVisual(D,"style",T)}}}},mp=new Kn,$R={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var o=t.getData(),u=t.visualStyleAccessPath||"itemStyle",f=KR(t,u),d=o.getVisual("drawType");return{dataEach:o.hasItemOption?function(h,p){var g=h.getRawDataItem(p);if(g&&g[u]){mp.option=g[u];var m=f(mp);pe(h.ensureUniqueItemVisual(p,"style"),m),mp.option.decal&&(h.setItemVisual(p,"decal",mp.option.decal),mp.option.decal.dirty=!0),d in m&&h.setItemVisual(p,"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"),p="mod"===t.get("progressiveChunkMode")?f:null;t.pipelineContext=o.context={progressiveRender:d,modDataCount:p,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(p,g){return p.setDirty&&(!p.dirtyMap||p.dirtyMap.get(g.__pipeline.id))}q(t,function(p,g){if(!u.visualType||u.visualType===p.visualType){var m=d._stageTaskMap.get(p.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=!p.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(),p=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):p?o.eachRawSeriesByType(p,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,p=d.agentStubMap=$e(),g=t.seriesType,m=t.getTargetSeries,y=!0,b=!1;function S(k){var D=k.uid,x=p.set(D,h&&h.get(D)||(b=!0,X0({reset:QR,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 QR(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 JR(o)}):AG}var AG=JR(0);function JR(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()]=p,m=!0)}}h.hasOwnProperty(g)&&(o[g]=p,m=!0),m||(u[g]=p)})}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 p=e.cptQuery,g=e.dataQuery;return m(p,d,"mainType")&&m(p,d,"subType")&&m(p,d,"index","componentIndex")&&m(p,d,"name")&&m(p,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"],n2=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 a2(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 o2(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 p=new Re(this._api),g=this._theme,m=this._model=new HI;m.scheduler=this._scheduler,m.ssr=this._ssr,m.init(null,null,null,g,this._locale,p)}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(p){u.eachComponent({mainType:p},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(p){p.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 p=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();p=f(N.left,p),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)-(p*=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-p,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 D2(this,"convertToPixel",e,o)},t.prototype.convertFromPixel=function(e,o){return D2(this,"convertFromPixel",e,o)},t.prototype.containPixel=function(e,o){var f;if(!this._disposed)return q(pm(this._model,e),function(h,p){p.indexOf("Models")>=0&&q(h,function(g){var m=g.coordinateSystem;if(m&&m.containPoint)f=f||!!m.containPoint(o);else if("seriesModels"===p){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=pm(this._model,e,{defaultMainType:"series"}),h=f.seriesModel.getData(),p=f.hasOwnProperty("dataIndexInside")?f.dataIndexInside:f.hasOwnProperty("dataIndex")?h.indexOfRawIndex(f.dataIndex):null;return null!=p?CC(h,p,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(T2,function(o){var u=function(d){var g,h=e.getModel(),p=d.target;if("globalout"===o?g={}:p&&Cp(p,function(k){var D=pt(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=pe({},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:p,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?(bp("map","selectchanged",t,u,o),bp("pie","selectchanged",t,u,o)):"select"===o.fromAction?(bp("map","selected",t,u,o),bp("pie","selected",t,u,o)):"unselect"===o.fromAction&&(bp("map","unselected",t,u,o),bp("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:pe({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=pe({},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){aI(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 kp(a,t){qD[a]=t}function eX(a){Pg({createCanvas:a})}function FC(a,t,e){var o=g2("registerMap");o&&o(a,t,e)}function JD(a){var t=g2("getMap");return t&&t(a)}var Dp=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)};vh(2e3,CG),vh(4500,$R),vh(4500,wG),vh(2e3,ft),vh(4500,LG),vh(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 op(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(sp)}),kp("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,p=t.showSpinner?t.spinnerRadius:0,g=(a.getWidth()-2*p-(t.showSpinner&&h?10:0)-h)/2-(t.showSpinner&&h?0:5+h/2)+(t.showSpinner?0:h/2)+(h?0:p),m=a.getHeight()/2;t.showSpinner&&d.setShape({cx:g,cy:m}),f.setShape({x:g-p,y:m-p,width:2*p,height:2*p}),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:Wv,event:Wv,update:Wv},Jr),uu({type:Yv,event:Yv,update:Yv},Jr),uu({type:qv,event:qv,update:qv},Jr),LC("light",OG),LC("dark",IG);var R2={},v8=[],ex={registerPreprocessor:XD,registerProcessor:KD,registerPostInit:c8,registerPostUpdate:$D,registerUpdateLifecycle:QD,registerAction:uu,registerCoordinateSystem:f8,registerLayout:d8,registerVisual:vh,registerTransform:Dp,registerLoading:kp,registerMap:FC,registerImpl:function ZG(a,t){hr[a]=t},PRIORITY:M2,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(v8,a)>=0||(v8.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=p.shift();1===p.length&&(o[h]=p[0]),this._update&&this._update(m,d)}else 1===g?(o[h]=null,this._update&&this._update(p,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[p]=null;else if(1===y&&b>1)this._updateOneToMany&&this._updateOneToMany(m,g),u[p]=null;else if(1===y&&1===b)this._update&&this._update(m,g),u[p]=null;else if(y>1&&b>1)this._updateManyToMany&&this._updateManyToMany(m,g),u[p]=null;else if(y>1)for(var C=0;C1)for(var h=0;h30}var H2,xp,O_,I_,ix,Tp,Ku,P_=Ke,cu=Me,_8="undefined"==typeof Int32Array?Array:Int32Array,B2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],V2=["_approximateExtent"],z2=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;F2(t)?(o=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(u=!0,o=t),o=o||["x","y"];for(var f={},d=[],h={},p=!1,g={},m=0;m=e)){var u=this._store.getProvider();this._updateOrdinalMeta();var f=this._nameList,d=this._idList;if(u.getSource().sourceFormat===vl&&!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=pe({},f)),u[e]=f),f},a.prototype.setItemVisual=function(t,e,o){var u=this._itemVisuals[t]||{};this._itemVisuals[t]=u,P_(e)?pe(u,e):u[e]=o},a.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},a.prototype.setLayout=function(t,e){P_(t)?pe(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?pe(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(gv(arguments)))})},a.internalField=(H2=function(e){var o=e._invertedIndicesMap;q(o,function(u,f){var d=e._dimInfos[f],h=d.ordinalMeta,p=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=z2;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 G2(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),p=o===a.dimensionsDefine,g=p?N2(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 U2=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(p,g){var m=f.getComponent("parallelAxis",p),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 j2(a){return!F2(a.schema)}(t)?(f=(d=t.schema).dimensions,h=t.store):f=t;var g,m,y,b,p=!(!a||!a.get("stack"));if(q(f,function(T,E){Ne(T)&&(f[E]=T={name:T}),p&&!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===vl;var d=function S8(a){var t=a.get("coordinateSystem"),e=new U2(t),o=M8[t];if(o)return o(a,e,e.axisMap,e.categoryAxisMap),e}(t),h=function W2(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 p=h.get("type");d.type=rx(p)}return d})),u||(u=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),u}(t,d),p=e.useEncodeDefaulter,g=et(p)?p:p?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 p=e.categoryAxisMap.get(f.coordDim);p&&(null==o&&(o=d),f.ordinalMeta=p.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 Y2(a){if(a.sourceFormat===vl){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 q2(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 Ap(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(Ap(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,p=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,Ep=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 Ap(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=q2(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:Ep(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=q2(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]=Ep(Math.floor(o[0]/d)*d)),e.fixMax||(o[1]=Ep(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){K2(o)&&e.push(o)}),e}function P8(a){var t=function lX(a){var t={};q(a,function(p){var m=p.coordinateSystem.getBaseAxis();if("time"===m.type||"value"===m.type)for(var y=p.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")||(vx(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:{}},p=h.stacks;t[f]=h;var g=o.stackId;p[g]||h.autoWidthCount++,p[g]=p[g]||{width:0,maxWidth:0};var m=o.barWidth;m&&!p[g].width&&(p[g].width=m,m=Math.min(h.remainedWidth,m),h.remainedWidth-=m);var y=o.barMaxWidth;y&&(p[g].maxWidth=y);var b=o.barMinWidth;b&&(p[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 p=Zt(f).length;h=Math.max(35-4*p,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 Z2(a,t){var e=E8(a,t),o=P8(e);q(e,function(u){var f=u.getData(),h=u.coordinateSystem.getBaseAxis(),p=B_(u),g=o[jC(h)][p];f.setLayout({bandWidth:g.bandWidth,offset:g.offset,size:g.width})})}function X2(a){return{seriesType:a,plan:Qa(),reset:function(e){if(K2(e)){var o=e.getData(),u=e.coordinateSystem,f=u.getBaseAxis(),d=u.getOtherAxis(f),h=o.getDimensionIndex(o.mapDimension(d.dim)),p=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 $2(a,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}(0,d),k=vx(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(p,ee),ve=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&&(ve=u.dataToPoint([_e,me])[0]),Pe=ve,Be=ht[1]+E,He=ht[0]-ve,nt=T,Math.abs(He)0)for(var h=0;h=0;--h)if(p[g]){f=p[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=_I,d=0;function h(W,X,J,ee,re,ie,ce){for(var me=new Date(X),ve=X,_e=me[ee]();ve1&&0===ie&&J.unshift({value:J[0].value-ve})}}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,p=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 tL(a){return(a/=Lm)>12?12:a>6?6:a>3.5?4:a>2?2:1}function Pp(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[MI(e)](0);case"minute":o[kI(e)](0);case"second":o[DI(e)](0),o[xk(e)](0)}return o.getTime()}bf.registerClass(J2);var L8=J2,nL=bf.prototype,V_=Qu.prototype,fX=Mr,dX=Math.floor,hX=Math.ceil,px=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 p=h.value,g=Mr(px(this.base,p));return g=p===u[0]&&this._fixMin?mx(g,f[0]):g,{value:g=p===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=nL.getExtent.call(this);o[0]=px(e,o[0]),o[1]=px(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),nL.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=Ov(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=Ap(e,this._extent),px(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 vX=gx,pX=function(){function a(t,e,o){this._prepareParams(t,e,o)}return a.prototype._prepareParams=function(t,e,o){o[1]0&&p>0&&!g&&(h=0),h<0&&p<0&&!m&&(p=0));var b=this._determinedMin,C=this._determinedMax;return null!=b&&(h=b,g=!0),null!=C&&(p=C,m=!0),{min:h,max:p,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 pX(a,t,e),a.rawExtentInfo=o,o)}function qC(a,t){return null==t?null:Rg(t)?NaN:a.parse(t)}function rL(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),p=!1;if(q(h,function(y){p=p||y.getBaseAxis()===t.axis}),p){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 p=-1/0;q(d,function(C){p=Math.max(C.offset+C.width,p)}),h=Math.abs(h),p=Math.abs(p);var g=h+p,m=t-a,b=m/(1-(h+p)/f)-m;return{min:a-=b*(h/g),max:t+=b*(p/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=rL(a,e),u=o.extent,f=e.get("splitNumber");a instanceof vX&&(a.base=e.get("logBase"));var d=a.type,h=e.get("interval"),p="interval"===d||"time"===d;a.setExtent(u[0],u[1]),a.calcNiceExtent({splitNumber:f,fixMin:o.fixMin,fixMax:o.fixMax,minInterval:p?e.get("minInterval"):null,maxInterval:p?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 Op(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 iL(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=p)}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),p=p>>1^-(1&p),u=h+=u,f=p+=f,o.push([h/e,p/e])}return o}function lL(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(p,g){return bx(p,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(p){p[0]&&f.push(new j8(p[0],p.slice(1)))});break;case"LineString":f.push(new oL([u.coordinates]));break;case"MultiLineString":f.push(new oL(u.coordinates))}var h=new sL(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=uL(a,"labels"),o=XC(t);return cL(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 uL(a,t){return Sf(a)[t]||(Sf(a)[t]=[])}function cL(a,t){for(var e=0;e1&&m/p>2&&(g=Math.round(Math.ceil(g/p)*p));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+=p)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-p!==f[1]&&k(f[1]),h}function QC(a,t,e){var o=a.scale,u=Op(a),f=[];return q(o.getTicks(),function(d){var h=o.getLabel(d),p=d.value;t(d.value,h)&&f.push(e?p:{formattedLabel:u(d),rawLabel:h,tickValue:p})}),f}var fL=[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&&dL(o=o.slice(),u.count()),wn(t,fL,o,e)},a.prototype.coordToData=function(t,e){var o=this._extent,u=this.scale;this.onBand&&"ordinal"===u.type&&dL(o=o.slice(),u.count());var f=wn(t,o,fL,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=uL(a,"ticks"),o=XC(t),u=cL(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(p){return p.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=Op(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=Op(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 p=f[0],g=a.dataToCoord(p+1)-a.dataToCoord(p),m=Math.abs(g*Math.cos(o)),y=Math.abs(g*Math.sin(o)),b=0,C=0;p<=f[1];p+=h){var k,D=vd(e({value:p}),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 dL(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,p){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 p[0]=m,p[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 p[0]=m,p[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(vu,Do,rr),Et.sub(Dl,Br,rr);var e=vu.len(),o=Dl.len();if(!(e<.001||o<.001)){vu.scale(1/e),Dl.scale(1/o);var u=vu.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(vu,rr,Do),Et.sub(Dl,Br,rr);var o=vu.len(),u=Dl.len();if(!(o<.001||u<.001)&&(vu.scale(1/o),Dl.scale(1/u),vu.dot(t)=p)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 pL(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),p=Ab([],o[1],o[2],d/f),g=Ab([],h,p,.5);a.bezierCurveTo(h[0],h[1],h[0],h[1],g[0],g[1]),a.bezierCurveTo(p[0],p[1],p[0],p[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 gL(a,"y","height",t,e,o)}function Ip(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,p)}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,p)}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,p,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 _L(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 yL(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(_L);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||xv,"string"==typeof e?d=yL(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=yL("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,p=!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(p=0;pt);p++);h=o[u[p]]}if(u.splice(p+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!==p&&(m.__dirty=!0),m.__startIndex=p,m.__drawIndex=m.incremental?-1:p,e(p),f=m),1&u.__dirty&&!u.__inHover&&(m.__dirty=!0,m.incremental&&m.__drawIndex<0&&(m.__drawIndex=p))}e(p),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>=SL==!!m;var k=t+o*en(d),D=e+u*wL(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*wL(d+E)),T>.01&&this._add("A",o,u,x,0,+m,k,D)}else{var P=t+o*en(h),V=e+u*wL(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,p,g){for(var m=[],y=this._p,b=1;b"}(d,u.attrs)+(u.text||"")+(f?""+e+Me(f,function(p){return o(p)}).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 xL(a,t,e,o){return xi("svg","root",{width:a,height:t,xmlns:Es,"xmlns:xlink":kL,version:"1.1",baseProfile:"full",viewBox:!!o&&"0 0 "+a+" "+t},e)}var TL={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 vU(a,t,e){var o=pe({},a.shape);pe(o,t),a.buildPath(e,o);var u=new kf;return u.reset(Yb(a)),e.rebuildPath(u,1),u.generateStr(),u.getStr()}function pU(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 EL(a){return Ne(a)?TL[a]?"cubic-bezier("+TL[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 AL(a,t,e){var f,d,u={};if(q(a.shape.paths,function(p){var g=Fx(e.zrId);g.animation=!0,ow(p,{},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 p={},g=0;g0}).length)return Nx(H,e)+" "+T[0]+" both"}for(var D in p)(h=k(p[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 ML(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 p=t.strokeNoScale?e.getLineScale():1,g=p?(t.lineWidth||0)/p: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[p+1]?null:e[p+1].elm,e,u,p):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 VL=0,AX=function(){function a(t,e,o){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=e,this._opts=o=pe({},o),this.root=t,this._id="zr"+VL++,this._oldVNode=xL(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=DL("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))Fp(a,t);else{var e=a.elm,o=Y_(e);Lp(t),null!==o&&(yh(o,t.elm,FL(e)),fw(o,[a],0,0))}}(this._oldVNode,t),this._oldVNode=t}},a.prototype.renderOneToVNode=function(t){return IL(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 p=fs(o);this._bgVNode=xi("rect","bg",{width:u,height:f,x:"0",y:"0",id:"0",fill:p.color,"fill-opacity":p.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(p){return p+u+Me(Zt(a[p]),function(g){return g+":"+a[p][g]+";"}).join(o)+f}).join(o),h=Me(Zt(t),function(p){return"@keyframes "+p+u+Me(Zt(t[p]),function(g){return g+u+Me(Zt(t[p][g]),function(m){var y=t[p][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 xL(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,p,u=t.length,f=[],d=0,g=0,m=0;m=0&&(!b||!p||b[k]!==p[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=HL;function Np(a,t){var e=a.mapDimensionsAll("defaultedLabel"),o=e.length;if(1===o){var u=up(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 GL=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,p=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,p,y)}else{(b=this.childAt(0)).silent=!1;var C={scaleX:p[0]/2,scaleY:p[1]/2};m?b.attr(C):Ut(b,C,h,o),iu(b)}if(this._updateCommon(e,o,p,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),p=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=pa(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(pe({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},N))}else h.useStyle(h.__isEmptyBrush?pe({},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:p,labelDataIndex:o,defaultText:function J(ie){return X?e.getName(ie):Np(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=pt(this).dataIndex,h=u&&u.animation;if(this.silent=f.silent=!0,u&&u.fadeLabel){var p=f.getTextContent();p&&ru(p,{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 v_(e.getItemVisual(o,"symbolSize"))},t}(ct);function xU(a,t){this.parent.drift(a,t)}var X_=GL;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 UL(a){return null!=a&&!Ke(a)&&(a={isIgnore:a}),a||{}}function jL(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:pa(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=UL(e);var o=this.group,u=t.hostModel,f=this._data,d=this._SymbolCtor,h=e.disableAnimation,p=jL(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,p,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,p,g)).setPosition(S);else{C.updateData(t,y,p,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=jL(t),this._data=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(t,e,o){function u(p){p.isGroup||(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],o=UL(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,p=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:p,baseDim:g,baseDataOffset:m,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function YL(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 qL(a,t,e,o,u,f,d,h,p){for(var g,m,y,b,C,S,k=e,D=0;D=u||k<0)break;if(Sh(x,T)){if(p){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,ve=void 0,_e=void 0;if("x"===h){var Pe=W>0?1:-1;C=x-Pe*(ve=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*(ve=Math.abs(ce))*d,J=x,ee=T+Be*(_e=Math.abs(me))*d}else ve=Math.sqrt(re*re+ce*ce),C=x-W*d*(1-(Z=(_e=Math.sqrt(ie*ie+me*me))/(_e+ve))),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)*ve/_e,C=ic(C=x-(W=J-x)*ve/_e,wh(g,x)),S=ic(S,wh(m,T)),J=x+(W=x-(C=wh(C,ic(g,x))))*_e/ve,ee=T+(X=T-(S=wh(S,ic(m,T))))*_e/ve}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-p)*E+p:(C-h)*E+h;return g?[e,P]:[P,e]}h=C,p=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(p,S,D,T,e,m);if(V>0)for(var N=0;N=0)return P=g?xt(p,S,D,T,H):xt(h,C,k,x,H),g?[e,P]:[P,e]}h=x,p=T}}},t}(Xt),RU=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t}(OU),ZL=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,p=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(p){var g=f.scale.getRawOrdinalNumber(p.tickValue);h[g]=1}),function(p){return!h.hasOwnProperty(t.get(d,p))}}}}(e,p,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 p=t.getAxis(u),g=Me(f.stops,function(E){return{coord:p.toGlobalCoord(p.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:nO((b-C)/(y.coord-C),[m.color,y.color])}}for(var h=0;ht){f?e.push(d(f,p,t)):u&&e.push(d(u,p,0),d(u,p,t));break}u&&(e.push(d(u,p,0)),u=null),e.push(p),f=p}}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}}}(p,d,u)||p.getVisual("style")[p.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:KL(this,d,!1,e).shape},e):x.setClipPath(KL(this,d,!0,e)),H&&S.updateData(p,{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(p,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(p,{isIgnore:Z,clipShape:J,disableAnimation:!0,getSymbolPoint:function(Tt){return[y[2*Tt],y[2*Tt+1]]}}),T&&this._initSymbolLabelAnimation(p,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(KL(this,d,!0,e));var ce=e.getModel("emphasis"),me=ce.get("focus"),ve=ce.get("blurScope"),_e=ce.get("disabled");k.useStyle(rt(g.getLineStyle(),{fill:"none",stroke:ee,lineJoin:"bevel"})),va(k,e,"lineStyle"),k.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])&&(k.getState("emphasis").style.lineWidth=+k.style.lineWidth+1),pt(k).seriesIndex=e.seriesIndex,Yr(k,me,ve,_e);var Be=Wx(e.get("smooth")),He=e.get("smoothMonotone");if(k.setShape({smooth:Be,smoothMonotone:He,connectNulls:j}),D){var nt=p.getCalculationInfo("stackedOnSeries"),ht=0;D.useStyle(rt(m.getAreaStyle(),{fill:ee,opacity:.7,lineJoin:"bevel",decal:p.getVisual("style").decal})),nt&&(ht=Wx(nt.get("smooth"))),D.setShape({smooth:Be,stackedOnSmooth:ht,smoothMonotone:He,connectNulls:j}),va(D,e,"areaStyle"),pt(D).seriesIndex=e.seriesIndex,Yr(D,me,ve,_e)}var In=function(Tt){f._changePolyState(Tt)};p.eachItemGraphicEl(function(Bn){Bn&&(Bn.onHoverStateChange=In)}),this._polyline.onHoverStateChange=In,this._data=p,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){pt(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 p=d.getLayout("points"),g=d.getItemGraphicEl(h);if(!g){var m=p[2*h],y=p[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 p=d.getItemGraphicEl(h);p&&(p.__temp?(d.setItemGraphicEl(h,null),this.group.remove(p)):p.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 ZL({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(),p=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);p&&(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,p=d.getLayout("points");if(!p)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}(p);m>=0&&($i(h,pa(e,"endLabel"),{inheritColor:u,labelFetcher:e,labelDataIndex:m,defaultText:function(b,C,S){return null!=S?zL(d,S):Np(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,p){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=p.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,p=-1,g=0;g=t||f>=t&&d<=t){p=g;break}h=g,f=d}return{range:[h,p],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=AO(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,p){var g=this._polyline,m=this._polygon,y=e.hostModel,b=function PU(a,t,e,o,u,f,d,h){for(var p=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=WL(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(p/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),$L=Ur,QL=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},Bp=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 QL},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),p=.5*(h-d),g=d+p,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){Xv(f,e,pt(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),JL={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),p=Df(e.x+e.width,f),g=mw(e.y,t.y),m=Df(e.y+e.height,d),y=pf?p:h,e.y=b&&g>d?m:g,e.width=y?0:p-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,p,g){var m=new fn({shape:pe({},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,p,g){var m=!f&&g?pw: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),p=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-p)*E(x),N=y+(C-p)*P(x),H="center",j="top";break;case"insideStartArc":V=m+(C+p)*E(x),N=y+(C+p)*P(x),H="center",j="bottom";break;case"startAngle":V=m+S*E(k)+gw(k,p+T,!1),N=y+S*P(k)+Q_(k,p+T,!1),H="right",j="middle";break;case"insideStartAngle":V=m+S*E(k)+gw(k,-p+T,!1),N=y+S*P(k)+Q_(k,-p+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+p)*E(x),N=y+(b+p)*P(x),H="center",j="bottom";break;case"insideEndArc":V=m+(b-p)*E(x),N=y+(b-p)*P(x),H="center",j="top";break;case"endAngle":V=m+S*E(D)+gw(D,p+T,!0),N=y+S*P(D)+Q_(D,p+T,!0),H="left",j="middle";break;case"insideEndAngle":V=m+S*E(D)+gw(D,-p+T,!0),N=y+S*P(D)+Q_(D,-p+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===pw}),d){var S=f?"r":"endAngle",k={};y.shape[S]=f?0:u.startAngle,k[S]=u[S],(p?Ut:nr)(y,{shape:k},d)}return y}};function Xx(a,t,e,o,u,f,d,h){var p,g;f?(g={x:o.x,width:o.width},p={y:o.y,height:o.height}):(g={y:o.y,height:o.height},p={x:o.x,width:o.width}),h||(d?Ut:nr)(e,{shape:p},t,u,null),(d?Ut:nr)(e,{shape:g},t?a.baseAxis.model:null,u)}function tF(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 p=t.getItemVisual(e,"style");h||a.setShape("r",o.get(["itemStyle","borderRadius"])||0),a.useStyle(p);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=pa(o);$i(a,y,{labelFetcher:f,labelDataIndex:e,defaultText:Np(f.getData(),e),inheritColor:p.fill,defaultOpacity:p.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 p,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":p=h;break;case"startAngle":case"insideStartAngle":p=f;break;case"endAngle":case"insideEndAngle":p=d;break;default:return void a.setTextConfig({rotation:0})}var m=1.5*Math.PI-p;"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"]))}fI(b,y,f.getRawValue(e),function(k){return zL(t,k)});var S=o.getModel(["emphasis"]);Yr(a,S.get("focus"),S.get("blurScope"),S.get("disabled")),va(a,o),function nF(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 iF=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 iF},t.prototype.buildPath=function(e,o){for(var u=o.points,f=this.baseDimIdx,d=1-this.baseDimIdx,h=[],p=[],g=this.barWidth,m=0;m=h[0]&&t<=h[0]+p[0]&&e>=h[1]&&e<=h[1]+p[1])return d[m]}return-1}(this,a.offsetX,a.offsetY);pt(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 oF(a,t){return oi(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function sF(a,t){var e=oF(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 lF(a,t,e){t.eachSeriesByType(a,function(o){var u=o.getData(),f=u.mapDimension("value"),d=oF(o,e),h=sF(o,e),p=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:p,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,p=e.getItemModel(o),g=p.getModel("emphasis"),m=e.getItemLayout(o),y=pe(J_(p.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")),va(d,p);var C=(m.startAngle+m.endAngle)/2,S=h.get("selectedOffset"),k=Math.cos(C)*S,D=Math.sin(C)*S,x=p.getShallow("cursor");x&&d.attr("cursor",x),this._updateLabel(h,e,o),d.ensureState("emphasis").shape=pe({r:m.r+(g.get("scale")&&g.get("scaleSize")||0)},J_(g.getModel("itemStyle"),m)),pe(d.ensureState("select"),{x:k,y:D,shape:J_(p.getModel(["select","itemStyle"]),m)}),pe(d.ensureState("blur"),{shape:J_(p.getModel(["blur","itemStyle"]),m)});var T=d.getTextGuideLine(),E=d.getTextContent();T&&pe(T.ensureState("select"),{x:k,y:D}),pe(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"),p=o.getItemVisual(u,"style"),g=p&&p.fill,m=p&&p.opacity;$i(f,pa(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,p=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"}),vt){Z.setStyle({align:Tt});var yH=Z.states.select;yH&&(yH.x+=Z.x,yH.y+=Z.y)}else{var cv=Z.getBoundingRect().clone();cv.applyTransform(Z.getComputedTransform());var Sq=(Z.style.margin||0)+2.1;cv.y-=Sq/2,cv.height+=Sq,e.push({label:Z,labelLine:W,position:ee,len:_e,len2:Pe,minTurnAngle:ve.get("minTurnAngle"),maxSurfaceAngle:ve.get("maxSurfaceAngle"),surfaceNormal:new Et(He,nt),linePoints:Bn,textAlign:Tt,labelDistance:re,labelAlignTo:ie,edgeDistance:ce,bleedMargin:me,rect:cv,unconstrainedWidth:cv.width,labelStyleWidth:Z.style.width})}H.setTextConfig({inside:vt})}}),!f&&a.get("avoidLabelOverlap")&&function KU(a,t,e,o,u,f,d,h){for(var p=[],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}||pe({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=CO(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(){},fF=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,p=e.getContext?e.getContext():e,m=this.softClipShape;if(p&&f[0]<4)this._ctx=p;else{for(this._ctx=null,y=this._off;y=0;g--){var m=2*g,y=f[m]-h/2,b=f[m+1]-p/2;if(e>=y&&o>=b&&e<=y+h&&o<=b+p)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],p=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,dF=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=vw("").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=dF,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(p){function g(){var m=null!==p&&p.apply(this,arguments)||this;return m.type=t+"Axis."+f,m}return de(g,p),g.prototype.mergeDefaultAndTheme=function(m,y){var b=qd(this),C=b?rp(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]]),p=u[1]-u[0],g=f[1]-f[0];if(p&&g){var m=(h[0]-d[0])/p,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"),p=this.getAxis("y");return u[0]=h.toGlobalCoord(h.dataToCoord(f,o)),u[1]=p.toGlobalCoord(p.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(),p=u.parse(e[0]),g=f.parse(e[1]);return(o=o||[])[0]=Math.min(Math.max(Math.min(d[0],d[1]),p),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,p=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[p]]:y[0],"x"===g?S[b[p]]: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"===p?-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 pF(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),p=rL(a,t),g=p.extent,m=p.fixMin,y=p.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,p=Zt(d),g=p.length;if(g){for(var m=[],y=g-1;y>=0;y--){var C=d[+p[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){pF(D.scale,D.model,h.scale)}))}}this._updateScale(t,this.model),u(o.x),u(o.y);var f={};q(o.x,function(d){gF(o,"y",d,f)}),q(o.y,function(d){gF(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 p(){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 mF(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)})}p(),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 p,d=a.getLabelModel(),h=Op(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!!_F[t]},a.prototype.add=function(t){_F[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=SO(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}(),_F={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,p=[d[0],0],g=[d[1],0];h&&(Yi(p,p,h),Yi(g,g,h));var m=pe({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),y=new Nr({subPixelOptimize:!0,shape:{x1:p[0],y1:p[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((p[0]-g[0])*(p[0]-g[0])+(p[1]-g[1])*(p[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:p[0]+P*Math.cos(t.rotation),y:p[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"),p=o.tickDirection*f.get("length"),m=Mw(u.getTicksCoords(),t.transform,p,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 yF(a,t,e,o){var f,d,u=SO(e-a),h=o[0]>o[1],p="start"===t&&!h||"start"!==t&&h;return n0(u-Tf/2)?(d=p?"bottom":"top",f="center"):n0(u-1.5*Tf)?(d=p?"top":"bottom",f="center"):(d="middle",f=u<1.5*Tf&&u>Tf/2?p?"left":"right":p?"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=p.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(p,{text:f,font:D,overflow:"truncate",width:E,ellipsis:T,fill:p.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:p.get("align")||C.textAlign,verticalAlign:p.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,pt(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=Tv([]);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=[],p=0;p=0||a===t}function p6(a){var t=vT(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 p=o.getExtent().slice();p[0]>p[1]&&p.reverse(),(null==d||d>p[1])&&(d=p[1]),d0&&!S.min?S.min=0:null!=S.min&&S.min<0&&!S.max&&(S.max=0);var k=p;null!=S.color&&(k=rt({color:S.color},p));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"),p=d.getModel("lineStyle"),g=h.getModel("areaStyle"),m=d.get("show"),y=h.get("show"),b=p.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:p,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:p,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 IF(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"},zp=Zt(Rh),Gp={"alignment-baseline":"textBaseline","stop-color":"stopColor"},ST=Zt(Gp),RF=function(){function a(){this._defs={},this._root=null}return a.prototype.parse=function(t,e){e=e||{};var o=IF(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),p=parseFloat(o.getAttribute("height")||e.height);isNaN(h)&&(h=null),isNaN(p)&&(p=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!=p&&(y=Pf(m,{x:0,y:0,width:h,height:p}),!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!=p&&u.setClipPath(new fn({shape:{x:0,y:0,width:h,height:p}})),{root:u,width:h,height:p,viewBoxRect:m,viewBoxTransform:y,named:f}},a.prototype._parseNode=function(t,e,o,u,f,d){var p,h=t.nodeName.toLowerCase(),g=u;if("defs"===h&&(f=!0),"text"===h&&(d=!0),"defs"===h||"switch"===h)p=e;else{if(!f){var m=wT[h];if(m&&je(wT,h)){p=m.call(this,t,e);var y=t.getAttribute("name");if(y){var b={name:y,namedFrom:null,svgNodeTagLower:h,el:p};o.push(b),"g"===h&&(g=b)}else u&&o.push({name:u.name,namedFrom:u,svgNodeTagLower:h,el:p});e.add(p)}}var C=LF[h];if(C&&je(LF,h)){var S=C.call(this,t),k=t.getAttribute("id");k&&(this._defs[k]=S)}}if(p&&p.isGroup)for(var D=t.firstChild;D;)1===D.nodeType?this._parseNode(D,p,o,g,f,d):3===D.nodeType&&d&&this._parseText(D,p),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=NF(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=NF(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 p=new ct;return Is(o,p),Ao(e,p,this._defsUsePending,!1,!0),p},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",p=new ct;return Is(o,p),Ao(e,p,this._defsUsePending,!1,!0),this._textX+=parseFloat(d),this._textY+=parseFloat(h),p},path:function(e,o){var f=kR(e.getAttribute("d")||"");return Is(o,f),Ao(e,f,this._defsUsePending,!1,!1),f.silent=!0,f}}),a}(),LF={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),FF(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 pp(e,o,u);return Rw(t,f),FF(t,f),f}};function Rw(a,t){"userSpaceOnUse"===a.getAttribute("gradientUnits")&&(t.global=!0)}function FF(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 NF(a){for(var t=dy(a),e=[],o=0;o0;f-=2){var h=o[f-1],p=dy(o[f]);switch(u=u||[1,0,0,1,0,0],h){case"translate":ps(u,u,[parseFloat(p[0]),parseFloat(p[1]||"0")]);break;case"scale":$b(u,u,[parseFloat(p[0]),parseFloat(p[1]||p[0])]);break;case"rotate":el(u,u,-parseFloat(p[0])*MT);break;case"skewX":Js(u,[1,0,Math.tan(parseFloat(p[0])*MT),1,0,0],u);break;case"skewY":Js(u,[1,Math.tan(parseFloat(p[0])*MT),0,1,0,0],u);break;case"matrix":u[0]=parseFloat(p[0]),u[1]=parseFloat(p[1]),u[2]=parseFloat(p[2]),u[3]=parseFloat(p[3]),u[4]=parseFloat(p[4]),u[5]=parseFloat(p[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:p,mapOrGeoModel:t,data:h,isVisualEncodedByVisualMap:k,isGeo:d,transformInfoRaw:b};"geoJSON"===p.resourceType?this._buildGeoJSON(D):"geoSVG"===p.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,p=t.geo.projection,g=p&&p.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&&p&&p.project,D=0;D=0)&&(b=u);var C=d?{normal:{align:"center",verticalAlign:"middle"}}:null;$i(t,pa(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 WF(a,t,e,o,u,f){a.data?a.data.setItemGraphicEl(f,t):pt(t).eventData={componentType:"geo",componentIndex:u.componentIndex,geoIndex:u.componentIndex,name:e,region:o&&o.option||{}}}function YF(a,t,e,o,u){a.data||ih({el:t,componentModel:u,itemName:e,itemTooltipOption:o.get("tooltip")})}function qF(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=pt(a);o.componentMainType=t.mainType,o.componentIndex=t.componentIndex,o.componentHighDownName=e}(t,u,e),d}function ZF(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(p){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=KF;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,p=-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=JF}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 p=d.get("map"),g=new nN(p+h,p,pe({nameMap:d.get("nameMap")},u(d)));g.zoomLimit=d.get("scaleLimit"),o.push(g),d.coordinateSystem=g,g.model=d,g.resize=rN,g.resize(d,e)}),t.eachSeries(function(d){if("geo"===d.get("coordinateSystem")){var p=d.get("geoIndex")||0;d.coordinateSystem=o[p]}});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 p=Me(d,function(m){return m.get("nameMap")}),g=new nN(h,h,pe({nameMap:gr(p)},u(d[0])));g.zoomLimit=Ui.apply(null,Me(d,function(m){return m.get("scaleLimit")})),o.push(g),g.resize=rN,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 hN(a,t,e,o){if(t){for(var u=a,f=a,d=f.parentNode.children[0],h=t,p=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,p+=b),y+=h.hierNode.modifier,g+=f.hierNode.modifier,p+=u.hierNode.modifier,m+=d.hierNode.modifier}h&&!PT(u)&&(u.hierNode.thread=h,u.hierNode.modifier+=y-p),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 fN(a){a.setLayout({x:a.hierNode.prelim+a.parentNode.hierNode.modifier},!0),a.hierNode.modifier+=a.parentNode.hierNode.modifier}function dN(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],p=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]+(p[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]=p[m],e.lineTo(C[0],C[1]),e.lineTo(p[0],p[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&&(pt(e).focus=ee),function nj(a,t,e,o,u,f,d,h){var p=t.getModel(),g=a.get("edgeShape"),m=a.get("layout"),y=a.getOrient(),b=a.get(["lineStyle","curveness"]),C=a.get("edgeForkPosition"),S=p.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})}),p=0;d.eachNode("preorder",function(y){y.depth>p&&(p=y.depth)});var m=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:p;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),p=h.getValue(),g=h.name;h&&h!==d;)g=h.parentNode.name+"."+g,h=h.parentNode;return Gt("nameValue",{name:g,value:p,noValue:isNaN(p)||null==p})},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),CN=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=dN(function(E,P){return(E.parentNode===P.parentNode?1:2)/E.depth})):(u=e.width,f=e.height,d=dN());var h=a.getData().tree.root,p=h.children[0];if(p){(function uN(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(p,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(p,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(p,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();pe(e.ensureUniqueItemVisual(u.dataIndex,"style"),d)})})}var SN=["treemapZoomToNode","treemapRender","treemapMove"];function MN(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 kN(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 p=new Kn(h),g=p.get("color"),m=p.get("decal");(p.get(["itemStyle","color"])||g&&"none"!==g)&&(u=!0),(p.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 p=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?p[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||{},pe(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(){MN(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"),p=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,p),this._renderContent(t,g,h,p,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,p=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),p=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(p)||isNaN(parseFloat(a.bottom)))&&(p=u),e=jd(e||0),{width:Math.max(h-f-e[1]-e[3],0),height:Math.max(p-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,p,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),vj(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 vj(a,t,e){pt(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,DN=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),p=this.seriesModel.layoutInfo,g=[1,0,0,1,0,0];ps(g,g,[-(o-=p.x),-(u-=p.y)]),$b(g,g,[e.scale,e.scale]),ps(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 p=h.hostTree.data.getItemModel(h.dataIndex),g=p.get("link",!0),m=p.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 p=h.transformCoordToLocal(e,o),g=h.shape;if(!(g.x<=p[0]&&p[0]<=g.x+g.width&&g.y<=p[1]&&p[1]<=g.y+g.height))return!1;u={node:d,offsetX:p[0],offsetY:p[1]}}},this),u},t.type="treemap",t}(jn),Qw=mj,Yp=q,EN=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=PN[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(Yp(t,function(d,h){e[d]=h}),!Ce(o)){var u=[];Ke(o)?Yp(o,function(d,h){var p=e[h];u[null!=p?p:-1]=d}):u[-1]=o,o=qp(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 p=e.call(o,d,h);u?f=p:f[h]=p}),f},a.retrieveVisuals=function(t){var o,e={};return t&&Yp(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(!EN(t))return[];var e=[];Yp(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]=p);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 vn(y);return Bh(b).drColorMappingBy=m,b}}}(0,u,f,0,p,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=pe({},t);if(u){var h=u.type,p="color"===h&&Bh(u).drColorMappingBy,g="index"===p?o:"id"===p?f.mapIdToIndex(e.getId()):e.getValue(a.get("visualDimension"));d[h]=u.mapValueToVisual(g)}return d}(u,p,k,D,S,o);YT(k,x,e,o)}})}else b=IN(p),g.fill=b}}function IN(a){var t=Xp(a,"color");if(t){var e=Xp(a,"colorAlpha"),o=Xp(a,"colorSaturation");return o&&(t=Zg(t,null,null,o)),e&&(t=Sv(t,e)),t}}function Xp(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,p=oi(t.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()}),g=h.size||[],m=Ie(ZT(p.width,g[0]),f),y=Ie(ZT(p.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,p=o*u,g=p*a.option.zoomToNodeRatio;h=f.parentNode;){for(var m=0,y=h.children,b=0,C=y.length;bwO&&(g=wO),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,p=d-1;p>=0;p--){var g=u["asc"===o?d-p-1:p].getValue();g/e*to&&(o=d));var p=a.area*a.area,g=t*t*e;return p?zh(g*o/p,p/(g*u)):1/0}function Sj(a,t,e,o,u){var f=t===e.width?0:1,d=1-f,h=["x","y"],p=["width","height"],g=e[h[f]],m=t?a.area/t:0;(u||m>e[p[d]])&&(m=e[p[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=p.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,p){e._doUpdate(f,t,p,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 ZN(a,t){var e=[],o=ql,u=[[],[],[]],f=[[],[]],d=[];t/=2,a.eachEdge(function(h,p){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,p=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)}ZN(e.getGraph(),es(e));var y=e.getData();h.updateData(y);var b=e.getEdgeData();p.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"])&&(pt(P).focus=T.getAdjacentDataIndices())}}),y.graph.eachEdge(function(T){var E=T.getGraphicEl(),P=T.getModel().get(["emphasis","focus"]);!E||"adjacency"===P&&(pt(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 $p||(e=this._nodesMap[Oy(e)]),e){for(var f="out"===o?"outEdges":"in"===o?"inEdges":"edges",d=0;d=0&&p.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($p,iA("hostGraph","data")),Ir(Pj,iA("hostGraph","edgeData"));var gK=pK;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(p,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 p(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),p=f.getName(h.node1.dataIndex),g=f.getName(h.node2.dataIndex),m=[];return null!=p&&m.push(p),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:pe({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,p=o.angle,g=o.x-u(p)*h*(h>=d/3?1:2),m=o.y-f(p)*h*(h>=d/3?1:2);p=o.angle-Math.PI/2,e.moveTo(g,m),e.lineTo(o.x+u(p)*h,o.y+f(p)*h),e.lineTo(o.x+u(o.angle)*d,o.y+f(o.angle)*d),e.lineTo(o.x-u(p)*h,o.y-f(p)*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,p=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")?pw:Ja,S=y.get("show"),k=y.getModel("lineStyle"),D=k.get("width"),x=[g,m];br(x,!p);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,p,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,p];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"),ve=Ie(me[0],d.r),_e=Ie(me[1],d.r),Pe=ee.get("keepAspect");return(Be=ce?Dr(ce,ve-re/2,_e-ie,re,ie,null,Pe):new wK({shape:{angle:-Math.PI/2,width:re,r:ie,x:ve,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")?pw:Ja,re=D.get("overlap"),ie=re?D.get("width"):m/T.count(),ve=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&&(ve.z2=V-T.get(E,W)%V),ve}(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],ve=Z(W,ce?ce.shape.endAngle:h),_e=D.get("clip");Ut(ve,{shape:{endAngle:wn(J,N,H,_e)}},e),y.add(ve),wm(e.seriesIndex,T.dataType,W,ve),S[W]=ve}}).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"),ve=me.fill;if(ce instanceof Ki){var _e=ce.style;ce.useStyle(pe({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(ve);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,va(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,va(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"),p=u.get("offsetCenter"),g=u.get("keepAspect"),m=Dr(h,o.cx-d/2+Ie(p[0],o.r),o.cy-d/2+Ie(p[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,p=e.getData(),g=p.mapDimension("value"),m=+e.get("min"),y=+e.get("max"),b=new ct,C=[],S=[],k=e.isAnimationEnabled(),D=e.get(["pointer","showAbove"]);p.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(),p.each(function(x){var T=p.getItemModel(x),E=p.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:p.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"])?p.getItemVisual(x,"style").fill:V,W=S[x],ve=X.get("formatter");W.attr({z2:D?0:2,style:Cr(X,{x:ee,y:re,text:oA(E,ve),width:isNaN(ie)?null:ie,height:isNaN(ce)?null:ce,align:"center",verticalAlign:"middle"},{inheritColor:me})}),fI(W,{normal:X},E,function(Pe){return oA(Pe,ve)}),k&&F0(W,x,p,e,{getFormattedLabel:function(Be,He,nt,ht,In,Bn){return oA(Bn?Bn.interpolatedValue:E,ve)}}),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),p=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:p.points}),f.style.opacity=0,nr(f,{style:{opacity:m}},d,o)):Ut(f,{style:{opacity:m},shape:{points:p.points}},d,o),va(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,p=e.getItemModel(o),m=e.getItemLayout(o).label,y=e.getItemVisual(o,"style"),b=y.fill;$i(d,pa(p),{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(p),{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(p){var g=new EK(f,p);f.setItemGraphicEl(p,g),h.add(g)}).update(function(p,g){var m=d.getItemGraphicEl(g);m.updateData(f,p),h.add(m),f.setItemGraphicEl(p,m)}).remove(function(p){Xv(d.getItemGraphicEl(p),e,p)}).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"),p=d.width,g=d.height,m=function FK(a,t){for(var e=a.mapDimension("value"),o=a.mapArray(e,function(p){return p}),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&&QN(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 QN(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 Qp(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 p=JN(t,o);t[o]+=a;var y,g=u||0,m=e.slice();return p.sign<0?m[0]+=g:m[1]-=g,t[o]=Iy(t[o],m),y=JN(t,o),null!=u&&(y.sign!==p.sign||y.spanf&&(t[1-o]=t[o]+y.sign*f),t}function JN(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 e3=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;e3(t.dimensions,function(d,h){var p=f[h],g=e.getComponent("parallelAxis",p),m=this._axesMap.set(d,new s$(d,H_(g),[0,0],g.get("type"),p));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();e3(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]],p=[0,h],g=this.dimensions.length,m=sA(t.get("axisExpandWidth"),p),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],p),C[1]=C[0]+S):(S=sA(m*(y-1),p),(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],p=d.inverse?1:0;d.setExtent(h[p],h[1-p])}),e3(o,function(d,h){var p=(u.axisExpandable?d$:f$)(h,u),g={horizontal:{x:p.position,y:u.axisLength},vertical:{x:0,y:p.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),ps(C,C,y),this._axesLayout[d]={position:y,rotation:b,transform:C,axisNameAvailableWidth:p.axisNameAvailableWidth,axisLabelShow:p.axisLabelShow,nameTruncateMaxWidth:p.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=[],p=[];q(d,function(D){h.push(t.mapDimension(D)),p.push(f.get(D).model)});for(var g=this.hasAxisBrushed(),m=o;mf*(1-y[0])?(g="jump",p=h-f*(1-y[2])):(p=h-f*y[1])>=0&&(p=h-f*(1-y[1]))<=0&&(p=0),(p*=e.axisExpandWidth/m)?Qp(p,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,p=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&&a3(a);var p=ot(d);p.brushType=pA(p.brushType,f),p.panelId=f===Jp?null:f.panelId,u=a._creatingCover=Uj(a,p),a._covers.push(u)}if(u){var g=d1[pA(a._brushType,f)];u.__brushOption.range=g.getCreatingRange(f1(a,u,a._track)),o&&(r3(a,u),g.updateCommon(a,u)),lA(a,u),h={isEnd:o}}}else o&&"single"===d.brushMode&&d.removeOnClick&&cA(a,t,e)&&a3(a)&&(h={isEnd:o,removeOnClick:!0});return h}function pA(a,t){return"auto"===a?t.defaultBrushType:a}var c3={mousedown:function(t){if(this._dragging)gA(this,t);else if(!t.target||!t.target.draggable){vA(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[p].depth]=new Kn(d[p],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,p=d.value;return Gt("nameValue",{name:h.source+" -- "+h.target,value:p,noValue:f(p)})}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),y3=_3;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,p=e.getGraph(),g=p.nodes,m=p.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 b3(a,t,e,o,u,f,d,h,p){(function r7(a,t,e,o,u,f,d){for(var h=[],p=[],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,p*=.99,d),CA(h,u,e,o,d),S$(h,p,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 C3(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,p,g,m=0,y=d.length,b="vertical"===u?"dx":"dy",C=0;C0&&(h=p.getLayout()[f]+g,p.setLayout("vertical"===u?{x:h}:{y:h},!0)),m=p.getLayout()[f]+p.getLayout()[b]+t;if((g=m-t-("vertical"===u?o:e))>0)for(h=p.getLayout()[f]-g,p.setLayout("vertical"===u?{x:h}:{y:h},!0),m=h,C=y-2;C>=0;--C)(g=(p=d[C]).getLayout()[f]+p.getLayout()[b]+t-m)>0&&(h=p.getLayout()[f]-g,p.setLayout("vertical"===u?{x:h}:{y:h},!0)),m=p.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 p=u.getLayout().y+(f-Yh(u,e))*t;u.setLayout({y:p},!0)}}})})}function c7(a,t){return Yh(a.node2,t)*a.getValue()}function f7(a,t){return Yh(a.node2,t)}function M3(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 p=new vn({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",p),d.setVisual("style",{fill:p}))})}})}var k3=function(){function a(){}return a.prototype.getInitialData=function(t,e){var o,p,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(),p=!0):"category"===h?(t.layout="vertical",o=f.getOrdinalMeta(),p=!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&&p){var x=[];q(D,function(P,V){var N;Ce(P)?(N=P.slice(),P.unshift(V)):Ce(P.value)?((N=pe({},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}(),D3=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(D3,k3,!0);var x3=D3,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 p="horizontal"===e.get("layout")?1:0;f.diff(h).add(function(g){if(f.hasValue(g)){var y=T3(f.getItemLayout(g),f,g,p,!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),A3(b,y,f,g)):y=T3(b,f,g,p),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(){},v7=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}]}},R3=["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),p=e.coordinateSystem,g=p.getArea&&p.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 p=$n(u.getItemLayout(d));m1(p,u,d,f),p.incremental=!0,this.group.add(p),this._progressiveEls.push(p)}},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),pc=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 pc},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(R3);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,k3,!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 L3=["itemStyle","borderColor"],By=["itemStyle","borderColor0"],F3=["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?F3:AA)}function u(d,h){return h.get(d>0?L3:By)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(h,p){for(var g;null!=(g=h.next());){var m=p.getItemModel(g),y=p.getItemLayout(g).sign,b=m.getItemStyle();b.fill=o(y,m),b.stroke=u(y,m)||b.fill,pe(p.ensureUniqueItemVisual(g,"style"),b)}}}}},b1=Nn,N3={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"],p=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}),!(p<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(p,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++]=B3(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(p,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:B3(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 B3(a,t,e,o,u){return e>o?-1:e0?a.get(u,t-1)<=o?1:-1:1}var b7=N3;function V3(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||p!==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,p)}this._period=h,this._loop=p}},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],p=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[p]<=o);p--);p=Math.min(p,d-2)}else{for(p=h;po);p++);p=Math.min(p-1,d-2)}var m=(o-f[p])/(f[p+1]-f[p]),y=u[p],b=u[p+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=p,this._lastFramePercent=o,e.ignore=!1}},t}(H3),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 p=1;p0?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 p=0,g=0;g0)for(var y=f[g++],b=f[g++],C=1;C0){if(UO(y,b,(y+S)/2-(b-k)*d,(b+k)/2-(S-y)*d,S,k,h,e,o))return p}else if(Qt(y,b,S,k,h,e,o))return p;p++}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,p=-1/0,g=0;g0&&(d.dataIndex=p+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 p=[];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(p/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=G3.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"),p=o.pipelineContext.large;return(!u||f!==this._hasEffet||d!==this._isPolyline||p!==this._isLargeDraw)&&(u&&u.remove(),u=this._lineDraw=p?new A$:new Fs(d?f?P7:z3:f?H3:Ha),this._hasEffet=f,this._isPolyline=d,this._isLargeDraw=p),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 U3(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||[],U3(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(U3(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 p=d.getItemModel(h),g=C1(p.getShallow("symbol",!0)),m=C1(p.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(),p=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)?p: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(p){p===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,p=ac(h,"cartesian2d");if(p){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=pa(e),N=e.getModel("emphasis"),H=N.get("focus"),j=N.get("blurScope"),Z=N.get("disabled"),W=p?[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),ve=me.getModel("emphasis");x=ve.getModel("itemStyle").getItemStyle(),T=me.getModel(["blur","itemStyle"]).getItemStyle(),E=me.getModel(["select","itemStyle"]).getItemStyle(),P=me.get(["itemStyle","borderRadius"]),H=ve.get("focus"),j=ve.get("blurScope"),Z=ve.get("disabled"),V=pa(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,p=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=[p.mapDimension("lng"),p.mapDimension("lat"),p.mapDimension("value")],E=p.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 j3(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 p;if((p=t[h].interval)[0]<=d&&d<=p[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,p,g){var S,m=p.valueDim,y=p.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]*=(p.isHorizontal?-1:1)*d}(a,t,u,f,0,b.boundingLength,b.pxSign,m,o,b),function X3(a,t,e,o,u){var f=a.get(q3)||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 K3(a,t,e,o,u,f,d,h,p,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(p),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:eB((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?eB((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?p-W:p/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=pe({},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,p=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[p.index]=y*(T-g/2+.5)+h[p.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 $3(a,t,e){var o=pe({},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=pe({},e.clipShape),d=t.valueDim,h=e.animationModel,p=e.dataIndex;if(u)Ut(u,{shape:f},h,p);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,p)}}}function Q3(a,t){var e=a.getItemModel(t);return e.getAnimationDelayParams=J3,e.isAnimationEnabled=NA,e}function J3(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),$3(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(),p=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(pe({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=p,g&&(k.cursor=g),k.z2=e.z2});var C=t.valueDim.posDesc[+(e.boundingLength>0)];$i(a.__pictorialBarRect,pa(u),{labelFetcher:t.seriesModel,labelDataIndex:o,defaultText:Np(t.seriesModel.getData(),o),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:C}),Yr(a,m,y,f.get("disabled"))}function eB(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$,nB=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,p=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||[],p,b,b),S=[];function k(D,x,T){var E=d._layers;if("remove"!==D){for(var N,P=[],V=[],H=p[x].indices,j=0;jf&&(f=h),o.push(h)}for(var g=0;gf&&(f=y)}return{y0:u,max:f}}(h),g=p.y0,m=e/p.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,p>Math.PI/2&&(J="right")):"right"===J&&(W=d.r-X,p>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=-p)<-Math.PI/2&&(re+=Math.PI):"tangential"===ee?(re=Math.PI/2-p)>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),iB=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(),p=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!==p&&E!==p)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 iB(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 iB(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)}(p,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 p=d.getModel(),g=p.get("link");g&&G0(g,p.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,p=Math.sqrt(d*d+h*h);return p<=f.r&&p>=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(p){return new Kn(p,this,o)},this),d=LT.createTree(u,this,function h(p){p.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(){MN(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(),p=Math.min(d,h),g=Ie(u[0],d),m=Ie(u[1],h),y=Ie(f[0],p/2),b=Ie(f[1],p/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&&aB(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,ve){if(me){var _e=ve;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)),pe(u.ensureUniqueItemVisual(d.dataIndex,"style"),p)})})}var GA={color:"fill",borderColor:"stroke"},oB={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},mc=Sn(),sB=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),lB=sB;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,p="category"===f.type?f.getBandWidth():Math.abs(f.dataToCoord(d-h)-f.dataToCoord(d+h));return"Angle"===e&&(p=p*Math.PI/180),p},this)}function R1(a,t,e,o){return a&&(a.legacy||!1!==a.legacy&&!e&&!o&&"tspan"!==t&&("text"===t||je(a,"text")))}function cB(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 fB(d,a),q(d.rich,function(p){fB(p,p)}),{textConfig:u,textContent:f}}function fB(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 dB(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";hB(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){hB(h,h)}),o}function hB(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=Zv(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),pe(d,e[f]),d}function F1(a,t,e,o){var u=(o=o||{}).dataIndex,f=o.isInit,d=o.clearStyle,h=e.isAnimationEnabled(),p=rg(a),g=t.style;p.userDuring=t.during;var m={},y={};if(function pW(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]),p=a.coordToPoint([d,h]);return p.push(d,h*Math.PI/180),p},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(),p=this.group,g=_B(e,h,o,u);d||p.removeAll(),h.diff(d).add(function(y){U1(u,null,y,g(y,f),e,p,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,p,h)}).execute();var m=e.get("clip",!0)?$_(e.coordinateSystem,!1,e):null;m?p.setClipPath(m):p.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(),p=_B(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 ve=t.get(ce.name,ie),_e=ce&&ce.ordinalMeta;return _e?_e.categories[ve]:ve},styleEmphasis:function H(re,ie){null==ie&&(ie=g);var ce=T(ie,_c).getItemStyle(),me=E(ie,_c),ve=Cr(me,null,null,!0,!0);ve.text=me.getShallow("show")?Su(a.getFormattedLabel(ie,_c),a.getFormattedLabel(ie,jf),Np(t,ie)):null;var _e=L0(me,null,!0);return Z(re,ce),ce=dB(ce,ve,_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(oB,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 yB(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,p=h?t?sg(h,t):h:null;if(u&&(e.isLegacy||R1(u,f,!!d,!!p))){e.isLegacy=!0;var g=cB(u,f,!t);!d&&g.textConfig&&(d=g.textConfig),!p&&g.textContent&&(p=g.textContent)}!t&&p&&!p.type&&(p.type="text");var y=t?e[t]:e.normal;y.cfg=d,y.conOpt=p}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 CB(a,t){var e=a&&a.name;return null!=e?e:"e\0\0"+t}function wB(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,p=this._handle;if(!d||"hide"===d)return h&&h.hide(),void(p&&p.hide());h&&h.show(),p&&p.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(MB,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 p=vT(t).seriesDataCount,g=u.getExtent();return Math.abs(g[0]-g[1])/p>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),DB(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}),DB(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=gp(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 p=f.get("size");Ce(p)||(p=[p,p]),u.scaleX=p[0]/2,u.scaleY=p[1]/2,sh(this,"_doDispatchAxisPointer",f.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,h)}},a.prototype._moveHandleToValue=function(t,e){MB(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 MB(a,t,e,o){kB($h(e).lastProp,o)||($h(e).lastProp=o,t?Ut(e,o,a):(e.stopAnimation(),e.attr(o)))}function kB(a,t){if(Ke(a)&&Ke(t)){var e=!0;return q(t,function(o,u){e=e&&kB(a[u],o)}),!!e}return a===t}function DB(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 xB(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"),p=jd(h.get("padding")||0),g=h.getFont(),m=vd(d,g),y=u.position,b=m.width+p[1]+p[3],C=m.height+p[0]+p[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:p,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(p){var g=e.getSeriesByIndex(p.seriesIndex),y=g&&g.getDataParams(p.dataIndexInside);y&&h.seriesData.push(y)}),Ne(d)?f=d.replace("{value}",f):et(d)&&(f=d(h))}return f}function TB(a,t,e){var o=[1,0,0,1,0,0];return el(o,o,e.rotation),ps(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"]),xB(t,o,u,f,{position:TB(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 AB(a,t,e){return{x:a[e=e||0],y:a[1-e],width:t[e],height:t[1-e]}}function EB(a,t,e,o,u,f){return{cx:a,cy:t,r0:e,r:o,startAngle:u,endAngle:f,clockwise:!0}}var PB=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,p=h.grid,g=f.get("type"),m=OB(p,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(p.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=TB(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,p=d.getGlobalExtent(!0),g=OB(h,d).getOtherAxis(d).getGlobalExtent(),m="x"===d.dim?0:1,y=[e.x,e.y];y[m]+=o[m],y[m]=Math.min(p[1],y[m]),y[m]=Math.max(p[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 OB(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]],IB(t))}},shadow:function(t,e,o){var u=Math.max(1,t.getBandWidth());return{type:"Rect",shape:AB([e-u/2,o[0]],[u,o[1]-o[0]],IB(t))}}};function IB(a){return"x"===a.dim?0:1}var EW=PB,pn=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$=pn,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 RB(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,p,g){"none"!==d&&("leave"===h||d.indexOf(h)>=0)&&g({type:"updateAxisPointer",currTrigger:h,x:p&&p.offsetX,y:p&&p.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),p=u.coordinateSystem;if(u.getTooltipPosition)e=u.getTooltipPosition(d)||[];else if(p&&p.dataToPoint)if(a.isStacked){var g=p.getBaseAxis(),y=p.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=p.dataToPoint(k)||[]}else e=p.dataToPoint(f.getValues(Me(p.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 LB=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 p=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=p||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&&!p&&(j=N.pointToData(u)),null!=j&&FB(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){FB(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=LB(o)[u]||{},d=LB(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=[],p=[];q(f,function(g,m){!d[m]&&p.push(g)}),q(d,function(g,m){!f[m]&&h.push(g)}),p.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:p}),h.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:h})}(m,0,e),b}}function FB(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(p,g){var y,b,m=p.getData().mapDimensionsAll(o);if(p.getAxisTooltipData){var C=p.getAxisTooltipData(m,a,e);b=C.dataIndices,y=C.nestestValue}else{if(!(b=p.getData().indicesOfNearest(m[0],a,"category"===e.type?.5:null)).length)return;y=p.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:p.seriesIndex,dataIndexInside:D,dataIndex:p.getData().getRawIndex(D)})}))}}),{payloadBatch:f,snapToValue:u}}(t,a),h=d.payloadBatch,p=d.snapToValue;h[0]&&null==u.seriesIndex&&pe(u,h[0]),!o&&a.snap&&f.containData(p)&&null!=p&&(t=p),e.showPointer(a,t,h),e.showTooltip(a,d,p)}}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 p=t.coordSys.model,g=iy(p),m=a.map[g];m||(m=a.map[g]={coordSysId:p.id,coordSysIndex:p.componentIndex,coordSysType:p.type,coordSysMainType:p.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 bF(a,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function CF(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 p=iy(h.model),g=a.coordSysAxesInfo[p]={};a.coordSysMap[p]=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 wF(a,t,e,o,u,f){var d=t.getModel("axisPointer"),p={};q(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(b){p[b]=ot(d.get(b))}),p.snap="category"!==a.type&&!!f,"cross"===d.get("type")&&(p.type="line");var g=p.label||(p.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=p.lineStyle=d.get("crossStyle");y&&rt(g,y.textStyle)}}return a.model.getModel("axisPointer",new Kn(p,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,p,f.get(["label","margin"]));xB(e,u,f,d,D)},t}(Y1),BB={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:EB(e.cx,e.cy,u[0],u[1],(-o-f/2)*d,(f/2-o)*d)}:{type:"Sector",shape:EB(e.cx,e.cy,o-f/2,o+f/2,0,2*Math.PI)}}},VB=LW,HB=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=HB,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 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.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],p=e.dataToCoord(h+1)-e.dataToCoord(h),g=Math.abs(p),m=vd(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 p=Math.sqrt(e*e+o*o);e/=p,o/=p;for(var g=Math.atan2(-o,e)/Math.PI*180,m=gh;)g+=360*m;return[p,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,p){var g=h-this.cx,m=p-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 GB(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 p=h.getData();q(tc(p,"radius"),function(g){u.scale.unionExtentFromData(p,g)}),q(tc(p,"angle"),function(g){o.scale.unionExtentFromData(p,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=GB;var h=d.getRadiusAxis(),p=d.getAngleAxis(),g=u.findAxisModel("radiusAxis"),m=u.findAxisModel("angleAxis");Pi(h,g),Pi(p,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,p=t.get("radius");null==p?p=[0,"100%"]:Ce(p)||(p=[0,p]);var g=[Ie(p[0],h),Ie(p[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}},UB=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 jB(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(),p=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});jB(g),jB(h),q(Q1,function(m){e.get([m,"show"])&&(!u.scale.isBlank()||"axisLine"===m)&&GW[m](this.group,e,f,h,p,d,g)},this)}},t.type="angleAxis",t}(Af),GW={axisLine:function(t,e,o,u,f,d){var m,h=e.getModel(["axisLine","lineStyle"]),p=ug(o),g=p?0:1;(m=0===d[g]?new ks({shape:{cx:o.cx,cy:o.cy,r:d[p]},style:h.getLineStyle(),z2:1,silent:!0}):new e_({shape:{cx:o.cx,cy:o.cy,r:d[p],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"),p=(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+p],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"),p=e.getModel("minorTick"),g=(h.get("inside")?-1:1)*p.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(p&&p[k]){var N=p[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,pt(H).eventData=j}},this)},splitLine:function(t,e,o,u,f,d){var p=e.getModel("splitLine").getModel("lineStyle"),g=p.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 ve=S.dataToCoord(W)-H,_e=p.dataToCoord(X);Math.abs(ve)=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(),p=[h.x,h.x+h.width,h.y,h.y+h.height],g={horizontal:{top:p[2],bottom:p[3]},vertical:{left:p[0],right:p[1]}};u.position=["vertical"===d?g.vertical[f]:p[0],"horizontal"===d?g.horizontal[f]:p[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"],qB=["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 p=jr(e),g=new ra(e,p);q(li,g.add,g),d.add(this._axisGroup),d.add(g.getGroup()),q(qB,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"),p=h.get("color");p=p instanceof Array?p:[p];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,KB={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:XB},t9=KB,$B=["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,p=h.coordinateSystem,g=nS(p,1-za(h)),m=p.dataToPoint(o)[0],y=f.get("type");if(y&&"none"!==y){var b=q1(f),C=QB[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=TB(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,p=za(d),g=nS(h,p),m=[e.x,e.y];m[p]+=o[p],m[p]=Math.min(g[1],m[p]),m[p]=Math.max(g[0],m[p]);var y=nS(h,1-p),b=(y[1]+y[0])/2,C=[b,b];return C[p]=m[p],{x:m[0],y:m[1],rotation:e.rotation,cursorPoint:C,tooltipOption:{verticalAlign:"middle"}}},t}(Y1),QB={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:AB([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[$B[t]],e[$B[t]]+e[n9[t]]]}var r9=fg,JB=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=rp(e);a.prototype.init.apply(this,arguments),eV(e,f)},t.prototype.mergeOption=function(e){a.prototype.mergeOption.apply(this,arguments),eV(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 eV(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 tV=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(),p=d.getOrient(),g=o.getLocaleModel();this._renderDayRect(e,h,f),this._renderLines(e,h,p,f),this._renderYearText(e,h,p,f),this._renderMonthText(e,g,p,f),this._renderWeekText(e,g,h,p,f)},t.prototype._renderDayRect=function(e,o,u){for(var f=e.coordinateSystem,d=e.getModel("itemStyle").getItemStyle(),h=f.getCellWidth(),p=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:p},cursor:"default",style:d});u.add(y)}},t.prototype._renderLines=function(e,o,u,f){var d=this,h=e.coordinateSystem,p=e.getModel(["splitLine","lineStyle"]).getLineStyle(),g=e.get(["splitLine","show"]),m=p.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,p,f)}S(h.getNextNDay(o.end.time,1).formatedDate),g&&this._drawSplitline(d._getEdgesPoints(d._tlpoints,m,u),p,f),g&&this._drawSplitline(d._getEdgesPoints(d._blpoints,m,u),p,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=[],p=0;p<7;p++){var g=f.getNextNDay(d.time,p),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],p=o[1],g=["center","bottom"];"bottom"===f?(p+=d,g=["center","top"]):"left"===f?h-=d:"right"===f?(h+=d,g=["center","top"]):p-=d;var m=0;return("left"===f||"right"===f)&&(m=Math.PI/2),{rotation:m,x:h,y:p,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"),p=d.get("position");p||(p="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[p],u,p,h)),f.add(T)}},t.prototype._monthTextPositionControl=function(e,o,u,f,d){var h="left",p="top",g=e[0],m=e[1];return"horizontal"===u?(m+=d,o&&(h="center"),"start"===f&&(p="bottom")):(g+=d,o&&(p="middle"),"start"===f&&(h="right")),{x:g,y:m,align:h,verticalAlign:p}},t.prototype._renderMonthText=function(e,o,u,f){var d=e.getModel("monthLabel");if(d.get("show")){var h=d.get("nameMap"),p=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;p="start"===g?-p:p;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/vE)-Math.floor(e[0].time/vE)+1,f=new Date(e[0].time),d=f.getDate(),h=e[1].date.getDate();f.setDate(d+u-1);var p=f.getDate();if(p!==h)for(var g=f.getTime()-e[1].time>0?1:-1;(p=f.getDate())!==h&&(f.getTime()-e[1].time)*g>0;)u-=g,f.setDate(p-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 nV=yi;function rV(a,t){var e;return q(t,function(o){null!=a[o]&&"auto"!==a[o]&&(e=!0)}),e}var pE=["transition","enterFrom","leaveTo"],iV=pE.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?pE:iV,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:p}:{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,p=e.infoMap.get(h);p||(e.infoList.push(p={model:d,axisModels:[]}),e.infoMap.set(h,p)),p.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}(),dV=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";p(u.findComponents({mainType:d+"Axis"}),d)}function p(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&&p(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]],p=null!=e[f[1]];h&&!p?o[d]="percent":!h&&p?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=[],p=[];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)),p[C]=k,h[C]=S}),aS(p),aS(h);var m=this._minMaxSpan;function y(b,C,S,k,D){var x=D?"Span":"ValueSpan";Qp(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(p,h,e,d,!1):y(h,p,d,e,!0),{valueWindow:p,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(p){var g=p.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)p.setData(g=g.map(C,function(k){return function h(p){return p>=d[0]&&p<=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,p){var g=t.getComponent(yu(h),p);f(h,p,g,d)})})}e(function(f,d,h,p){h.__dzAxisProxy=null});var o=[];e(function(f,d,h,p){h.__dzAxisProxy||(h.__dzAxisProxy=new wE(f,d,p,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 pV(a){f9||(f9=!0,a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,q$),function Z$(a){a.registerAction("dataZoom",function(t,e){q(function fV(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 p(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(vr),pV(a)}var Vl=function a(){},gV={};function Jh(a,t){gV[a]=t}function mV(a){return gV[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=mV(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 pg(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"),p="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(pg(d.getBoundingRect(),e)),p||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=vd(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=mV(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=gp(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=p?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),v9=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",p=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=p;var y=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});m.dispatchEvent(y)}else if(window.navigator.msSaveOrOpenBlob||d){var b=p.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,_V="__ec_magicType_stack__",g9=[["line","bar"],["stack"]],yV=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(bV[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=bV[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),bV={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")===_V;if("line"===t||"bar"===t)return u.setIconStatus("stack",f?"normal":"emphasis"),Dt({id:e,stack:f?"":_V},u.get(["option","stack"])||{},!0)}};uu({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(a,t){t.mergeOption(a.newOption)});var $$=yV,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})),p=[u.model.getCategories()];q(e.series,function(C){var S=C.getRawData();p.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(wV),function(p){return{name:p,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=tv[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=tv[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=tv[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 pm(a,t,{includeMainTypes:DV})}var EE={grid:function(t,e){var o=t.xAxisModels,u=t.yAxisModels,f=t.gridModels,d=$e(),h={},p={};!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),p[m.id]=!0}),q(f,function(g){d.set(g.id,g),h[g.id]=!0,p[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:AV.grid,xAxisDeclared:h[g.id],yAxisDeclared:p[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:AV.geo})})}},TV=[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}],AV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(df(t)),e}},tv={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 p=t?e.pointToData(h,u):e.dataToPoint(h,u);return f[0][0]=Math.min(f[0][0],p[0]),f[1][0]=Math.min(f[1][0],p[1]),f[0][1]=Math.max(f[0][1],p[0]),f[1][1]=Math.max(f[1][1],p[1]),p}),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 EV=xV,OE=q,PV=function vm(a){return"\0_ec_\0"+a}("toolbox-dataZoom_"),OV=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 f3(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 EV(nb(a),t,{include:["grid"]}).makePanelOpts(u,function(p){return p.xAxisDeclared&&!p.yAxisDeclared?"lineX":!p.xAxisDeclared&&p.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 MV(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 EV(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 p=h.getPercentRange();e[0][u]={dataZoomId:u,start:p[0],end:p[1]}}}}),e.push(t)}(f,u),this._dispatchZoomAction(u)}function h(g,m,y){var b=m.getAxis(g),C=b.model,S=function p(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=Qp(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 SV(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=pm(a,nb(o));return OE(d.xAxisModels,function(p){return h(p,"xAxis","xAxisIndex")}),OE(d.yAxisModels,function(p){return h(p,"yAxis","yAxisIndex")}),u}function h(p,g,m){var y=p.componentIndex,b={type:"select",$fromToolbox:!0,filterMode:o.get("filterMode",!0)||"filter",id:PV+g+y};b[m]=y,u.push(b)}});var S9=OV,IV=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=IV;function IE(a){var t=a.get("confine");return null!=t?!!t:"richText"===a.get("renderMode")}function RV(a){if(tn.domSupported)for(var t=document.documentElement.style,e=0,o=a.length;e-1?(h+="top:50%",p+="translateY(-50%) rotate("+(g="left"===f?-225:-45)+"deg)"):(h+="left:50%",p+="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 p=0;p=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,p=function UV(a,t,e){var o=Sd(a).queryOptionMap,u=o.keys()[0];if(u&&"series"!==u){var p,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=pt(g).tooltipConfig;if(m&&m.name===a.name)return p=g,!0}),p))return{componentMainType:u,componentIndex:d.componentIndex,el:p}}}(f,o,u);if(p){var g=p.el.getBoundingRect().clone();g.applyTransform(p.el.transform),this._tryShow({offsetX:g.x+g.width/2,offsetY:g.y+g.height/2,target:p.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(),pt(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,p=o.getComponent("axisPointer").coordSysAxesInfo;if(null!=d&&null!=h&&null!=p){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,p;this._lastDataByCoordSys=null,Cp(u,function(g){return null!=pt(g).dataIndex?(h=g,!0):null!=pt(g).tooltipConfig?(p=g,!0):void 0},!0),h?this._showSeriesItemTooltip(e,h,o):p?this._showComponentItemTooltip(e,p,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),p=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),p);var J=H4(Z.formatTooltip(W,!0,null)),ee=J.frag;if(ee){var re=rb([Z],f).get("valueFormatter");H.blocks.push(re?pe({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,p,S,u.get("useUTC"),h.get("textStyle"));k&&y.unshift(k);var x=y.join("richText"===p?"\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=pt(o),h=d.seriesIndex,p=f.getSeriesByIndex(h),g=d.dataModel||p,m=d.dataIndex,y=d.dataType,b=g.getData(y),C=this._renderMode,S=e.positionDefault,k=rb([b.getItemModel(m),g,p&&(p.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?pe({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=pt(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,p,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");p=p||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,p),this._updatePosition(e,p,d,h,y,u,g))},this);this._ticket=f,C=b(u,f,E)}else C=b;y.setContent(C,m,e,k,p),y.show(e,k),this._updatePosition(e,p,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,p){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=p&&p.getBoundingRect().clone();if(p&&S.applyTransform(p.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)&&p){var x=function nv(a,t,e,o){var u=e[0],f=e[1],d=Math.ceil(Math.SQRT2*o)+8,h=0,p=0,g=t.width,m=t.height;switch(a){case"inside":h=t.x+g/2-u/2,p=t.y+m/2-f/2;break;case"top":h=t.x+g/2-u/2,p=t.y-f-d;break;case"bottom":h=t.x+g/2-u/2,p=t.y+m+d;break;case"left":h=t.x-u-d,p=t.y+m/2-f/2;break;case"right":h=t.x+g+d,p=t.y+m/2-f/2}return[h,p]}(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(),p=h[0],g=h[1];return null!=f&&(a+p+f+2>o?a-=p+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-=GV(b)?y[0]/2:"right"===b?y[0]:0),C&&(f-=GV(C)?y[1]/2:"bottom"===C?y[1]:0),IE(e)&&(x=function zV(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,p){var g=h.dataByAxis||[],y=(e[p]||{}).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 GV(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(p){var g=p.hasOwnProperty("toolbox")?p.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 WV(a){if(a)for(var t in a)if(a.hasOwnProperty(t))return!0}function pS(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,p){if(vn.isValidType(p)){var g={type:p,visual:h};e&&e(g,f),d[p]=new vn(g),"opacity"===p&&((g=ot(g)).type="colorAlpha",d.__hidden.__alphaForOpacity=new vn(g))}})}),o}function YV(a,t,e){var o;q(e,function(u){t.hasOwnProperty(u)&&WV(t[u])&&(o=!0)}),o&&q(e,function(u){t.hasOwnProperty(u)&&WV(t[u])?a[u]=ot(t[u]):delete a[u]})}var ZV={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,p=t.height,g=u[0];return!!(ki(u,f,d)||ki(u,f+h,d)||ki(u,f,d+p)||ki(u,f+h,d+p)||zt.create(t).contain(g[0],g[1])||hC(f,d,f+h,d,u)||hC(f,d,f,d+p,u)||hC(f+h,d,f+h,d+p,u)||hC(f,d+p,f+h,d+p,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,p=[u[t[a]],u[t[a]]+u[e[a]]];return p[1]e[0][1]&&(e[0][1]=d[0]),d[1]e[1][1]&&(e[1][1]=d[1])}return e&&QV(e)}};function QV(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 f3(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){XV(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&&YV(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 JV(this.option,o)},this))},t.prototype.setBrushOption=function(e){this.brushOption=JV(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 JV(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(p){f=p.brushType,d=p.brushOption.brushMode||"single",h=h||!!p.areas.length}),this._brushType=f,this._brushMode=d,q(e.get("type",!0),function(p){e.setIconStatus(p,("keep"===p?"multiple"===d:"clear"===p?h:p===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"),p=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"))}),pt(m).eventData=pt(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"));p||("middle"===(p=e.get("left")||e.get("right"))&&(p="center"),"right"===p?E.x+=E.width:"center"===p&&(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:p,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),e5=oQ,t5=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(e5.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}(e5);Ir(t5,Zk.prototype);var n5=t5,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,r5=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),a5=r5,rs=Math.PI,o5=Sn(),s5=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"),p=this._axis=this._createAxis(f,e);e.formatTooltip=function(g){return Gt("nameValue",{noName:!0,value:p.scale.getLabel({value:g})})},q(["AxisLine","AxisTick","Control","CurrentPointer"],function(g){this["_render"+g](f,d,p,e)},this),this._renderAxisLabel(f,h,p,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),p={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"])||p[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],p=d.x,g=d.y+d.height;ps(h,h,[-p,-g]),el(h,h,-rs/2),ps(h,h,[p,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 p=new a5("value",d,e.axisExtent,f);return p.model=o,p},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:pe({lineCap:"round"},f.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});o.add(h);var p=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(p)}},t.prototype._renderAxisTick=function(e,o,u,f){var d=this,h=f.getData(),p=u.scale.getTicks();this._tickSymbols=[],q(p,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=l5(y,b,o,k);D.ensureState("emphasis").style=C.getItemStyle(),D.ensureState("progress").style=S.getItemStyle(),Yc(D);var x=pt(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 p=f.getData(),g=u.getViewLabels();this._tickLabels=[],q(g,function(m){var y=m.tickValue,b=p.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),o5(x).dataIndex=y,d._tickLabels.push(x)})}},t.prototype._renderControl=function(e,o,u,f){var d=e.controlSize,h=e.rotation,p=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=gp(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:p,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(),p=d.getItemModel(h).getModel("checkpointStyle"),g=this;this._currentPointer=l5(p,p,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 h5={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&&h5[t.type]&&f.baseAxis&&f.valueAxis){var d=Ct(u,f.baseAxis.dim),h=Ct(u,f.valueAxis.dim),p=h5[t.type](e,f.baseDataDim,f.valueDataDim,d,h);t.coord=p[0],t.value=p[1]}else{for(var g=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],m=0;m<2;m++)h5[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 p=Jf.getMarkerModelFromSeries(h,f.type);p&&f.renderSeries(h,p,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(p){p&&(o?fk(p):dk(p))})})},t.type="marker",t}(Ze),$E=iY;function p5(a,t,e){var o=t.coordinateSystem;a.each(function(u){var d,f=a.getItemModel(u),h=Ie(f.get("x"),e.getWidth()),p=Ie(f.get("y"),e.getHeight());if(isNaN(h)||isNaN(p)){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,p];isNaN(h)||(d[0]=h),isNaN(p)||(d[1]=p),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&&(p5(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,p=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 pe(pe({},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),p5(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_(p,"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){pt(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 p=void 0,g=void 0;if(null!=u.yAxis||null!=u.xAxis)p=e.getAxis(null!=u.yAxis?"y":"x"),g=Ui(u.yAxis,u.xAxis);else{var m=rY(u,f,e,t);p=m.valueAxis,g=XE(f,ax(f,m.valueDataDim),h)}var b="x"===p.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]),pe({},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 g5(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&&(g5(1,e,o,a)||g5(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),p=Ie(d.get("x"),u.getWidth()),g=Ie(d.get("y"),u.getHeight());if(isNaN(p)||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(p)||(h[0]=p),isNaN(g)||(h[1]=g)}else h=[p,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(),p=SS(d).from,g=SS(d).to;p.each(function(m){QE(p,m,!0,f,u),QE(g,m,!1,f,u)}),h.each(function(m){h.setItemLayout(m,[p.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,p=e.getData(),g=this.markerGroupMap,m=g.get(h)||g.set(h,new Fs);this.group.add(m.group);var y=function vY(a,t,e){var o;o=a?Me(a&&a.dimensions,function(g){return pe(pe({},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 p=v5(!!a,o);return u.initData(Me(h,function(g){return g[0]}),null,p),f.initData(Me(h,function(g){return g[1]}),null,p),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_(p,"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){pt(N).dataModel=o})}),this.markKeep(m),m.group.silent=o.get("silent")||e.get("silent")},t.type="markLine",t}($E),pY=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,p=d.coord;h[0]=Ui(h[0],-1/0),h[1]=Ui(h[1],-1/0),p[0]=Ui(p[0],1/0),p[1]=Ui(p[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 m5(a,t,e,o){var u=1-a;return kS(t[u])&&kS(e[u])}function _5(a,t){var e=t.coord[0],o=t.coord[1];return!!(ac(a,"cartesian2d")&&e&&o&&(m5(1,e,o)||m5(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),p=Ie(d.get(e[0]),u.getWidth()),g=Ie(d.get(e[1]),u.getHeight());if(isNaN(p)||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(p)||(h[0]=p),isNaN(g)||(h[1]=g)}else h=[p,g];return h}var pr=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],y5=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(p){var g=Me(pr,function(y){return ui(h,p,y,f,u)});h.setItemLayout(p,g),h.getItemGraphicEl(p).setShape("points",g)})}},this)},t.prototype.renderSeries=function(e,o,u,f){var d=e.coordinateSystem,h=e.id,p=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 b5(a,t,e){var o,u;if(a){var d=Me(a&&a.dimensions,function(g){var m=t.getData();return pe(pe({},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(_5,a)));var p=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,p),o.hasItemOption=!0,o}(d,e,o);o.setData(y),y.each(function(b){var C=Me(pr,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=C5,iv=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 p=e.get("selector",!0),g=e.get("selectorPosition",!0);p&&(!g||"auto"===g)&&(g="horizontal"===h?"end":"start"),this.renderInner(d,e,o,u,p,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,p,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=pg(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,p){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",iv(tP,k,null,f,b)).on("mouseover",iv(nP,x.name,null,f,b)).on("mouseout",iv(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=pe(pe({},W),{fill:No(J,"rgba")})),this._createItem(H,k,S,C,o,e,{},W,X,y).on("click",iv(tP,null,k,f,b)).on("mouseover",iv(nP,null,k,f,b)).on("mouseout",iv(rP,null,k,f,b)),m.set(k,!0)}},this)},this),d&&this._createSelector(d,o,f,h,p)},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,p,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 p=t.getModel("itemStyle").getItemStyle(),g=0===a.lastIndexOf("empty",0)?"fill":"stroke";p.decal=o.decal,"inherit"===p.fill&&(p.fill=o[u]),"inherit"===p.stroke&&(p.stroke=o[g]),"inherit"===p.opacity&&(p.opacity=("fill"===u?o:e).opacity),d(p,o);var m=t.getModel("lineStyle"),y=m.getLineStyle();if(d(y,e),"auto"===p.fill&&(p.fill=o.fill),"auto"===p.stroke&&(p.stroke=o.fill),"auto"===y.stroke&&(y.stroke=o.fill),!f){var b=t.get("inactiveBorderWidth");p.lineWidth="auto"===b?o.lineWidth>0&&p[g]?2:0:p.lineWidth,p.fill=t.get("inactiveColor"),p.stroke=t.get("inactiveBorderColor"),y.stroke=m.get("inactiveColor"),y.lineWidth=m.get("inactiveWidth")}return{itemStyle:p,lineStyle:y}}(m=T||m||"roundRect",f,p,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 p=this.getContentGroup(),g=this.getSelectorGroup();Hu(e.get("orient"),p,e.get("itemGap"),u.width,u.height);var m=p.getBoundingRect(),y=[-m.x,-m.y];if(g.markRedraw(),p.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],p.x=y[0],p.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 p.x=y[0],p.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 av(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[p]=Math.min(0,S[p]+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,p=null!=h?h+1:0,g=o.pageCount;f&&d&&f.setStyle("text",Ne(d)?d.replace("{current}",null==p?"":p+"").replace("{total}",null==g?"":g+""):d({current:p,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],p=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 p=d.__legendDataIndex;null==f&&null!=p&&(f=h),p===e&&(o=h)}),null!=o?o:f):0;var o,f},t.type="legend.scroll",t}(w5),MY=SY;function x5(a){Nt(M5),a.registerComponentModel(xS),a.registerComponentView(MY),function D5(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(vg.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(vg),xY=DY,TS=Sn();function T5(a,t,e){TS(a).coordSysRecordMap.each(function(o){var u=o.dataZoomInfoMap.get(t.uid);u&&(u.getRange=e)})}function A5(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(),T5(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?p.pixelStart+p.pixelLength-p.pixel:p.pixel-p.pixelStart)/p.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(Qp(0,d,[0,100],0,y.minSpan,y.maxSpan),this.range=d,f[0]!==d[0]||f[1]!==d[1])return d}},pan:E5(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:E5(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 E5(a){return function(t,e,o,u){var f=this.range,d=f.slice(),h=t.axisModels[0];if(h&&(Qp(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={},p=f.model.coordinateSystem.getRect();return t=t||[0,0],"x"===d.dim?(h.pixel=e[0]-t[0],h.pixelLength=p.width,h.pixelStart=p.x,h.signal=d.inverse?1:-1):(h.pixel=e[1]-t[1],h.pixelLength=p.height,h.pixelStart=p.y,h.signal=d.inverse?-1:1),h},polar:function(t,e,o,u,f){var d=o.axis,h={},p=f.model.coordinateSystem,g=p.getRadiusAxis().getExtent(),m=p.getAngleAxis().getExtent();return t=t?p.pointToCoord(t):[0,0],e=p.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(),p={};return t=t||[0,0],"horizontal"===d.orient?(p.pixel=e[0]-t[0],p.pixelLength=h.width,p.pixelStart=h.x,p.signal=d.inverse?1:-1):(p.pixel=e[1]-t[1],p.pixelLength=h.height,p.pixelStart=h.y,p.signal=d.inverse?-1:1),p}},OY=PY;function P5(a){pV(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 p=h.model.uid,g=u.get(p)||u.set(p,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 p=(h.getRange||{})[u],g=p&&p(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,p=f.dataZoomInfoMap;if(p){var g=p.keys()[0];null!=g&&(h=p.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}}}(p);d.enable(m.controlType,m.opt),d.setPointerChecker(f.containsPoint),sh(f,"dispatchAction",h.model.get("throttle",!0),"fixRate")}else A5(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(vg.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}(vg),RY=IY,ub=fn,cb="horizontal",I5="vertical",R5=["line","bar","candlestick","scatter"],L5={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()},p=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=rp(e.option);q(["right","top","width","height"],function(y){"ph"===g[y]&&(g[y]=p[y])});var m=oi(g,h);this._location={x:m.x,y:m.y},this._size=[m.width,m.height],this._orient===I5&&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,p=(this._dataShadowInfo||{}).otherAxisInverse;h.attr(u!==cb||d?u===cb&&d?{scaleY:p?1:-1,scaleX:-1}:u!==I5||d?{scaleY:p?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:p?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:p?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 p=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}}),p=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:p},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(R5,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,p=this.dataZoomModel,g=this.api,m=p.get("borderRadius")||0,y=p.get("brushSelect"),b=o.filler=new ub({silent:y,style:{fill:p.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:p.get("dataBackgroundColor")||p.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),q([0,1],function(E){var P=p.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=p.get("handleSize");this._handleHeight=Ie(H,this._size[1]),this._handleWidth=N.width/N.height*this._handleHeight,V.setStyle(p.getModel("handleStyle").getItemStyle()),V.style.strokeNoScale=!0,V.rectHover=!0,V.ensureState("emphasis").style=p.getModel(["emphasis","handleStyle"]).getItemStyle(),Yc(V);var j=p.get("handleColor");null!=j&&(V.style.fill=j),d.add(u[E]=V);var Z=p.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(p.get("moveHandleSize"),h[1]),k=o.moveHandle=new fn({style:p.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:h[1]-.5,height:S}}),D=.8*S,x=o.moveHandleIcon=Dr(p.get("moveHandleIcon"),-D/2,-D/2,D,D,"#fff",!0);x.silent=!0,x.y=h[1]+S/2-.5,k.ensureState("emphasis").style=p.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(),p=[0,100];Qp(o,f,d,u.get("zoomLock")?"all":e,null!=h.minSpan?wn(h.minSpan,p,d,!0):null,null!=h.maxSpan?wn(h.maxSpan,p,d,!0):null);var g=this._range,m=this._range=Zi([wn(f[0],d,p,!0),wn(f[1],d,p,!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 p=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,p=this._displayables.sliderGroup,g=p.transformCoordToLocal(e,o),m=p.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?L5: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),pV(a)}var vQ={get:function(t,e,o){var u=ot((pQ[t]||{})[e]);return o&&Ce(u)?u[u.length-1]:u}},pQ={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=vQ,F5=vn.mapVisual,uo=vn.eachVisual,N5=Ce,B5=q,V5=Zi,H5=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&&YV(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=pS(this.option.controller,o,e),this.targetVisuals=pS(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,p=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(p)?p.replace("{value}",g?m[0]:m).replace("{value2}",g?m[1]:m):et(p)?g?p(e[0],e[1]):p(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=V5([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 p(y){N5(o.color)&&!y.inRange&&(y.inRange={color:o.color.slice().reverse()}),y.inRange=y.inRange||{color:e.get("gradientColor")}}p.call(this,f),p.call(this,d),function g(y,b,C){var S=y[b],k=y[C];S&&!k&&(k=y[C]={},B5(S,function(D,x){if(vn.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";B5(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=F5(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=F5(P,function(N){return H5(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,z5=[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]=z5[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=z5[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,p){e[0]<=h&&h<=e[1]&&f.push(p)},this),o.push({seriesId:u.id,dataIndex:f})},this),o},t.prototype.getVisualMeta=function(e){var o=G5(0,0,this.getExtent()),u=G5(0,0,this.option.range.slice()),f=[];function d(C,S){f.push({value:C,color:e(C,S)})}for(var h=0,p=0,g=u.length,m=o.length;pe[1])break;f.push({color:this.getControllerVisual(p,"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,p=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,p[1]],g,!0),C=this.getControllerVisual(b,"symbolSize");y.scaleX=y.scaleY=C/p[0],y.x=p[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(),p=d.itemSize,g=[0,p[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=p[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],"< ",p):y[1]===1/0?this._showIndicator(m,y[0],"> ",p):this._showIndicator(m,m,"\u2248 ",p));var b=this._hoverLinkDataIndices,C=[];(o||pP(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,p){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=vn.prepareVisualTypes(u),d={color:d_(a.getData(),"color")},h=0,p=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 $5(a){a.registerComponentModel(U5),a.registerComponentView(gQ),K5(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(p){return p=ot(p),"inRange"!==h&&(p.visual=null),p}))})},t.prototype.completeVisualOption=function(){var e=this.option,o={},u=vn.listVisualTypes(),f=this.isCategory();function d(h,p,g){return h&&h[p]&&h[p].hasOwnProperty(g)}q(e.pieces,function(h){q(u,function(p){h.hasOwnProperty(p)&&(o[p]=1)})}),q(o,function(h,p){var g=!1;q(this.stateList,function(m){g=g||d(e,m,p)||d(e.target,m,p)},this),!g&&q(this.stateList,function(m){(e[m]||(e[m]={}))[p]=AS.get(p,"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(p,g){var m=this.getSelectedMapKey(p);d.hasOwnProperty(m)||(d[m]=!0)},this),"single"===u.selectedMode){var h=!1;q(f,function(p,g){var m=this.getSelectedMapKey(p);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=vn.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(p,g){vn.findPieceIndex(p,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 p=h[0].interval[0];p!==-1/0&&h.unshift({interval:[-1/0,p]}),(p=h[h.length-1].interval[1])!==1/0&&h.push({interval:[p,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,p=u[0];h","\u2265"][u[0]]])},this)}};function Q5(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(),p=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,p),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"===p?-u:g[0]+u,y:g[1]/2,text:S.text,verticalAlign:"middle",align:p,font:d,fill:h,opacity:"outOfRange"===x?.5:1}}))}e.add(k)},this),y&&this._renderEndsText(e,y[1],g,b,p),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 p=u.visualMapModel;p.option.hoverLink&&u.api.dispatchAction({type:h,batch:fb(p.findTargetDataIndices(o),p)})}},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,p){return{piece:h,indexInModelPieceList:p}}),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,p){f[p]=p===d})):f[d]=!f[d],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:f})},t.type="visualMap.piecewise",t}(j5),KY=XY;function J5(a){a.registerComponentModel(ZY),a.registerComponentView(KY),K5(a)}var _Q={label:{enabled:!0},decal:{show:!1}},eH=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={}),eH(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=eH(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?pe(pe({},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:p(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=[],ve=0;ve":"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,p,g){if(Sg(a,e)&&Sg(t,o)&&Sg(u,d)&&Sg(f,h))p.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)p.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],p,g),yP(Z[4],W[4],Z[5],W[5],Z[6],W[6],Z[7],W[7],p,g)}}}}function rH(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 p=[],g=0;g0)for(g=0;gMath.abs(g),y=rH([p,g],m?0:1,t),b=(m?h:g)/y.length,C=0;C1?null:new Et(k*p+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 ov(a,t){var e=a[a.length-1];e&&e[0]===t[0]&&e[1]===t[1]||a.push(t)}function sv(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,p=u.y,g=new Et,m=new Et;return f>d?(g.x=m.x=h+f/2,g.y=p,m.y=p+d):(g.y=m.y=p+d/2,g.x=h,m.x=h+f),function pb(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),p=a,a=t,t=p)}return h}function wP(a){var t=1/0,e=1/0,o=-1/0,u=-1/0,f=Me(a,function(h){var p=h.getBoundingRect(),g=h.getComputedTransform(),m=p.x+p.width/2+(g?g[4]:0),y=p.y+p.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,p){return{cp:h,z:gq(h[0],h[1],t,e,o,u),path:a[p]}}).sort(function(h,p){return h.z-p.z}).map(function(h){return h.path})}function SP(a){return function sH(a,t){var u,e=[],o=a.shape;switch(a.type){case"rect":(function aH(a,t,e){for(var o=a.width,u=a.height,f=o>u,d=rH([o,u],f?0:1,t),h=f?"width":"height",p=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 p=e[h].many;if(p.length<=1){if(!h)return e;h=0}f=p.length;var g=Math.ceil(f/2);e[u].many=p.slice(g,f),e[h].many=p.slice(0,g),h++}return e}var hH={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"),p=Object.assign({setToFinal:!0},d);fH(a)&&(g=a,m=t),fH(t)&&(g=t,m=a);for(var b=g?g===a:a.length>t.length,C=g?dH(m,g):dH(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 uv(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:uv(t.oldData[h]),dim:d.dimension})}),q(Xn(a.to),function(d){var h=_H(e.updatedSeries,d);if(h>=0){var p=e.updatedSeries[h].getData();f.push({data:p,divide:uv(p),dim:d.dimension})}}),u.length>0&&f.length>0&&pH(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 p=a.oldData[h],g=gH(d),m=mH(g);o.set(m,p),Ce(g)&&q(g,function(y){u.set(y,{data:p,key:m})})}),q(t.updatedSeries,function(d){if(d.isUniversalTransitionEnabled()&&d.isAnimationEnabled()){var h=d.getData(),p=gH(d),g=mH(p),m=o.get(g);if(m)e.set(g,{oldSeries:[{divide:uv(m),data:m}],newSeries:[{divide:uv(h),data:h}]});else if(Ce(p)){var y=[];q(p,function(S){var k=o.get(S);k&&y.push({divide:uv(k),data:k})}),y.length&&e.set(g,{oldSeries:y,newSeries:[{data:h,divide:uv(h)}]})}else{var b=u.get(p);if(b){var C=e.get(b.key);C||(C={oldSeries:[{data:b.data,divide:uv(b.data)}],newSeries:[]},e.set(b.key,C)),C.newSeries.push({data:h,divide:uv(h)})}}}}),e}(u,o);q(d.keys(),function(b){var C=d.get(b);pH(C.oldSeries,C.newSeries,e)})}q(o.updatedSeries,function(b){b[qm]&&(b[qm]=!1)})}for(var h=t.getSeries(),p=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,v=!1;return{s:function(){r=r.call(i)},n:function(){var M=r.next();return c=M.done,M},e:function(M){v=!0,_=M},f:function(){try{!c&&null!=r.return&&r.return()}finally{if(v)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 v,_,n=[],l=!0,c=!1;try{for(r=r.call(i);!(l=(v=r.next()).done)&&(n.push(v.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,v){var _=[null];_.push.apply(_,c);var M=new(Function.bind.apply(l,_));return v&&_t(M,v.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 v=this,M=this.observers;return this.hasError||this.isStopped?At:(this.currentObservers=null,M.push(c),new Te(function(){v.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,v;null===(v=null===(c=this.destination)||void 0===c?void 0:c.next)||void 0===v||v.call(c,l)}},{key:"error",value:function(l){var c,v;null===(v=null===(c=this.destination)||void 0===c?void 0:c.error)||void 0===v||v.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,v;return null!==(v=null===(c=this.source)||void 0===c?void 0:c.subscribe(l))&&void 0!==v?v: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 pe(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,v,_,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=v?function(Y){try{v(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(pe(n,function(c){n.next(i.call(s,c,l++))}))})}var Ct=Ht(9473),vv=Ht.n(Ct);function Zt(i,s,r,n){return new(r||(r=Promise))(function(c,v){function _(A){try{M(n.next(A))}catch(O){v(O)}}function w(A){try{M(n.throw(A))}catch(O){v(O)}}function M(A){A.done?c(A.value):function l(c){return c instanceof r?c:new r(function(v){v(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={},v("next"),v("throw"),v("return"),l[Symbol.asyncIterator]=function(){return this},l;function v(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 pv(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(v){return new Promise(function(_,w){!function l(c,v,_,w){Promise.resolve(w).then(function(M){c({value:M,done:_})},v)}(_,w,(v=i[c](v)).done,v.value)})}}}var gv=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,vv().mark(function s(){var r,n,l;return vv().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(gv(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,v,_){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,v){return s(n,c,l,v)})(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 GP(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(pe(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 UP(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(gv(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 UP(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 v=n.next();l=v.value,c=v.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 UP($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 YP(i,Wa)||YP(i,Pb)}function YP(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 ZP(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,KP="undefined"!=typeof window&&window,az="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,$P="undefined"!=typeof global&&global,cr=iz||$P||KP||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,v=i.pipes;return n.id+=Fb++,n.inputs=QP(i.inputs,r),n.outputs=QP(i.outputs),c&&c.forEach(function(_){return _(n)}),n.directiveDefs=l?function(){return("function"==typeof l?l():l).map(id)}:null,n.pipeDefs=v?function(){return("function"==typeof v?v():v).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 QP(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 wv(i){return 0!=(512&i[2])}function fs(i,s){return i.hasOwnProperty(Xs)?i[Xs]:null}var rO=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=aO(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=aO(i)||function fz(i,s){return i[iO]=s}(i,{previous:rd,current:null}),c=l.current||(l.current={}),v=l.previous,_=this.declaredInputs[r],w=v[_];c[_]=new rO(w&&w.currentValue,s,v===rd),i[n]=s}xn.ngInherit=!0;var iO="__ngSimpleChanges__";function aO(i){return i[iO]||null}var vM=void 0;function Yb(){return void 0!==vM?vM:"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 Mv(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 vs(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 xv(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 pO(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=Tv();return c.currentTNode=s,c.lView=i,!0}function ka(i){var s=Tv(),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 Tv(){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 ps=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){v=c-1;break}}}for(;c>16}(i),n=s;r>0;)n=n[15],r--;return n}var sm=!0;function Av(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 v=om(l),_=Ou(l,s),w=_[1].data,M=0;M<8;M++)s[c+M]=_[v+M]|w[v+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],v=c.type;if(null===(n=2===v?c.declTNode:1===v?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(!pO(s,i,n))return n&It.Host?AM(l,r,n):EM(s,r,n,l);try{var v=c(n);if(null!=v||n&It.Optional)return v;qs(r)}finally{ps()}}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])&&yO(n,!1)?(_=s[1],w=om(M),s=Ou(M,s)):w=-1);-1!==w;){var O=s[1];if(_O(c,w,O.data)){var F=kz(w,s,r,_,n,A);if(F!==lm)return F}-1!==(M=s[w+8])&&yO(n,s[1].data[w+8]===A)&&_O(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 Ev(di(),Oe())}function kz(i,s,r,n,l,c){var v=s[1],_=v.data[i+8],A=t0(_,v,r,null==n?Hb(_)&&sm:n!=v&&0!=(3&_.type),l&It.Host&&c===_);return null!==A?um(s,v,A,_):lm}function t0(i,s,r,n,l){for(var c=i.providerIndexes,v=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=v[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 v=l;v.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 _=Av(v.canSeeViewProviders);v.resolving=!0;var w=v.injectImpl?Mu(v.injectImpl):null;pO(i,n,It.Default);try{l=i[r]=v.factory(void 0,c,i,n),s.firstCreatePass&&r>=n.directiveStart&&function Cz(i,s,r){var n=s.type.prototype,c=n.ngOnInit,v=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),v&&((r.preOrderHooks||(r.preOrderHooks=[])).push(i,v),(r.preOrderCheckHooks||(r.preOrderCheckHooks=[])).push(i,v))}(r,c[r],s)}finally{null!==w&&Mu(w),Av(_),v.resolving=!1,ps()}}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 _O(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 Rv(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=Lv(i,s);if(r>=0)return i[1|r]}function Lv(i,s){return function kO(i,s,r){for(var n=0,l=i.length>>r;l!==n;){var c=n+(l-n>>1),v=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?ZP(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 v in s)if(s.hasOwnProperty(v)){var _=s[v];c.push(v+":"+("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 Nv,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===Nv&&(Nv=null,cr.trustedTypes))try{Nv=cr.trustedTypes.createPolicy("angular",{createHTML:function(s){return s},createScript:function(s){return s},createScriptURL:function(s){return s}})}catch(i){}return Nv}())||void 0===s?void 0:s.createHTML(i))||i}function FO(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),BO=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=VO(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 VO(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(v0(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 v0(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 p0(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?FO(s.sanitize(br.HTML,i)||""):sl(i,"HTML")?FO(Ta(i)):p0(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 v=c[19];null!==v&&v.detachView(c[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function qv(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 nI(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!==vk(Y,M,0)||2&n&&M!==F){if(fl(n))return!1;v=!0}}}}else{if(!v&&!fl(n)&&!fl(w))return!1;if(v&&fl(w))continue;v=!1,n=w|1&n}}return fl(n)||v}function fl(i){return 0==(1&i)}function sI(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+="."+v:4&n&&(l+=" "+v);else""!==l&&!fl(v)&&(s+=gk(c,l),l=""),n=v,c=c||!fl(n);r++}return""!==l&&(s+=gk(c,l)),s}var Kt={};function G(i){uI(zn(),Oe(),Da()+i,!1)}function uI(i,s,r,n){if(!n)if(3==(3&s[2])){var c=i.preOrderCheckHooks;null!==c&&rm(s,c,r)}else{var v=i.preOrderHooks;null!==v&&gs(s,v,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&&uI(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,v)}}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&&tp(r)}}function tp(i){for(var s=pt(i);null!==s;s=wm(s))for(var r=10;r0&&tp(n)}var v=i[1].components;if(null!==v)for(var _=0;_0&&tp(w)}}function AI(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]:vm;if(n===vm){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={},RI={},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 v=[];r&&al(r,function(w){return l.processProvider(w,s,r)}),al([s],function(w){return l.processInjectorType(w,[],v)}),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]:vm,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:It.Default;this.assertNotDestroyed();var c=ii(this),v=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===vm?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(v),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 v=Eb(r),_=null==v&&r.ngModule||void 0,w=void 0===_?r:_,O=-1!==l.indexOf(w);if(void 0!==_&&(v=Eb(_)),null==v)return!1;if(null!=v.imports&&!O){var F;l.push(w);try{al(v.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 Rv(s,"?"),new st(204,!1);var n=function aM(i){var s=i&&(i[Wa]||i[Pb]);if(s){var r=function qP(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 LI(i,s,r){var n=void 0;if(ip(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&&pm in i}function ip(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 v=null!==(c=n.name)&&void 0!==c?c:"";return Ji({name:v},n.parent,n.providers,v)}}]),s}();return i.THROW_IF_NOT_FOUND=vm,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 YI(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 v=i;v.inputs=Qd(i.inputs),v.declaredInputs=Qd(i.declaredInputs),v.outputs=Qd(i.outputs);var _=l.hostBindings;_&&Pa(i,_);var w=l.viewQuery,M=l.contentQueries;if(w&&qI(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 qI(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 v=l?"class":"style";sn(i,r,s.inputs[v],v,n)}function I(i,s,r,n){var l=Oe(),c=zn(),v=20+i,_=l[11],w=l[v]=Uv(_,s,function wM(){return nn.lFrame.currentNamespace}()),M=c.firstCreatePass?function Qk(i,s,r,n,l,c,v){var _=s.consts,M=Kv(s,i,2,l,hs(_,c));return H0(s,r,M,hs(_,v)),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}(v,c,l,0,s,r,n):c.data[v];vs(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&&Qv(l,M),I}function B(){var i=di();yM()?em():vs(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,v=l.firstCreatePass?function hR(i,s,r,n,l){var c=s.consts,v=hs(c,n),_=Kv(s,i,8,"ng-container",v);return null!==v&&zu(_,v,!0),H0(s,r,_,hs(c,l)),null!==s.queries&&s.queries.elementStart(s,_),_}(c,l,n,s,r):l.data[c];vs(v,!0);var _=n[c]=n[11].createComment("");return k0(l,n,_,v),Ea(_,n),Nc(v)&&(Ud(l,n,v),wk(l,v,n)),null!=r&&Qv(n,v),Rn}function On(){var i=di(),s=zn();return yM()?em():vs(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(),v=di();return Ym(c,l,l[11],v,i,s,!!r,n),ne}function cp(i,s){var r=di(),n=Oe(),l=zn();return Ym(l,n,Xd(xv(l.data),r,n),r,i,s,!1),cp}function Ym(i,s,r,n,l,c,v,_){var w=Nc(n),A=i.firstCreatePass&&PI(i),O=s[8],F=Ik(s),Y=!0;if(3&n.type||_){var $=ds(n,s),oe=_?_($):$,le=F.length,fe=_?function(dv){return _(ri(dv[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 v&&(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,v),F.push(c),A&&A.push(l,fe,le,v)}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=Kv(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(),v=eh(c,s,r,n);return v!==Kt&&Xa(zn(),Wr(),c,i,v,c[11],l,!1),$0}function iD(i,s,r,n,l){for(var c=i[r+1],v=null===s,_=n?dl(c):Ut(c),w=!1;0!==_&&(!1===w||v);){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)&&Lv(i,s)>=0}var Si={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function CR(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),fp(i,s,r))}function fp(i,s,r){for(;s=0;r=qm(s,r))yo(i,CR(s),!0)}function _l(i,s,r,n){var l=Oe(),c=zn(),v=Qs(2);c.firstUpdatePass&&Zm(c,i,v,n),s!==Kt&&ea(l,v,s)&&uD(c,c.data[Da()],l,l[11],i,l[v+1]=function kR(i,s){return null==i||("string"==typeof s?i+=s:"object"==typeof i&&(i=Zn(Ta(i)))),i}(s,r),n,v)}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()],v=nC(i,r);DR(c,n)&&null===s&&!v&&(s=!1),s=function rC(i,s,r,n){var l=xv(i),c=n?s.residualClasses:s.residualStyles;if(null===l)0===(n?s.classBindings:s.styleBindings)&&(r=hp(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 SR(i,s,r,n){i[dl(r?s.classBindings:s.styleBindings)]=n}(i,s,n,M=hp(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 Zv(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 bR(i,s,r,n,l){var c=l?i.residualClasses:i.residualStyles;null!=c&&"string"==typeof s&&Lv(c,s)>=0&&(r[n+1]=ru(r[n+1]))}(s,A,i,n,c),v=Tm(_,w),c?s.classBindings=v:s.styleBindings=v}(l,c,s,r,v,n)}}function iC(i,s,r,n,l){var c=null,v=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,v))return _;var $=i[l+1];l=v?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 DR(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?Kv(n,l,1,s,null):n.data[l],v=r[l]=Sm(r[11],s);k0(n,r,v,c),vs(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(),v=op(c,i,s,r,n,l);return v!==Kt&&au(c,Da(),v),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 v=Oe();if(r!==Kt&&ea(v,c,r)){var _=l.data[Da()];if(DR(_,n)&&!nC(l,c)){var M=n?_.classesWithoutHost:_.stylesWithoutHost;null!==M&&(r=Wl(M,r||"")),$k(l,_,v,r,n)}else!function iG(i,s,r,n,l,c,v,_){l===Kt&&(l=mr);for(var w=0,M=0,A=0>20;if(ip(i)||!i.multi){var $=new nl(M,l,z),oe=bC(w,s,l?O:O+Y,F);-1===oe?(e0(md(A,_),v,w),yp(v,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,_),v,w);var De=function n2(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),yp(v,i,s.length,0),s.push(w),A.directiveStart++,A.directiveEnd++,l&&(A.providerIndexes+=1048576),r.push(De),_.push(De)}else yp(v,i,le>-1?le:fe,xD(r[l?fe:le],M,!l&&n));!l&&n&&we&&r[fe].componentProviders++}}}function yp(i,s,r,n){var l=ip(s),c=function FI(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)}),bp=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 bp,i}();function Cp(){return wp(di(),Oe())}function wp(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__=Cp,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 v=10;v-1&&(Yv(r,l),cm(n,l))}this._attachedToViewContainer=!1}qv(this._lView[1],this._lView)}},{key:"onDestroy",value:function(r){bI(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 OI(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 jv(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}(),v_=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 r2(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 va(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 r2(this.componentDef.inputs)}},{key:"outputs",get:function(){return r2(this.componentDef.outputs)}},{key:"create",value:function(l,c,v,_){var ae,we,w=(_=_||this.ngModule)?function ED(i,s){return{get:function(n,l,c){var v=i.get(n,AD,c);return v!==AD||l===AD?v: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=v?function yI(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,v,this.componentDef.encapsulation):Uv(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 WI(i,s){return{components:[],scheduler:i||$O,clean:rp,playerHandler:s||null,flags:0}}(),le=Jv(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 UI(i,s,r,n,l,c){var v=r[1];r[20]=i;var w=Kv(v,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 v.firstCreatePass&&(e0(md(w,r),v,s.type),z0(v,w),xI(w,r.length,1)),np(r,O),r[20]=O}(Y,this.componentDef,fe,M,O);if(Y)if(v)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,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:It.Default;return l===kr||l===qu||l===Qi?this:this._r3Injector.get(l,c,v)}},{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 a2(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 l2(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 h2(Oe(),ha(),i,s,r,n)}function DC(i,s,r,n,l){return to(Oe(),ha(),i,s,r,n,l)}function Sp(i,s){var r=i[s];return r===Kt?void 0:r}function h2(i,s,r,n,l,c){var v=s+r;return ea(i,v,l)?ou(i,v+1,c?n.call(c,l):n(l)):Sp(i,v+1)}function to(i,s,r,n,l,c,v){var _=s+r;return gl(i,_,l,c)?ou(i,_+2,v?n.call(v,l,c):n(l,c)):Sp(i,_+2)}function pf(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)),v=Mu(z);try{var _=Av(!1),w=c();return Av(_),function QI(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(v)}}function fh(i,s,r){var n=i+20,l=Oe(),c=Tu(l,n);return y_(l,n)?h2(l,ha(),s,c.transform,r,c):c.transform(r)}function TC(i,s,r,n){var l=i+20,c=Oe(),v=Tu(c,l);return y_(c,l)?to(c,ha(),s,v.transform,r,n,v):v.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,v){var _,w,M,A=l,O=c||function(){return null},F=v;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=_2(this._lContainer);return null!==c&&c[l]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(l,c,v){var _=l.createEmbeddedView(c||{});return this.insert(_,v),_}},{key:"createComponent",value:function(l,c,v,_,w){var A,M=l&&!function bd(i){return"function"==typeof i}(l);if(M)A=c;else{var O=c||{};A=O.index,v=O.injector,_=O.projectableNodes,w=O.ngModuleRef}var F=M?l:new PD(Li(l)),Y=v||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 v=l._lView,_=v[1];if(function lO(i){return us(i[3])}(v)){var w=this.indexOf(l);if(-1!==w)this.detach(w);else{var M=v[3],A=new m2(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 _2(i){return i[8]}function FD(i){return i[8]||(i[8]=[])}function y2(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 v=ds(i,s);Wc(c,M0(c,v),l,function rI(i,s){return ni(i)?i.nextSibling(s):s.nextSibling}(c,v),!1)}s[i.index]=r=TI(n,s,l,i),np(s,r)}return new m2(r,i,s)}var w2=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=[],v=0;v2&&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(v[_/2]);else{for(var M=c[_+1],A=s[-w],O=10;O0&&(_=setTimeout(function(){v._callbacks=v._callbacks.filter(function(w){return w.timeoutId!==_}),n(v._didWork,v.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,Tp.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 Tp.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}(),Tp=new I_,Ku=null,z2=new Ae("AllowMultipleToken"),ga=new Ae("PlatformOnDestroy");function b8(i,s,r){var n=new kC(r);return Promise.resolve(n)}var G2=L(function i(s,r){R(this,i),this.name=s,this.token=r});function w8(i){if(Ku&&!Ku.get(z2,!1))throw new st(400,"");Ku=i;var r=i.get(j2),n=i.get(Nt,null);return n&&n.forEach(function(l){return l()}),r}function U2(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]:[],v=HC();if(!v||v.injector.get(z2,!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(j2))&&void 0!==i?i:null}var j2=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 H2:("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(Vv,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){vo(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]:[],v=W2({},c);return b8(0,0,n).then(function(_){return l.bootstrapModuleFactory(_,v)})}},{key:"_moduleDoBootstrap",value:function(n){var l=n.injector.get(F_);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(v){return l.bootstrap(v)});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 W2(i,s){return Array.isArray(s)?s.reduce(W2,i):Object.assign(Object.assign({},i),s)}var F_=function(){var i=function(){function s(r,n,l,c){var v=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(){v._zone.run(function(){v.tick()})}});var _=new Jn(function(M){v._stable=v._zone.isStable&&!v._zone.hasPendingMacrotasks&&!v._zone.hasPendingMicrotasks,v._zone.runOutsideAngular(function(){M.next(v._stable),M.complete()})}),w=new Jn(function(M){var A;v._zone.runOutsideAngular(function(){A=v._zone.onStable.subscribe(function(){Pt.assertNotInAngularZone(),BC(function(){!v._stable&&!v._zone.hasPendingMacrotasks&&!v._zone.hasPendingMicrotasks&&(v._stable=!0,M.next(!0))})})});var O=v._zone.onUnstable.subscribe(function(){Pt.assertInAngularZone(),v._stable&&(v._stable=!1,v._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,v=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,v),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(xp,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 v,c=qt(this._views);try{for(c.s();!(v=c.n()).done;)v.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(Vv),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 Z2(r)}}]),i}(),O8=function(s,r){return r},Z2=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,v=null;n||l;){var _=!l||n&&n.currentIndex<$2(l,c,v)?n:l,w=$2(_,c,v),M=_.currentIndex;if(_===l)c--,l=l._nextRemoved;else if(n=n._next,null==_.previousIndex)c++;else{v||(v=[]);var A=w-c,O=M-c;if(A!=O){for(var F=0;F0&&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 Op(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 iL(ge($o),s&&s.origin||"")}()},providedIn:"root"}),i}(),wf=new Ae("appBaseHref"),iL=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var v;if(R(this,n),(v=r.call(this))._platformLocation=l,v._removeListenerFns=[],null==c&&(c=v._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 v._baseHref=c,v}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],v=this._platformLocation.pathname+du(this._platformLocation.search),_=this._platformLocation.hash;return _&&c?"".concat(v).concat(_):v}},{key:"pushState",value:function(c,v,_,w){var M=this.prepareExternalUrl(_+du(w));this._platformLocation.pushState(c,v,M)}},{key:"replaceState",value:function(c,v,_,w){var M=this.prepareExternalUrl(_+du(w));this._platformLocation.replaceState(c,v,M)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var v,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(v=this._platformLocation).historyGo)||void 0===_||_.call(v,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 v;return R(this,n),(v=r.call(this))._platformLocation=l,v._baseHref="",v._removeListenerFns=[],null!=c&&(v._baseHref=c),v}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 v=this._platformLocation.hash;return null==v&&(v="#"),v.length>0?v.substring(1):v}},{key:"prepareExternalUrl",value:function(c){var v=_x(this._baseHref,c);return v.length>0?"#"+v:v}},{key:"pushState",value:function(c,v,_,w){var M=this.prepareExternalUrl(_+du(w));0==M.length&&(M=this._platformLocation.pathname),this._platformLocation.pushState(c,v,M)}},{key:"replaceState",value:function(c,v,_,w){var M=this.prepareExternalUrl(_+du(w));0==M.length&&(M=this._platformLocation.pathname),this._platformLocation.replaceState(c,v,M)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var v,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(v=this._platformLocation).historyGo)||void 0===_||_.call(v,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(aL(c)),this._platformStrategy.onPopState(function(v){l._subject.emit({url:l.path(!0),pop:!0,state:v.state,type:v.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,aL(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 aL(i){return i.replace(/\/index.html$/,"")}function bL(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(v){l?c._renderer.addClass(c._ngEl.nativeElement,v):c._renderer.removeClass(c._ngEl.nativeElement,v)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(ec),z(Pp),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),CL(Y,A)}});for(var v=0,_=c.length;v<_;v++){var M=c.get(v).context;M.index=v,M.count=_,M.ngForOf=this._ngForOf}n.forEachIdentityChange(function(A){CL(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 CL(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 SL,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}(),SL=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]:AL;if(!n||!(n instanceof Map)&&"object"!=typeof n)return null;this.differ||(this.differ=this.differs.find(n).create());var v=this.differ.diff(n),_=c!==this.compareFn;return v&&(this.keyValues=[],v.forEachItem(function(w){l.keyValues.push(gU(w.key,w.currentValue))})),(v||_)&&(this.keyValues.sort(c),this.compareFn=c),this.keyValues}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Pp,16))},i.\u0275pipe=qi({name:"keyvalue",type:i,pure:!1}),i}();function AL(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],v=r.findTestabilityInTree(l,c);if(null==v)throw new Error("Could not find testability for element.");return v},cr.getAllAngularTestabilities=function(){return r.getAllTestabilities()},cr.getAllAngularRootElements=function(){return r.getAllRootElements()},cr.frameworkStabilizers||(cr.frameworkStabilizers=[]),cr.frameworkStabilizers.push(function(c){var v=cr.getAllAngularTestabilities(),_=v.length,w=!1,M=function(O){w=w||O,0==--_&&c(w)};v.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){Tp=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,v=0;v-1&&(v.splice(F,1),M+=O+".")}),M+=w,0!=v.length||0===w.length)return null;var A={};return A.domEventName=_,A.fullKey=M,A}},{key:"getEventFullKey",value:function(c){var v="",_=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"),GL.forEach(function(w){w!=_&&(0,UL[w])(c)&&(v+=w+".")}),v+=_}},{key:"eventCallback",value:function(c,v,_){return function(w){n.getEventFullKey(w)===c&&_.runGuarded(function(){return v(w)})}}},{key:"_normalizeKey",value:function(c){return"esc"===c?"escape":c}}]),n}(NL);return i.\u0275fac=function(r){return new(r||i)(ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),YL=[{provide:yf,useValue:uw},{provide:Nt,useValue:function K_(){yh.makeCurrent(),xX.init()},multi:!0},{provide:Jt,useFactory:function AU(){return function Wb(i){vM=i}(document),document},deps:[]}],EU=U2(nL,"browser",YL),PU=[{provide:Cs,useValue:"root"},{provide:Vv,useFactory:function WL(){return new Vv},deps:[]},{provide:Hx,useClass:zL,multi:!0,deps:[Jt,Pt,yf]},{provide:Hx,useClass:jL,multi:!0,deps:[Jt]},{provide:Z_,useClass:Z_,deps:[q_,bh,Dp]},{provide:h_,useExisting:Z_},{provide:BL,useExisting:bh},{provide:bh,useClass:bh,deps:[Jt]},{provide:xp,useClass:xp,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:Dp,useValue:n.appId},{provide:SU,useExisting:Dp},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,v){if(null==v)return null;switch(c){case br.NONE:return v;case br.HTML:return sl(v,"HTML")?Ta(v):p0(this._doc,String(v)).toString();case br.STYLE:return sl(v,"Style")?Ta(v):v;case br.SCRIPT:if(sl(v,"Script"))return Ta(v);throw new Error("unsafe value used in a script context");case br.URL:return VO(v),sl(v,"URL")?Ta(v):Hc(String(v));case br.RESOURCE_URL:if(sl(v,"ResourceURL"))return Ta(v);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 BO(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),v=c.toLowerCase(),_=n.slice(l+1).trim();r.maybeSetNormalizedName(c,v),r.headers.has(v)?r.headers.get(v).push(_):r.headers.set(v,[_])}})}: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 v=r.value;if(v){var _=this.headers.get(n);if(!_)return;0===(_=_.filter(function(w){return-1===v.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}(),pw=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 pw,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(v){n.push({param:l,value:v,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)||[],v=c.indexOf(mw(n.value));-1!==v&&c.splice(v,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 eF(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 JL(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 Bp),this.context||(this.context=new YU),this.params){var v=this.params.toString();if(0===v.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,v=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:v,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 Bp,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),nF=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 rF=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,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof Kx)_=n;else{var w=void 0;w=v.headers instanceof Bp?v.headers:new Bp(v.headers);var M=void 0;v.params&&(M=v.params instanceof Df?v.params:new Df({fromObject:v.params})),_=new Kx(n,l,void 0!==v.body?v.body:null,{headers:w,context:v.context,params:M,reportProgress:v.reportProgress,responseType:v.responseType||"json",withCredentials:v.withCredentials})}var A=dt(_).pipe(oc(function(F){return c.handler.handle(F)}));if(n instanceof Kx||"events"===v.observe)return A;var O=A.pipe(Ur(function(F){return F instanceof nF}));switch(v.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(v.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($L))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),iF=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"),aF=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}(),oF=/^\)\]\}',?\n/,lF=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 v=l.xhrFactory.build();if(v.open(n.method,n.urlWithParams),n.withCredentials&&(v.withCredentials=!0),n.headers.forEach(function(fe,ae){return v.setRequestHeader(fe,ae.join(","))}),n.headers.has("Accept")||v.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){var _=n.detectContentTypeHeader();null!==_&&v.setRequestHeader("Content-Type",_)}if(n.responseType){var w=n.responseType.toLowerCase();v.responseType="json"!==w?w:"text"}var M=n.serializeBody(),A=null,O=function(){if(null!==A)return A;var ae=v.statusText||"OK",we=new Bp(v.getAllResponseHeaders()),De=function sF(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}(v)||n.url;return A=new yw({headers:we,status:v.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===v.response?v.responseText:v.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(oF,"");try{bt=""!==bt?JSON.parse(bt):null}catch(ci){bt=bi,Vn&&(Vn=!1,bt={error:ci,text:bt})}}Vn?(c.next(new nF({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:v.status||0,statusText:v.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&&!!v.responseText&&(we.partialText=v.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 v.addEventListener("load",F),v.addEventListener("error",Y),v.addEventListener("timeout",Y),v.addEventListener("abort",Y),n.reportProgress&&(v.addEventListener("progress",oe),null!==M&&v.upload&&v.upload.addEventListener("progress",le)),v.send(M),c.next({type:Ti.Sent}),function(){v.removeEventListener("error",Y),v.removeEventListener("abort",Y),v.removeEventListener("load",F),v.removeEventListener("timeout",Y),n.reportProgress&&(v.removeEventListener("progress",oe),null!==M&&v.upload&&v.upload.removeEventListener("progress",le)),v.readyState!==v.DONE&&v.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=bL(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 v=this.tokenService.getToken();return null!==v&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,v)})),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,v){return new iF(c,v)},this.backend)}return this.chain.handle(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(QL),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:aF}]}}},{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:[rF,{provide:$L,useClass:nT},lF,{provide:QL,useExisting:lF}],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 v=this._value;if(this.hasError)throw this.thrownError;return this._throwIfClosed(),v}},{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 uF(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 cF(i,s){return r6(s)?i.apply(void 0,yt(s)):i(s)}(i,s)})}function fF(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){dF(s,function(){for(var l=i.length,c=new Array(l),v=l,_=l,w=function(O){dF(s,function(){var F=Wi(i[O],s),Y=!1;F.subscribe(pe(n,function($){c[O]=$,Y||(Y=!0,_--),_||n.next(r(c.slice()))},function(){--v||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(pe(r,void 0,void 0,function(v){c=ji(i(v,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(pe(r,function(l){n.push(l),i0&&void 0!==arguments[0]?arguments[0]:l6;return gr(function(s,r){var n=!1;s.subscribe(pe(r,function(l){n=!0,r.next(l)},function(){return n?r.complete():r.error(i())}))})}function l6(){return new ww}function hF(i){return gr(function(s,r){var n=!1;s.subscribe(pe(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?hF(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 v;null===(v=n.subscribe)||void 0===v||v.call(n);var _=!0;l.subscribe(pe(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,v=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=v,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 v;return R(this,r),(v=s.call(this,n,l)).urlAfterRedirects=c,v}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 v;return R(this,r),(v=s.call(this,n,l)).reason=c,v}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 v;return R(this,r),(v=s.call(this,n,l)).error=c,v}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,v){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=v,_}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),pF=function(i){se(r,i);var s=ue(r);function r(n,l,c,v){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=v,_}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,v,_){var w;return R(this,r),(w=s.call(this,n,l)).urlAfterRedirects=c,w.state=v,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,v){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=v,_}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),gF=function(i){se(r,i);var s=ue(r);function r(n,l,c,v){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=v,_}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}(),mF=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}(),_F=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}(),yF=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 vT={exact:function pT(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]||!pT(i.children[n],s.children[n],r))return!1;return!0},subset:Af},SF={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 bF(i[r],s[r])})},ignored:function(){return!0}};function kw(i,s,r){return vT[r.paths](i.root,s.root,r.matrixParams)&&SF[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 v=r.slice(0,i.segments.length),_=r.slice(i.segments.length);return!!(Ph(i.segments,v)&&ay(i.segments,v,n)&&i.children[An])&&Dw(i.children[An],s,_,n)}function ay(i,s,r){return s.every(function(n,l){return SF[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 EF(this)}}]),i}();function Ph(i,s){return i.length===s.length&&i.every(function(r,n){return r.path===s[n].path})}var DF=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(Vp(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 TF(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 EF(s)}).join("/")}function Vp(i,s){if(!i.hasChildren())return sy(i);if(s){var r=i.children[An]?Vp(i.children[An],!1):"",n=[];return ya(i.children,function(c,v){v!==An&&n.push("".concat(v,":").concat(Vp(c,!1)))}),n.length>0?"".concat(r,"(").concat(n.join("//"),")"):r}var l=function kF(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,v){return v===An?[Vp(i.children[An],!1)]:["".concat(v,":").concat(Vp(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 xF(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xw(i){return xF(i).replace(/%3B/gi,";")}function Tw(i){return xF(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Aw(i){return decodeURIComponent(i)}function AF(i){return Aw(i.replace(/\+/g,"%20"))}function EF(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 v=AF(n),_=AF(l);if(r.hasOwnProperty(v)){var w=r[v];Array.isArray(w)||(r[v]=w=[w]),w.push(_)}else r[v]=_}}},{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 v=void 0;l.indexOf(":")>-1?(v=l.substr(0,l.indexOf(":")),this.capture(v),this.capture(":")):r&&(v=An);var _=this.parseChildren();n[v]=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}(),PF=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(v){r.e(v)}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(v){r.e(v)}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 Hp(i){var s={};return i&&i.children.forEach(function(r){return s[r.value.outlet]=r}),s}var OF=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}(PF);function _T(i,s){var r=function D6(i,s){var v=new Ew([],{},{},"",{},An,s,null,i.root,-1,{});return new Pw("",new lc(v,[]))}(i,s),n=new Na([new oy("",{})]),l=new Na({}),c=new Na({}),v=new Na({}),_=new Na(""),w=new Vr(n,l,v,_,c,An,s,r.root);return w.snapshot=r.root,new OF(new lc(w,[]),r)}var Vr=function(){function i(s,r,n,l,c,v,_,w){R(this,i),this.url=s,this.params=r,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=v,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,v,_,w,M,A,O){R(this,i),this.url=s,this.params=r,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=v,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}(PF);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 v6(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),_=v.processChildren?Lw(v.segmentGroup,v.index,c.commands):Ao(v.segmentGroup,v.index,c.commands);return Gp(s.root,v.segmentGroup,_,n,l)}function Rh(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function zp(i){return"object"==typeof i&&null!=i&&i.outlets}function Gp(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 v=ST(i,s,r);return new Ef(v,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 RF=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(zp);if(l&&l!==wF(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 v=i.segments[l],_=r[n];if(zp(_))break;var w="".concat(_),M=n0&&void 0===w)break;if(w&&M&&"object"==typeof M&&void 0===M.outlets){if(!dy(w,M,v))return c;n+=2}else{if(!dy(w,{},v))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({},UF):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};var c=(s.matcher||h6)(r,i,s);if(!c)return Object.assign({},UF);var v={};ya(c.posParams,function(w,M){v[M]=w.path});var _=c.consumed.length>0?Object.assign(Object.assign({},v),c.consumed[c.consumed.length-1].parameters):v;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 v=new Fn(i.segments,fc(i,s,r,n,i.children,l));return v._sourceSegment=i,v._segmentIndexShift=s.length,{segmentGroup:v,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,v={},_=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,v[Rs(M)]=A}}}catch(O){_.e(O)}finally{_.f()}return Object.assign(Object.assign({},l),v)}function DT(i,s,r,n){var l={};l[An]=n,n._sourceSegment=i,n._segmentIndexShift=s.length;var v,c=qt(r);try{for(c.s();!(v=c.n()).done;){var _=v.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 vy(i,s,r){return 0===s.length&&!i.children[r]}var py=L(function i(s){R(this,i),this.segmentGroup=s||null}),jF=L(function i(s){R(this,i),this.urlTree=s});function jp(i){return ry(new py(i))}function TT(i){return ry(new jF(i))}function WF(i){return ry(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(i,"'")))}var ZF=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 jF)return r.allowRedirects=!1,r.match(_.urlTree);throw _ instanceof py?r.noMatchError(_):_}))}},{key:"match",value:function(r){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,r.root,An).pipe(on(function(v){return n.createUrlTree(AT(v),r.queryParams,r.fragment)})).pipe(To(function(v){throw v instanceof py?n.noMatchError(v):v}))}},{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(v){return new Fn([],v)})):this.expandSegment(r,l,n,l.segments,c,!0)}},{key:"expandChildren",value:function(r,n,l){for(var c=this,v=[],_=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?hF(s):oT(function(){return new ww}))}}())}},{key:"expandSegment",value:function(r,n,l,c,v,_){var w=this;return Wi(l).pipe(oc(function(M){return w.expandSegmentAgainstRoute(r,n,l,M,c,v,_).pipe(To(function(O){if(O instanceof py)return dt(null);throw O}))}),xh(function(M){return!!M}),To(function(M,A){if(M instanceof ww||"EmptyError"===M.name)return vy(n,c,v)?dt(new Fn([],{})):jp(n);throw M}))}},{key:"expandSegmentAgainstRoute",value:function(r,n,l,c,v,_,w){return xT(c,n,v,_)?void 0===c.redirectTo?this.matchSegmentAgainstRoute(r,n,c,v,_):w&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,n,l,c,v,_):jp(n):jp(n)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(r,n,l,c,v,_){return"**"===c.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,l,c,_):this.expandRegularSegmentAgainstRouteUsingRedirect(r,n,l,c,v,_)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(r,n,l,c){var v=this,_=this.applyRedirectCommands([],l.redirectTo,{});return l.redirectTo.startsWith("/")?TT(_):this.lineralizeSegments(l,_).pipe(Ri(function(w){var M=new Fn(w,{});return v.expandSegment(r,M,n,w,c,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(r,n,l,c,v,_){var w=this,M=Bw(n,c,v),O=M.consumedSegments,F=M.remainingSegments,Y=M.positionalParamSegments;if(!M.matched)return jp(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,v){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)===v;return _.expandSegment(oe,De,le,we,We?An:v,!0).pipe(on(function(Vn){return new Fn(O.concat(Vn.segments),Vn.children)}))})):jp(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(v){return v?c.configLoader.load(r.injector,n).pipe(on(function(_){return n._loadedConfig=_,_})):function YF(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,v=n.canLoad;if(!v||0===v.length)return dt(!0);var _=v.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 WF(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 v=this.createSegmentGroup(r,n.root,l,c);return new Ef(v,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}},{key:"createQueryParams",value:function(r,n){var l={};return ya(r,function(c,v){if("string"==typeof c&&c.startsWith(":")){var w=c.substring(1);l[v]=n[w]}else l[v]=c}),l}},{key:"createSegmentGroup",value:function(r,n,l,c){var v=this,_=this.createSegments(r,n.segments,l,c),w={};return ya(n.children,function(M,A){w[A]=v.createSegmentGroup(r,M,l,c)}),new Fn(_,w)}},{key:"createSegments",value:function(r,n,l,c){var v=this;return n.map(function(_){return _.path.startsWith(":")?v.findPosParam(r,_,c):v.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 v,l=0,c=qt(n);try{for(c.s();!(v=c.n()).done;){var _=v.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||v.hasChildren())&&(s[l]=v)}return function XF(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 KF=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 $F(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=Hp(s);return i.children.forEach(function(v){QF(v,c[v.value.outlet],r,n.concat([v.value]),l),delete c[v.value.outlet]}),ya(c,function(v,_){return _y(v,r.getContext(_),l)}),l}function QF(i,s,r,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=i.value,v=s?s.value:null,_=r?r.getContext(i.value.outlet):null;if(v&&c.routeConfig===v.routeConfig){var w=my(v,c,c.routeConfig.runGuardsAndResolvers);w?l.canActivateChecks.push(new KF(n)):(c.data=v.data,c._resolvedData=v._resolvedData),gy(i,s,c.component?_?_.children:null:r,n,l),w&&_&&_.outlet&&_.outlet.isActivated&&l.canDeactivateChecks.push(new Hw(_.outlet.component,v))}else v&&_y(s,_,l),l.canActivateChecks.push(new KF(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=Hp(i),l=i.value;ya(n,function(c,v){_y(c,l.component?s?s.children.getContext(v):null:s,r)}),r.canDeactivateChecks.push(new Hw(l.component&&s&&s.outlet&&s.outlet.isActivated?s.outlet.component:null,l))}var iN=L(function i(){R(this,i)});function aN(i){return new Jn(function(s){return s.error(i)})}var oN=function(){function i(s,r,n,l,c,v){R(this,i),this.rootComponentType=s,this.config=r,this.urlTree=n,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=v}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),v=new Pw(this.url,c);return this.inheritParamsAndData(v._root),v}},{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(v){return n.inheritParamsAndData(v)})}},{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,v=Object.keys(n.children);c0?wF(l).parameters:{};v=new Ew(l,M,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cN(r),Rs(r),r.component,r,lN(n),uN(n)+l.length,fN(r))}else{var A=Bw(n,r,l);if(!A.matched)return null;w=A.remainingSegments,v=new Ew(_=A.consumedSegments,A.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,cN(r),Rs(r),r.component,r,lN(n),uN(n)+_.length,fN(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(v,oe)]}if(0===O.length&&0===$.length)return[new lc(v,[])];var le=Rs(r)===c,fe=this.processSegment(O,Y,$,le?An:c);return null===fe?null:[new lc(v,fe)]}}]),i}();function sN(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=sN(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 lN(i){for(var s=i;s._sourceSegment;)s=s._sourceSegment;return s}function uN(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 cN(i){return i.data||{}}function fN(i){return i.resolve||{}}function hN(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 v=this.loadModuleFactory(n.loadChildren).pipe(on(function(_){l.onLoadEndListener&&l.onLoadEndListener(n);var w=_.create(r);return new Nw(CF(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(v,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)}),pN=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 gN(i){throw i}function nj(i,s,r){return s.parse("/")}function IT(i,s){return dt(null)}var mN={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_N={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ba=function(){var i=function(){function s(r,n,l,c,v,_,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=gN,this.malformedUriErrorHandler=nj,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:IT,afterPreactivation:IT},this.urlHandlingStrategy=new pN,this.routeReuseStrategy=new ej,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=v.get(qu),this.console=v.get(Zu);var F=v.get(Pt);this.isNgZoneEnabled=F instanceof Pt&&Pt.isInAngularZone(),this.resetConfig(w),this.currentUrlTree=function p6(){return new Ef(new Fn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new vN(v,_,function($){return M.triggerEvent(new dT($))},function($){return M.triggerEvent(new mF($))}),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(v){return 0!==v.id}),on(function(v){return Object.assign(Object.assign({},v),{extractedUrl:l.urlHandlingStrategy.extract(v.rawUrl)})}),_a(function(v){var _=!1,w=!1;return dt(v).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 qF(i,s,r,n,l){return new ZF(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 dN(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 v=new oN(i,s,r,n,l,c).recognize();return null===v?aN(new iN):dt(v)}catch(_){return aN(_)}}(i,s,c.urlAfterRedirects,r(c.urlAfterRedirects),n,l).pipe(on(function(v){return Object.assign(Object.assign({},c),{targetSnapshot:v})}))})}(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 pF(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 JF(i,s){return Ri(function(r){var n=r.targetSnapshot,l=r.currentSnapshot,c=r.guards,v=c.canActivateChecks,_=c.canDeactivateChecks;return 0===_.length&&0===v.length?dt(Object.assign(Object.assign({},r),{guardsResult:!0})):function eN(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 v=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(v).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 tN(i,s,r,n){return Wi(s).pipe(oc(function(l){return Dh(function rN(i,s){return null!==i&&s&&s(new f6(i)),dt(!0)}(l.route.parent,n),function nN(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(v){return function G6(i){var s=i.routeConfig?i.routeConfig.canActivateChild:null;return s&&0!==s.length?{node:i,guards:s}:null}(v)}).filter(function(v){return null!==v}),c=l.map(function(v){return Sw(function(){var _=v.guards.map(function(w){var A,M=zw(w,v.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 _,v=zw(c,s,r);if(function I6(i){return i&&uc(i.canActivate)}(v))_=Os(v.canActivate(s,i));else{if(!uc(v))throw new Error("Invalid CanActivate guard");_=Os(v(s,i))}return _.pipe(xh())})});return dt(l).pipe(Lh())}(i,l.route,r))}),xh(function(l){return!0!==l},!0))}(n,v,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(v){return function K6(i,s,r,n){return function $6(i,s,r,n){var l=hN(i);if(0===l.length)return dt({});var c={};return Wi(l).pipe(Ri(function(v){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[v],s,r,n).pipe(ao(function(_){c[v]=_}))}),xf(1),Ri(function(){return hN(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}))}(v.route,n,i,s)}),ao(function(){return c++}),xf(1),Ri(function(v){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 gF(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 OF(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(v.id," is not equal to the current navigation id ").concat(l.navigationId);l.cancelNavigationTransition(v,A)}(null===(M=l.currentNavigation)||void 0===M?void 0:M.id)===v.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(v,!0));var O=new uT(v.id,l.serializeUrl(v.extractedUrl),M.message);c.next(O),A?setTimeout(function(){var Y=l.urlHandlingStrategy.merge(M.url,l.rawUrlTree),$={skipLocationChange:v.extras.skipLocationChange,replaceUrl:"eager"===l.urlUpdateStrategy||Jo(v.source)};l.scheduleNavigation(Y,"imperative",null,$,{resolve:v.resolve,reject:v.reject,promise:v.promise})},0):v.resolve(!1)}else{l.restoreHistory(v,!0);var F=new vF(v.id,l.serializeUrl(v.extractedUrl),M);c.next(F);try{v.resolve(l.errorHandler(M))}catch(Y){v.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 v,_={replaceUrl:!0},w=(null===(v=l.state)||void 0===v?void 0:v.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){zF(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,v=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),v);break;case"preserve":F=this.currentUrlTree.queryParams;break;default:F=v||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),v=this.urlHandlingStrategy.merge(c,this.rawUrlTree);return this.scheduleNavigation(v,"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({},mN):!1===l?Object.assign({},_N):l,Pf(n))return kw(this.currentUrlTree,n,c);var v=this.parseUrl(n);return kw(this.currentUrlTree,v,c)}},{key:"removeEmptyProps",value:function(n){return Object.keys(n).reduce(function(l,c){var v=n[c];return null!=v&&(l[c]=v),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,v,_){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:v.replaceUrl||v.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:v,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),v=Object.assign(Object.assign({},l.extras.state),this.generateNgRouterState(l.id,l.targetPageId));this.location.isCurrentPathEqualTo(c)||l.extras.replaceUrl?this.location.replaceState(c,"",v):this.location.go(c,"",v)}},{key:"restoreHistory",value:function(n){var c,v,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===(v=this.currentNavigation)||void 0===v?void 0:v.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 yF&&(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 yF(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"),bN=new Ae("ROUTER_FORROOT_GUARD"),LT=[z_,{provide:DF,useClass:m6},{provide:Ba,useFactory:function lj(i,s,r,n,l,c){var v=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,CF(c));return _&&(M.urlHandlingStrategy=_),w&&(M.routeReuseStrategy=w),wy(v,M),v.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:[DF,Tl,z_,kr,L2,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 G2("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,CN(n),{provide:bN,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,IL,Fh]},{provide:yN,useExisting:l&&l.preloadingStrategy?l.preloadingStrategy:RT},{provide:G2,multi:!0,useFactory:Cy},[BT,{provide:FC,multi:!0,useFactory:cj,deps:[BT]},{provide:wN,useFactory:fj,deps:[BT]},{provide:tx,multi:!0,useExisting:wN}]]}}},{key:"forChild",value:function(n){return{ngModule:s,providers:[CN(n)]}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(bN,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 iL(i,s)}function sj(i){return"guarded"}function CN(i){return[{provide:CO,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,v=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),v})}},{key:"bootstrapListener",value:function(n){var l=this.injector.get(Fh),c=this.injector.get(Uw),v=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(),v.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 wN=new Ae("Router Initializer"),MN=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 kN(i)?Number(i):s}function kN(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 pu(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 v=c.value,_="".concat(v).trim();_&&r.push(_)}}catch(w){l.e(w)}finally{l.f()}}return r}var dj=["addListener","removeListener"],hj=["addEventListener","removeEventListener"],vj=["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 xN(i){return Hn(i.addEventListener)&&Hn(i.removeEventListener)}(i)?hj.map(function(w){return function(M){return i[w](s,M,r)}}):function pj(i){return Hn(i.addListener)&&Hn(i.removeListener)}(i)?dj.map(DN(i,s)):function VT(i){return Hn(i.on)&&Hn(i.off)}(i)?vj.map(DN(i,s)):[],2),v=c[0],_=c[1];if(!v&&gv(i))return Ri(function(w){return gu(w,s,r)})(ji(i));if(!v)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 v=this.id,_=this.scheduler;return null!=v&&(this.id=this.recycleAsyncId(_,v,c)),this.pending=!0,this.delay=c,this.id=this.id||this.requestAsyncId(_,this.id,c),this}},{key:"requestAsyncId",value:function(l,c){var v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Sy.setInterval(l.flush.bind(l,this),v)}},{key:"recycleAsyncId",value:function(l,c){var v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=v&&this.delay===v&&!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 v=this._execute(l,c);if(v)return v;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(l,c){var _,v=!1;try{this.work(l)}catch(w){v=!0,_=w||new Error("Scheduled action threw falsy error")}if(v)return this.unsubscribe(),_}},{key:"unsubscribe",value:function(){if(!this.closed){var l=this.id,c=this.scheduler,v=c.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Fe(v,this),null!=l&&(this.id=this.recycleAsyncId(c,l,null)),this.delay=null,Ye(qe(r.prototype),"unsubscribe",this).call(this)}}}]),r}(TN),My={schedule:function(s){var r=requestAnimationFrame,n=cancelAnimationFrame,l=My.delegate;l&&(r=l.requestAnimationFrame,n=l.cancelAnimationFrame);var c=r(function(v){n=void 0,s(v)});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 v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==v&&v>0?Ye(qe(r.prototype),"requestAsyncId",this).call(this,l,c,v):(l.actions.push(this),l._scheduled||(l._scheduled=My.requestAnimationFrame(function(){return l.flush(void 0)})))}},{key:"recycleAsyncId",value:function(l,c){var v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=v&&v>0||null==v&&this.delay>0)return Ye(qe(r.prototype),"recycleAsyncId",this).call(this,l,c,v);l.actions.some(function(_){return _.id===c})||(My.cancelAnimationFrame(c),l._scheduled=void 0)}}]),r}(Zw),AN={now:function(){return(AN.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=AN.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 v;this._active=!0;do{if(v=l.execute(l.state,l.delay))break}while(l=c.shift());if(this._active=!1,v){for(;l=c.shift();)l.unsubscribe();throw v}}}}]),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 _,v=this.actions;l=l||v.shift();do{if(_=l.execute(l.state,l.delay))break}while((l=v[0])&&l.id===c&&v.shift());if(this._active=!1,_){for(;(l=v[0])&&l.id===c&&v.shift();)l.unsubscribe();throw _}}}]),r}(Xw),_j=(new Kw(gj),1),Qw={};function Yp(i){return i in Qw&&(delete Qw[i],!0)}var Zp,GT=function(s){var r=_j++;return Qw[r]=!0,HT||(HT=Promise.resolve()),HT.then(function(){return Yp(r)&&s()}),r},yj=function(s){Yp(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 v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==v&&v>0?Ye(qe(r.prototype),"requestAsyncId",this).call(this,l,c,v):(l.actions.push(this),l._scheduled||(l._scheduled=Jw.setImmediate(l.flush.bind(l,void 0))))}},{key:"recycleAsyncId",value:function(l,c){var v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=v&&v>0||null==v&&this.delay>0)return Ye(qe(r.prototype),"recycleAsyncId",this).call(this,l,c,v);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 _,v=this.actions;l=l||v.shift();do{if(_=l.execute(l.state,l.delay))break}while((l=v[0])&&l.id===c&&v.shift());if(this._active=!1,_){for(;(l=v[0])&&l.id===c&&v.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,v=!1,_=function(){if(null==c||c.unsubscribe(),c=null,n){n=!1;var A=l;l=null,r.next(A)}v&&r.complete()},w=function(){c=null,v&&r.complete()};s.subscribe(pe(r,function(M){n=!0,l=M,c||ji(i(M)).subscribe(c=pe(r,_,w))},function(){v=!0,(!n||!c||c.closed)&&r.complete()}))})}function WT(i){return i instanceof Date&&!isNaN(i)}function qp(){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 v=0;return r.schedule(function(){l.closed||(l.next(v++),0<=n?this.schedule(void 0,n):l.complete())},c)})}function PN(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:El;return jT(function(){return qp(i,s)})}try{Zp="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(i){Zp=!1}var Bh,ky,Hh,zh,vn=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&&!Zp)&&"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}(),ON=["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(ON);var i=document.createElement("input");return Bh=new Set(ON.filter(function(s){return i.setAttribute("type",s),i.type===s}))}function Vh(i){return function IN(){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 RN(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}(),FN=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 v=l>0?n._scrolled.pipe(PN(l)).subscribe(c):n._scrolled.subscribe(c);return n._scrolledCount++,function(){v.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(v){return!v||c.indexOf(v)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var l=this,c=[];return this.scrollContainers.forEach(function(v,_){l._scrollableContainsElement(_,n)&&c.push(_)}),c}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,l){var c=pu(l),v=n.getElementRef().nativeElement;do{if(c==v)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(vn),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(v){c._change.next(v)},this._document=l,n.runOutsideAngular(function(){if(r.isBrowser){var v=c._getWindow();v.addEventListener("resize",c._changeListener),v.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,v=l.height;return{top:n.top,left:n.left,bottom:n.top+v,right:n.left+c,height:v,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,v=c.getBoundingClientRect();return{top:-v.top||n.body.scrollTop||l.scrollY||c.scrollTop||0,left:-v.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(PN(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(vn),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,v){var _;return R(this,r),(_=s.call(this)).component=n,_.viewContainerRef=l,_.injector=c,_.componentFactoryResolver=v,_}return L(r)}(o1),es=function(i){se(r,i);var s=ue(r);function r(n,l,c){var v;return R(this,r),(v=s.call(this)).templateRef=n,v.viewContainerRef=l,v.context=c,v}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,v,_){var w,M;return R(this,r),(M=s.call(this)).outletElement=n,M._componentFactoryResolver=l,M._appRef=c,M._defaultInjector=v,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,v=l.viewContainerRef,_=v.createEmbeddedView(l.templateRef,l.context);return _.rootNodes.forEach(function(w){return c.outletElement.appendChild(w)}),_.detectChanges(),this.setDisposeFn(function(){var w=v.indexOf(_);-1!==w&&v.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}(),vc=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v){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=v,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 v=null!=c.viewContainerRef?c.viewContainerRef:this._viewContainerRef,w=(c.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(c.component),M=v.createComponent(w,v.length,c.injector||v.injector);return v!==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 v=this;c.setAttachedHost(this);var _=this._viewContainerRef.createEmbeddedView(c.templateRef,c.context);return Ye(qe(n.prototype),"setDisposeFn",this).call(this,function(){return v._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}(),Kp=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(pe(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}(),r3=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(),v=c.width,_=c.height;l1(l,[{width:v,height:_,bottom:_,right:v,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 v=this;R(this,s),this._scrollDispatcher=r,this._viewportRuler=n,this._ngZone=l,this.noop=function(){return new lA},this.close=function(_){return new r3(v._scrollDispatcher,v._ngZone,v._viewportRuler,_)},this.block=function(){return new Gj(v._viewportRuler,v._document)},this.reposition=function(_){return new uA(v._scrollDispatcher,v._viewportRuler,v._ngZone,_)},this._document=c});return i.\u0275fac=function(r){return new(r||i)(ge(FN),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 v=this._isRtl()?r.right:r.left,_=this._isRtl()?r.left:r.right;c="start"==l.originX?v:_}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 v=s3(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+v.height-l.height,oe=this._subtractOverflows(v.width,0-_,_+v.width-l.width),le=this._subtractOverflows(v.height,Y,$),fe=oe*le;return{visibleArea:fe,isCompletelyWithinViewport:v.width*v.height===fe,fitsInViewportVertically:le===v.height,fitsInViewportHorizontally:oe==v.width}}},{key:"_canFitWithFlexibleDimensions",value:function(r,n,l){if(this._hasFlexibleDimensions){var c=l.bottom-n.y,v=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<=v)}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=s3(n),v=this._viewportRect,_=Math.max(r.x+c.width-v.width,0),w=Math.max(r.y+c.height-v.height,0),M=Math.max(v.top-l.top-r.y,0),A=Math.max(v.left-l.left-r.x,0);return this._previousPushAmount={x:O=c.width<=v.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:v}}},{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 v=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",v&&(c.maxHeight=Ai(v)),_&&(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(),v=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):v&&(l.maxHeight="")),_.maxWidth&&(c?l.maxWidth=Ai(_.maxWidth):v&&(l.maxWidth="")),Wh(this._pane.style,l)}},{key:"_getExactOverlayY",value:function(r,n,l){var c={top:"",bottom:""},v=this._getOverlayPoint(n,this._overlayRect,r);return this._isPushed&&(v=this._pushOverlayOnScreen(v,this._overlayRect,l)),"bottom"===r.overlayY?c.bottom="".concat(this._document.documentElement.clientHeight-(v.y+this._overlayRect.height),"px"):c.top=Ai(v.y),c}},{key:"_getExactOverlayX",value:function(r,n,l){var c={left:"",right:""},v=this._getOverlayPoint(n,this._overlayRect,r);return this._isPushed&&(v=this._pushOverlayOnScreen(v,this._overlayRect,l)),"right"==(this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left")?c.right="".concat(this._document.documentElement.clientWidth-(v.x+this._overlayRect.width),"px"):c.left=Ai(v.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,v=l.height,_=l.maxWidth,w=l.maxHeight,M=!("100%"!==c&&"100vw"!==c||_&&"100%"!==_&&"100vw"!==_),A=!("100%"!==v&&"100vh"!==v||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}(),l3=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(vn),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 v;return R(this,n),(v=r.call(this,l))._ngZone=c,v._keydownListener=function(_){for(var w=v._attachedOverlays,M=w.length-1;M>-1&&!(w[M]._keydownEvents.observers.length>0&&"break"===function(){var O=w[M]._keydownEvents;return v._ngZone?v._ngZone.run(function(){return O.next(_)}):O.next(_),"break"}());M--);},v}return L(n,[{key:"add",value:function(c){var v=this;Ye(qe(n.prototype),"add",this).call(this,c),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return v._document.body.addEventListener("keydown",v._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,v){var _;return R(this,n),(_=r.call(this,l))._platform=c,_._ngZone=v,_._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 v=this;if(Ye(qe(n.prototype),"add",this).call(this,c),!this._isAttached){var _=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return v._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(vn),ge(Pt,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),vA=0,aa=function(){var i=function(){function s(r,n,l,c,v,_,w,M,A,O,F){R(this,s),this.scrollStrategies=r,this._overlayContainer=n,this._componentFactoryResolver=l,this._positionBuilder=c,this._keyboardDispatcher=v,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),v=this._createPortalOutlet(c),_=new Ff(n);return _.direction=_.direction||this._directionality.value,new o3(v,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(vA++),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(l3),ge(Zj),ge(kr),ge(Pt),ge(Jt),ge(Ei),ge(z_),ge(Xj))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),u3=[{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"}],pA=new Ae("cdk-connected-overlay-scroll-strategy"),c3=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,v){R(this,s),this._overlay=r,this._dir=v,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=u3);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(v){return{originX:v.originX,originY:v.originY,overlayX:v.overlayX,overlayY:v.overlayY,offsetX:v.offsetX||l.offsetX,offsetY:v.offsetY||l.offsetY,panelClass:v.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 c3?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(pe(n,function(c){var v=i(c,l++);(v||s)&&n.next(c),!v&&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(pA),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:pA,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,Kp,$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,v=null,_=function(){if(l){l.unsubscribe(),l=null;var A=c;c=null,n.next(A)}};function w(){var M=v+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(pe(n,function(v){var _=s(v);(c||!i(l,_))&&(c=!1,l=_,n.next(v))}))})}function $j(i,s){return i===s}var d3=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=pu(n);return new Jn(function(v){var w=l._observeElement(c).subscribe(v);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(v){return l.next(v)});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,v=l.stream;c&&c.disconnect(),v.complete(),this._observedElements.delete(n)}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(d3))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),v1=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:[d3]}),i}();function p1(i,s){return(i.getAttribute(s)||"").match(/\S+/g)||[]}var v3="cdk-describedby-message",g1="cdk-describedby-host",p3=0,g3=function(){var i=function(){function s(r,n){R(this,s),this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id="".concat(p3++),this._document=r}return L(s,[{key:"describe",value:function(n,l,c){if(this._canBeDescribed(n,l)){var v=yA(l,c);"string"!=typeof l?(m3(l),this._messageRegistry.set(v,{messageElement:l,referenceCount:0})):this._messageRegistry.has(v)||this._createMessageElement(l,c),this._isElementDescribedByMessage(n,v)||this._addMessageReference(n,v)}}},{key:"removeDescription",value:function(n,l,c){var v;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===(v=this._messagesContainer)||void 0===v?void 0:v.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(),v=1;v0&&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,v=["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&&v){this.setNextItemActive();break}return;case 38:if(this._vertical&&v){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&v){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&v){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&v){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&v){this.setLastItemActive();break}return;default:return void((v||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}(),y3=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}(_3),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}(_3),b3=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===S3(l)||!this.isVisible(l)))return!1;var c=n.nodeName.toLowerCase(),v=S3(n);return n.hasAttribute("contenteditable")?-1!==v:!("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!==v:"video"===c?-1!==v&&(null!==v||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 C3(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")||w3(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(vn))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function w3(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;var s=i.getAttribute("tabindex");return!(!s||isNaN(parseInt(s,10)))}function S3(i){if(!w3(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,v=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,v||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}(),M3=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(b3),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(M3),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 k3=new Ae("cdk-input-modality-detector-options"),D3={ignoreKeys:[18,17,224,91,16]},tg=Vh({passive:!0,capture:!0}),h7=function(){var i=function(){function s(r,n,l,c){var v=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=v._options)||void 0===w?void 0:w.ignoreKeys)||void 0===M?void 0:M.some(function(A){return A===_.keyCode}))||(v._modality.next("keyboard"),v._mostRecentTarget=hc(_))},this._onMousedown=function(_){Date.now()-v._lastTouchMs<650||(v._modality.next(SA(_)?"keyboard":"mouse"),v._mostRecentTarget=hc(_))},this._onTouchstart=function(_){MA(_)?v._modality.next("keyboard"):(v._lastTouchMs=Date.now(),v._modality.next("touch"),v._mostRecentTarget=hc(_))},this._options=Object.assign(Object.assign({},D3),c),this.modalityDetected=this._modality.pipe(_A(1)),this.modalityChanged=this.modalityDetected.pipe(Fy()),r.isBrowser&&n.runOutsideAngular(function(){l.addEventListener("keydown",v._onKeydown,tg),l.addEventListener("mousedown",v._onMousedown,tg),l.addEventListener("touchstart",v._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(vn),ge(Pt),ge(Jt),ge(k3,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),v7=new Ae("liveAnnouncerElement",{providedIn:"root",factory:function T3(){return null}}),A3=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 v,_,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=pu(n);if(!this._platform.isBrowser||1!==c.nodeType)return dt(null);var v=ZT(c)||this._getDocument(),_=this._elementInfo.get(c);if(_)return l&&(_.checkChildren=!0),_.subject;var w={checkChildren:l,subject:new Xe,rootNode:v};return this._elementInfo.set(c,w),this._registerGlobalListeners(w),w.subject}},{key:"stopMonitoring",value:function(n){var l=pu(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 v=this,_=pu(n);_===this._getDocument().activeElement?this._getClosestElementsInfo(_).forEach(function(M){var A=Pr(M,2);return v._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),v=hc(n);!c||!c.checkChildren&&l!==v||this._originChanged(l,this._getFocusOrigin(v),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,v=this._rootNodeFocusListenerCount.get(c)||0;v||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",l._rootNodeFocusAndBlurListener,Bf),c.addEventListener("blur",l._rootNodeFocusAndBlurListener,Bf)}),this._rootNodeFocusListenerCount.set(c,v+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,v){(v===n||c.checkChildren&&v.contains(n))&&l.push([v,c])}),l}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Pt),ge(vn),ge(h7),ge(Jt,8),ge(p7,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),E3=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}(),P3="cdk-high-contrast-black-on-white",O3="cdk-high-contrast-white-on-black",DA="cdk-high-contrast-active",I3=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,v=(c&&c.backgroundColor||"").replace(/ /g,"");switch(n.remove(),v){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(P3),n.remove(O3),this._hasCheckedHighContrastMode=!0;var l=this.getHighContrastMode();1===l?(n.add(DA),n.add(P3)):2===l&&(n.add(DA),n.add(O3))}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(vn),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(I3))},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Ny]]}),i}(),R3=L(function i(){R(this,i)}),g7=L(function i(){R(this,i)}),pc="*";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 L3(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;L3(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}(),F3=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,v=this.players.length;0==v?L3(function(){return r._onFinish()}):this.players.forEach(function(_){_.onDone(function(){++n==v&&r._onFinish()}),_.onDestroy(function(){++l==v&&r._onDestroy()}),_.onStart(function(){++c==v&&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 N3(i){return new st(3e3,Nn)}function G3(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 F3(i)}}function j3(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]:{},v=[],_=[],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,v),le){case"!":le=l[$];break;case pc:le=c[$];break;default:le=s.normalizeStyleValue($,oe,le,v)}Y[oe]=le}),F||_.push(Y),M=Y,w=O}),v.length)throw G3();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),v=i._data;return null!=v&&(c._data=v),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,v=arguments.length>6?arguments[6]:void 0;return{element:i,triggerName:s,fromState:r,toState:n,phaseName:l,totalTime:c,disabled:!!v}}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 W3(i){var s=i.indexOf(":");return[i.substring(1,s),i.substr(s+1)]}var IA=function(s,r){return!1},Y3=function(s,r,n){return[]},q3=null;function S1(i){var s=i.parentNode||i.host;return s===q3?null:s}(EA()||"undefined"!=typeof Element)&&(U7()?(q3=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)},Y3=function(s,r,n){if(n)return Array.from(s.querySelectorAll(r));var l=s.querySelector(r);return l?[l]:[]});var zf=null,Z3=!1;function M1(i){zf||(zf=function W7(){return"undefined"!=typeof document?document.body:null}()||{},Z3=!!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)&&Z3&&(s="Webkit"+i.charAt(0).toUpperCase()+i.substr(1)in zf.style),s}var X3=IA,K3=Y3,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 X3(n,l)}},{key:"getParentElement",value:function(n){return S1(n)}},{key:"query",value:function(n,l,c){return K3(n,l,c)}},{key:"computeStyle",value:function(n,l,c){return c||""}},{key:"animate",value:function(n,l,c,v,_){return new By(c,v)}}]),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}(),J3="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 eB(i,s,r){var l,c=0,v="";if("string"==typeof i){var _=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===_)return s.push(N3()),{duration:0,delay:0,easing:""};l=Gf(parseFloat(_[1]),_[2]);var w=_[3];null!=w&&(c=Gf(parseFloat(w),_[4]));var M=_[5];M&&(v=M)}else l=i;if(!r){var A=!1,O=s.length;l<0&&(s.push(function B3(){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,N3())}return{duration:l,delay:c,easing:v}}(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 tB(i,s,r){return r?s+":"+r+";":""}function nB(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],v=l[2],_=l[3];s.push(GA(c,_)),"<"==v[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 v="*"==i||i==l,_="*"==s||s==c;return!v&&r&&"boolean"==typeof l&&(v=l?P1.has(i):O1.has(i)),!_&&n&&"boolean"==typeof c&&(_=c?P1.has(s):O1.has(s)),v&&_}}var mc=new RegExp("s*".concat(":self","s*,?"),"g");function sB(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 v=so(this,Xh(r),c);return c.unsupportedCSSPropertiesFound.size&&yt(c.unsupportedCSSPropertiesFound.keys()),v}},{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,v=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,v+=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:v,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 v=new Set,_=c||{};l.styles.forEach(function(M){if(I1(M)){var A=M;Object.keys(A).forEach(function(O){rB(A[O]).forEach(function(F){_.hasOwnProperty(F)||v.add(F)})})}}),v.size&&(T1(v.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,v=0,_=r.steps.map(function(w){n.currentTime=c;var M=so(l,w,n);return v=Math.max(v,n.currentTime),M});return n.currentTime=v,{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 v=Hy(n,s);return UA(v.duration,v.delay,v.easing)}(r.timings,n.errors);n.currentAnimateTimings=l;var c,v=r.styles?r.styles:mt({});if(5==v.type)c=this.visitKeyframes(v,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 _?_==pc?l.push(_):n.errors.push(function D7(i){return new st(3002,Nn)}()):l.push(_)}):l.push(r.styles);var c=!1,v=null;return l.forEach(function(_){if(I1(_)){var w=_,M=w.easing;if(M&&(v=M,delete w.easing),!c)for(var A in w)if(w[A].toString().indexOf("{{")>=0){c=!0;break}}}),{type:6,styles:l,easing:v,offset:r.offset,containsDynamicStyles:c,options:null}}},{key:"_validateStyleAst",value:function(r,n){var l=this,c=n.currentAnimateTimings,v=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&&(_!=v&&_>=O.startTime&&v<=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:v}),n.options&&function q7(i,s,r){var n=s.params||{},l=rB(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 v=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(v,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 uB(i,s,r,n,l,c){var v=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:v,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}(),dB=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]:{},v=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,v,_,w,M)}var vB=function(){function i(){R(this,i)}return L(i,[{key:"buildKeyframes",value:function(r,n,l,c,v,_,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,v,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()}):[uB(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),v=n.currentTimeline.currentTime,_=this._visitSubInstructions(l,c,c.options);v!=_&&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 v=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);v=Math.max(v,A.duration+A.delay)}),v}},{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,v=n,_=r.options;if(_&&(_.params||_.delay)&&((v=n.createSubContext(_)).transformIntoNewTimeline(),null!=_.delay)){6==v.previousNode.type&&(v.currentTimeline.snapshotCurrentStyles(),v.previousNode=WA);var w=gc(_.delay);v.delayNextStep(w)}r.steps.length&&(r.steps.forEach(function(M){return so(l,M,v)}),v.currentTimeline.applyStylesToKeyframe(),v.subContextCount>c&&v.transformIntoNewTimeline()),n.previousNode=r}},{key:"visitGroup",value:function(r,n){var l=this,c=[],v=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),v=Math.max(v,M.currentTimeline.currentTime),c.push(M.currentTimeline)}),c.forEach(function(w){return n.currentTimeline.mergeTimelineCollectedStyles(w)}),n.transformIntoNewTimeline(v),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 v=r.style;5==v.type?this.visitKeyframes(v,n):(n.incrementTime(l.duration),this.visitStyle(v,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 v=c&&c.easing||r.easing;r.isEmptyStep?l.applyEmptyStep(v):l.setStyles(r.styles,v,n.errors,n.options),n.previousNode=r}},{key:"visitKeyframes",value:function(r,n){var l=n.currentAnimateTimings,c=n.currentTimeline.duration,v=l.duration,w=n.createSubContext().currentTimeline;w.easing=l.easing,r.styles.forEach(function(M){w.forwardTime((M.offset||0)*v),w.setStyles(M.styles,M.easing,n.errors,n.options),w.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(w),n.transformIntoNewTimeline(c+v),n.previousNode=r}},{key:"visitQuery",value:function(r,n){var l=this,c=n.currentTimeline.currentTime,v=r.options||{},_=v.delay?gc(v.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,!!v.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,v=r.timings,_=Math.abs(v.duration),w=_*(n.currentQueryTotal-1),M=_*n.currentQueryIndex;switch(v.duration<0?"reverse":v.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,v,_,w){R(this,i),this._driver=s,this.element=r,this.subInstructions=n,this._enterClassName=l,this._leaveClassName=c,this.errors=v,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,v=this.options;null!=c.duration&&(v.duration=gc(c.duration)),null!=c.delay&&(v.delay=gc(c.delay));var _=c.params;if(_){var w=v.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,v=new i(this._driver,c,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(c,l||0));return v.previousNode=this.previousNode,v.currentAnimateTimings=this.currentAnimateTimings,v.options=this._copyOptions(),v.updateOptions(r),v.currentQueryIndex=this.currentQueryIndex,v.currentQueryTotal=this.currentQueryTotal,v.parentContext=this,this.subContextCount++,v}},{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:""},v=new rg(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,c,r.stretchStartingKeyframe);return this.timelines.push(v),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,v,_){var w=[];if(c&&w.push(this.element),r.length>0){r=(r=r.replace(dB,"."+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!v&&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]||pc,n._currentKeyframe[l]=pc}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(r,n,l,c){var v=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]=pc}):Uf(l,!1,r)}),r}(r,this._globalTimelineStyles);Object.keys(w).forEach(function(M){var A=zy(w[M],_,l);v._pendingStyles[M]=A,v._localTimelineStyles.hasOwnProperty(M)||(v._backFill[M]=v._globalTimelineStyles.hasOwnProperty(M)?v._globalTimelineStyles[M]:pc),v._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],v=r._styleSummary[l];(!c||v.time>c.time)&&n._updateStyle(l,v.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,v=[];this._keyframes.forEach(function(O,F){var Y=Uf(O,!0);Object.keys(Y).forEach(function($){var oe=Y[$];"!"==oe?n.add($):oe==pc&&l.add($)}),c||(Y.offset=F/r.duration),v.push(Y)});var _=n.size?T1(n.values()):[],w=l.size?T1(l.values()):[];if(c){var M=v[0],A=ng(M);M.offset=0,A.offset=1,v=[M,A]}return uB(this.element,v,_,w,this.duration,this.startTime,this.easing,!1)}}]),i}(),rg=function(i){se(r,i);var s=ue(r);function r(n,l,c,v,_,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=v,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,v=c.delay,_=c.duration,w=c.easing;if(this._stretchStartingKeyframe&&v){var M=[],A=_+v,O=v/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((v+le.offset*_)/A),M.push(le)}_=A,v=0,w="",l=M}return uB(this.element,l,this.preStyleProps,this.postStyleProps,_,v,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,v,_){var w="",M=v.toString().trim();if(cW[c]&&0!==v&&"0"!==v)if("number"==typeof v)w="px";else{var A=v.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,v,_,w,M,A,O,F){return{type:0,element:i,triggerName:s,isRemovalTransition:l,fromState:r,fromStyles:c,toState:n,toStyles:v,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["*"],v=this._stateStyles[r],_=c?c.buildStyles(n,l):{};return v?v.buildStyles(n,l):_}},{key:"build",value:function(r,n,l,c,v,_,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,v,_,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 fv=ts(De,fo,{});ci.postStyleProps.forEach(function(Gl){return fv[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}(),pB=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={},v=ng(this.defaultParams);return Object.keys(r).forEach(function(_){var w=r[_];null!=w&&(v[_]=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,v,n));var O=l.normalizer.normalizePropertyName(M,n);A=l.normalizer.normalizeStyleValue(M,O,A,n),c[O]=A})}}),c}}]),i}(),vW=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 pB(c.style,c.options&&c.options.params||{},n)}),mB(this.states,"true","1"),mB(this.states,"false","0"),r.transitions.forEach(function(c){l.transitionFactories.push(new dW(s,c,l.states))}),this.fallbackTransition=function pW(i,s,r){return new dW(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(v,_){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 mB(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=[],v=sB(this._driver,n,l,[]);if(l.length)throw function L7(i){return new st(3503,Nn)}();this._animations[r]=v}},{key:"_buildPlayer",value:function(r,n,l){var c=r.element,v=j3(this._driver,this._normalizer,c,r.keyframes,n,l);return this._driver.animate(c,v,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]:{},v=[],_=this._animations[r],M=new Map;if(_?(w=jA(this._driver,n,_,J3,NA,{},{},c,gW,v)).forEach(function(F){var Y=ts(M,F.element,{});F.postStyleProps.forEach(function($){return Y[$]=null})}):(v.push(F7()),w=[]),v.length)throw N7();M.forEach(function(F,Y){Object.keys(F).forEach(function($){F[$]=l._driver.computeStyle(Y,$,pc)})});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 v=OA(n,"","","");return PA(this._getPlayer(r),l,v,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 v=this;if(!this._triggers.hasOwnProperty(n))throw function U3(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(){v._engine.afterFlush(function(){var A=_.indexOf(w);A>=0&&_.splice(A,1),v._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,v=!(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(!v)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(v){return v.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(v){if(!v[Eo]){var _=l._engine.fetchNamespacesByElement(v);_.size?_.forEach(function(w){return w.triggerLeaveAnimation(v,n,!1,!0)}):l.clearElementCache(v)}}),this._engine.afterFlushAnimationsDone(function(){return c.forEach(function(v){return l.clearElementCache(v)})})}},{key:"triggerLeaveAnimation",value:function(r,n,l,c){var v=this,_=this._engine.statesByElement.get(r),w=new Map;if(_){var M=[];if(Object.keys(_).forEach(function(A){if(w.set(A,_[A].value),v._triggers[A]){var O=v.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 v._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 v=new Set;l.forEach(function(_){var w=_.name;if(!v.has(w)){v.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 v=!1;if(c.totalAnimations){var _=c.players.length?c.playersByQueriedElement.get(r):[];if(_&&_.length)v=!0;else for(var w=r;w=w.parentNode;)if(c.statesByElement.get(w)){v=!0;break}}if(this.prepareLeaveAnimationListeners(r),v)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 v=c.player;if(!v.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)}}),v.markedForDestroy?n._engine.afterFlush(function(){v.destroy()}):l.push(c)}}),this._queue=[],l.sort(function(c,v){var _=c.transition.ast.depCount,w=v.transition.ast.depCount;return 0==_||0==w?_-w:n._engine.driver.containsElement(c.element,v.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,v=l.length-1;if(v>=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=v;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 v=l._namespaceList.indexOf(c);v>=0&&l._namespaceList.splice(v,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),v=0;v=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 v=r?this._fetchNamespace(r):null;if(v?v.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,v){this.collectedLeaveElements.push(n),n[Eo]={namespaceId:r,setForRemoval:c,hasAnimation:l,removedBeforeQueried:!1,previousTriggersValues:v}}},{key:"listen",value:function(r,n,l,c,v){return H1(n)?this._fetchNamespace(r).listen(n,l,c,v):function(){}}},{key:"_buildInstruction",value:function(r,n,l,c,v){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,l,c,r.fromState.options,r.toState.options,n,v)}},{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 v=this._fetchNamespace(c.namespaceId);v&&v.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 RP=!Y||!l.driver.containsElement(Y,yn),UH=Vn.get(yn),Kq=le.get(yn),ja=l._buildInstruction(ut,c,Kq,UH,RP);if(ja.errors&&ja.errors.length)fo.push(ja);else{if(RP)return un.onStart(function(){return Zh(yn,ja.fromStyles)}),un.onDestroy(function(){return _u(yn,ja.toStyles)}),void v.push(un);if(ut.isFallbackTransition)return un.onStart(function(){return Zh(yn,ja.fromStyles)}),un.onDestroy(function(){return _u(yn,ja.toStyles)}),void v.push(un);var jH=[];ja.timelines.forEach(function(hv){hv.stretchStartingKeyframe=!0,l.disabledNodes.has(hv.element)||jH.push(hv)}),ja.timelines=jH,c.append(yn,ja.timelines),w.push({instruction:ja,player:un,element:yn}),ja.queriedElements.forEach(function(hv){return ts(M,hv,[]).push(un)}),ja.preStyleProps.forEach(function(hv,LP){var WH=Object.keys(hv);if(WH.length){var _b=A.get(LP);_b||A.set(LP,_b=new Set),WH.forEach(function($q){return _b.add($q)})}}),ja.postStyleProps.forEach(function(hv,LP){var WH=Object.keys(hv),_b=O.get(LP);_b||O.set(LP,_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 dv=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,dv))}),v.forEach(function(ut){var un=ut.element;l._getPreviousPlayers(un,!1,ut.namespaceId,ut.triggerName,null).forEach(function(Oi){ts(dv,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,pc).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 v.push(yn);var jS=JJ;if(xg.size>1){for(var Tg=un,RP=[];Tg=Tg.parentNode;){var UH=xg.get(Tg);if(UH){jS=UH;break}RP.push(Tg)}RP.forEach(function(jH){return xg.set(jH,jS)})}var Kq=l._buildAnimation(yn.namespaceId,Oi,dv,_,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)),v.push(yn)}}else Zh(un,Oi.fromStyles),yn.onDestroy(function(){return _u(un,Oi.toStyles)}),QJ.push(yn),F.has(un)&&v.push(yn)}),QJ.forEach(function(ut){var un=_.get(ut.element);if(un&&un.length){var yn=Hf(un);ut.setRealPlayer(yn)}}),v.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 v=[];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,v.push(M))}),i.set(M,A)});var _=0;return r.forEach(function(w){return z1(w,c[_++])}),v}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 v(_){if(!_)return 1;var w=c.get(_);if(w)return w;var M=_.parentNode;return w=r.has(M)?M:l.has(M)?1:v(M),c.set(_,w),w}return s.forEach(function(_){var w=v(_);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 _B(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 yB(i,r,n):null}var yB=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};v&&(M.easing=v);var A={},O=_.filter(function(Y){return Y instanceof bB});K7(l,c)&&O.forEach(function(Y){var $=Y.currentSnapshot;Object.keys($).forEach(function(oe){return A[oe]=$[oe]})});var F=wW(r,n=iB(r,n=n.map(function(Y){return Uf(Y,!1)}),A));return new bB(r,n,M,F)}}]),i}(),CB=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var v;return R(this,n),(v=r.call(this))._nextAnimationId=0,v._renderer=l.createRenderer(c.body,{id:"0",encapsulation:Ya.None,styles:[],data:{animation:[]}}),v}return L(n,[{key:"build",value:function(c){var v=this._nextAnimationId.toString();this._nextAnimationId++;var _=Array.isArray(c)?m1(c):c;return tE(this._renderer,null,v,"register",[_]),new wB(v,this._renderer)}}]),n}(R3);return i.\u0275fac=function(r){return new(r||i)(ge(h_),ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),wB=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==SB?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,v){var _;return R(this,r),(_=s.call(this,l,c,v)).factory=n,_.namespaceId=l,_}return L(r,[{key:"setProperty",value:function(l,c,v){"@"==c.charAt(0)?"."==c.charAt(1)&&c==SB?this.disableAnimations(l,v=void 0===v||!!v):this.engine.process(this.namespaceId,l,c.substr(1),v):this.delegate.setProperty(l,c,v)}},{key:"listen",value:function(l,c,v){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 MB(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,v,Y)})}return this.delegate.listen(l,c,v)}}]),r}(nE),kB=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v){return R(this,n),r.call(this,l.body,c,v)}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:R3,useClass:CB},{provide:ig,useFactory:function DB(){return new uW}},{provide:j1,useClass:kB},{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),xB=[{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?xB: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 AB(i,s){if(1&i&&(I(0,"span",5),K(1),B()),2&i){var r=Q();G(1),Le("(",r.group.label,")")}}var EB=["*"],OB=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 IB(){return!0}}),pn=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(I3),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,v=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 v=arguments.length,_=new Array(v),w=0;w0?l:r}}]),i}(),qf=new Ae("mat-date-formats"),LB=/^\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]:{},v=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),_=Object.assign(Object.assign({},NB),c.animation);c.centered&&(r=v.left+v.width/2,n=v.top+v.height/2);var w=c.radius||uE(r,n,v),M=r-v.left,A=n-v.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({},NB),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=pu(r);!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,this._registerEvents(BB))}},{key:"handleEvent",value:function(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(VB),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&&(BB.forEach(function(n){r._triggerElement.removeEventListener(n,r,lE)}),this._pointerUpEventsRegistered&&VB.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 zB=new Ae("mat-ripple-global-options"),Nl=function(){var i=function(){function s(r,n,l,c,v){R(this,s),this._elementRef=r,this._animationMode=v,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=c||{},this._rippleRenderer=new HB(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(vn),z(zB,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:[[pn],pn]}),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:[[pn]]}),i}(),Xy=new Ae("MAT_OPTION_PARENT_COMPONENT"),$1=new Ae("MatOptgroup"),HW=0,GB=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 GB(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,v,_){return R(this,n),r.call(this,l,c,v,_)}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:EB,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&&(pi(),te(0,aE,1,2,"mat-pseudo-checkbox",0),I(1,"span",1),Gt(2),B(),te(3,AB,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,v=0;vr+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,pn,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}),jB={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,v,_,w,M,A,O){var F;return R(this,n),(F=r.call(this))._elementRef=l,F._focusTrapFactory=c,F._changeDetectorRef=v,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,v){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(v)}},{key:"_focusByCssSelector",value:function(c,v){var _=this._elementRef.nativeElement.querySelector(c);_&&this._forceFocus(_,v)}},{key:"_trapFocus",value:function(){var c=this,v=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||v.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 v=Gh(),_=this._elementRef.nativeElement;(!v||v===this._document.body||v===_||_.contains(v))&&(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,v=Gh();return c===v||c.contains(v)}}]),n}(Ty);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(M3),z(hn),z(Jt,8),z(ug),z(b3),z(Pt),z(Rl))},i.\u0275dir=be({type:i,viewQuery:function(r,n){var l;1&r&&Rt(vc,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 v=c.toState,_=c.totalTime;"enter"===v?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:_})):"exit"===v&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:_}))}},{key:"_onAnimationStart",value:function(c){var v=c.toState,_=c.totalTime;"enter"===v?this._animationStateChanged.next({state:"opening",totalTime:_}):("exit"===v||"void"===v)&&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&&cp("@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),vp("@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:[vc],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:[jB.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"),WB=new Ae("mat-dialog-scroll-strategy"),qW={provide:WB,deps:[aa],useFactory:function YB(i){return function(){return i.scrollStrategies.block()}}},ZW=function(){var i=function(){function s(r,n,l,c,v,_,w,M,A,O){var F=this;R(this,s),this._overlay=r,this._injector=n,this._defaultOptions=l,this._parentDialog=c,this._overlayContainer=v,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 v=this._createOverlay(l),_=this._attachDialogContainer(v,l),w=this._attachDialogContent(n,_,v,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 v=kr.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:ug,useValue:l}]}),_=new Rf(this._dialogContainerType,l.viewContainerRef,v,l.componentFactoryResolver);return n.attach(_).instance}},{key:"_attachDialogContent",value:function(n,l,c,v){var _=new this._dialogRefConstructor(c,l,v.id);if(n instanceof hr)l.attachTemplatePortal(new es(n,null,{$implicit:v.data,dialogRef:_}));else{var w=this._createInjector(v,_,l),M=l.attachComponentPortal(new Rf(n,v.viewContainerRef,w,v.componentFactoryResolver));_.componentInstance=M.instance}return _.updateSize(v.width,v.height).updatePosition(v.position),_}},{key:"_createInjector",value:function(n,l,c){var v=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&&(!v||!v.get(Ei,null,It.Optional))&&_.push({provide:Ei,useValue:{value:n.direction,change:dt()}}),kr.create({parent:v||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,v){c?v.setAttribute("aria-hidden",c):v.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 v=l[c];v!==n&&"SCRIPT"!==v.nodeName&&"STYLE"!==v.nodeName&&!v.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(v,v.getAttribute("aria-hidden")),v.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,v,_,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(WB),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=qB(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=qB(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 qB(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,Kp,pn],pn]}),i}(),ZB=["mat-button",""],dE=["*"],e9=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],XB=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,v){var _;R(this,n),(_=r.call(this,l))._focusMonitor=c,_._animationMode=v,_.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,v){c?this._focusMonitor.focusVia(this._getHostElement(),c,v):this._getHostElement().focus(v)}},{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,v=arguments.length,_=new Array(v),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,v,_){var w;return R(this,n),(w=r.call(this,c,l,v))._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:ZB,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&&(pi(),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,pn],pn]}),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}(),KB=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 $B(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}(),QB=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 v=l;return{unsubscribe:function(){v.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),qp(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),pf(1,"safeHtml"),Se(2,"mat-dialog-content",1),pf(3,"safeHtml"),I(4,"mat-dialog-actions"),te(5,t9,4,1,"button",2),te(6,$B,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:[KB],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}(),JB=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)}(JB);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},vE=new Ae("CompositionEventMode"),yi=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v){var _;return R(this,n),(_=r.call(this,l,c))._compositionMode=v,_._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}(JB);return i.\u0275fac=function(r){return new(r||i)(z(Yu),z(tt),z(vE,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 nV(i){return null!=i&&"number"==typeof i.length}var Gi=new Ae("NgValidators"),Zf=new Ae("NgAsyncValidators"),rV=/^(?=.{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 pE(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 aV(r)}},{key:"email",value:function(r){return function oV(i){return wc(i.value)||rV.test(i.value)?null:{email:!0}}(r)}},{key:"minLength",value:function(r){return function gE(i){return function(s){return wc(s.value)||!nV(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 lV(i,s){return s.map(function(r){return r(i)})}function uV(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(lV(r,s))}}function bE(i){return null!=i?yE(uV(i)):null}function cV(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)}(vg),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}(vg),hV=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}(),vr=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)}(hV);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)}(hV);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 pg(i,s){SE(i,s),s.valueAccessor.writeValue(i.value),function _V(i,s){s.valueAccessor.registerOnChange(function(r){i._pendingValue=r,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&p9(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&&p9(i,s),"submit"!==i.updateOn&&i.markAsTouched()})}(i,s),function v9(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=fV(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=fV(i);if(Array.isArray(c)&&c.length>0){var v=c.filter(function(w){return w!==s.asyncValidator});v.length!==c.length&&(r=!0,i.setAsyncValidators(v))}}}var _=function(){};return uS(s._rawValidators,_),uS(s._rawAsyncValidators,_),r}function p9(i,s){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),s.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function yV(i,s){SE(i,s)}function CV(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(vS(i)?i.validators:i)||null}function xE(i){return Array.isArray(i)?bE(i):i||null}function TE(i,s){return(vS(s)?s.asyncValidators:i)||null}function SV(i){return Array.isArray(i)?yu(i):i||null}function vS(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}var MV=function(s){return s instanceof AE},eb=function(s){return s instanceof EE};function kV(i){return MV(i)?i.value:i.getRawValue()}function DV(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 xV(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=SV(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=SV(r)}},{key:"addValidators",value:function(r){this.setValidators(dV(r,this._rawValidators))}},{key:"addAsyncValidators",value:function(r){this.setAsyncValidators(dV(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 TV}(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){vS(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,v=arguments.length>2?arguments[2]:void 0;return R(this,r),(n=s.call(this,hS(c),TE(v,c))).defaultValue=null,n._onChange=[],n._pendingChange=!1,n._applyFormState(l),n._setUpdateStrategy(c),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),vS(c)&&c.initialValueIsDefault&&(n.defaultValue=n._isBoxedValue(l)?l.value:l),n}return L(r,[{key:"setValue",value:function(l){var c=this,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=l,this._onChange.length&&!1!==v.emitModelToViewChange&&this._onChange.forEach(function(_){return _(c.value,!1!==v.emitViewToModelChange)}),this.updateValueAndValidity(v)}},{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 v;return R(this,r),(v=s.call(this,hS(l),TE(c,l))).controls=n,v._initObservables(),v._setUpdateStrategy(l),v._setUpControls(),v.updateValueAndValidity({onlySelf:!0,emitEvent:!!v.asyncValidator}),v}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 v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(l,c),this.updateValueAndValidity({emitEvent:v.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 v=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:v.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,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};xV(this,l),Object.keys(l).forEach(function(_){DV(c,_),c.controls[_].setValue(l[_],{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v)}},{key:"patchValue",value:function(l){var c=this,v=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:v.emitEvent})}),this.updateValueAndValidity(v))}},{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(v,_){v.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,v){return l[v]=kV(c),l})}},{key:"_syncPendingControls",value:function(){var l=this._reduceChildren(!1,function(c,v){return!!v._syncPendingControls()||c});return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_forEachChild",value:function(l){var c=this;Object.keys(this.controls).forEach(function(v){var _=c.controls[v];_&&l(_,v)})}},{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,v=Object.keys(this.controls);c0||this.disabled}}]),r}(tb),TV=function(i){se(r,i);var s=ue(r);function r(n,l,c){var v;return R(this,r),(v=s.call(this,hS(l),TE(c,l))).controls=n,v._initObservables(),v._setUpdateStrategy(l),v._setUpControls(),v.updateValueAndValidity({onlySelf:!0,emitEvent:!!v.asyncValidator}),v}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 v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(l,0,c),this._registerControl(c),this.updateValueAndValidity({emitEvent:v.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 v=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:v.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(l){var c=this,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};xV(this,l),l.forEach(function(_,w){DV(c,w),c.at(w).setValue(_,{onlySelf:!0,emitEvent:v.emitEvent})}),this.updateValueAndValidity(v)}},{key:"patchValue",value:function(l){var c=this,v=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:v.emitEvent})}),this.updateValueAndValidity(v))}},{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(v,_){v.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 kV(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,v){return!!v._syncPendingControls()||c},!1);return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_forEachChild",value:function(l){this.controls.forEach(function(c,v){l(c,v)})}},{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),AV={provide:lo,useExisting:En(function(){return Sc})},tv=function(){return Promise.resolve(null)}(),Sc=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var v;return R(this,n),(v=r.call(this)).submitted=!1,v._directives=new Set,v.ngSubmit=new ye,v.form=new EE({},bE(l),yu(c)),v}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 v=this;tv.then(function(){var _=v._findContainer(c.path);c.control=_.registerControl(c.name,c.control),pg(c.control,c),c.control.updateValueAndValidity({emitEvent:!1}),v._directives.add(c)})}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){var v=this;tv.then(function(){var _=v._findContainer(c.path);_&&_.removeControl(c.name),v._directives.delete(c)})}},{key:"addFormGroup",value:function(c){var v=this;tv.then(function(){var _=v._findContainer(c.path),w=new EE({});yV(w,c),_.registerControl(c.name,w),w.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(c){var v=this;tv.then(function(){var _=v._findContainer(c.path);_&&_.removeControl(c.name)})}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,v){var _=this;tv.then(function(){_.form.get(c.path).setValue(v)})}},{key:"setValue",value:function(c){this.control.setValue(c)}},{key:"onSubmit",value:function(c){return this.submitted=!0,CV(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([AV]),Re]}),i}(),eQ={provide:Bl,useExisting:En(function(){return ar})},OV=function(){return Promise.resolve(null)}(),ar=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v,_,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(v),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 v=c.name.previousValue;this.formDirective.removeControl({name:v,path:this._getPath(v)})}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(){pg(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 v=this;OV.then(function(){var _;v.control.setValue(c,{emitViewToModelChange:!1}),null===(_=v._changeDetectorRef)||void 0===_||_.markForCheck()})}},{key:"_updateDisabled",value:function(c){var v=this,_=c.isDisabled.currentValue,w=""===_||_&&"false"!==_;OV.then(function(){var M;w&&!v.control.disabled?v.control.disable():!w&&v.control.disabled&&v.control.enable(),null===(M=v._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(v){c(""==v?null:parseFloat(v))}}}]),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}(),IV=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 v;return R(this,n),(v=r.call(this)).validators=l,v.asyncValidators=c,v.submitted=!1,v._onCollectionChange=function(){return v._updateDomValue()},v.directives=[],v.form=null,v.ngSubmit=new ye,v._setValidators(l),v._setAsyncValidators(c),v}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 v=this.form.get(c.path);return pg(v,c),v.updateValueAndValidity({emitEvent:!1}),this.directives.push(c),v}},{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,v){this.form.get(c.path).setValue(v)}},{key:"onSubmit",value:function(c){return this.submitted=!0,CV(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(v){var _=v.control,w=c.form.get(v.path);_!==w&&(lS(_||null,v),MV(w)&&(pg(w,v),v.control=w))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(c){var v=this.form.get(c.path);yV(v,c),v.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(c){if(this.form){var v=this.form.get(c.path);if(v){var _=function bV(i,s){return cS(i,s)}(v,c);_&&v.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 nv=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}(nv);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 aV},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)}(nv);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:[[IV]]}),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}(),XV=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 KV(i,s){1&i&&Gt(0)}var $V=["*"];function N9(i,s){}var QV=function(s){return{animationDuration:s}},B9=function(s,r){return{value:s,params:r}},V9=["tabListContainer"],H9=["tabList"],z9=["tabListInner"],JV=["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),v=Q();Ze("mat-tab-label-active",v.selectedIndex===l),U("id",v._getTabLabelId(l))("ngClass",n.labelClass)("disabled",n.disabled)("matRippleDisabled",n.disabled||v.disableRipple),lt("tabIndex",v._getTabIndex(n,l))("aria-posinset",l+1)("aria-setsize",v._tabs.length)("aria-controls",v._getTabContentId(l))("aria-selected",v.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 e5=new Ae("MatInkBarPositioner",{providedIn:"root",factory:function t5(){return function(r){return{left:r?(r.offsetLeft||0)+"px":"0",width:r?(r.offsetWidth||0)+"px":"0"}}}}),n5=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),v=l._elementRef.nativeElement;v.style.left=c.left,v.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(e5),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"),r5=new Ae("MatTabLabel"),a5=new Ae("MAT_TAB"),rs=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v){var _;return R(this,n),(_=r.call(this,l,c))._closestTab=v,_}return L(n)}(Tj);return i.\u0275fac=function(r){return new(r||i)(z(hr),z(wr),z(a5,8))},i.\u0275dir=be({type:i,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[ft([{provide:r5,useExisting:i}]),Re]}),i}(),o5=Fl(function(){return L(function i(){R(this,i)})}()),s5=new Ae("MAT_TAB_GROUP"),Hs=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var v;return R(this,n),(v=r.call(this))._viewContainerRef=l,v._closestTabGroup=c,v.textLabel="",v._contentPortal=null,v._stateChanges=new Xe,v.position=null,v.origin=null,v.isActive=!1,v}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}(o5);return i.\u0275fac=function(r){return new(r||i)(z(wr),z(s5,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-tab"]],contentQueries:function(r,n,l){var c;1&r&&(Mn(l,r5,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:a5,useExisting:i}]),Re,xn],ngContentSelectors:$V,decls:1,vars:0,template:function(r,n){1&r&&(pi(),te(0,KV,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,v,_){var w;return R(this,n),(w=r.call(this,l,c,_))._host=v,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(v){v&&!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}(vc);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}(),l5=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(v){c._computePositionAnimationState(v),l.markForCheck()})),this._translateTabComplete.pipe(Fy(function(v,_){return v.fromState===_.fromState&&v.toState===_.toState})).subscribe(function(v){c._isCenterPosition(v.toState)&&c._isCenterPosition(c._position)&&c._onCentered.emit(),c._isCenterPosition(v.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,v){return R(this,n),r.call(this,l,c,v)}return L(n)}(l5);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(vc,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,QV,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}(),u5=new Ae("MAT_TABS_CONFIG"),J9=Fl(function(){return L(function i(){R(this,i)})}()),c5=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}(),f5=Vh({passive:!0}),qE=function(){var i=function(){function s(r,n,l,c,v,_,w){var M=this;R(this,s),this._elementRef=r,this._changeDetectorRef=n,this._viewportRuler=l,this._dir=c,this._ngZone=v,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,v.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",f5).pipe(Wt(this._destroyed)).subscribe(function(){n._handlePaginatorPress("before")}),gu(this._nextPaginator.nativeElement,"touchstart",f5).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),v=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(v),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)),v()})}),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,v=l.elementRef.nativeElement,_=v.offsetLeft,w=v.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(),qp(650,100).pipe(Wt(Rr(this._stopScrolling,this._destroyed))).subscribe(function(){var v=c._scrollHeader(n),w=v.distance;(0===w||w>=v.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(vn),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,v,_,w,M,A){var O;return R(this,n),(O=r.call(this,l,c,v,_,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(vn),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,v,_,w,M,A){return R(this,n),r.call(this,l,c,v,_,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(vn),z(mi,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-tab-header"]],contentQueries:function(r,n,l){var c;1&r&&Mn(l,c5,4),2&r&&Ve(c=Ge())&&(n._items=c)},viewQuery:function(r,n){var l;1&r&&(Rt(n5,7),Rt(V9,7),Rt(H9,7),Rt(z9,7),Rt(JV,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:$V,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&&(pi(),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,v1,n5],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}(),d5=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,v,_){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=d5++,w.animationDuration=v&&v.animationDuration?v.animationDuration:"500ms",w.disablePagination=!(!v||null==v.disablePagination)&&v.disablePagination,w.dynamicHeight=!(!v||null==v.dynamicHeight)&&v.dynamicHeight,w.contentTabIndex=null!==(M=null==v?void 0:v.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 v=this._elementRef.nativeElement;v.classList.remove("mat-background-".concat(this.backgroundColor)),c&&v.classList.add("mat-background-".concat(c)),this._backgroundColor=c}},{key:"ngAfterContentChecked",value:function(){var c=this,v=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=v){var _=null==this._selectedIndex;if(!_){this.selectedTabChange.emit(this._createChangeEvent(v));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===v}),_||(c.selectedIndexChange.emit(v),c._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(M,A){M.position=A-v,null!=c._selectedIndex&&0==M.position&&!M.origin&&(M.origin=v-c._selectedIndex)}),this._selectedIndex!==v&&(this._selectedIndex=v,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 v=c._clampTabIndex(c._indexToSelect);if(v===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&&_[v]&&Promise.resolve().then(function(){_[v].isActive=!0,c.selectedTabChange.emit(c._createChangeEvent(v))})}c._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var c=this;this._allTabs.changes.pipe(na(this._allTabs)).subscribe(function(v){c._tabs.reset(v.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 v=this._tabHeader;v&&(v.focusIndex=c)}},{key:"_focusChanged",value:function(c){this._lastFocusedTabIndex=c,this.focusChange.emit(this._createChangeEvent(c))}},{key:"_createChangeEvent",value:function(c){var v=new Jf;return v.index=c,this._tabs&&this._tabs.length&&(v.tab=this._tabs.toArray()[c]),v}},{key:"_subscribeToTabLabels",value:function(){var c=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Rr.apply(void 0,yt(this._tabs.map(function(v){return v._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 v=this._tabBodyWrapper.nativeElement;v.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(v.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,v,_){c.disabled||(this.selectedIndex=v.focusIndex=_)}},{key:"_getTabIndex",value:function(c,v){var _;return c.disabled?null:v===(null!==(_=this._lastFocusedTabIndex)&&void 0!==_?_:this.selectedIndex)?0:-1}},{key:"_tabFocusChanged",value:function(c,v){c&&"mouse"!==c&&"touch"!==c&&(this._tabHeader.focusIndex=v)}}]),n}(tY);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(u5,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,v,_){return R(this,n),r.call(this,l,c,v,_)}return L(n)}(nY);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(u5,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:s5,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,c5,Nl,E3,As,en,vc],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,pn,Kp,Cc,Ny,xA],pn]}),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 p5(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,p5,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 g5(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,g5,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 vY(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 pY(i,s){1&i&&te(0,vY,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,pY,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 av,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 v=void 0!==c.values?c.values:c.value;if(c.gui.required&&0!==v&&(!v||v instanceof Array&&0===v.length)&&l.push(c.gui.label),"number"==typeof v){var _=parseInt((c.gui.minValue||987654321).toString(),10),w=parseInt((c.gui.maxValue||987654321).toString(),10);987654321!==_&&v<_&&l.push(c.gui.label+" >= "+c.gui.minValue),987654321!==w&&v>w&&l.push(c.gui.label+" <= "+c.gui.maxValue),v=v.toString()}n[c.name]=v}),{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),pf(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:[KB],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 v=null!=l;l=v?l:{},n.forEach(function(M){(!1===v||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,v,_,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,v,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,v?r.table.rest.save(le.data,v.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],v=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,v,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,v=r.param?r.param.type:void 0,_=new ye;return this.typedForm(r,n,l,c,null,v).subscribe(function(w){_.emit(w)}),_}},{key:"deleteForm",value:function(r,n){var l=this,c=new Array,v=new Array;r.table.selection.selected.forEach(function(w){var M=w.name||w.friendly_name;M.changingThisBreaksApplicationSecurity&&(M=M.changingThisBreaksApplicationSecurity),c.push(M),v.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=v.length,A=function(){l.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),r.table.overview()};v.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,v=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===v[A.name]&&(v[A.name]=!0,c.executeCallback(r,A,l,v))})})}}]),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;",m5=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,v=c||(window.innerWidth<800?"80%":"40%"),_=this.dialog.open(QB,{width:v,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%",v=this.dialog.open(QB,{width:c,data:{title:r,body:n,type:fg.yesno,warnOnYes:l},disableClose:!0});return v.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}(),pr=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"}(pr||(pr={})),pr}(),y5="provider",b5="service",JE="pool",eP="user",DS="transport",iv="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 y5:this.gotoProvider(c(0));break;case b5: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 iv:this.gotoOSManager(c(0));break;case ob:this.gotoCalendar(c(0));break;case sb:this.gotoPoolGroup(c(0))}}catch(v){}}}],[{key:"getGotoButton",value:function(r,n,l){return{id:r,html:'link'+django.gettext("Go to")+" "+CY[r]+"",type:pr.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):w5}return L(s,[{key:"matchMedia",value:function(n){return(this._platform.WEBKIT||this._platform.BLINK)&&function rP(i){if(!tP.has(i))try{av||((av=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(av)),av.sheet&&(av.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(vn))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function w5(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(v){return l._registerQuery(v).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 M5(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"}),k5=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,k5))}},{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,M5,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,v,_,w){var M;return R(this,n),(M=r.call(this))._ngZone=l,M._elementRef=c,M._changeDetectorRef=v,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,v=this.snackBarConfig.panelClass;v&&(Array.isArray(v)?v.forEach(function(_){return c.classList.add(_)}):c.classList.add(v)),"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 v=c._elementRef.nativeElement.querySelector("[aria-hidden]"),_=c._elementRef.nativeElement.querySelector("[aria-live]");if(v&&_){var w=null;c._platform.isBrowser&&document.activeElement instanceof HTMLElement&&v.contains(document.activeElement)&&(w=document.activeElement),v.removeAttribute("aria-hidden"),_.appendChild(v),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(vn),z(xS))},i.\u0275cmp=ke({type:i,selectors:[["snack-bar-container"]],viewQuery:function(r,n){var l;1&r&&Rt(vc,7),2&r&&Ve(l=Ge())&&(n._portalOutlet=l.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(r,n){1&r&&cp("@state.done",function(c){return n.onAnimationEnd(c)}),2&r&&vp("@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:[vc],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}(),D5=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,Kp,io,tS,pn],pn]}),i}(),x5=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,v,_){R(this,s),this._overlay=r,this._live=n,this._injector=l,this._breakpointObserver=c,this._parentSnackBar=v,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,v=Object.assign(Object.assign({},this._defaultConfig),c);return v.data={message:n,action:l},v.announcementMessage===n&&(v.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,v)}},{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 v=kr.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:xS,useValue:l}]}),_=new Rf(this.snackBarContainerComponent,l.viewContainerRef,v),w=n.attach(_);return w.instance.snackBarConfig=l,w.instance}},{key:"_attach",value:function(n,l){var c=this,v=Object.assign(Object.assign(Object.assign({},new xS),this._defaultConfig),l),_=this._createOverlay(v),w=this._attachSnackBarContainer(_,v),M=new lb(w,_);if(n instanceof hr){var A=new es(n,null,{$implicit:v.data,snackBarRef:M});M.instance=w.attachTemplatePortal(A)}else{var O=this._createInjector(v,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)}),v.announcementMessage&&w._onAnnounce.subscribe(function(){c._live.announce(v.announcementMessage,v.politeness)}),this._animateSnackBar(M,v),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(),v="rtl"===n.direction,_="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!v||"end"===n.horizontalPosition&&v,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(x5))},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,v,_,w,M){var A;return R(this,n),(A=r.call(this,l,c,v,_,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(x5))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:D5}),i}(),TS="dark-theme",T5="light-theme",Ot=function(){var i=function(){function s(r,n,l,c,v,_){R(this,s),this.http=r,this.router=n,this.dialog=l,this.snackbar=c,this.sanitizer=v,this.dateAdapter=_,this.user=new MN(udsData.profile),this.navigation=new is(this.router),this.gui=new m5(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,T5].forEach(function(c){l.classList.contains(c)&&l.classList.remove(c)}),l.classList.add(n?TS:T5)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(rF),ge(Ba),ge(eS),ge(xY),ge(Yx),ge(oa))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),A5=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(v,_){return void 0===v?_:v};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 Bp).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 v=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 v.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(v){return n.handleError(v)}))}},{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,v){var _;return R(this,r),(_=s.call(this,n.api,[n.paths.base,l,c].join("/"))).parentModel=n,_.parentId=l,_.model=c,_.perm=v,_}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,v){var _=arguments.length>3&&void 0!==arguments[3]?arguments[3]:12;return this.get(l+"/search?type="+encodeURIComponent(c)+"&term="+encodeURIComponent(v)+"&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),E5=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,v){return this.get(l+"/createFromAssignable?user_id="+encodeURIComponent(c)+"&assignable_id="+encodeURIComponent(v))}}]),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),P5=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 v="stats/"+l;return c&&(v+="/"+c),this.get(v)}},{key:"flushCache",value:function(){return this.doGet(this.getPath("cache","flush"))}}]),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,"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),I5=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 E5(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 P5(r),this.actorToken=new FY(r),this.tunnelToken=new cb(r),this.reports=new O5(r),this.notifiers=new I5(r)});return i.\u0275fac=function(r){return new(r||i)(ge(Ot))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),R5=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],L5=[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||G5).formats=n.formats||{};var c=r.getTime();return(l.utc||"number"==typeof l.timezone)&&(r=F5(r)),"number"==typeof l.timezone&&(r=new Date(r.getTime()+6e4*l.timezone)),s.replace(/%([-_0]?.)/g,function(v,_){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 v;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(N5(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(N5(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())+B5(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(V5(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(V5(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 _}})},F5=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},B5=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"}},V5=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)},H5=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(H5(c),new Date(1e3*r))}return l},fP=function(s){return"yes"===s||!0===s||"true"===s||1===s},G5={days:R5,shortDays:cP(R5),months:L5,shortMonths:cP(L5),AM:"AM",PM:"PM",am:"am",pm:"pm"},U5={leading:!0,trailing:!1};function BY(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U5;return gr(function(r,n){var l=s.leading,c=s.trailing,v=!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(pe(n,A,O))},Y=function(){if(v){v=!1;var oe=_;_=null,n.next(oe),!M&&F(oe)}};r.subscribe(pe(n,function($){v=!0,_=$,(!w||w.closed)&&(l?Y():F($))},function(){M=!0,(!(c&&v&&w)||w.closed)&&n.complete()}))})}var W5=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=W5.of(n);c.notFirstAndEmpty("options").subscribe(function(v){return l.onOptionsChange(v)}),c.notFirstAndEmpty("merge").subscribe(function(v){return l.setOption(v)}),c.has("loading").subscribe(function(v){return l.toggleLoading(!!v)}),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 j5(i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U5,n=qp(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(v){for(;;)switch(v.prev=v.next){case 0:if(n){v.next=2;break}return v.abrupt("return");case 2:if(!this.chart){v.next=6;break}this.setOption(this.options,!0),v.next=11;break;case 6:return v.next=8,this.createChart();case 8:this.chart=v.sent,this.chartInit.emit(this.chart),this.setOption(this.options,!0);case 11:case"end":return v.stop()}},l,this)}))}},{key:"createLazyEvent",value:function(n){var l=this;return this.chartInit.pipe(_a(function(c){return new Jn(function(v){return c.on(n,function(_){return l.ngZone.run(function(){return v.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 Y5(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=v[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,v=["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"),tH=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:tH,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"),vb=new Ae("MatFormField"),or=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v,_,w,M,A){var O;return R(this,n),(O=r.call(this,l))._changeDetectorRef=c,O._dir=v,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 v=this._appearance;this._appearance=c||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&v!==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 v=this._control;v.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(v.controlType)),v.stateChanges.pipe(na(null)).subscribe(function(){c._validatePlaceholders(),c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),v.ngControl&&v.ngControl.valueChanges&&v.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 v=this._control?this._control.ngControl:null;return v&&v[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 v=this._hintChildren?this._hintChildren.find(function(w){return"start"===w.align}):null,_=this._hintChildren?this._hintChildren.find(function(w){return"end"===w.align}):null;v?c.push(v.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,v=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=v.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})))])},ov=0,sH=new Ae("mat-select-scroll-strategy"),lH=new Ae("MAT_SELECT_CONFIG"),dq={provide:sH,deps:[aa],useFactory:function fq(i){return function(){return i.scrollStrategies.reposition()}}},uH=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})}())))),cH=new Ae("MatSelectTrigger"),vq=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:cH,useExisting:i}])]}),i}(),RS=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v,_,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=v,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(ov++),ae._triggerAriaLabelledBy=null,ae._destroy=new Xe,ae._onChange=function(){},ae._onTouched=function(){},ae._valueId="mat-select-value-".concat(ov++),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,v,_,w;return null!==(w=null!==(c=this._required)&&void 0!==c?c:null===(_=null===(v=this.ngControl)||void 0===v?void 0:v.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(v){v.added.forEach(function(_){return _.select()}),v.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(),v=this.ngControl;if(c!==this._triggerAriaLabelledBy){var _=this._elementRef.nativeElement;this._triggerAriaLabelledBy=c,c?_.setAttribute("aria-labelledby",c):_.removeAttribute("aria-labelledby")}v&&(this._previousControl!==v.control&&(void 0!==this._previousControl&&null!==v.disabled&&v.disabled!==this.disabled&&(this.disabled=v.disabled),this._previousControl=v.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,v;return this.multiple?(null===(c=this._selectionModel)||void 0===c?void 0:c.selected)||[]:null===(v=this._selectionModel)||void 0===v?void 0:v.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var c=this._selectionModel.selected.map(function(v){return v.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 v=c.keyCode,_=40===v||38===v||37===v||39===v,w=13===v||32===v,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 v=this._keyManager,_=c.keyCode,w=40===_||38===_,M=v.isTyping();if(w&&c.altKey)c.preventDefault(),this.close();else if(M||13!==_&&32!==_||!v.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=v.activeItemIndex;v.onKeydown(c),this._multiple&&w&&c.shiftKey&&v.activeItem&&v.activeItemIndex!==O&&v.activeItem._selectViaInteraction()}else c.preventDefault(),v.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 v=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 v._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 v=this,_=this.options.find(function(w){if(v._selectionModel.isSelected(w))return!1;try{return null!=w.value&&v._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 y3(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,v=Rr(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Wt(v)).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(v)).subscribe(function(){c._changeDetectorRef.markForCheck(),c.stateChanges.next()})}},{key:"_onSelect",value:function(c,v){var _=this._selectionModel.isSelected(c);null!=c.value||this._multiple?(_!==c.selected&&(c.selected?this._selectionModel.select(c):this._selectionModel.deselect(c)),v&&this._keyManager.setActiveItem(c),this.multiple&&(this._sortValues(),v&&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 v=this.options.toArray();this._selectionModel.sort(function(_,w){return c.sortComparator?c.sortComparator(_,w,v):v.indexOf(_)-v.indexOf(w)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(c){var v;v=this.multiple?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=v,this.valueChange.emit(v),this._onChange(v),this.selectionChange.emit(this._getChangeEvent(v)),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 v=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId();return this.ariaLabelledby?(v?v+" ":"")+this.ariaLabelledby:v}},{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 v=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId(),_=(v?v+" ":"")+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(vb,8),z(Bl,10),Ho("tabindex"),z(sH),z(kA),z(lH,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,v,_){var w=this._getItemHeight();return Math.min(Math.max(0,w*c-v+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 v=cE(c,this.options,this.optionGroups),_=this._getItemHeight();this.panel.nativeElement.scrollTop=0===c&&1===v?0:UB((c+v)*_,_,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 uH(this,c)}},{key:"_calculateOverlayOffsetX",value:function(){var M,c=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),v=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-v.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,v,_){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):v-w/2,Math.round(-1*O-M))}},{key:"_checkOverlayWithinViewport",value:function(c){var v=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()*v,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,v){var _=Math.round(c-v);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,v,_){var w=Math.round(c-v);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(),v=this._getItemCount(),_=Math.min(v*c,256),M=v*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(),v=(c-this._triggerRect.height)/2,_=Math.abs(this._offsetY)-v+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,cH,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:iH,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&&(pi(rH),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:[c3,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:[aH.transformPanelWrap,aH.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,pn],If,PS,Q1,pn]}),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 fH(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),dH=function(){var i=function(){function s(r,n,l,c,v,_,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=v,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 v=this._tooltipInstance=c.attach(this._portal).instance;v._triggerElement=this._elementRef.nativeElement,v._mouseLeaveHideDelay=this._hideDelay,v.afterHidden().pipe(Wt(this._destroyed)).subscribe(function(){return n._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),v.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),v=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(c);return v.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:v,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(),v=this._getOverlayPosition();l.withPositions([this._addOffset(Object.assign(Object.assign({},c.main),v.main)),this._addOffset(Object.assign(Object.assign({},c.fallback),v.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 v=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:v.x,originY:v.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 v=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:v.x,overlayY:v.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 v=function(){clearTimeout(n._touchstartTimeout),n.hide(n._defaultOptions.touchendHideDelay)};c.push(["touchend",v],["touchcancel",v])}this._addListeners(c),(l=this._passiveListeners).push.apply(l,c)}}},{key:"_addListeners",value:function(n){var l=this;n.forEach(function(c){var v=Pr(c,2);l._elementRef.nativeElement.addEventListener(v[0],v[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}(),hH=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v,_,w,M,A,O,F,Y,$,oe){var le;return R(this,n),(le=r.call(this,l,c,v,_,w,M,A,O,F,Y,$,oe))._tooltipComponent=lv,le}return L(n)}(dH);return i.\u0275fac=function(r){return new(r||i)(z(aa),z(tt),z(FN),z(wr),z(Pt),z(vn),z(g3),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}(),kP=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,v=this._hideAnimation;if(l.classList.remove(n?v:c),l.classList.add(n?c:v),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}(),lv=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v){var _;return R(this,n),(_=r.call(this,l,v))._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)}(kP);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(v){return n._handleAnimationEnd(v)}),pf(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}(),DP=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,pn],pn,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 vH(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 xP(i,s){if(1&i&&(I(0,"div",20),K(1),B()),2&i){var r=Q(2);G(1),Ln(r.pageSize)}}function TP(i,s){if(1&i&&(I(0,"div",12)(1,"div",13),K(2),B(),te(3,vH,3,6,"mat-form-field",14),te(4,xP,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,v=c<(l=Math.max(l,0))?Math.min(c+n,l):c+n;return"".concat(c+1," \u2013 ").concat(v," 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 pH(i){return i||new kg}},Cq=new Ae("MAT_PAGINATOR_DEFAULT_OPTIONS"),_H=Fl(RB(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,v){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()}),v){var w=v.pageSize,M=v.pageSizeOptions,A=v.hidePageSize,O=v.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(v){return Va(v)}),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=RB(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 v,_,w;if(!c)return"";var M=null!==(_=null!==(v=null==c?void 0:c.disableClear)&&void 0!==v?v: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,v,_,w,M,A){var O;return R(this,n),(O=r.call(this))._intl=l,O._changeDetectorRef=c,O._sort=v,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(v){var _=!!v;_!==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 v,_;this._sortButton&&(null===(v=this._ariaDescriber)||void 0===v||v.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(g3,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&&(pi(),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,pn]]}),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,v=new Array(c),_=0;_4&&void 0!==arguments[4])||arguments[4],v=!(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=v,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=[],v=qt(r);try{for(v.s();!(_=v.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(_,v),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,v=0;v0;v--)n[v]&&(l[v]=c,c+=r[v]);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,v,_,w,M,A,O,F,Y){R(this,s),this._differs=r,this._changeDetectorRef=n,this._elementRef=l,this._dir=v,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(),vP(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(v,_,w){return n._getEmbeddedViewArgs(v.item,w)},function(v){return v.item.data},function(v){1===v.operation&&v.context&&n._renderCellTemplateForItem(v.record.item.rowDef,v.context)}),this._updateRowIndexContext(),l.forEachIdentityChange(function(v){c.get(v.currentIndex).context.$implicit=v.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 v=this._headerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["top"]),this._stickyStyler.stickRows(n,v,"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 v=this._footerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["bottom"]),this._stickyStyler.stickRows(n,v,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,v),this._footerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var n=this,l=this._getRenderedRows(this._headerRowOutlet),c=this._getRenderedRows(this._rowOutlet),v=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(yt(l),yt(c),yt(v)),["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,v=Array.from(l.columns||[]).map(function(M){return c._columnDefsByName.get(M)}),_=v.map(function(M){return M.sticky}),w=v.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,v,c);return this._renderCellTemplateForItem(l,v),_}},{key:"_renderCellTemplateForItem",value:function(n,l){var v,c=qt(this._getCellTemplates(n));try{for(c.s();!(v=c.n()).done;)Yt.mostRecentCellOutlet&&Yt.mostRecentCellOutlet._viewContainer.createEmbeddedView(v.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,v){var _=c[v];if(kN(_)){var w=Number(_);return wF?oe=1:O0)){var _=Math.ceil(v.length/v.pageSize)-1||0,w=Math.min(v.pageIndex,_);w!==v.pageIndex&&(v.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(pe(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=qp(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=pu(n),v=this._monitoredElements.get(c);if(v)return v.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=pu(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(vn),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,v,_,w,M,A,O,F,Y){var $;R(this,n),($=r.call(this,M,_,w,v))._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,v,_,w;return null!==(w=null!==(c=this._required)&&void 0!==c?c:null===(_=null===(v=this.ngControl)||void 0===v?void 0:v.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(v){c.autofilled=v.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,v,_=(null===(v=null===(c=this._formField)||void 0===c?void 0:c._hideControlPlaceholder)||void 0===v?void 0:v.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,v=c.options[0];return this.focused||c.multiple||!this.empty||!!(c.selectedIndex>-1&&v&&v.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(vn),z(Bl,10),z(Sc,8),z($f,8),z(qy),z(OQ,10),z(kee),z(Pt),z(vb,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,pn],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 _,v=n.searchSelectInput.nativeElement;v=v.parentElement;)if(v.classList.contains("cdk-overlay-pane")){_=v;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 v=n.matSelect.options.map(function(_){return _.value});n.previousSelectedValues.forEach(function(_){-1===l.indexOf(_)&&-1===v.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(v){l.entities.push({id:v.id,text:v.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 v=window.innerWidth<800?"80%":"50%";return n.gui.dialog.open(s,{width:v,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(v){return n.changeAuth(v)})("ngModelChange",function(v){return n.authenticator=v}),te(9,Fee,2,2,"mat-option",6),B()(),I(10,"mat-form-field")(11,"mat-select",7),ne("ngModelChange",function(v){return n.entity=v}),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(v){return n.permission=v}),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,vr,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 v=he(r).$implicit;return Q(2).revokePermission(v)}),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(v){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(v){l.data.rest.addPermission(l.data.item.id,c+"s",v.entity,v.permissision).subscribe(function(_){l.reload()})})}}],[{key:"launch",value:function(n,l,c){var v=window.innerWidth<800?"90%":"60%";n.gui.dialog.open(s,{width:v,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 v=l[c.name];switch(c.type){case ui.DATE:v=zs("SHORT_DATE_FORMAT",v);break;case ui.DATETIME:v=zs("SHORT_DATETIME_FORMAT",v);break;case ui.DATETIMESEC:v=zs("SHORT_DATE_FORMAT",v," H:i:s");break;case ui.TIME:v=zs("TIME_FORMAT",v)}r+=LQ(v)+","}),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,v,_,w){R(this,s),this._template=r,this._componentFactoryResolver=n,this._appRef=l,this._injector=c,this._viewContainerRef=v,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)})}())),AP=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v,_,w){var M,A;return R(this,n),(M=r.call(this))._elementRef=l,M._document=c,M._focusMonitor=v,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,v){this._focusMonitor&&c?this._focusMonitor.focusVia(this._getHostElement(),c,v):this._getHostElement().focus(v),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,v=this._elementRef.nativeElement.cloneNode(!0),_=v.querySelectorAll("mat-icon, .material-icons"),w=0;w<_.length;w++)_[w].remove();return(null===(c=v.textContent)||void 0===c?void 0:c.trim())||""}},{key:"_setHighlighted",value:function(c){var v;this._highlighted=c,null===(v=this._changeDetectorRef)||void 0===v||v.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&&(pi(),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,EP=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(v){l._classList[v]=!1}),this._previousPanelClass=n,n&&n.length&&(n.split(" ").forEach(function(v){l._classList[v]=!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,v=n._keyManager;if("enter"===n._panelAnimationState&&(null===(c=v.activeItem)||void 0===c?void 0:c._hasFocus())){var _=l.toArray(),w=Math.max(0,Math.min(_.length-1,v.activeItemIndex||0));_[w]&&!_[w].disabled?v.setActiveItem(w):v.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 v=n._keyManager;v.setFocusOrigin(l).setFirstItemActive(),!v.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),v="".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[v]=!0,this._previousElevation=v)}},{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,v=this._classList;v["mat-menu-before"]="before"===n,v["mat-menu-after"]="after"===n,v["mat-menu-above"]="above"===l,v["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,AP,5),Mn(l,AP,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,v,_){var w;return R(this,n),(w=r.call(this,l,c,v,_))._elevationPrefix="mat-elevation-z",w._baseElevation=4,w}return L(n)}(EP);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&&(pi(),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,v,_,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=v instanceof EP?v: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(),v=c.positionStrategy;this._setPosition(v),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 EP&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(Wt(this.menu.close)).subscribe(function(){v.withLockedPosition(!1).reapplyLastPosition(),v.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 EP?(c._resetAnimation(),c.lazyContent?c._animationDone.pipe(Ur(function(v){return"void"===v.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 v="start"===c.connectionPair.overlayX?"after":"before",_="top"===c.connectionPair.overlayY?"below":"above";l._ngZone?l._ngZone.run(function(){return l.menu.setPositionClasses(v,_)}):l.menu.setPositionClasses(v,_)})}},{key:"_setPosition",value:function(n){var c=Pr("before"===this.menu.xPosition?["end","start"]:["start","end"],2),v=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,$=v,oe=_,le=0;this.triggersSubmenu()?(oe=v="before"===this.menu.xPosition?"start":"end",_=$="end"===v?"start":"end",le="bottom"===A?8:-8):this.menu.overlapTrigger||(F="top"===A?"bottom":"top",Y="top"===O?"bottom":"top"),n.withPositions([{originX:v,originY:F,overlayX:$,overlayY:A,offsetY:le},{originX:_,originY:F,overlayX:oe,overlayY:A,offsetY:le},{originX:v,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 EP&&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(AP,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,pn,Cc,Nf],If,pn]}),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,v,_,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"===v&&!!_&&!_._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,v=50*(null!==(c=l.currentScale)&&void 0!==c?c:1);return"".concat(v,"% ").concat(v,"%")}},{key:"_attachStyleNode",value:function(){var l=this._styleRoot,c=this._diameter,v=r._diameters,_=v.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),_||v.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(vn),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 vte=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:[[pn,io],pn]}),i}(),pte=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:[[pn],pn]}),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),pf(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),pf(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),pf(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 v=he(r).$implicit,_=Q();return _.detailAction.emit({param:v,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,v){if(!(v in c))return"";var _=c[v];return"number"==typeof _?_:"string"==typeof _?_.toLocaleLowerCase():(null===_&&(_=7226578800),_.changingThisBreaksApplicationSecurity&&(_=_.changingThisBreaksApplicationSecurity),(""+_).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(c,v){try{n.columns.forEach(function(_){if((""+c[_.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(v))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(v){n.initialize(v,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 v=[];n.fields.forEach(function(_){for(var w in _)if(_.hasOwnProperty(w)){var M=_[w];v.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=v,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!==pr.ONLY_MENU&&n.type!==pr.ACCELERATOR}):[]}},{key:"getCustomMenu",value:function(){return this.customButtons?this.customButtons.filter(function(n){return n.type!==pr.ACCELERATOR}):[]}},{key:"getCustomAccelerators",value:function(){return this.customButtons?this.customButtons.filter(function(n){return n.type===pr.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(v){}return this.api.safeString(c);case ui.CALLBACK:break;case ui.DICTIONARY:try{c=l.dict[c]}catch(v){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 pr.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===n.disabled;case pr.MULTI_SELECT:return this.selection.isEmpty()||!0===n.disabled;default:return!1}}},{key:"emitCustom",value:function(n){!this.selection.selected.length&&n.type!==pr.ALWAYS||(n.type===pr.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 v=n[l.name];v.changingThisBreaksApplicationSecurity&&(v=v.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+v,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(v){return n.filterText=v}),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(v){return n.keyDown(v)}),I(31,"mat-table",19),ne("matSortChange",function(v){return n.sortChanged(v)}),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,AP,jQ,cg,Gn,or,ua,yi,vr,ar,qn,wg,NS,kq,k,TH,xH,AH,DH,EH,T,Dq,Tq,xq,Aq,As,VS,Jee,pte],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:pr.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],v=c.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+c.name,v).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 v={};return v[c.field]={visible:!0,title:c.title,type:void 0===c.type?ui.ALPHANUMERIC:c.type},v})}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,vr,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 vne(i,s){1&i&&(I(0,"uds-translate"),K(1,"Logs"),B())}var pne=[{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")},pne,this.service.id+"infopsls")}}],[{key:"launch",value:function(n,l,c){var v=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:v,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,vne,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 v=n.value[c.name];switch(c.gui.type){case za.CHECKBOX:c.value=v?django.gettext("Yes"):django.gettext("No");break;case za.PASSWORD:c.value=django.gettext("(hidden)");break;case za.CHOICE:var _=nS.locateChoice(v,c);c.value=_.text;break;case za.MULTI_CHOICE:c.value=django.gettext("Selected items :")+v.length;break;case za.IMAGECHOICE:var w=nS.locateChoice(v,c);c.value=n.api.safeString(n.api.gui.icon(w.img)+" "+w.text);break;default:c.value=v}(""===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:pr.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(v){n.gui=v})})}},{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(v){v.id===l&&c.selection.select(v)})}}}}]),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,v,_){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=!!v.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(v,_){return v[_]=!0,v},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new y3(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(v){c.isOpen&&c.optionActivated.emit({source:c,option:c.options.toArray()[v]||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 v=new Ane(this,c);this.optionSelected.emit(v)}},{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(vn))},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&&(pi(),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,v,_,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=v,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 GB?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),v=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&&(!v||!v.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 v=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!==v)&&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 v=n.panelOpen;n._resetActiveItem(),n.autocomplete._setVisibility(),n._changeDetectorRef.detectChanges(),n.panelOpen&&(n._overlayRef.updatePosition(),v!==n.panelOpen&&n.autocomplete.opened.emit())}),n.panelClosingActions}),gn(1)).subscribe(function(v){return n._setValueAndClose(v)})}},{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 v=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&v!==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,v=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:c},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:c}];_="above"===this.position?v:"below"===this.position?l:[].concat(l,v),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 v=l.options.toArray()[n];if(v){var _=v._getHostElement(),w=UB(_.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(vb,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,pn,io],If,Q1,pn]}),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(v){return he(r),Q().user.name=v})("input",function(v){return he(r),Q().filterUser(v)}),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(v){l.users.length=0,v.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 v=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:v,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(v){return n.user.real_name=v}),B()(),I(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),K(16,"Comments"),B()(),I(17,"input",6),ne("ngModelChange",function(v){return n.user.comments=v}),B()(),I(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),K(21,"State"),B()(),I(22,"mat-select",7),ne("ngModelChange",function(v){return n.user.state=v}),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(v){return n.user.role=v})("valueChange",function(v){return n.roleChanged(v)}),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(v){return n.user.groups=v}),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,vr,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,v,_,w,M){var A;return R(this,n),(A=r.call(this,l))._focusMonitor=c,A._changeDetectorRef=v,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(v){v||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,v){v?this._focusMonitor.focusVia(this._inputElement,v,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&&(pi(),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,v1],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,pn,Ny],JQ,pn]}),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(v){return he(r),Q(2).group.name=v})("input",function(v){return he(r),Q(2).filterGroup(v)}),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 vre(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(v){l.fltrGroup.length=0,v.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,v){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:v},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,vre,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),v=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",v)}},directives:[si,en,Gn,jr,or,Tr,ua,yi,vr,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 pre(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,pre,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 v=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:v,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 v=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:v,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:pr.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(v){n.gui=v})})}},{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(y5,"provider_id"),is.getGotoButton(b5,"provider_id","service_id"),is.getGotoButton(iv,"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(v){return n.all[v].gui.rdonly=!0});this.rest.providers.service(n.all.service_id.value).subscribe(function(v){n.all.allow_users_reset.gui.rdonly=!v.info.can_reset,n.all.osmanager_id.gui.values.length=0,l.editing||(n.all.osmanager_id.gui.rdonly=!v.info.needs_manager),!0===v.info.needs_manager?l.rest.osManagers.overview().subscribe(function(_){_.forEach(function(w){w.servicesTypes.forEach(function(M){v.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=!v.info.uses_cache}),n.all.cache_l2_srvs.gui.rdonly=!1===v.info.uses_cache||!1===v.info.uses_cache_l2,n.all.publish_on_save&&(n.all.publish_on_save.gui.rdonly=!v.info.needs_publication)}),c.forEach(function(v){n.all[v].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 v=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:v,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,vr,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,v){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:v},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,vr,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 v=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:v,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,vr,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,vr,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,vr,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 vie(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 pie(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,vie,1,0,"uds-mat-select-search",5),te(7,pie,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 v=window.innerWidth<800?"80%":"60%";return n.gui.dialog.open(s,{width:v,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(v){return n.scheduledAction.calendarId=v}),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(v){return n.scheduledAction.eventsOffset=v}),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(v){return n.scheduledAction.atStart=v}),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(v){return n.scheduledAction.action=v})("valueChange",function(v){return n.changedAction(v)}),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,vr,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 v=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:v,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,vr,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(v){return he(r),Q().selectedTab=v}),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(v){return he(r),Q().onNewGroup(v)})("deleteAction",function(v){return he(r),Q().onDeleteGroup(v)}),B()()(),I(18,"mat-tab"),te(19,Vie,2,0,"ng-template",9),I(20,"div",10)(21,"uds-table",16),ne("newAction",function(v){return he(r),Q().onNewTransport(v)})("deleteAction",function(v){return he(r),Q().onDeleteTransport(v)}),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(v){return he(r),Q().onCustomScheduleAction(v)})("newAction",function(v){return he(r),Q().onNewScheduledAction(v)})("editAction",function(v){return he(r),Q().onEditScheduledAction(v)})("deleteAction",function(v){return he(r),Q().onDeleteScheduledAction(v)}),B()()(),I(27,"mat-tab"),te(28,Uie,2,0,"ng-template",9),I(29,"div",10)(30,"uds-table",18),ne("newAction",function(v){return he(r),Q().onNewAccessCalendar(v)})("editAction",function(v){return he(r),Q().onEditAccessCalendar(v)})("deleteAction",function(v){return he(r),Q().onDeleteAccessCalendar(v)})("loaded",function(v){return he(r),Q().onAccessCalendarLoad(v)}),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:pr.SINGLE_SELECT},is.getGotoButton(ob,"calendarId")],this.customButtonAccessCalendars=[is.getGotoButton(ob,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:lJ,type:pr.SINGLE_SELECT},{id:"log",html:Fq,type:pr.SINGLE_SELECT},is.getGotoButton(eP,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:Fq,type:pr.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:$ie,type:pr.SINGLE_SELECT},{id:"changelog",html:Qie,type:pr.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:pr.ONLY_MENU}),n.servicePool.info.can_list_assignables&&n.customButtonsAssignedServices.push({id:"assign-service",html:Kie,type:pr.ALWAYS}),n.rest.servicesPools.gui().subscribe(function(v){n.gui=v.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(v){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 v=n.table.dataSource.data.filter(function(_){return!0});v.push({id:-1,calendar:"-",priority:l.api.safeString('10000000FallBack'),access:c}),n.table.dataSource.data=v})}},{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 v=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:v,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,vr,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:pr.SINGLE_SELECT},{id:"log",html:Fq,type:pr.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(v){n.gui=v}),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 v=n.table.dataSource.data.filter(function(_){return!0});v.push({id:-1,calendar:"-",priority:l.api.safeString('10000000FallBack'),access:c}),n.table.dataSource.data=v})}},{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 vae(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 pae(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,v=Q();ta("width",v._cellWidth)("padding-top",v._cellPadding)("padding-bottom",v._cellPadding),lt("data-mat-row",c)("data-mat-col",l),G(1),Ze("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",v._isActiveCell(c,l))("mat-calendar-body-range-start",v._isRangeStart(n.compareValue))("mat-calendar-body-range-end",v._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",v._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",v._isComparisonBridgeStart(n.compareValue,c,l))("mat-calendar-body-comparison-bridge-end",v._isComparisonBridgeEnd(n.compareValue,c,l))("mat-calendar-body-comparison-start",v._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",v._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",v._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",v._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",v._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",v._isInPreview(n.compareValue)),U("ngClass",n.cssClasses)("tabindex",v._isActiveCell(c,l)?0:-1),lt("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-pressed",v._isSelected(n.compareValue))("aria-current",v.todayValue===n.compareValue?"date":null),G(1),Ze("mat-calendar-body-selected",v._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",v._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",v.todayValue===n.compareValue),G(1),Le(" ",n.displayValue," ")}}function mae(i,s){if(1&i&&(I(0,"tr",4),te(1,pae,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]:{},v=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=v,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 v=l._getCellFromElement(c.target);v&&l._ngZone.run(function(){return l.previewChange.emit({value:v.enabled?v: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,v=this.numCols;(n.rows||l)&&(this._firstRowOffset=c&&c.length&&c[0].length?v-c[0].length:0),(n.cellAspectRatio||l||!this._cellPadding)&&(this._cellPadding="".concat(50*this.cellAspectRatio/v,"%")),(l||!this._cellWidth)&&(this._cellWidth="".concat(100/v,"%"))}},{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 v=this.rows[l][c-1];if(!v){var _=this.rows[l-1];v=_&&_[_.length-1]}return v&&!this._isRangeEnd(v.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(n,l,c){if(!this._isComparisonEnd(n)||this._isRangeEnd(n)||!this._isInRange(n))return!1;var v=this.rows[l][c+1];if(!v){var _=this.rows[l+1];v=_&&_[0]}return v&&!this._isRangeStart(v.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(vJ(n)?l=n:vJ(n.parentNode)&&(l=n.parentNode),l){var c=l.getAttribute("data-mat-row"),v=l.getAttribute("data-mat-col");if(c&&v)return this.rows[parseInt(c)][parseInt(v)]}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,vae,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 vJ(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}(),pJ={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,v){R(this,s),this._changeDetectorRef=r,this._dateFormats=n,this._dateAdapter=l,this._dir=c,this._rangeStrategy=v,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),v=this._dateAdapter.getMonth(this.activeDate),_=this._dateAdapter.createDate(c,v,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"),v=this._dateAdapter.getDayOfWeekNames("long").map(function(_,w){return{long:_,narrow:l[w]}});this._weekdays=v.slice(n).concat(v.slice(0,n))}},{key:"_createWeekCells",value:function(){var n=this._dateAdapter.getNumDaysInMonth(this.activeDate),l=this._dateAdapter.getDateNames();this._weeks=[[]];for(var c=0,v=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),v=this._dateAdapter.getDate(n);return new Date(l,c,v).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)-PP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var v=0,_=[];v<24;v++)_.push(c+v),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),v=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(l,c,1));this.selectedChange.emit(this._dateAdapter.createDate(l,c,Math.min(this._dateAdapter.getDate(this.activeDate),v)))}},{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,-PP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-PP(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 PP(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),v=this.dateClass?this.dateClass(l,"multi-year"):void 0;return new Nq(n,c,c,this._shouldEnableYear(n),v)}},{key:"_shouldEnableYear",value:function(n){if(null==n||this.maxDate&&n>this._dateAdapter.getYear(this.maxDate)||this.minDate&&nc||n===c&&l>v}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(n,l){if(this.minDate){var c=this._dateAdapter.getYear(this.minDate),v=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,v,_,w,M){var A;return R(this,n),(A=r.call(this,l))._changeDetectorRef=c,A._globalModel=v,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 v=this._model.selection,_=c.value,w=v instanceof Us;if(w&&this._rangeSelectionStrategy){var M=this._rangeSelectionStrategy.selectionFinished(_,v,c.event);this._model.updateSelection(M,this)}else _&&(w||!this._dateAdapter.sameDate(_,v))&&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(OP))},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&&cp("@transformPanel.done",function(){return n._animationDone.next()}),2&r&&(vp("@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(v){return n.datepicker._selectYear(v)})("monthSelected",function(v){return n.datepicker._selectMonth(v)})("viewChanged",function(v){return n.datepicker._viewChanged(v)})("_userSelection",function(v){return n._handleUserSelection(v)}),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,vc],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,v,_,w){R(this,s),this._overlay=r,this._ngZone=n,this._viewContainerRef=l,this._dateAdapter=v,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),v=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(v).subscribe(function(_){_&&_.preventDefault(),n.close()}),this._componentRef=v.attach(c),this._forwardContentValues(this._componentRef.instance),l||this._ngZone.onStable.pipe(gn(1)).subscribe(function(){return v.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",v="above"===this.yPosition?"bottom":"top",_="top"===v?"bottom":"top";return n.withPositions([{originX:l,originY:_,overlayX:l,overlayY:v},{originX:l,originY:v,overlayX:l,overlayY:_},{originX:c,originY:_,overlayX:c,overlayY:v},{originX:c,originY:v,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([pJ,{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(v){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(v.value));return!_||c._matchesFilter(_)?null:{matDatepickerFilter:!0}},this._minValidator=function(v){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(v.value)),w=c._getMinDate();return!w||!_||c._dateAdapter.compareDate(w,_)<=0?null:{matDatepickerMin:{min:w,actual:_}}},this._maxValidator=function(v){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(v.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 v=l._getValueFromModel(c.selection);l._lastValueValid=l._isValidValue(v),l._cvaOnChange(v),l._onTouched(),l._formatValue(v),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(v)}):this._updateModelValue(v)}},{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,v,_,w,M){var A;R(this,n),(A=r.call(this))._changeDetectorRef=c,A._elementRef=v,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 v=gt(c);v!==this._checked&&(this._checked=v,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&&(pi(),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:[[pn,Cc],pn]}),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(v){return{id:v,value:HH[v]}}),this.freqs=Object.keys(VH).map(function(v){return{id:v,value:VH[v][2]}}),this.weekDays=OJ.map(function(v,_){return{id:1<<_,value:v.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=[],v=0;v<7;v++)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 v=window.innerWidth<800?"75%":"50%";return n.gui.dialog.open(s,{width:v,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,vr,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:pr.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(v){v&&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 voe(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 poe=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,voe,7,6,"div",5),B()),2&r&&(G(2),U("routerLink",xs(4,poe,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 v=new FileReader;v.onload=function(_){var w=v.result;l.preview=w,l.image.data=w.substr(w.indexOf("base64,")+7),l.image.name||(l.image.name=c.name)},v.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%",v=n.gui.dialog.open(s,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:l},disableClose:!0});return v.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(v){return n.image.name=v}),B()(),I(10,"input",4,5),ne("change",function(v){return n.onFileChanged(v)}),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,vr,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:pr.SINGLE_SELECT}]}return L(s,[{key:"ngOnInit",value:function(){}},{key:"generateReport",value:function(n){var l=this,c=new ye;c.subscribe(function(v){l.api.gui.snackbar.open(django.gettext("Generating report...")),l.rest.reports.save(v,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:[A5],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,pn,Ny,GJ],pn,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,v,_,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 HB(an(F),c,F._chipRippleTarget,v),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 v=gt(c);v!==this._selected&&(this._selected=v,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",v=this._elementRef.nativeElement;v.hasAttribute(c)||v.tagName.toLowerCase()===c?v.classList.add(c):v.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(vn),z(zB,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,v,_,w,M,A){var O;return R(this,n),(O=r.call(this,M,_,w,A))._elementRef=l,O._changeDetectorRef=c,O._dir=v,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,v;return this.multiple?(null===(c=this._selectionModel)||void 0===c?void 0:c.selected)||[]:null===(v=this._selectionModel)||void 0===v?void 0:v.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,v,_,w;return null!==(w=null!==(c=this._required)&&void 0!==c?c:null===(_=null===(v=this.ngControl)||void 0===v?void 0:v.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 v=this;this._selectable=gt(c),this.chips&&this.chips.forEach(function(_){return _.chipListSelectable=v._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(v){return c._keyManager.withHorizontalOrientation(v)}),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 v=c.target;v&&v.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 v._selectValue(M,_)}),this._sortValues();else{var w=this._selectValue(c,_);w&&_&&this._keyManager.setActiveItem(w)}}},{key:"_selectValue",value:function(c){var v=this,_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],w=this.chips.find(function(M){return null!=M.value&&v._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(v){v!==c&&v.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(v){v.selected&&c._selectionModel.select(v)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(c){var v;v=Array.isArray(this.selected)?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=v,this.change.emit(new sse(this,v)),this.valueChange.emit(v),this._onChange(v),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(v){v.source.selected?c._selectionModel.select(v.source):c._selectionModel.deselect(v.source),c.multiple||c.chips.forEach(function(_){!c._selectionModel.isSelected(_)&&_.selected&&_.deselect()}),v.isUserInput&&c._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var c=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(v){var _=c.chips.toArray().indexOf(v.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(v){var _=v.chip,w=c.chips.toArray().indexOf(v.chip);c._isValidIndex(w)&&_._hasFocus&&(c._lastDestroyedChipIndex=w)})}},{key:"_originatesFromChip",value:function(c){for(var v=c.target;v&&v!==this._elementRef.nativeElement;){if(v.classList.contains("mat-chip"))return!0;v=v.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(v){v._chipListDisabled=c._disabled,v._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&&(pi(),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:[[pn]]}),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,pn,use,Kp]]}),i}(),fse=["*",[["mat-toolbar-row"]]],dse=["*","mat-toolbar-row"],hse=yc(function(){return L(function i(s){R(this,i),this._elementRef=s})}()),vse=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}(),pse=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,v){var _;return R(this,n),(_=r.call(this,l))._platform=c,_._document=v,_}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(vn),z(Jt))},i.\u0275cmp=ke({type:i,selectors:[["mat-toolbar"]],contentQueries:function(r,n,l){var c;1&r&&Mn(l,vse,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&&(pi(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:[[pn],pn]}),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,XV,gse,tS,ote,DP,cse,$W,PS,Aee,bP,Zae,RW,bee,a,E,vte,Qoe,v5,lse,Jae,nre,Nne,D5,gte,Zee]}),i}();function _se(i,s){if(1&i){var r=xe();I(0,"button",6),ne("click",function(){var v=he(r).$implicit;return Q().changeLang(v)}),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 v=c.value;v.id===n?this.lang=v:this.langs.push(v)}}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,AP,Gn,en,jQ,pse,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,QO)},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,vr,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(v){return n.field.value=v})("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,vr,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,vr,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,vr,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,vr,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,vr,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,vr,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 v=he(r).index;return Q().removeElement(v)}),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 v=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 v.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 v=window.innerWidth<800?"50%":"30%";return n.gui.dialog.open(s,{width:v,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,vr,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,v){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,vr,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,vr,ar,Vs,vq,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(v){return n.date=v}),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,vr,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(v){return n.add(v)}),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 mv(i,s,r){var n=i.\u0275cmp;n.directiveDefs=function(){return s.map(id)},n.pipeDefs=function(){return r.map(lM)}})(ab,[rc,hH,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 M2},SeriesModel:function(){return fr},color:function(){return Ye},connect:function(){return l8},dataTool:function(){return R2},dependencies:function(){return wr},disConnect:function(){return ZD},disconnect:function(){return u8},dispose:function(){return P2},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 O2},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 lL},parseGeoJson:function(){return lL},registerAction:function(){return uu},registerCoordinateSystem:function(){return f8},registerLayout:function(){return d8},registerLoading:function(){return kp},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 Dp},registerUpdateLifecycle:function(){return QD},registerVisual:function(){return vh},setCanvasCreator:function(){return eX},setPlatformAPI:function(){return Pg},throttle:function(){return pC},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 pe},filter:function(){return Un},find:function(){return XH},guid:function(){return $S},hasOwn:function(){return je},indexOf:function(){return Ct},inherits:function(){return vv},isArray:function(){return Ce},isArrayLike:function(){return Ca},isBuiltInObject:function(){return JS},isDom:function(){return pv},isFunction:function(){return et},isGradientObject:function(){return Sb},isImagePatternObject:function(){return VP},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 gv},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 jP},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 nO},lift:function(){return cM},lum:function(){return Gb},mapToColor:function(){return yZ},modifyAlpha:function(){return Sv},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 Tv},invert:function(){return ud},mul:function(){return Js},rotate:function(){return el},scale:function(){return $b},translate:function(){return ps}});var L={};Ht.r(L),Ht.d(L,{dispose:function(){return _O},disposeAll:function(){return yO},getInstance:function(){return Ev},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 pp},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 zR},createIcon:function(){return gp},extendPath:function(){return VR},extendShape:function(){return BR},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 Xv},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 iL},createScale:function(){return z_},createSymbol:function(){return Dr},createTextStyle:function(){return U8},dataStack:function(){return z8},enableHoverEmphasis:function(){return Yc},getECData:function(){return pt},getLayoutRect:function(){return oi},mixinAxisModelCommonMethods:function(){return G8}});var se={};Ht.r(se),Ht.d(se,{MAX_SAFE_INTEGER:function(){return wO},asc:function(){return Zi},getPercentWithPrecision:function(){return CO},getPixelPrecision:function(){return Ae},getPrecision:function(){return Xl},getPrecisionSafe:function(){return bO},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 Iv},quantity:function(){return Ov},quantityExponent:function(){return IM},reformIntervals:function(){return bd},remRadian:function(){return SO},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 pp},Rect:function(){return fn},Ring:function(){return e_},Sector:function(){return Ja},Text:function(){return dn},clipPointsByRect:function(){return dC},clipRectByRect:function(){return zR},createIcon:function(){return gp},extendPath:function(){return VR},extendShape:function(){return BR},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 TI},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 pe},filter:function(){return Un},indexOf:function(){return Ct},inherits:function(){return vv},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 p=0;p>1)%2;d.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",o[p]+":0",u[g]+":0",o[1-p]+":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=[],p=!0,g=0;g<4;g++){var m=a[g].getBoundingClientRect(),y=2*g,b=m.left,C=m.top;d.push(b,C),p=p&&f&&b===f[y]&&C===f[y+1],h.push(a[g].offsetLeft,a[g].offsetTop)}return p&&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=[],YP=tn.browser.firefox&&+tn.browser.version.split(".")[0]<39;function aM(a,t,e,o){return e=e||{},o?qP(a,t,e):YP&&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):qP(a,t,e),e}function qP(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(WP(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 ZP(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 vZ(){It(this.event)}var pZ=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"],KP=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 pZ,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=$P(this,o,u),d=this._hovered,h=d.target;h&&!h.__zr&&(h=(d=this.findHover(d.x,d.y)).target);var p=this._hovered=f?new Ya(o,u):this.findHover(o,u),g=p.target,m=this.proxy;m.setCursor&&m.setCursor(g?g.cursor:"default"),h&&g!==h&&this.dispatchToElement(d,"mouseout",e),this.dispatchToElement(p,"mousemove",e),g&&g!==h&&this.dispatchToElement(p,"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:vZ}}(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(p){"function"==typeof p[d]&&p[d].call(p,h),p.trigger&&p.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 p=void 0;if(f[h]!==u&&!f[h].ignore&&(p=az(f[h],e,o))&&(!d.topTarget&&(d.topTarget=f[h]),"silent"!==p)){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 $P(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){KP.prototype[a]=function(t){var f,d,e=t.zrX,o=t.zrY,u=$P(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=KP;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=p:d=p+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,p=1;if(f(a,t[e+u])>0){for(h=o-u;p0;)d=p,(p=1+(p<<1))<=0&&(p=h);p>h&&(p=h),d+=u,p+=u}else{for(h=u+1;ph&&(p=h);var g=d;d=u-p,p=u-g}for(d++;d>>1);f(a,t[e+m])>0?d=m+1:p=m}return p}function Xs(a,t,e,o,u,f){var d=0,h=0,p=1;if(f(a,t[e+u])<0){for(h=u+1;ph&&(p=h);var g=d;d=u-p,p=u-g}else{for(h=o-u;p=0;)d=p,(p=1+(p<<1))<=0&&(p=h);p>h&&(p=h),d+=u,p+=u}for(d++;d>>1);f(a,t[e+m])<0?p=m:d=m+1}return p}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,p=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===p-3&&(d[D+1]=d[D+2],h[D+1]=h[D+2]),p--;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=p-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(;p>1;){var D=p-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&&(p=h),Rb(a,e,e+p,e+f,t),f=p}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}(),QP=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,_v=Fi(3),od=1/3,Sa=gn(),_r=gn(),yv=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),p=3*(t-a),g=a-u,m=h*h-3*d*p,y=h*p-9*d*g,b=p*p-3*h*g,C=0;if(Ni(m)&&Ni(y))Ni(h)?f[0]=0:(S=-p/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+_v*Math.sin(N)))/(3*d),(-h+H*(j-_v*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,p=0;if(Ni(d))at(f)&&(g=-h/f)>=0&&g<=1&&(u[p++]=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[p++]=g),b>=0&&b<=1&&(u[p++]=b)}}return p}function Fr(a,t,e,o,u,f){var d=(t-a)*u+a,h=(e-t)*u+t,p=(o-e)*u+e,g=(h-d)*u+d,m=(p-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]=p,f[7]=o}function Lc(a,t,e,o,u,f,d,h,p,g,m){var y,S,k,D,x,b=.005,C=1/0;Sa[0]=p,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,p,h)&&xt(0,u,d,1,h[0])}}}var Cv=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=Cv,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 p=o.head;o.remove(p),delete u[p.key],f=p.value,this._lastRemovedEntry=p}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 wv(a){var t=a;return t.length&&"%"===t.charAt(t.length-1)?Nc(parseFloat(t)/100):Nc(parseFloat(t))}function JP(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 eO(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&&eO(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 eO(t,e);var o=(a+="").replace(/ /g,"").toLowerCase();if(o in us)return eO(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 p=o.substr(0,d),g=o.substr(d+1,h-(d+1)).split(","),m=1;switch(p){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=wv(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]=wv(g[3]),tO(g,t),qg(a,t),t);case"hsl":return 3!==g.length?void cs(t,0,0,0,1):(tO(g,t),qg(a,t),t);default:return}}cs(t,0,0,0,1)}}function tO(a,t){var e=(parseFloat(a[0])%360+360)%360/360,o=wv(a[1]),u=wv(a[2]),f=u<=.5?u*(o+1):u+o-u*o,d=2*u-f;return cs(t=t||[],Lo(255*JP(d,f,e+1/3)),Lo(255*JP(d,f,e)),Lo(255*JP(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],p=o-u;return e[0]=Lo(Bc(d[0],h[0],p)),e[1]=Lo(Bc(d[1],h[1],p)),e[2]=Lo(Bc(d[2],h[2],p)),e[3]=Nc(Bc(d[3],h[3],p)),e}}var _Z=zb;function nO(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]),p=o-u,g=No([Lo(Bc(d[0],h[0],p)),Lo(Bc(d[1],h[1],p)),Lo(Bc(d[2],h[2],p)),Nc(Bc(d[3],h[3],p))],"rgba");return e?{color:g,leftIndex:u,rightIndex:f,value:o}:g}}var yZ=nO;function Zg(a,t,e,o){var u=mo(a);if(a)return u=function gZ(a){if(a){var p,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)p=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?p=b-y:e===f?p=1/3+m-b:o===f&&(p=2/3+y-m),p<0&&(p+=1),p>1&&(p-=1)}var C=[360*p,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]=wv(e)),null!=o&&(u[2]=wv(o)),No(tO(u),"rgba")}function Sv(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 aO={left:"start",right:"end",center:"middle",middle:"middle"};function jb(a){return a&&!!a.image}function oO(a){return"linear"===a.type}function sO(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 vz(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,p=[];return(t||e)&&p.push("translate("+t+"px,"+e+"px)"),o&&p.push("rotate("+o+")"),(1!==u||1!==f)&&p.push("scale("+u+","+f+")"),(d||h)&&p.push("skew("+Ub(d*Bg)+"deg, "+Ub(h*Bg)+"deg)"),p.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 p=f;p=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,p=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&&(p=m,h=3)}else h=0;else if(Sb(e)){var y=pe({},p);y.colorStops=Me(e.colorStops,function(C){return{offset:C.offset,color:mo(C.color)}}),oO(e)?h=4:sO(e)&&(h=5),p=y}0===f?this.valType=h:(h!==this.valType||6===h)&&(d=!0),this.discrete=this.discrete||d;var b={time:t,value:p,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,p=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[p];if((mM(f)||g)&&!T&&(T=this._additiveValue=[]),this.discrete)t[p]=x<1?C.rawValue:S.rawValue;else if(mM(f))1===f?ri(T,C[u],S[u],x):function pz(a,t,e,o){for(var u=t.length,f=u&&t[0].length,d=0;d0&&p.addKeyframe(0,ld(g),u),this._trackKeys.push(h)}p.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 kv(){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=kv()-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=kv(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=kv(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=kv()-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"],Dv=!1;function vs(a){var t=a.pointerType;return"pen"===t||"touch"===t}function em(a){a&&(a.zrByTouch=!0)}function uO(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){uO(this,(t=Wa(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Dv=!0,t=Wa(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Dv||(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){vs(t)||_o.mousemove.call(this,t)},pointerup:function(t){_o.mouseup.call(this,t)},pointerout:function(t){vs(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){vs(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 fO=function a(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},dO=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 fO(e,_o),he&&(u._globalHandlerScope=new fO(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 cO(a,t){function e(o){Eu(t,o,function u(f){f=Eb(f),uO(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=dO,hO=1;tn.hasGlobalWindow&&(hO=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var xv=hO,tm="#333",bM="#ccc";function ka(){return[1,0,0,1,0,0]}function Tv(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],p=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]=p,a}function ps(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],p=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*p,a[5]=m*p-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],p=e*d-f*o;return p?(a[0]=d*(p=1/p),a[1]=-f*p,a[2]=-o*p,a[3]=e*p,a[4]=(o*h-d*u)*p,a[5]=(f*u-e*h)*p,a):null}function Da(a){var t=[1,0,0,1,0,0];return nm(t,a),t}var Pu=Tv;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,p=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||p){var S=o+h,k=u+p;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 p=tl(nl.x,fd.x,dd.x,rl.x),g=tl(nl.y,fd.y,dd.y,rl.y);t.width=p-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=pd(0,f,o);return new zt(d,h,u,f)}function vd(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,p=e.x,g=e.y,m="left",y="top";if(o instanceof Array)p+=il(o[0],e.width),g+=il(o[1],e.height),m=null,y=null;else switch(o){case"left":p-=u,g+=h,m="right",y="middle";break;case"right":p+=u+d,g+=h,y="middle";break;case"top":p+=d/2,g-=u,m="center",y="bottom";break;case"bottom":p+=d/2,g+=f+u,m="center";break;case"inside":p+=d/2,g+=h,m="center",y="middle";break;case"insideLeft":p+=u,g+=h,y="middle";break;case"insideRight":p+=d-u,g+=h,m="right",y="middle";break;case"insideTop":p+=d/2,g+=u,m="center";break;case"insideBottom":p+=d/2,g+=f-u,m="center",y="bottom";break;case"insideTopLeft":p+=u,g+=u;break;case"insideTopRight":p+=d-u,g+=u,m="right";break;case"insideBottomLeft":p+=u,g+=f-u,y="bottom";break;case"insideBottomRight":p+=d-u,g+=f-u,m="right",y="bottom"}return(a=a||{}).x=p,a.y=g,a.align=m,a.verticalAlign=y,a}var sm="__zr_normal__",Av=Vo.concat(["ignore"]),Mz=Ys(Vo,function(a,t){return a[t]=!0,a},{ignore:!1}),gd={},gO=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,p=!1;f.parent=u?this:null;var g=!1;if(f.copyTransform(e),null!=o.position){var m=gO;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)&&(p=!0,D.fill=x,D.stroke=T,D.autoStroke=E,D.align=d,D.verticalAlign=h,e.setDefaultTextStyle(D)),e.__dirty|=1,p&&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||{},pe(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,p=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&&p&&p.duration>0,p);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 p=0;p0,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)/p*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 Pv(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 bO(a)}function bO(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 CO(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)}),p=Ys(h,function(S,k){return S+k},0),g=Me(f,function(S,k){return S-h[k]});pm&&(m=g[b],y=b);++h[y],g[y]=0,++p}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 wO=9007199254740991;function SO(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 Ov(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 Iv(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(p,g){return h(p,g,0)?-1:1});for(var t=-1/0,e=1,o=0;o=0||f&&Ct(f,p)<0)){var g=o.getShallow(p,t);null!=g&&(d[a[h][0]]=g)}}return d}}var xZ=ol([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),IO=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,RO,RO);h.__zrImageSrc=a,UM.put(a,h.__cachedImgObj={image:h,pending:[d]})}return t}return a}return t}function RO(){var a=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=d;p++)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 LO(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=BO(t,p,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 BO(a,t,e,o,u){for(var f=[],d=[],h="",p="",g=0,m=0,y=0;ye:u+m+C>e)?m?(h||p)&&(S?(h||(h=p,p="",m=g=0),f.push(h),d.push(m-g),p+=b,h="",m=g+=C):(p&&(h+=p,p="",g=0),f.push(h),d.push(m),h=b,m=C)):S?(f.push(p),d.push(g),p=b,g=C):(f.push(b),d.push(C)):(m+=C,S?(p+=b,g+=C):(p&&(h+=p,p="",g=0),h+=b))}else p&&(h+=p,m+=g),f.push(h),d.push(m),h="",p="",g=0,m=0}return!f.length&&!h&&(h=a,p="",g=0),p&&(h+=p),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"],VO=["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,p[0]=a+e,void(p[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(p,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(p,Hc,p))}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,v0=Math.PI,ul=2*v0,p0="undefined"!=typeof Float32Array,Id=[];function JM(a){return Math.round(a/v0*1e8)/1e8%2*v0}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/xv/t)||0,this._uy=Fu(o/xv/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)&&p0&&(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=bv(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,p=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++],p=d=t[b++],k=2*t[b++]+2*t[b++];break;case er.Z:var T=h-f;E=p-d,k=Math.sqrt(T*T+E*E),f=h,d=p}k>=0&&(g[y++]=k,m+=k)}return this._pathLen=m,m},a.prototype.rebuildPath=function(t,e){var h,p,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++],p=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++],ve=o[N++],_e=o[N++];if(C){if(D+(X=S[x++])>T){Fr(g,re,ce,ve,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,ve,_e),g=ve,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++],vt=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,vt,ht,Lt,Tt),Je)break e;j&&(h=Pd(ht)*He+Pe,p=Od(ht)*nt+Be),g=Pd(Lt)*He+Pe,m=Od(Lt)*nt+Be;break;case er.R:h=g=o[N],p=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)+p*J);break e}D+=X}t.closePath(),g=h,m=p}}},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 p,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&&p>o+g&&p>f+g||pa+g&&h>e+g&&h>u+g||he||m+gu&&(u+=_m);var b=Math.atan2(p,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,p,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[p++]=g);else{var m=d*d-4*f*h;if(Ni(m))(g=-d/(2*f))>=0&&g<=1&&(u[p++]=g);else if(m>0){var g,y=Fi(m),b=(-d-y)/(2*f);(g=(-d+y)/(2*f))>=0&&g<=1&&(u[p++]=g),b>=0&&b<=1&&(u[p++]=b)}}return p}(t,o,f,h,Aa);if(0===p)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 p=Math.sqrt(e*e-h*h);Aa[0]=-p,Aa[1]=p;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 WO(a,t,e,o,u){for(var b,C,f=a.data,d=a.len(),h=0,p=0,g=0,m=0,y=0,S=0;S1&&(e||(h+=Gc(p,g,m,y,o,u))),D&&(m=p=f[S],y=g=f[S+1]),k){case Rd.M:p=m=f[S++],g=y=f[S++];break;case Rd.L:if(e){if(Qt(p,g,f[S],f[S+1],t,o,u))return!0}else h+=Gc(p,g,f[S],f[S+1],o,u)||0;p=f[S++],g=f[S++];break;case Rd.C:if(e){if(GO(p,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],t,o,u))return!0}else h+=ym(p,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],o,u)||0;p=f[S++],g=f[S++];break;case Rd.Q:if(e){if(UO(p,g,f[S++],f[S++],f[S],f[S+1],t,o,u))return!0}else h+=tk(p,g,f[S++],f[S++],f[S],f[S+1],o,u)||0;p=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(p,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);p=Math.cos(V+N)*E+x,g=Math.sin(V+N)*P+T;break;case Rd.R:if(m=p=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(p,g,m,y,t,o,u))return!0}else h+=Gc(p,g,m,y,o,u);p=m,g=y}}return!e&&!function ek(a,t){return Math.abs(a-t)<1e-4}(g,y)&&(h+=Gc(p,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(p){e.buildPath(p,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 p=o.strokeNoScale?this.getLineScale():1,g=o.lineWidth;if(!this.hasFill()){var m=this.strokeContainThreshold;g=Math.max(g,null==m?4:m)}p>1e-10&&(h.width+=g/p,h.height+=g/p,h.x-=g/p/2,h.y-=g/p/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 p=d.lineWidth,g=d.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(this.hasFill()||(p=Math.max(p,this.strokeContainThreshold)),function jz(a,t,e,o){return WO(a,t,!0,e,o)}(h,p/g,e,o)))return!0}if(this.hasFill())return function YO(a,t,e){return WO(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:pe(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=pe({},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,p=!(o&&f);if(o&&o.shape?d?f?g=o.shape:(g=pe({},u.shape),pe(g,o.shape)):(g=pe({},f?this.shape:u.shape),pe(g,o.shape)):p&&(g=u.shape),g)if(d){this.shape=pe({},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=vd(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);qO.prototype.type="tspan";var Cm=qO,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)},Vv=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);Vv.prototype.type="image";var Ki=Vv,Hv=Math.round;function ZO(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&&(Hv(2*o)===Hv(2*u)&&(a.x1=a.x2=Uc(o,h,!0)),Hv(2*f)===Hv(2*d)&&(a.y1=a.y2=Uc(f,h,!0))),a}}function XO(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=Hv(2*a);return(o+Hv(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={},KO=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 p=XO($z,o,this.style);u=p.x,f=p.y,d=p.width,h=p.height,p.r=o.r,o=p}else u=o.x,f=o.y,d=o.width,h=o.height;o.r?function Xz(a,t){var h,p,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=p=g=m=d:d instanceof Array?1===d.length?h=p=g=m=d[0]:2===d.length?(h=g=d[0],p=m=d[1]):3===d.length?(h=d[0],p=m=d[1],g=d[2]):(h=d[0],p=d[1],g=d[2],m=d[3]):h=p=g=m=0,h+p>u&&(h*=u/(y=h+p),p*=u/y),g+m>u&&(g*=u/(y=g+m),m*=u/y),p+g>f&&(p*=f/(y=p+g),g*=f/y),h+m>f&&(h*=f/(y=h+m),m*=f/y),a.moveTo(e+h,o),a.lineTo(e+u-p,o),0!==p&&a.arc(e+u-p,o+p,p,-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);KO.prototype.type="rect";var fn=KO,$O={fill:"#000"},QO={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)},JO=function(a){function t(e){var o=a.call(this)||this;return o.type="text",o._children=[],o._defaultStyle=$O,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,p[2],t,d,p[1]),h=Nv.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,p){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=eI("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||p||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),pd(D.y,j,D.textBaseline),H,j))},t.prototype._renderBackground=function(e,o,u,f,d,h){var k,D,T,p=e.backgroundColor,g=e.borderWidth,m=e.borderColor,y=p&&p.image,b=p&&!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=p||null,T.fillOpacity=Ft(e.fillOpacity,1);else if(y){(D=this._getOrCreateChild(Ki)).onload=function(){S.dirtyStyle()};var E=D.style;E.image=p.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),zv={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,p=u&&d.selectStroke||d.normalStroke;if(jc(h)||jc(p)){var g=(o=o||{}).style||{};"inherit"===g.fill?(f=!0,o=pe({},o),(g=pe({},g)).fill=h):!jc(g.fill)&&jc(h)?(f=!0,o=pe({},o),(g=pe({},g)).fill=nI(h)):!jc(g.stroke)&&jc(p)&&(f||(o=pe({},o),g=pe({},g)),g.stroke=nI(p)),o.style=g}}if(o&&null==o.z2){f||(o=pe({},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 p={dataIndex:h,seriesIndex:e.seriesIndex};null!=d&&(p.dataType=d),t.push(p)}})}),t}function Yc(a,t,e){Nd(a,!0),nu(a,Nu),pk(a,t,e)}function Yr(a,t,e,o){o?function u4(a){Nd(a,!1)}(a):Yc(a,t,e)}function pk(a,t,e){var o=pt(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 va(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}"},Qv="{yyyy}-{MM}-{dd}",Sk={year:"{yyyy}",month:"{yyyy}-{MM}",day:Qv,hour:Qv+" "+Ud.hour,minute:Qv+" "+Ud.minute,second:Qv+" "+Ud.second,millisecond:Ud.none},Jv=["year","month","day","hour","minute","second","millisecond"],_I=["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 yI(a){return a===Fm(a)}function Nm(a,t,e,o){var u=ms(a),f=u[Xa(e)](),d=u[ep(e)]()+1,h=Math.floor((d-1)/4)+1,p=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||mI)||function $v(){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(p,2)).replace(/{d}/g,p+"").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 wI(a,t){var e=ms(a),o=e[ep(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 SI(a,t,e){var o=Cn(a)?ms(a):a;switch(t=t||wI(a,e)){case"year":return o[Xa(e)]();case"half-year":return o[ep(e)]()>=6?1:0;case"quarter":return Math.floor((o[ep(e)]()+1)/4);case"month":return o[ep(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 ep(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 MI(a){return a?"setUTCHours":"setHours"}function kI(a){return a?"setUTCMinutes":"setMinutes"}function DI(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,xI={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ka(a){return null==a?"":(a+"").replace(y4,function(t,e){return xI[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 p=d?ms(a):a;if(!isNaN(+p))return Nm(p,"{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 TI(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"](),p=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(p,2)).replace("h",p).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 tp=q,AI=["left","right","top","bottom","width","height"],Yd=[["width","left","right"],["height","top","bottom"]];function np(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(p,g){var C,S,m=p.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||p.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||p.newline?(f+=h+e,d=0,S=D,h=m.width):h=Math.max(h,m.width)}p.newline||(p.x=f,p.y=d,p.markRedraw(),"horizontal"===a?f=C+e:d=S+e)})}var Hu=np;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),p=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-p-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-p-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-(p||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],p=u&&u.boundingMode||"all";if((f=f||a).x=a.x,f.y=a.y,!d&&!h)return!1;if("raw"===p)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"===p?(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(tp(m,function(E){S[E]=a[E]}),tp(m,function(E){h(t,E)&&(b[E]=S[E]=t[E]),p(b,E)&&C++,p(S,E)&&k++}),o[y])return p(t,m[1])?S[m[2]]=null:p(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;p--)h=Dt(h,u[p],!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 pI(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,p){if(f.length){var g=function e(f){var d={},h=[];return q(f,function(p){var g=o(d,p),y=function u(f,d){var h=[];return q(f,function(p){Ct(d,p)>=0&&h.push(p)}),h}(g.originalDeps=t(p),f);g.entryCount=y.length,0===g.entryCount&&h.push(p),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(p)})}),{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(p,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 OI(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},II=$e(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),vl="original",Qi="arrayRows",Yo="objectRows",Cs="keyedColumns",qo="typedArray",RI="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=[],p=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=p.get(g)||p.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[p];return u&&(g[u]=y),h.paletteIdx=(p+1)%m.length,y}}var j0,ap,BI,T4="\0_ec_inner",VI=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)):BI(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 p=f.getMediaOption(this);p.length&&q(p,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=[],p=$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),p.set(b,!0)):u[b]=null==u[b]?ot(y):Dt(u[b],y,!0))}),g&&g.each(function(y,b){sn.hasClass(b)&&!p.get(b)&&(h.push(b),p.set(b,!0))}),sn.topologicalTravel(h,sn.getAllClassMainTypes(),function m(y){var b=function ip(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=pe({componentIndex:N},V.keyInfo);pe(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,p=d-1;p>=0;p--)f[p]&&!hm(f[p])?h=!0:(f[p]=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,p)||(u=!1)}}),u}var Re=jI,pl=q,Qd=Ke,qI=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Gk(a){var t=a&&a.itemStyle;if(t)for(var e=0,o=qI.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||RI,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 up(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,p=m(t&&t.modBy),g=t&&t.modDataCount||0;function m(T){return!(T>=1)&&(T=1),T}(d!==p||h!==g)&&(f="reset"),(this._dirty||"reset"===f)&&(this._dirty=!1,y=this._doReset(o)),this._modBy=p,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:pe},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),p=Ne(e);h&&(o=p?t:0),p&&(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 fR(a,t){return"eq"===a||"ne"===a?new Z4("eq"===a,t):je(Y4,a)?new q4(a,t):null}var dR=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 p=new f(o),g=0;gD[1]&&(D[1]=k)}return this._rawCount=this._count=p,{start:h,end:p}},a.prototype._initDataFromProvider=function(t,e,o){for(var u=this._provider,f=this._chunks,d=this._dimensions,h=d.length,p=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,p=-1,g=0,m=0,y=this.count();m=0&&p<0)&&(h=S,p=C,g=0),C===p&&(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))&&(p[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))&&(p[g++]=k),k++}S=!0}}if(!S)if(1===f)for(x=0;x=y&&T<=b||isNaN(T))&&(p[g++]=H)}else for(x=0;xt[W][1])&&(j=!1)}j&&(p[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,p=Math.floor(1/e),g=this.getRawIndex(0),C=new($a(this._rawCount))(Math.min(2*(Math.ceil(d/p)+2),d));C[h++]=g;for(var S=1;Sm&&(m=y,b=P)}X>0&&Xm-S&&(h.length=p=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();fp&&(p=y)}return this._extent[t]=d=[h,p],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,cp=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,p=void 0,g=void 0;if(o){var m=e[0];m.prepareSource(),h=(g=m.getSource()).data,p=g.sourceFormat,f=[m._getVersionSign()]}else p=Oo(h=d.get("data",!0))?qo:vl,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},p)]:[]}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=[],p=[];return q(t,function(g){g.prepareSource();var m=g.getSource(u||0);null!=u&&!m&&tD(""),h.push(m),p.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 pR(a,t,e,o){var u=t.noHeader,f=function mR(a){return{html:K4[a],richText:pi[a]}}(nD(t)),d=[],h=t.blocks||[];fa(!h||Ce(h)),h=h||[];var p=a.orderMode;if(t.sortBlocks&&p){h=h.slice();var g={valueAsc:"asc",valueDesc:"desc"};if(je(g,p)){var m=new Xk(g[p],null);h.sort(function(S,k){return m.evaluate(S.sortParam,k.sortParam)})}else"seriesDesc"===p&&h.reverse()}q(h,function(S,k){var D=t.valueFormatter,x=$0(S)(D?pe(pe({},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 gR(a,t,e,o){var u=a.renderMode,f=t.noName,d=t.noValue,h=!t.markerType,p=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(p,"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 _R(a,t,e){return''+Ka(a)+""}(b,!h,T))+(d?"":function yR(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 bR(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 pe(o,f)}):pe(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),p=Ce(h),g=bR(t,e);if(d>1||p&&!d){var S=function CR(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=[],p=[],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),p.push(C.type)))}return o.length?q(o,function(y){m(up(f,e,y),y)}):q(a,m),{inlineValues:h,inlineValueTypes:p,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=up(u,e,f[0]),y=k.type}else C=m=p?h[0]:h;var D=Fv(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:fp,reset:J4}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,u),(uf(this).sourceManager=new cp(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?rp(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,p=o.length;if(h&&p)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;Fv(a)||(a.name=function wR(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 fp(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 dp=eu.CMD,nG=[[],[],[]],ml=Math.sqrt,_l=Math.atan2;function Ms(a,t){if(t){var u,f,d,h,p,g,e=a.data,o=a.len(),m=dp.M,y=dp.C,b=dp.L,C=dp.R,S=dp.A,k=dp.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,MR=/-?([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,p=a.match(rG);if(!p)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},AR=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 p=t.startAngle,g=t.endAngle;if(!isNaN(p)&&!isNaN(g)){var m=t.cx,y=t.cy,b=!!t.clockwise,C=TR(g-p),S=C>aC&&C%aC;if(S>yl&&(C=S),o>yl)if(C>aC-yl)a.moveTo(m+o*nh(p),y+o*cf(p)),a.arc(m,y,o,p,g,!b),u>yl&&(a.moveTo(m+u*nh(g),y+u*cf(g)),a.arc(m,y,u,g,p,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(p),ce=o*cf(p),me=u*nh(g),ve=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=TR(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(p),re=u*cf(p),Cyl){var Vt=su(x,Z),Lt=su(T,Z),Je=oC(ee,re,ie,ce,o,Vt,b),kt=oC(X,J,me,ve,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,p,g,!b);else a.moveTo(m+ie,y+ce);u>yl&&_e?W>yl?(Vt=su(k,W),Je=oC(me,ve,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+ve),a.arc(m,y,u,g,p,b)):a.lineTo(m+me,y+ve)}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);AR.prototype.type="sector";var Ja=AR,cG=function a(){this.cx=0,this.cy=0,this.r=0,this.r0=0},ER=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);ER.prototype.type="ring";var e_=ER;function hD(a,t,e){var o=t.smooth,u=t.points;if(u&&u.length>=2){if(o){var f=function PR(a,t,e,o){var p,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(p){wD(p)&&p.anid&&(h[p.anid]=p)}),h}(a);t.traverse(function(d){if(wD(d)&&d.anid){var h=f[d.anid];if(h){var p=u(d);d.attr(u(h)),Ut(d,p,e,pt(d).dataIndex)}}})}function u(d){var h={x:d.x,y:d.y,rotation:d.rotation};return function HR(a){return null!=a.shape}(d)&&(h.shape=pe({},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 zR(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 gp(a,t,e){var o=pe({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=GR(C,S,p,g)/b;if(k<0||k>1)return!1;var D=GR(C,S,m,y)/b;return!(D<0||D>1)}function GR(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 p=a.formatterParamsExtra;p&&q(Zt(p),function(m){je(h,m)||(h[m]=p[m],h.$vars.push(m))});var g=pt(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[vC]||u;if(u[qR]!==e||u[oh]!==o){if(null==e||!o)return a[t]=f;(u=a[t]=pC(f,e,"debounce"===o))[vC]=f,u[oh]=o,u[qR]=e}return u}}function c_(a,t){var e=a[t];e&&e[vC]&&(e.clear&&e.clear(),a[t]=e[vC])}var SD=Sn(),ZR={itemStyle:ol(m4,!0),lineStyle:ol(g4,!0)},XR={lineStyle:"stroke",itemStyle:"fill"};function KR(a,t){return a.visualStyleMapper||ZR[t]||(console.warn("Unkown style type '"+t+"'."),ZR.itemStyle)}function gC(a,t){return a.visualDrawType||XR[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=KR(t,u)(f),p=f.getShallow("decal");p&&(o.setVisual("decal",p),p.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=pe({},h);T[g]=y(x),k.setItemVisual(D,"style",T)}}}},mp=new Kn,$R={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var o=t.getData(),u=t.visualStyleAccessPath||"itemStyle",f=KR(t,u),d=o.getVisual("drawType");return{dataEach:o.hasItemOption?function(h,p){var g=h.getRawDataItem(p);if(g&&g[u]){mp.option=g[u];var m=f(mp);pe(h.ensureUniqueItemVisual(p,"style"),m),mp.option.decal&&(h.setItemVisual(p,"decal",mp.option.decal),mp.option.decal.dirty=!0),d in m&&h.setItemVisual(p,"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"),p="mod"===t.get("progressiveChunkMode")?f:null;t.pipelineContext=o.context={progressiveRender:d,modDataCount:p,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(p,g){return p.setDirty&&(!p.dirtyMap||p.dirtyMap.get(g.__pipeline.id))}q(t,function(p,g){if(!u.visualType||u.visualType===p.visualType){var m=d._stageTaskMap.get(p.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=!p.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(),p=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):p?o.eachRawSeriesByType(p,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,p=d.agentStubMap=$e(),g=t.seriesType,m=t.getTargetSeries,y=!0,b=!1;function S(k){var D=k.uid,x=p.set(D,h&&h.get(D)||(b=!0,X0({reset:QR,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 QR(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 JR(o)}):AG}var AG=JR(0);function JR(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()]=p,m=!0)}}h.hasOwnProperty(g)&&(o[g]=p,m=!0),m||(u[g]=p)})}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 p=e.cptQuery,g=e.dataQuery;return m(p,d,"mainType")&&m(p,d,"subType")&&m(p,d,"index","componentIndex")&&m(p,d,"name")&&m(p,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"],n2=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 a2(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 o2(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 p=new Re(this._api),g=this._theme,m=this._model=new HI;m.scheduler=this._scheduler,m.ssr=this._ssr,m.init(null,null,null,g,this._locale,p)}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(p){u.eachComponent({mainType:p},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(p){p.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 p=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();p=f(N.left,p),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)-(p*=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-p,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 D2(this,"convertToPixel",e,o)},t.prototype.convertFromPixel=function(e,o){return D2(this,"convertFromPixel",e,o)},t.prototype.containPixel=function(e,o){var f;if(!this._disposed)return q(pm(this._model,e),function(h,p){p.indexOf("Models")>=0&&q(h,function(g){var m=g.coordinateSystem;if(m&&m.containPoint)f=f||!!m.containPoint(o);else if("seriesModels"===p){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=pm(this._model,e,{defaultMainType:"series"}),h=f.seriesModel.getData(),p=f.hasOwnProperty("dataIndexInside")?f.dataIndexInside:f.hasOwnProperty("dataIndex")?h.indexOfRawIndex(f.dataIndex):null;return null!=p?CC(h,p,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(T2,function(o){var u=function(d){var g,h=e.getModel(),p=d.target;if("globalout"===o?g={}:p&&Cp(p,function(k){var D=pt(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=pe({},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:p,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?(bp("map","selectchanged",t,u,o),bp("pie","selectchanged",t,u,o)):"select"===o.fromAction?(bp("map","selected",t,u,o),bp("pie","selected",t,u,o)):"unselect"===o.fromAction&&(bp("map","unselected",t,u,o),bp("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:pe({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=pe({},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){aI(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 kp(a,t){qD[a]=t}function eX(a){Pg({createCanvas:a})}function FC(a,t,e){var o=g2("registerMap");o&&o(a,t,e)}function JD(a){var t=g2("getMap");return t&&t(a)}var Dp=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)};vh(2e3,CG),vh(4500,$R),vh(4500,wG),vh(2e3,ft),vh(4500,LG),vh(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 op(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(sp)}),kp("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,p=t.showSpinner?t.spinnerRadius:0,g=(a.getWidth()-2*p-(t.showSpinner&&h?10:0)-h)/2-(t.showSpinner&&h?0:5+h/2)+(t.showSpinner?0:h/2)+(h?0:p),m=a.getHeight()/2;t.showSpinner&&d.setShape({cx:g,cy:m}),f.setShape({x:g-p,y:m-p,width:2*p,height:2*p}),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:Wv,event:Wv,update:Wv},Jr),uu({type:Yv,event:Yv,update:Yv},Jr),uu({type:qv,event:qv,update:qv},Jr),LC("light",OG),LC("dark",IG);var R2={},v8=[],ex={registerPreprocessor:XD,registerProcessor:KD,registerPostInit:c8,registerPostUpdate:$D,registerUpdateLifecycle:QD,registerAction:uu,registerCoordinateSystem:f8,registerLayout:d8,registerVisual:vh,registerTransform:Dp,registerLoading:kp,registerMap:FC,registerImpl:function ZG(a,t){hr[a]=t},PRIORITY:M2,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(v8,a)>=0||(v8.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=p.shift();1===p.length&&(o[h]=p[0]),this._update&&this._update(m,d)}else 1===g?(o[h]=null,this._update&&this._update(p,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[p]=null;else if(1===y&&b>1)this._updateOneToMany&&this._updateOneToMany(m,g),u[p]=null;else if(1===y&&1===b)this._update&&this._update(m,g),u[p]=null;else if(y>1&&b>1)this._updateManyToMany&&this._updateManyToMany(m,g),u[p]=null;else if(y>1)for(var C=0;C1)for(var h=0;h30}var H2,xp,O_,I_,ix,Tp,Ku,P_=Ke,cu=Me,_8="undefined"==typeof Int32Array?Array:Int32Array,B2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],V2=["_approximateExtent"],z2=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;F2(t)?(o=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(u=!0,o=t),o=o||["x","y"];for(var f={},d=[],h={},p=!1,g={},m=0;m=e)){var u=this._store.getProvider();this._updateOrdinalMeta();var f=this._nameList,d=this._idList;if(u.getSource().sourceFormat===vl&&!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=pe({},f)),u[e]=f),f},a.prototype.setItemVisual=function(t,e,o){var u=this._itemVisuals[t]||{};this._itemVisuals[t]=u,P_(e)?pe(u,e):u[e]=o},a.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},a.prototype.setLayout=function(t,e){P_(t)?pe(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?pe(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(gv(arguments)))})},a.internalField=(H2=function(e){var o=e._invertedIndicesMap;q(o,function(u,f){var d=e._dimInfos[f],h=d.ordinalMeta,p=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=z2;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 G2(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),p=o===a.dimensionsDefine,g=p?N2(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 U2=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(p,g){var m=f.getComponent("parallelAxis",p),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 j2(a){return!F2(a.schema)}(t)?(f=(d=t.schema).dimensions,h=t.store):f=t;var g,m,y,b,p=!(!a||!a.get("stack"));if(q(f,function(T,E){Ne(T)&&(f[E]=T={name:T}),p&&!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===vl;var d=function S8(a){var t=a.get("coordinateSystem"),e=new U2(t),o=M8[t];if(o)return o(a,e,e.axisMap,e.categoryAxisMap),e}(t),h=function W2(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 p=h.get("type");d.type=rx(p)}return d})),u||(u=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),u}(t,d),p=e.useEncodeDefaulter,g=et(p)?p:p?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 p=e.categoryAxisMap.get(f.coordDim);p&&(null==o&&(o=d),f.ordinalMeta=p.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 Y2(a){if(a.sourceFormat===vl){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 q2(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 Ap(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(Ap(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,p=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,Ep=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 Ap(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=q2(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:Ep(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=q2(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]=Ep(Math.floor(o[0]/d)*d)),e.fixMax||(o[1]=Ep(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){K2(o)&&e.push(o)}),e}function P8(a){var t=function lX(a){var t={};q(a,function(p){var m=p.coordinateSystem.getBaseAxis();if("time"===m.type||"value"===m.type)for(var y=p.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")||(vx(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:{}},p=h.stacks;t[f]=h;var g=o.stackId;p[g]||h.autoWidthCount++,p[g]=p[g]||{width:0,maxWidth:0};var m=o.barWidth;m&&!p[g].width&&(p[g].width=m,m=Math.min(h.remainedWidth,m),h.remainedWidth-=m);var y=o.barMaxWidth;y&&(p[g].maxWidth=y);var b=o.barMinWidth;b&&(p[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 p=Zt(f).length;h=Math.max(35-4*p,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 Z2(a,t){var e=E8(a,t),o=P8(e);q(e,function(u){var f=u.getData(),h=u.coordinateSystem.getBaseAxis(),p=B_(u),g=o[jC(h)][p];f.setLayout({bandWidth:g.bandWidth,offset:g.offset,size:g.width})})}function X2(a){return{seriesType:a,plan:Qa(),reset:function(e){if(K2(e)){var o=e.getData(),u=e.coordinateSystem,f=u.getBaseAxis(),d=u.getOtherAxis(f),h=o.getDimensionIndex(o.mapDimension(d.dim)),p=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 $2(a,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}(0,d),k=vx(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(p,ee),ve=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&&(ve=u.dataToPoint([_e,me])[0]),Pe=ve,Be=ht[1]+E,He=ht[0]-ve,nt=T,Math.abs(He)0)for(var h=0;h=0;--h)if(p[g]){f=p[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=_I,d=0;function h(W,X,J,ee,re,ie,ce){for(var me=new Date(X),ve=X,_e=me[ee]();ve1&&0===ie&&J.unshift({value:J[0].value-ve})}}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,p=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 tL(a){return(a/=Lm)>12?12:a>6?6:a>3.5?4:a>2?2:1}function Pp(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[MI(e)](0);case"minute":o[kI(e)](0);case"second":o[DI(e)](0),o[xk(e)](0)}return o.getTime()}bf.registerClass(J2);var L8=J2,nL=bf.prototype,V_=Qu.prototype,fX=Mr,dX=Math.floor,hX=Math.ceil,px=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 p=h.value,g=Mr(px(this.base,p));return g=p===u[0]&&this._fixMin?mx(g,f[0]):g,{value:g=p===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=nL.getExtent.call(this);o[0]=px(e,o[0]),o[1]=px(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),nL.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=Ov(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=Ap(e,this._extent),px(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 vX=gx,pX=function(){function a(t,e,o){this._prepareParams(t,e,o)}return a.prototype._prepareParams=function(t,e,o){o[1]0&&p>0&&!g&&(h=0),h<0&&p<0&&!m&&(p=0));var b=this._determinedMin,C=this._determinedMax;return null!=b&&(h=b,g=!0),null!=C&&(p=C,m=!0),{min:h,max:p,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 pX(a,t,e),a.rawExtentInfo=o,o)}function qC(a,t){return null==t?null:Rg(t)?NaN:a.parse(t)}function rL(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),p=!1;if(q(h,function(y){p=p||y.getBaseAxis()===t.axis}),p){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 p=-1/0;q(d,function(C){p=Math.max(C.offset+C.width,p)}),h=Math.abs(h),p=Math.abs(p);var g=h+p,m=t-a,b=m/(1-(h+p)/f)-m;return{min:a-=b*(h/g),max:t+=b*(p/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=rL(a,e),u=o.extent,f=e.get("splitNumber");a instanceof vX&&(a.base=e.get("logBase"));var d=a.type,h=e.get("interval"),p="interval"===d||"time"===d;a.setExtent(u[0],u[1]),a.calcNiceExtent({splitNumber:f,fixMin:o.fixMin,fixMax:o.fixMax,minInterval:p?e.get("minInterval"):null,maxInterval:p?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 Op(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 iL(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=p)}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),p=p>>1^-(1&p),u=h+=u,f=p+=f,o.push([h/e,p/e])}return o}function lL(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(p,g){return bx(p,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(p){p[0]&&f.push(new j8(p[0],p.slice(1)))});break;case"LineString":f.push(new oL([u.coordinates]));break;case"MultiLineString":f.push(new oL(u.coordinates))}var h=new sL(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=uL(a,"labels"),o=XC(t);return cL(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 uL(a,t){return Sf(a)[t]||(Sf(a)[t]=[])}function cL(a,t){for(var e=0;e1&&m/p>2&&(g=Math.round(Math.ceil(g/p)*p));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+=p)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-p!==f[1]&&k(f[1]),h}function QC(a,t,e){var o=a.scale,u=Op(a),f=[];return q(o.getTicks(),function(d){var h=o.getLabel(d),p=d.value;t(d.value,h)&&f.push(e?p:{formattedLabel:u(d),rawLabel:h,tickValue:p})}),f}var fL=[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&&dL(o=o.slice(),u.count()),wn(t,fL,o,e)},a.prototype.coordToData=function(t,e){var o=this._extent,u=this.scale;this.onBand&&"ordinal"===u.type&&dL(o=o.slice(),u.count());var f=wn(t,o,fL,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=uL(a,"ticks"),o=XC(t),u=cL(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(p){return p.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=Op(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=Op(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 p=f[0],g=a.dataToCoord(p+1)-a.dataToCoord(p),m=Math.abs(g*Math.cos(o)),y=Math.abs(g*Math.sin(o)),b=0,C=0;p<=f[1];p+=h){var k,D=vd(e({value:p}),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 dL(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,p){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 p[0]=m,p[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 p[0]=m,p[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(vu,Do,rr),Et.sub(Dl,Br,rr);var e=vu.len(),o=Dl.len();if(!(e<.001||o<.001)){vu.scale(1/e),Dl.scale(1/o);var u=vu.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(vu,rr,Do),Et.sub(Dl,Br,rr);var o=vu.len(),u=Dl.len();if(!(o<.001||u<.001)&&(vu.scale(1/o),Dl.scale(1/u),vu.dot(t)=p)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 pL(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),p=Ab([],o[1],o[2],d/f),g=Ab([],h,p,.5);a.bezierCurveTo(h[0],h[1],h[0],h[1],g[0],g[1]),a.bezierCurveTo(p[0],p[1],p[0],p[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 gL(a,"y","height",t,e,o)}function Ip(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,p)}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,p)}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,p,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 _L(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 yL(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(_L);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||xv,"string"==typeof e?d=yL(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=yL("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,p=!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(p=0;pt);p++);h=o[u[p]]}if(u.splice(p+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!==p&&(m.__dirty=!0),m.__startIndex=p,m.__drawIndex=m.incremental?-1:p,e(p),f=m),1&u.__dirty&&!u.__inHover&&(m.__dirty=!0,m.incremental&&m.__drawIndex<0&&(m.__drawIndex=p))}e(p),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>=SL==!!m;var k=t+o*en(d),D=e+u*wL(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*wL(d+E)),T>.01&&this._add("A",o,u,x,0,+m,k,D)}else{var P=t+o*en(h),V=e+u*wL(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,p,g){for(var m=[],y=this._p,b=1;b"}(d,u.attrs)+(u.text||"")+(f?""+e+Me(f,function(p){return o(p)}).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 xL(a,t,e,o){return xi("svg","root",{width:a,height:t,xmlns:Es,"xmlns:xlink":kL,version:"1.1",baseProfile:"full",viewBox:!!o&&"0 0 "+a+" "+t},e)}var TL={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 vU(a,t,e){var o=pe({},a.shape);pe(o,t),a.buildPath(e,o);var u=new kf;return u.reset(Yb(a)),e.rebuildPath(u,1),u.generateStr(),u.getStr()}function pU(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 EL(a){return Ne(a)?TL[a]?"cubic-bezier("+TL[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 AL(a,t,e){var f,d,u={};if(q(a.shape.paths,function(p){var g=Fx(e.zrId);g.animation=!0,ow(p,{},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 p={},g=0;g0}).length)return Nx(H,e)+" "+T[0]+" both"}for(var D in p)(h=k(p[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 ML(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 p=t.strokeNoScale?e.getLineScale():1,g=p?(t.lineWidth||0)/p: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[p+1]?null:e[p+1].elm,e,u,p):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 VL=0,AX=function(){function a(t,e,o){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=e,this._opts=o=pe({},o),this.root=t,this._id="zr"+VL++,this._oldVNode=xL(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=DL("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))Fp(a,t);else{var e=a.elm,o=Y_(e);Lp(t),null!==o&&(yh(o,t.elm,FL(e)),fw(o,[a],0,0))}}(this._oldVNode,t),this._oldVNode=t}},a.prototype.renderOneToVNode=function(t){return IL(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 p=fs(o);this._bgVNode=xi("rect","bg",{width:u,height:f,x:"0",y:"0",id:"0",fill:p.color,"fill-opacity":p.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(p){return p+u+Me(Zt(a[p]),function(g){return g+":"+a[p][g]+";"}).join(o)+f}).join(o),h=Me(Zt(t),function(p){return"@keyframes "+p+u+Me(Zt(t[p]),function(g){return g+u+Me(Zt(t[p][g]),function(m){var y=t[p][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 xL(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,p,u=t.length,f=[],d=0,g=0,m=0;m=0&&(!b||!p||b[k]!==p[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=HL;function Np(a,t){var e=a.mapDimensionsAll("defaultedLabel"),o=e.length;if(1===o){var u=up(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 GL=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,p=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,p,y)}else{(b=this.childAt(0)).silent=!1;var C={scaleX:p[0]/2,scaleY:p[1]/2};m?b.attr(C):Ut(b,C,h,o),iu(b)}if(this._updateCommon(e,o,p,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),p=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=pa(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(pe({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},N))}else h.useStyle(h.__isEmptyBrush?pe({},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:p,labelDataIndex:o,defaultText:function J(ie){return X?e.getName(ie):Np(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=pt(this).dataIndex,h=u&&u.animation;if(this.silent=f.silent=!0,u&&u.fadeLabel){var p=f.getTextContent();p&&ru(p,{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 v_(e.getItemVisual(o,"symbolSize"))},t}(ct);function xU(a,t){this.parent.drift(a,t)}var X_=GL;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 UL(a){return null!=a&&!Ke(a)&&(a={isIgnore:a}),a||{}}function jL(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:pa(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=UL(e);var o=this.group,u=t.hostModel,f=this._data,d=this._SymbolCtor,h=e.disableAnimation,p=jL(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,p,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,p,g)).setPosition(S);else{C.updateData(t,y,p,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=jL(t),this._data=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(t,e,o){function u(p){p.isGroup||(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],o=UL(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,p=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:p,baseDim:g,baseDataOffset:m,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function YL(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 qL(a,t,e,o,u,f,d,h,p){for(var g,m,y,b,C,S,k=e,D=0;D=u||k<0)break;if(Sh(x,T)){if(p){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,ve=void 0,_e=void 0;if("x"===h){var Pe=W>0?1:-1;C=x-Pe*(ve=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*(ve=Math.abs(ce))*d,J=x,ee=T+Be*(_e=Math.abs(me))*d}else ve=Math.sqrt(re*re+ce*ce),C=x-W*d*(1-(Z=(_e=Math.sqrt(ie*ie+me*me))/(_e+ve))),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)*ve/_e,C=ic(C=x-(W=J-x)*ve/_e,wh(g,x)),S=ic(S,wh(m,T)),J=x+(W=x-(C=wh(C,ic(g,x))))*_e/ve,ee=T+(X=T-(S=wh(S,ic(m,T))))*_e/ve}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-p)*E+p:(C-h)*E+h;return g?[e,P]:[P,e]}h=C,p=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(p,S,D,T,e,m);if(V>0)for(var N=0;N=0)return P=g?xt(p,S,D,T,H):xt(h,C,k,x,H),g?[e,P]:[P,e]}h=x,p=T}}},t}(Xt),RU=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t}(OU),ZL=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,p=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(p){var g=f.scale.getRawOrdinalNumber(p.tickValue);h[g]=1}),function(p){return!h.hasOwnProperty(t.get(d,p))}}}}(e,p,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 p=t.getAxis(u),g=Me(f.stops,function(E){return{coord:p.toGlobalCoord(p.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:nO((b-C)/(y.coord-C),[m.color,y.color])}}for(var h=0;ht){f?e.push(d(f,p,t)):u&&e.push(d(u,p,0),d(u,p,t));break}u&&(e.push(d(u,p,0)),u=null),e.push(p),f=p}}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}}}(p,d,u)||p.getVisual("style")[p.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:KL(this,d,!1,e).shape},e):x.setClipPath(KL(this,d,!0,e)),H&&S.updateData(p,{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(p,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(p,{isIgnore:Z,clipShape:J,disableAnimation:!0,getSymbolPoint:function(Tt){return[y[2*Tt],y[2*Tt+1]]}}),T&&this._initSymbolLabelAnimation(p,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(KL(this,d,!0,e));var ce=e.getModel("emphasis"),me=ce.get("focus"),ve=ce.get("blurScope"),_e=ce.get("disabled");k.useStyle(rt(g.getLineStyle(),{fill:"none",stroke:ee,lineJoin:"bevel"})),va(k,e,"lineStyle"),k.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])&&(k.getState("emphasis").style.lineWidth=+k.style.lineWidth+1),pt(k).seriesIndex=e.seriesIndex,Yr(k,me,ve,_e);var Be=Wx(e.get("smooth")),He=e.get("smoothMonotone");if(k.setShape({smooth:Be,smoothMonotone:He,connectNulls:j}),D){var nt=p.getCalculationInfo("stackedOnSeries"),ht=0;D.useStyle(rt(m.getAreaStyle(),{fill:ee,opacity:.7,lineJoin:"bevel",decal:p.getVisual("style").decal})),nt&&(ht=Wx(nt.get("smooth"))),D.setShape({smooth:Be,stackedOnSmooth:ht,smoothMonotone:He,connectNulls:j}),va(D,e,"areaStyle"),pt(D).seriesIndex=e.seriesIndex,Yr(D,me,ve,_e)}var In=function(Tt){f._changePolyState(Tt)};p.eachItemGraphicEl(function(Bn){Bn&&(Bn.onHoverStateChange=In)}),this._polyline.onHoverStateChange=In,this._data=p,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){pt(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 p=d.getLayout("points"),g=d.getItemGraphicEl(h);if(!g){var m=p[2*h],y=p[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 p=d.getItemGraphicEl(h);p&&(p.__temp?(d.setItemGraphicEl(h,null),this.group.remove(p)):p.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 ZL({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(),p=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);p&&(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,p=d.getLayout("points");if(!p)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}(p);m>=0&&($i(h,pa(e,"endLabel"),{inheritColor:u,labelFetcher:e,labelDataIndex:m,defaultText:function(b,C,S){return null!=S?zL(d,S):Np(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,p){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=p.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,p=-1,g=0;g=t||f>=t&&d<=t){p=g;break}h=g,f=d}return{range:[h,p],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=AO(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,p){var g=this._polyline,m=this._polygon,y=e.hostModel,b=function PU(a,t,e,o,u,f,d,h){for(var p=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=WL(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(p/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),$L=Ur,QL=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},Bp=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 QL},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),p=.5*(h-d),g=d+p,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){Xv(f,e,pt(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),JL={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),p=Df(e.x+e.width,f),g=mw(e.y,t.y),m=Df(e.y+e.height,d),y=pf?p:h,e.y=b&&g>d?m:g,e.width=y?0:p-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,p,g){var m=new fn({shape:pe({},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,p,g){var m=!f&&g?pw: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),p=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-p)*E(x),N=y+(C-p)*P(x),H="center",j="top";break;case"insideStartArc":V=m+(C+p)*E(x),N=y+(C+p)*P(x),H="center",j="bottom";break;case"startAngle":V=m+S*E(k)+gw(k,p+T,!1),N=y+S*P(k)+Q_(k,p+T,!1),H="right",j="middle";break;case"insideStartAngle":V=m+S*E(k)+gw(k,-p+T,!1),N=y+S*P(k)+Q_(k,-p+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+p)*E(x),N=y+(b+p)*P(x),H="center",j="bottom";break;case"insideEndArc":V=m+(b-p)*E(x),N=y+(b-p)*P(x),H="center",j="top";break;case"endAngle":V=m+S*E(D)+gw(D,p+T,!0),N=y+S*P(D)+Q_(D,p+T,!0),H="left",j="middle";break;case"insideEndAngle":V=m+S*E(D)+gw(D,-p+T,!0),N=y+S*P(D)+Q_(D,-p+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===pw}),d){var S=f?"r":"endAngle",k={};y.shape[S]=f?0:u.startAngle,k[S]=u[S],(p?Ut:nr)(y,{shape:k},d)}return y}};function Xx(a,t,e,o,u,f,d,h){var p,g;f?(g={x:o.x,width:o.width},p={y:o.y,height:o.height}):(g={y:o.y,height:o.height},p={x:o.x,width:o.width}),h||(d?Ut:nr)(e,{shape:p},t,u,null),(d?Ut:nr)(e,{shape:g},t?a.baseAxis.model:null,u)}function tF(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 p=t.getItemVisual(e,"style");h||a.setShape("r",o.get(["itemStyle","borderRadius"])||0),a.useStyle(p);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=pa(o);$i(a,y,{labelFetcher:f,labelDataIndex:e,defaultText:Np(f.getData(),e),inheritColor:p.fill,defaultOpacity:p.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 p,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":p=h;break;case"startAngle":case"insideStartAngle":p=f;break;case"endAngle":case"insideEndAngle":p=d;break;default:return void a.setTextConfig({rotation:0})}var m=1.5*Math.PI-p;"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"]))}fI(b,y,f.getRawValue(e),function(k){return zL(t,k)});var S=o.getModel(["emphasis"]);Yr(a,S.get("focus"),S.get("blurScope"),S.get("disabled")),va(a,o),function nF(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 iF=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 iF},t.prototype.buildPath=function(e,o){for(var u=o.points,f=this.baseDimIdx,d=1-this.baseDimIdx,h=[],p=[],g=this.barWidth,m=0;m=h[0]&&t<=h[0]+p[0]&&e>=h[1]&&e<=h[1]+p[1])return d[m]}return-1}(this,a.offsetX,a.offsetY);pt(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 oF(a,t){return oi(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function sF(a,t){var e=oF(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 lF(a,t,e){t.eachSeriesByType(a,function(o){var u=o.getData(),f=u.mapDimension("value"),d=oF(o,e),h=sF(o,e),p=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:p,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,p=e.getItemModel(o),g=p.getModel("emphasis"),m=e.getItemLayout(o),y=pe(J_(p.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")),va(d,p);var C=(m.startAngle+m.endAngle)/2,S=h.get("selectedOffset"),k=Math.cos(C)*S,D=Math.sin(C)*S,x=p.getShallow("cursor");x&&d.attr("cursor",x),this._updateLabel(h,e,o),d.ensureState("emphasis").shape=pe({r:m.r+(g.get("scale")&&g.get("scaleSize")||0)},J_(g.getModel("itemStyle"),m)),pe(d.ensureState("select"),{x:k,y:D,shape:J_(p.getModel(["select","itemStyle"]),m)}),pe(d.ensureState("blur"),{shape:J_(p.getModel(["blur","itemStyle"]),m)});var T=d.getTextGuideLine(),E=d.getTextContent();T&&pe(T.ensureState("select"),{x:k,y:D}),pe(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"),p=o.getItemVisual(u,"style"),g=p&&p.fill,m=p&&p.opacity;$i(f,pa(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,p=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"}),vt){Z.setStyle({align:Tt});var yH=Z.states.select;yH&&(yH.x+=Z.x,yH.y+=Z.y)}else{var cv=Z.getBoundingRect().clone();cv.applyTransform(Z.getComputedTransform());var Sq=(Z.style.margin||0)+2.1;cv.y-=Sq/2,cv.height+=Sq,e.push({label:Z,labelLine:W,position:ee,len:_e,len2:Pe,minTurnAngle:ve.get("minTurnAngle"),maxSurfaceAngle:ve.get("maxSurfaceAngle"),surfaceNormal:new Et(He,nt),linePoints:Bn,textAlign:Tt,labelDistance:re,labelAlignTo:ie,edgeDistance:ce,bleedMargin:me,rect:cv,unconstrainedWidth:cv.width,labelStyleWidth:Z.style.width})}H.setTextConfig({inside:vt})}}),!f&&a.get("avoidLabelOverlap")&&function KU(a,t,e,o,u,f,d,h){for(var p=[],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}||pe({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=CO(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(){},fF=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,p=e.getContext?e.getContext():e,m=this.softClipShape;if(p&&f[0]<4)this._ctx=p;else{for(this._ctx=null,y=this._off;y=0;g--){var m=2*g,y=f[m]-h/2,b=f[m+1]-p/2;if(e>=y&&o>=b&&e<=y+h&&o<=b+p)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],p=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,dF=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=vw("").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=dF,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(p){function g(){var m=null!==p&&p.apply(this,arguments)||this;return m.type=t+"Axis."+f,m}return de(g,p),g.prototype.mergeDefaultAndTheme=function(m,y){var b=qd(this),C=b?rp(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]]),p=u[1]-u[0],g=f[1]-f[0];if(p&&g){var m=(h[0]-d[0])/p,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"),p=this.getAxis("y");return u[0]=h.toGlobalCoord(h.dataToCoord(f,o)),u[1]=p.toGlobalCoord(p.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(),p=u.parse(e[0]),g=f.parse(e[1]);return(o=o||[])[0]=Math.min(Math.max(Math.min(d[0],d[1]),p),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,p=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[p]]:y[0],"x"===g?S[b[p]]: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"===p?-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 pF(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),p=rL(a,t),g=p.extent,m=p.fixMin,y=p.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,p=Zt(d),g=p.length;if(g){for(var m=[],y=g-1;y>=0;y--){var C=d[+p[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){pF(D.scale,D.model,h.scale)}))}}this._updateScale(t,this.model),u(o.x),u(o.y);var f={};q(o.x,function(d){gF(o,"y",d,f)}),q(o.y,function(d){gF(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 p(){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 mF(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)})}p(),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 p,d=a.getLabelModel(),h=Op(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!!_F[t]},a.prototype.add=function(t){_F[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=SO(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}(),_F={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,p=[d[0],0],g=[d[1],0];h&&(Yi(p,p,h),Yi(g,g,h));var m=pe({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),y=new Nr({subPixelOptimize:!0,shape:{x1:p[0],y1:p[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((p[0]-g[0])*(p[0]-g[0])+(p[1]-g[1])*(p[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:p[0]+P*Math.cos(t.rotation),y:p[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"),p=o.tickDirection*f.get("length"),m=Mw(u.getTicksCoords(),t.transform,p,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 yF(a,t,e,o){var f,d,u=SO(e-a),h=o[0]>o[1],p="start"===t&&!h||"start"!==t&&h;return n0(u-Tf/2)?(d=p?"bottom":"top",f="center"):n0(u-1.5*Tf)?(d=p?"top":"bottom",f="center"):(d="middle",f=u<1.5*Tf&&u>Tf/2?p?"left":"right":p?"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=p.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(p,{text:f,font:D,overflow:"truncate",width:E,ellipsis:T,fill:p.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:p.get("align")||C.textAlign,verticalAlign:p.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,pt(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=Tv([]);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=[],p=0;p=0||a===t}function p6(a){var t=vT(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 p=o.getExtent().slice();p[0]>p[1]&&p.reverse(),(null==d||d>p[1])&&(d=p[1]),d0&&!S.min?S.min=0:null!=S.min&&S.min<0&&!S.max&&(S.max=0);var k=p;null!=S.color&&(k=rt({color:S.color},p));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"),p=d.getModel("lineStyle"),g=h.getModel("areaStyle"),m=d.get("show"),y=h.get("show"),b=p.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:p,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:p,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 IF(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"},zp=Zt(Rh),Gp={"alignment-baseline":"textBaseline","stop-color":"stopColor"},ST=Zt(Gp),RF=function(){function a(){this._defs={},this._root=null}return a.prototype.parse=function(t,e){e=e||{};var o=IF(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),p=parseFloat(o.getAttribute("height")||e.height);isNaN(h)&&(h=null),isNaN(p)&&(p=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!=p&&(y=Pf(m,{x:0,y:0,width:h,height:p}),!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!=p&&u.setClipPath(new fn({shape:{x:0,y:0,width:h,height:p}})),{root:u,width:h,height:p,viewBoxRect:m,viewBoxTransform:y,named:f}},a.prototype._parseNode=function(t,e,o,u,f,d){var p,h=t.nodeName.toLowerCase(),g=u;if("defs"===h&&(f=!0),"text"===h&&(d=!0),"defs"===h||"switch"===h)p=e;else{if(!f){var m=wT[h];if(m&&je(wT,h)){p=m.call(this,t,e);var y=t.getAttribute("name");if(y){var b={name:y,namedFrom:null,svgNodeTagLower:h,el:p};o.push(b),"g"===h&&(g=b)}else u&&o.push({name:u.name,namedFrom:u,svgNodeTagLower:h,el:p});e.add(p)}}var C=LF[h];if(C&&je(LF,h)){var S=C.call(this,t),k=t.getAttribute("id");k&&(this._defs[k]=S)}}if(p&&p.isGroup)for(var D=t.firstChild;D;)1===D.nodeType?this._parseNode(D,p,o,g,f,d):3===D.nodeType&&d&&this._parseText(D,p),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=NF(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=NF(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 p=new ct;return Is(o,p),Ao(e,p,this._defsUsePending,!1,!0),p},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",p=new ct;return Is(o,p),Ao(e,p,this._defsUsePending,!1,!0),this._textX+=parseFloat(d),this._textY+=parseFloat(h),p},path:function(e,o){var f=kR(e.getAttribute("d")||"");return Is(o,f),Ao(e,f,this._defsUsePending,!1,!1),f.silent=!0,f}}),a}(),LF={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),FF(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 pp(e,o,u);return Rw(t,f),FF(t,f),f}};function Rw(a,t){"userSpaceOnUse"===a.getAttribute("gradientUnits")&&(t.global=!0)}function FF(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 NF(a){for(var t=dy(a),e=[],o=0;o0;f-=2){var h=o[f-1],p=dy(o[f]);switch(u=u||[1,0,0,1,0,0],h){case"translate":ps(u,u,[parseFloat(p[0]),parseFloat(p[1]||"0")]);break;case"scale":$b(u,u,[parseFloat(p[0]),parseFloat(p[1]||p[0])]);break;case"rotate":el(u,u,-parseFloat(p[0])*MT);break;case"skewX":Js(u,[1,0,Math.tan(parseFloat(p[0])*MT),1,0,0],u);break;case"skewY":Js(u,[1,Math.tan(parseFloat(p[0])*MT),0,1,0,0],u);break;case"matrix":u[0]=parseFloat(p[0]),u[1]=parseFloat(p[1]),u[2]=parseFloat(p[2]),u[3]=parseFloat(p[3]),u[4]=parseFloat(p[4]),u[5]=parseFloat(p[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:p,mapOrGeoModel:t,data:h,isVisualEncodedByVisualMap:k,isGeo:d,transformInfoRaw:b};"geoJSON"===p.resourceType?this._buildGeoJSON(D):"geoSVG"===p.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,p=t.geo.projection,g=p&&p.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&&p&&p.project,D=0;D=0)&&(b=u);var C=d?{normal:{align:"center",verticalAlign:"middle"}}:null;$i(t,pa(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 WF(a,t,e,o,u,f){a.data?a.data.setItemGraphicEl(f,t):pt(t).eventData={componentType:"geo",componentIndex:u.componentIndex,geoIndex:u.componentIndex,name:e,region:o&&o.option||{}}}function YF(a,t,e,o,u){a.data||ih({el:t,componentModel:u,itemName:e,itemTooltipOption:o.get("tooltip")})}function qF(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=pt(a);o.componentMainType=t.mainType,o.componentIndex=t.componentIndex,o.componentHighDownName=e}(t,u,e),d}function ZF(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(p){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=KF;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,p=-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=JF}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 p=d.get("map"),g=new nN(p+h,p,pe({nameMap:d.get("nameMap")},u(d)));g.zoomLimit=d.get("scaleLimit"),o.push(g),d.coordinateSystem=g,g.model=d,g.resize=rN,g.resize(d,e)}),t.eachSeries(function(d){if("geo"===d.get("coordinateSystem")){var p=d.get("geoIndex")||0;d.coordinateSystem=o[p]}});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 p=Me(d,function(m){return m.get("nameMap")}),g=new nN(h,h,pe({nameMap:gr(p)},u(d[0])));g.zoomLimit=Ui.apply(null,Me(d,function(m){return m.get("scaleLimit")})),o.push(g),g.resize=rN,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 hN(a,t,e,o){if(t){for(var u=a,f=a,d=f.parentNode.children[0],h=t,p=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,p+=b),y+=h.hierNode.modifier,g+=f.hierNode.modifier,p+=u.hierNode.modifier,m+=d.hierNode.modifier}h&&!PT(u)&&(u.hierNode.thread=h,u.hierNode.modifier+=y-p),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 fN(a){a.setLayout({x:a.hierNode.prelim+a.parentNode.hierNode.modifier},!0),a.hierNode.modifier+=a.parentNode.hierNode.modifier}function dN(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],p=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]+(p[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]=p[m],e.lineTo(C[0],C[1]),e.lineTo(p[0],p[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&&(pt(e).focus=ee),function nj(a,t,e,o,u,f,d,h){var p=t.getModel(),g=a.get("edgeShape"),m=a.get("layout"),y=a.getOrient(),b=a.get(["lineStyle","curveness"]),C=a.get("edgeForkPosition"),S=p.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})}),p=0;d.eachNode("preorder",function(y){y.depth>p&&(p=y.depth)});var m=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:p;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),p=h.getValue(),g=h.name;h&&h!==d;)g=h.parentNode.name+"."+g,h=h.parentNode;return Gt("nameValue",{name:g,value:p,noValue:isNaN(p)||null==p})},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),CN=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=dN(function(E,P){return(E.parentNode===P.parentNode?1:2)/E.depth})):(u=e.width,f=e.height,d=dN());var h=a.getData().tree.root,p=h.children[0];if(p){(function uN(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(p,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(p,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(p,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();pe(e.ensureUniqueItemVisual(u.dataIndex,"style"),d)})})}var SN=["treemapZoomToNode","treemapRender","treemapMove"];function MN(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 kN(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 p=new Kn(h),g=p.get("color"),m=p.get("decal");(p.get(["itemStyle","color"])||g&&"none"!==g)&&(u=!0),(p.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 p=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?p[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||{},pe(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(){MN(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"),p=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,p),this._renderContent(t,g,h,p,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,p=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),p=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(p)||isNaN(parseFloat(a.bottom)))&&(p=u),e=jd(e||0),{width:Math.max(h-f-e[1]-e[3],0),height:Math.max(p-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,p,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),vj(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 vj(a,t,e){pt(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,DN=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),p=this.seriesModel.layoutInfo,g=[1,0,0,1,0,0];ps(g,g,[-(o-=p.x),-(u-=p.y)]),$b(g,g,[e.scale,e.scale]),ps(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 p=h.hostTree.data.getItemModel(h.dataIndex),g=p.get("link",!0),m=p.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 p=h.transformCoordToLocal(e,o),g=h.shape;if(!(g.x<=p[0]&&p[0]<=g.x+g.width&&g.y<=p[1]&&p[1]<=g.y+g.height))return!1;u={node:d,offsetX:p[0],offsetY:p[1]}}},this),u},t.type="treemap",t}(jn),Qw=mj,Yp=q,EN=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=PN[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(Yp(t,function(d,h){e[d]=h}),!Ce(o)){var u=[];Ke(o)?Yp(o,function(d,h){var p=e[h];u[null!=p?p:-1]=d}):u[-1]=o,o=qp(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 p=e.call(o,d,h);u?f=p:f[h]=p}),f},a.retrieveVisuals=function(t){var o,e={};return t&&Yp(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(!EN(t))return[];var e=[];Yp(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]=p);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 vn(y);return Bh(b).drColorMappingBy=m,b}}}(0,u,f,0,p,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=pe({},t);if(u){var h=u.type,p="color"===h&&Bh(u).drColorMappingBy,g="index"===p?o:"id"===p?f.mapIdToIndex(e.getId()):e.getValue(a.get("visualDimension"));d[h]=u.mapValueToVisual(g)}return d}(u,p,k,D,S,o);YT(k,x,e,o)}})}else b=IN(p),g.fill=b}}function IN(a){var t=Xp(a,"color");if(t){var e=Xp(a,"colorAlpha"),o=Xp(a,"colorSaturation");return o&&(t=Zg(t,null,null,o)),e&&(t=Sv(t,e)),t}}function Xp(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,p=oi(t.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()}),g=h.size||[],m=Ie(ZT(p.width,g[0]),f),y=Ie(ZT(p.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,p=o*u,g=p*a.option.zoomToNodeRatio;h=f.parentNode;){for(var m=0,y=h.children,b=0,C=y.length;bwO&&(g=wO),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,p=d-1;p>=0;p--){var g=u["asc"===o?d-p-1:p].getValue();g/e*to&&(o=d));var p=a.area*a.area,g=t*t*e;return p?zh(g*o/p,p/(g*u)):1/0}function Sj(a,t,e,o,u){var f=t===e.width?0:1,d=1-f,h=["x","y"],p=["width","height"],g=e[h[f]],m=t?a.area/t:0;(u||m>e[p[d]])&&(m=e[p[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=p.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,p){e._doUpdate(f,t,p,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 ZN(a,t){var e=[],o=ql,u=[[],[],[]],f=[[],[]],d=[];t/=2,a.eachEdge(function(h,p){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,p=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)}ZN(e.getGraph(),es(e));var y=e.getData();h.updateData(y);var b=e.getEdgeData();p.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"])&&(pt(P).focus=T.getAdjacentDataIndices())}}),y.graph.eachEdge(function(T){var E=T.getGraphicEl(),P=T.getModel().get(["emphasis","focus"]);!E||"adjacency"===P&&(pt(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 $p||(e=this._nodesMap[Oy(e)]),e){for(var f="out"===o?"outEdges":"in"===o?"inEdges":"edges",d=0;d=0&&p.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($p,iA("hostGraph","data")),Ir(Pj,iA("hostGraph","edgeData"));var gK=pK;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(p,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 p(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),p=f.getName(h.node1.dataIndex),g=f.getName(h.node2.dataIndex),m=[];return null!=p&&m.push(p),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:pe({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,p=o.angle,g=o.x-u(p)*h*(h>=d/3?1:2),m=o.y-f(p)*h*(h>=d/3?1:2);p=o.angle-Math.PI/2,e.moveTo(g,m),e.lineTo(o.x+u(p)*h,o.y+f(p)*h),e.lineTo(o.x+u(o.angle)*d,o.y+f(o.angle)*d),e.lineTo(o.x-u(p)*h,o.y-f(p)*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,p=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")?pw:Ja,S=y.get("show"),k=y.getModel("lineStyle"),D=k.get("width"),x=[g,m];br(x,!p);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,p,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,p];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"),ve=Ie(me[0],d.r),_e=Ie(me[1],d.r),Pe=ee.get("keepAspect");return(Be=ce?Dr(ce,ve-re/2,_e-ie,re,ie,null,Pe):new wK({shape:{angle:-Math.PI/2,width:re,r:ie,x:ve,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")?pw:Ja,re=D.get("overlap"),ie=re?D.get("width"):m/T.count(),ve=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&&(ve.z2=V-T.get(E,W)%V),ve}(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],ve=Z(W,ce?ce.shape.endAngle:h),_e=D.get("clip");Ut(ve,{shape:{endAngle:wn(J,N,H,_e)}},e),y.add(ve),wm(e.seriesIndex,T.dataType,W,ve),S[W]=ve}}).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"),ve=me.fill;if(ce instanceof Ki){var _e=ce.style;ce.useStyle(pe({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(ve);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,va(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,va(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"),p=u.get("offsetCenter"),g=u.get("keepAspect"),m=Dr(h,o.cx-d/2+Ie(p[0],o.r),o.cy-d/2+Ie(p[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,p=e.getData(),g=p.mapDimension("value"),m=+e.get("min"),y=+e.get("max"),b=new ct,C=[],S=[],k=e.isAnimationEnabled(),D=e.get(["pointer","showAbove"]);p.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(),p.each(function(x){var T=p.getItemModel(x),E=p.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:p.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"])?p.getItemVisual(x,"style").fill:V,W=S[x],ve=X.get("formatter");W.attr({z2:D?0:2,style:Cr(X,{x:ee,y:re,text:oA(E,ve),width:isNaN(ie)?null:ie,height:isNaN(ce)?null:ce,align:"center",verticalAlign:"middle"},{inheritColor:me})}),fI(W,{normal:X},E,function(Pe){return oA(Pe,ve)}),k&&F0(W,x,p,e,{getFormattedLabel:function(Be,He,nt,ht,In,Bn){return oA(Bn?Bn.interpolatedValue:E,ve)}}),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),p=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:p.points}),f.style.opacity=0,nr(f,{style:{opacity:m}},d,o)):Ut(f,{style:{opacity:m},shape:{points:p.points}},d,o),va(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,p=e.getItemModel(o),m=e.getItemLayout(o).label,y=e.getItemVisual(o,"style"),b=y.fill;$i(d,pa(p),{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(p),{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(p){var g=new EK(f,p);f.setItemGraphicEl(p,g),h.add(g)}).update(function(p,g){var m=d.getItemGraphicEl(g);m.updateData(f,p),h.add(m),f.setItemGraphicEl(p,m)}).remove(function(p){Xv(d.getItemGraphicEl(p),e,p)}).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"),p=d.width,g=d.height,m=function FK(a,t){for(var e=a.mapDimension("value"),o=a.mapArray(e,function(p){return p}),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&&QN(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 QN(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 Qp(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 p=JN(t,o);t[o]+=a;var y,g=u||0,m=e.slice();return p.sign<0?m[0]+=g:m[1]-=g,t[o]=Iy(t[o],m),y=JN(t,o),null!=u&&(y.sign!==p.sign||y.spanf&&(t[1-o]=t[o]+y.sign*f),t}function JN(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 e3=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;e3(t.dimensions,function(d,h){var p=f[h],g=e.getComponent("parallelAxis",p),m=this._axesMap.set(d,new s$(d,H_(g),[0,0],g.get("type"),p));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();e3(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]],p=[0,h],g=this.dimensions.length,m=sA(t.get("axisExpandWidth"),p),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],p),C[1]=C[0]+S):(S=sA(m*(y-1),p),(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],p=d.inverse?1:0;d.setExtent(h[p],h[1-p])}),e3(o,function(d,h){var p=(u.axisExpandable?d$:f$)(h,u),g={horizontal:{x:p.position,y:u.axisLength},vertical:{x:0,y:p.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),ps(C,C,y),this._axesLayout[d]={position:y,rotation:b,transform:C,axisNameAvailableWidth:p.axisNameAvailableWidth,axisLabelShow:p.axisLabelShow,nameTruncateMaxWidth:p.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=[],p=[];q(d,function(D){h.push(t.mapDimension(D)),p.push(f.get(D).model)});for(var g=this.hasAxisBrushed(),m=o;mf*(1-y[0])?(g="jump",p=h-f*(1-y[2])):(p=h-f*y[1])>=0&&(p=h-f*(1-y[1]))<=0&&(p=0),(p*=e.axisExpandWidth/m)?Qp(p,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,p=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&&a3(a);var p=ot(d);p.brushType=pA(p.brushType,f),p.panelId=f===Jp?null:f.panelId,u=a._creatingCover=Uj(a,p),a._covers.push(u)}if(u){var g=d1[pA(a._brushType,f)];u.__brushOption.range=g.getCreatingRange(f1(a,u,a._track)),o&&(r3(a,u),g.updateCommon(a,u)),lA(a,u),h={isEnd:o}}}else o&&"single"===d.brushMode&&d.removeOnClick&&cA(a,t,e)&&a3(a)&&(h={isEnd:o,removeOnClick:!0});return h}function pA(a,t){return"auto"===a?t.defaultBrushType:a}var c3={mousedown:function(t){if(this._dragging)gA(this,t);else if(!t.target||!t.target.draggable){vA(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[p].depth]=new Kn(d[p],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,p=d.value;return Gt("nameValue",{name:h.source+" -- "+h.target,value:p,noValue:f(p)})}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),y3=_3;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,p=e.getGraph(),g=p.nodes,m=p.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 b3(a,t,e,o,u,f,d,h,p){(function r7(a,t,e,o,u,f,d){for(var h=[],p=[],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,p*=.99,d),CA(h,u,e,o,d),S$(h,p,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 C3(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,p,g,m=0,y=d.length,b="vertical"===u?"dx":"dy",C=0;C0&&(h=p.getLayout()[f]+g,p.setLayout("vertical"===u?{x:h}:{y:h},!0)),m=p.getLayout()[f]+p.getLayout()[b]+t;if((g=m-t-("vertical"===u?o:e))>0)for(h=p.getLayout()[f]-g,p.setLayout("vertical"===u?{x:h}:{y:h},!0),m=h,C=y-2;C>=0;--C)(g=(p=d[C]).getLayout()[f]+p.getLayout()[b]+t-m)>0&&(h=p.getLayout()[f]-g,p.setLayout("vertical"===u?{x:h}:{y:h},!0)),m=p.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 p=u.getLayout().y+(f-Yh(u,e))*t;u.setLayout({y:p},!0)}}})})}function c7(a,t){return Yh(a.node2,t)*a.getValue()}function f7(a,t){return Yh(a.node2,t)}function M3(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 p=new vn({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",p),d.setVisual("style",{fill:p}))})}})}var k3=function(){function a(){}return a.prototype.getInitialData=function(t,e){var o,p,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(),p=!0):"category"===h?(t.layout="vertical",o=f.getOrdinalMeta(),p=!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&&p){var x=[];q(D,function(P,V){var N;Ce(P)?(N=P.slice(),P.unshift(V)):Ce(P.value)?((N=pe({},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}(),D3=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(D3,k3,!0);var x3=D3,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 p="horizontal"===e.get("layout")?1:0;f.diff(h).add(function(g){if(f.hasValue(g)){var y=T3(f.getItemLayout(g),f,g,p,!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),A3(b,y,f,g)):y=T3(b,f,g,p),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(){},v7=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}]}},R3=["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),p=e.coordinateSystem,g=p.getArea&&p.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 p=$n(u.getItemLayout(d));m1(p,u,d,f),p.incremental=!0,this.group.add(p),this._progressiveEls.push(p)}},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),pc=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 pc},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(R3);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,k3,!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 L3=["itemStyle","borderColor"],By=["itemStyle","borderColor0"],F3=["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?F3:AA)}function u(d,h){return h.get(d>0?L3:By)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(h,p){for(var g;null!=(g=h.next());){var m=p.getItemModel(g),y=p.getItemLayout(g).sign,b=m.getItemStyle();b.fill=o(y,m),b.stroke=u(y,m)||b.fill,pe(p.ensureUniqueItemVisual(g,"style"),b)}}}}},b1=Nn,N3={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"],p=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}),!(p<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(p,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++]=B3(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(p,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:B3(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 B3(a,t,e,o,u){return e>o?-1:e0?a.get(u,t-1)<=o?1:-1:1}var b7=N3;function V3(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||p!==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,p)}this._period=h,this._loop=p}},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],p=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[p]<=o);p--);p=Math.min(p,d-2)}else{for(p=h;po);p++);p=Math.min(p-1,d-2)}var m=(o-f[p])/(f[p+1]-f[p]),y=u[p],b=u[p+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=p,this._lastFramePercent=o,e.ignore=!1}},t}(H3),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 p=1;p0?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 p=0,g=0;g0)for(var y=f[g++],b=f[g++],C=1;C0){if(UO(y,b,(y+S)/2-(b-k)*d,(b+k)/2-(S-y)*d,S,k,h,e,o))return p}else if(Qt(y,b,S,k,h,e,o))return p;p++}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,p=-1/0,g=0;g0&&(d.dataIndex=p+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 p=[];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(p/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=G3.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"),p=o.pipelineContext.large;return(!u||f!==this._hasEffet||d!==this._isPolyline||p!==this._isLargeDraw)&&(u&&u.remove(),u=this._lineDraw=p?new A$:new Fs(d?f?P7:z3:f?H3:Ha),this._hasEffet=f,this._isPolyline=d,this._isLargeDraw=p),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 U3(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||[],U3(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(U3(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 p=d.getItemModel(h),g=C1(p.getShallow("symbol",!0)),m=C1(p.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(),p=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)?p: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(p){p===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,p=ac(h,"cartesian2d");if(p){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=pa(e),N=e.getModel("emphasis"),H=N.get("focus"),j=N.get("blurScope"),Z=N.get("disabled"),W=p?[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),ve=me.getModel("emphasis");x=ve.getModel("itemStyle").getItemStyle(),T=me.getModel(["blur","itemStyle"]).getItemStyle(),E=me.getModel(["select","itemStyle"]).getItemStyle(),P=me.get(["itemStyle","borderRadius"]),H=ve.get("focus"),j=ve.get("blurScope"),Z=ve.get("disabled"),V=pa(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,p=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=[p.mapDimension("lng"),p.mapDimension("lat"),p.mapDimension("value")],E=p.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 j3(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 p;if((p=t[h].interval)[0]<=d&&d<=p[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,p,g){var S,m=p.valueDim,y=p.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]*=(p.isHorizontal?-1:1)*d}(a,t,u,f,0,b.boundingLength,b.pxSign,m,o,b),function X3(a,t,e,o,u){var f=a.get(q3)||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 K3(a,t,e,o,u,f,d,h,p,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(p),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:eB((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?eB((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?p-W:p/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=pe({},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,p=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[p.index]=y*(T-g/2+.5)+h[p.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 $3(a,t,e){var o=pe({},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=pe({},e.clipShape),d=t.valueDim,h=e.animationModel,p=e.dataIndex;if(u)Ut(u,{shape:f},h,p);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,p)}}}function Q3(a,t){var e=a.getItemModel(t);return e.getAnimationDelayParams=J3,e.isAnimationEnabled=NA,e}function J3(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),$3(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(),p=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(pe({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=p,g&&(k.cursor=g),k.z2=e.z2});var C=t.valueDim.posDesc[+(e.boundingLength>0)];$i(a.__pictorialBarRect,pa(u),{labelFetcher:t.seriesModel,labelDataIndex:o,defaultText:Np(t.seriesModel.getData(),o),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:C}),Yr(a,m,y,f.get("disabled"))}function eB(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$,nB=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,p=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||[],p,b,b),S=[];function k(D,x,T){var E=d._layers;if("remove"!==D){for(var N,P=[],V=[],H=p[x].indices,j=0;jf&&(f=h),o.push(h)}for(var g=0;gf&&(f=y)}return{y0:u,max:f}}(h),g=p.y0,m=e/p.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,p>Math.PI/2&&(J="right")):"right"===J&&(W=d.r-X,p>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=-p)<-Math.PI/2&&(re+=Math.PI):"tangential"===ee?(re=Math.PI/2-p)>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),iB=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(),p=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!==p&&E!==p)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 iB(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 iB(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)}(p,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 p=d.getModel(),g=p.get("link");g&&G0(g,p.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,p=Math.sqrt(d*d+h*h);return p<=f.r&&p>=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(p){return new Kn(p,this,o)},this),d=LT.createTree(u,this,function h(p){p.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(){MN(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(),p=Math.min(d,h),g=Ie(u[0],d),m=Ie(u[1],h),y=Ie(f[0],p/2),b=Ie(f[1],p/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&&aB(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,ve){if(me){var _e=ve;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)),pe(u.ensureUniqueItemVisual(d.dataIndex,"style"),p)})})}var GA={color:"fill",borderColor:"stroke"},oB={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},mc=Sn(),sB=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),lB=sB;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,p="category"===f.type?f.getBandWidth():Math.abs(f.dataToCoord(d-h)-f.dataToCoord(d+h));return"Angle"===e&&(p=p*Math.PI/180),p},this)}function R1(a,t,e,o){return a&&(a.legacy||!1!==a.legacy&&!e&&!o&&"tspan"!==t&&("text"===t||je(a,"text")))}function cB(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 fB(d,a),q(d.rich,function(p){fB(p,p)}),{textConfig:u,textContent:f}}function fB(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 dB(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";hB(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){hB(h,h)}),o}function hB(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=Zv(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),pe(d,e[f]),d}function F1(a,t,e,o){var u=(o=o||{}).dataIndex,f=o.isInit,d=o.clearStyle,h=e.isAnimationEnabled(),p=rg(a),g=t.style;p.userDuring=t.during;var m={},y={};if(function pW(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]),p=a.coordToPoint([d,h]);return p.push(d,h*Math.PI/180),p},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(),p=this.group,g=_B(e,h,o,u);d||p.removeAll(),h.diff(d).add(function(y){U1(u,null,y,g(y,f),e,p,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,p,h)}).execute();var m=e.get("clip",!0)?$_(e.coordinateSystem,!1,e):null;m?p.setClipPath(m):p.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(),p=_B(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 ve=t.get(ce.name,ie),_e=ce&&ce.ordinalMeta;return _e?_e.categories[ve]:ve},styleEmphasis:function H(re,ie){null==ie&&(ie=g);var ce=T(ie,_c).getItemStyle(),me=E(ie,_c),ve=Cr(me,null,null,!0,!0);ve.text=me.getShallow("show")?Su(a.getFormattedLabel(ie,_c),a.getFormattedLabel(ie,jf),Np(t,ie)):null;var _e=L0(me,null,!0);return Z(re,ce),ce=dB(ce,ve,_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(oB,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 yB(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,p=h?t?sg(h,t):h:null;if(u&&(e.isLegacy||R1(u,f,!!d,!!p))){e.isLegacy=!0;var g=cB(u,f,!t);!d&&g.textConfig&&(d=g.textConfig),!p&&g.textContent&&(p=g.textContent)}!t&&p&&!p.type&&(p.type="text");var y=t?e[t]:e.normal;y.cfg=d,y.conOpt=p}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 CB(a,t){var e=a&&a.name;return null!=e?e:"e\0\0"+t}function wB(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,p=this._handle;if(!d||"hide"===d)return h&&h.hide(),void(p&&p.hide());h&&h.show(),p&&p.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(MB,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 p=vT(t).seriesDataCount,g=u.getExtent();return Math.abs(g[0]-g[1])/p>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),DB(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}),DB(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=gp(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 p=f.get("size");Ce(p)||(p=[p,p]),u.scaleX=p[0]/2,u.scaleY=p[1]/2,sh(this,"_doDispatchAxisPointer",f.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,h)}},a.prototype._moveHandleToValue=function(t,e){MB(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 MB(a,t,e,o){kB($h(e).lastProp,o)||($h(e).lastProp=o,t?Ut(e,o,a):(e.stopAnimation(),e.attr(o)))}function kB(a,t){if(Ke(a)&&Ke(t)){var e=!0;return q(t,function(o,u){e=e&&kB(a[u],o)}),!!e}return a===t}function DB(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 xB(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"),p=jd(h.get("padding")||0),g=h.getFont(),m=vd(d,g),y=u.position,b=m.width+p[1]+p[3],C=m.height+p[0]+p[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:p,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(p){var g=e.getSeriesByIndex(p.seriesIndex),y=g&&g.getDataParams(p.dataIndexInside);y&&h.seriesData.push(y)}),Ne(d)?f=d.replace("{value}",f):et(d)&&(f=d(h))}return f}function TB(a,t,e){var o=[1,0,0,1,0,0];return el(o,o,e.rotation),ps(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"]),xB(t,o,u,f,{position:TB(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 AB(a,t,e){return{x:a[e=e||0],y:a[1-e],width:t[e],height:t[1-e]}}function EB(a,t,e,o,u,f){return{cx:a,cy:t,r0:e,r:o,startAngle:u,endAngle:f,clockwise:!0}}var PB=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,p=h.grid,g=f.get("type"),m=OB(p,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(p.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=TB(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,p=d.getGlobalExtent(!0),g=OB(h,d).getOtherAxis(d).getGlobalExtent(),m="x"===d.dim?0:1,y=[e.x,e.y];y[m]+=o[m],y[m]=Math.min(p[1],y[m]),y[m]=Math.max(p[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 OB(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]],IB(t))}},shadow:function(t,e,o){var u=Math.max(1,t.getBandWidth());return{type:"Rect",shape:AB([e-u/2,o[0]],[u,o[1]-o[0]],IB(t))}}};function IB(a){return"x"===a.dim?0:1}var EW=PB,pn=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$=pn,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 RB(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,p,g){"none"!==d&&("leave"===h||d.indexOf(h)>=0)&&g({type:"updateAxisPointer",currTrigger:h,x:p&&p.offsetX,y:p&&p.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),p=u.coordinateSystem;if(u.getTooltipPosition)e=u.getTooltipPosition(d)||[];else if(p&&p.dataToPoint)if(a.isStacked){var g=p.getBaseAxis(),y=p.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=p.dataToPoint(k)||[]}else e=p.dataToPoint(f.getValues(Me(p.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 LB=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 p=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=p||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&&!p&&(j=N.pointToData(u)),null!=j&&FB(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){FB(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=LB(o)[u]||{},d=LB(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=[],p=[];q(f,function(g,m){!d[m]&&p.push(g)}),q(d,function(g,m){!f[m]&&h.push(g)}),p.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:p}),h.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:h})}(m,0,e),b}}function FB(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(p,g){var y,b,m=p.getData().mapDimensionsAll(o);if(p.getAxisTooltipData){var C=p.getAxisTooltipData(m,a,e);b=C.dataIndices,y=C.nestestValue}else{if(!(b=p.getData().indicesOfNearest(m[0],a,"category"===e.type?.5:null)).length)return;y=p.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:p.seriesIndex,dataIndexInside:D,dataIndex:p.getData().getRawIndex(D)})}))}}),{payloadBatch:f,snapToValue:u}}(t,a),h=d.payloadBatch,p=d.snapToValue;h[0]&&null==u.seriesIndex&&pe(u,h[0]),!o&&a.snap&&f.containData(p)&&null!=p&&(t=p),e.showPointer(a,t,h),e.showTooltip(a,d,p)}}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 p=t.coordSys.model,g=iy(p),m=a.map[g];m||(m=a.map[g]={coordSysId:p.id,coordSysIndex:p.componentIndex,coordSysType:p.type,coordSysMainType:p.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 bF(a,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function CF(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 p=iy(h.model),g=a.coordSysAxesInfo[p]={};a.coordSysMap[p]=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 wF(a,t,e,o,u,f){var d=t.getModel("axisPointer"),p={};q(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(b){p[b]=ot(d.get(b))}),p.snap="category"!==a.type&&!!f,"cross"===d.get("type")&&(p.type="line");var g=p.label||(p.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=p.lineStyle=d.get("crossStyle");y&&rt(g,y.textStyle)}}return a.model.getModel("axisPointer",new Kn(p,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,p,f.get(["label","margin"]));xB(e,u,f,d,D)},t}(Y1),BB={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:EB(e.cx,e.cy,u[0],u[1],(-o-f/2)*d,(f/2-o)*d)}:{type:"Sector",shape:EB(e.cx,e.cy,o-f/2,o+f/2,0,2*Math.PI)}}},VB=LW,HB=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=HB,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 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.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],p=e.dataToCoord(h+1)-e.dataToCoord(h),g=Math.abs(p),m=vd(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 p=Math.sqrt(e*e+o*o);e/=p,o/=p;for(var g=Math.atan2(-o,e)/Math.PI*180,m=gh;)g+=360*m;return[p,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,p){var g=h-this.cx,m=p-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 GB(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 p=h.getData();q(tc(p,"radius"),function(g){u.scale.unionExtentFromData(p,g)}),q(tc(p,"angle"),function(g){o.scale.unionExtentFromData(p,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=GB;var h=d.getRadiusAxis(),p=d.getAngleAxis(),g=u.findAxisModel("radiusAxis"),m=u.findAxisModel("angleAxis");Pi(h,g),Pi(p,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,p=t.get("radius");null==p?p=[0,"100%"]:Ce(p)||(p=[0,p]);var g=[Ie(p[0],h),Ie(p[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}},UB=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 jB(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(),p=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});jB(g),jB(h),q(Q1,function(m){e.get([m,"show"])&&(!u.scale.isBlank()||"axisLine"===m)&&GW[m](this.group,e,f,h,p,d,g)},this)}},t.type="angleAxis",t}(Af),GW={axisLine:function(t,e,o,u,f,d){var m,h=e.getModel(["axisLine","lineStyle"]),p=ug(o),g=p?0:1;(m=0===d[g]?new ks({shape:{cx:o.cx,cy:o.cy,r:d[p]},style:h.getLineStyle(),z2:1,silent:!0}):new e_({shape:{cx:o.cx,cy:o.cy,r:d[p],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"),p=(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+p],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"),p=e.getModel("minorTick"),g=(h.get("inside")?-1:1)*p.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(p&&p[k]){var N=p[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,pt(H).eventData=j}},this)},splitLine:function(t,e,o,u,f,d){var p=e.getModel("splitLine").getModel("lineStyle"),g=p.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 ve=S.dataToCoord(W)-H,_e=p.dataToCoord(X);Math.abs(ve)=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(),p=[h.x,h.x+h.width,h.y,h.y+h.height],g={horizontal:{top:p[2],bottom:p[3]},vertical:{left:p[0],right:p[1]}};u.position=["vertical"===d?g.vertical[f]:p[0],"horizontal"===d?g.horizontal[f]:p[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"],qB=["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 p=jr(e),g=new ra(e,p);q(li,g.add,g),d.add(this._axisGroup),d.add(g.getGroup()),q(qB,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"),p=h.get("color");p=p instanceof Array?p:[p];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,KB={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:XB},t9=KB,$B=["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,p=h.coordinateSystem,g=nS(p,1-za(h)),m=p.dataToPoint(o)[0],y=f.get("type");if(y&&"none"!==y){var b=q1(f),C=QB[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=TB(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,p=za(d),g=nS(h,p),m=[e.x,e.y];m[p]+=o[p],m[p]=Math.min(g[1],m[p]),m[p]=Math.max(g[0],m[p]);var y=nS(h,1-p),b=(y[1]+y[0])/2,C=[b,b];return C[p]=m[p],{x:m[0],y:m[1],rotation:e.rotation,cursorPoint:C,tooltipOption:{verticalAlign:"middle"}}},t}(Y1),QB={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:AB([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[$B[t]],e[$B[t]]+e[n9[t]]]}var r9=fg,JB=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=rp(e);a.prototype.init.apply(this,arguments),eV(e,f)},t.prototype.mergeOption=function(e){a.prototype.mergeOption.apply(this,arguments),eV(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 eV(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 tV=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(),p=d.getOrient(),g=o.getLocaleModel();this._renderDayRect(e,h,f),this._renderLines(e,h,p,f),this._renderYearText(e,h,p,f),this._renderMonthText(e,g,p,f),this._renderWeekText(e,g,h,p,f)},t.prototype._renderDayRect=function(e,o,u){for(var f=e.coordinateSystem,d=e.getModel("itemStyle").getItemStyle(),h=f.getCellWidth(),p=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:p},cursor:"default",style:d});u.add(y)}},t.prototype._renderLines=function(e,o,u,f){var d=this,h=e.coordinateSystem,p=e.getModel(["splitLine","lineStyle"]).getLineStyle(),g=e.get(["splitLine","show"]),m=p.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,p,f)}S(h.getNextNDay(o.end.time,1).formatedDate),g&&this._drawSplitline(d._getEdgesPoints(d._tlpoints,m,u),p,f),g&&this._drawSplitline(d._getEdgesPoints(d._blpoints,m,u),p,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=[],p=0;p<7;p++){var g=f.getNextNDay(d.time,p),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],p=o[1],g=["center","bottom"];"bottom"===f?(p+=d,g=["center","top"]):"left"===f?h-=d:"right"===f?(h+=d,g=["center","top"]):p-=d;var m=0;return("left"===f||"right"===f)&&(m=Math.PI/2),{rotation:m,x:h,y:p,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"),p=d.get("position");p||(p="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[p],u,p,h)),f.add(T)}},t.prototype._monthTextPositionControl=function(e,o,u,f,d){var h="left",p="top",g=e[0],m=e[1];return"horizontal"===u?(m+=d,o&&(h="center"),"start"===f&&(p="bottom")):(g+=d,o&&(p="middle"),"start"===f&&(h="right")),{x:g,y:m,align:h,verticalAlign:p}},t.prototype._renderMonthText=function(e,o,u,f){var d=e.getModel("monthLabel");if(d.get("show")){var h=d.get("nameMap"),p=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;p="start"===g?-p:p;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/vE)-Math.floor(e[0].time/vE)+1,f=new Date(e[0].time),d=f.getDate(),h=e[1].date.getDate();f.setDate(d+u-1);var p=f.getDate();if(p!==h)for(var g=f.getTime()-e[1].time>0?1:-1;(p=f.getDate())!==h&&(f.getTime()-e[1].time)*g>0;)u-=g,f.setDate(p-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 nV=yi;function rV(a,t){var e;return q(t,function(o){null!=a[o]&&"auto"!==a[o]&&(e=!0)}),e}var pE=["transition","enterFrom","leaveTo"],iV=pE.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?pE:iV,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:p}:{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,p=e.infoMap.get(h);p||(e.infoList.push(p={model:d,axisModels:[]}),e.infoMap.set(h,p)),p.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}(),dV=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";p(u.findComponents({mainType:d+"Axis"}),d)}function p(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&&p(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]],p=null!=e[f[1]];h&&!p?o[d]="percent":!h&&p?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=[],p=[];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)),p[C]=k,h[C]=S}),aS(p),aS(h);var m=this._minMaxSpan;function y(b,C,S,k,D){var x=D?"Span":"ValueSpan";Qp(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(p,h,e,d,!1):y(h,p,d,e,!0),{valueWindow:p,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(p){var g=p.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)p.setData(g=g.map(C,function(k){return function h(p){return p>=d[0]&&p<=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,p){var g=t.getComponent(yu(h),p);f(h,p,g,d)})})}e(function(f,d,h,p){h.__dzAxisProxy=null});var o=[];e(function(f,d,h,p){h.__dzAxisProxy||(h.__dzAxisProxy=new wE(f,d,p,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 pV(a){f9||(f9=!0,a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,q$),function Z$(a){a.registerAction("dataZoom",function(t,e){q(function fV(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 p(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(vr),pV(a)}var Vl=function a(){},gV={};function Jh(a,t){gV[a]=t}function mV(a){return gV[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=mV(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 pg(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"),p="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(pg(d.getBoundingRect(),e)),p||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=vd(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=mV(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=gp(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=p?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),v9=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",p=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=p;var y=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});m.dispatchEvent(y)}else if(window.navigator.msSaveOrOpenBlob||d){var b=p.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,_V="__ec_magicType_stack__",g9=[["line","bar"],["stack"]],yV=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(bV[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=bV[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),bV={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")===_V;if("line"===t||"bar"===t)return u.setIconStatus("stack",f?"normal":"emphasis"),Dt({id:e,stack:f?"":_V},u.get(["option","stack"])||{},!0)}};uu({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(a,t){t.mergeOption(a.newOption)});var $$=yV,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})),p=[u.model.getCategories()];q(e.series,function(C){var S=C.getRawData();p.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(wV),function(p){return{name:p,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=tv[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=tv[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=tv[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 pm(a,t,{includeMainTypes:DV})}var EE={grid:function(t,e){var o=t.xAxisModels,u=t.yAxisModels,f=t.gridModels,d=$e(),h={},p={};!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),p[m.id]=!0}),q(f,function(g){d.set(g.id,g),h[g.id]=!0,p[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:AV.grid,xAxisDeclared:h[g.id],yAxisDeclared:p[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:AV.geo})})}},TV=[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}],AV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(df(t)),e}},tv={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 p=t?e.pointToData(h,u):e.dataToPoint(h,u);return f[0][0]=Math.min(f[0][0],p[0]),f[1][0]=Math.min(f[1][0],p[1]),f[0][1]=Math.max(f[0][1],p[0]),f[1][1]=Math.max(f[1][1],p[1]),p}),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 EV=xV,OE=q,PV=function vm(a){return"\0_ec_\0"+a}("toolbox-dataZoom_"),OV=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 f3(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 EV(nb(a),t,{include:["grid"]}).makePanelOpts(u,function(p){return p.xAxisDeclared&&!p.yAxisDeclared?"lineX":!p.xAxisDeclared&&p.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 MV(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 EV(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 p=h.getPercentRange();e[0][u]={dataZoomId:u,start:p[0],end:p[1]}}}}),e.push(t)}(f,u),this._dispatchZoomAction(u)}function h(g,m,y){var b=m.getAxis(g),C=b.model,S=function p(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=Qp(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 SV(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=pm(a,nb(o));return OE(d.xAxisModels,function(p){return h(p,"xAxis","xAxisIndex")}),OE(d.yAxisModels,function(p){return h(p,"yAxis","yAxisIndex")}),u}function h(p,g,m){var y=p.componentIndex,b={type:"select",$fromToolbox:!0,filterMode:o.get("filterMode",!0)||"filter",id:PV+g+y};b[m]=y,u.push(b)}});var S9=OV,IV=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=IV;function IE(a){var t=a.get("confine");return null!=t?!!t:"richText"===a.get("renderMode")}function RV(a){if(tn.domSupported)for(var t=document.documentElement.style,e=0,o=a.length;e-1?(h+="top:50%",p+="translateY(-50%) rotate("+(g="left"===f?-225:-45)+"deg)"):(h+="left:50%",p+="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 p=0;p=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,p=function UV(a,t,e){var o=Sd(a).queryOptionMap,u=o.keys()[0];if(u&&"series"!==u){var p,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=pt(g).tooltipConfig;if(m&&m.name===a.name)return p=g,!0}),p))return{componentMainType:u,componentIndex:d.componentIndex,el:p}}}(f,o,u);if(p){var g=p.el.getBoundingRect().clone();g.applyTransform(p.el.transform),this._tryShow({offsetX:g.x+g.width/2,offsetY:g.y+g.height/2,target:p.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(),pt(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,p=o.getComponent("axisPointer").coordSysAxesInfo;if(null!=d&&null!=h&&null!=p){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,p;this._lastDataByCoordSys=null,Cp(u,function(g){return null!=pt(g).dataIndex?(h=g,!0):null!=pt(g).tooltipConfig?(p=g,!0):void 0},!0),h?this._showSeriesItemTooltip(e,h,o):p?this._showComponentItemTooltip(e,p,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),p=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),p);var J=H4(Z.formatTooltip(W,!0,null)),ee=J.frag;if(ee){var re=rb([Z],f).get("valueFormatter");H.blocks.push(re?pe({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,p,S,u.get("useUTC"),h.get("textStyle"));k&&y.unshift(k);var x=y.join("richText"===p?"\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=pt(o),h=d.seriesIndex,p=f.getSeriesByIndex(h),g=d.dataModel||p,m=d.dataIndex,y=d.dataType,b=g.getData(y),C=this._renderMode,S=e.positionDefault,k=rb([b.getItemModel(m),g,p&&(p.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?pe({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=pt(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,p,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");p=p||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,p),this._updatePosition(e,p,d,h,y,u,g))},this);this._ticket=f,C=b(u,f,E)}else C=b;y.setContent(C,m,e,k,p),y.show(e,k),this._updatePosition(e,p,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,p){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=p&&p.getBoundingRect().clone();if(p&&S.applyTransform(p.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)&&p){var x=function nv(a,t,e,o){var u=e[0],f=e[1],d=Math.ceil(Math.SQRT2*o)+8,h=0,p=0,g=t.width,m=t.height;switch(a){case"inside":h=t.x+g/2-u/2,p=t.y+m/2-f/2;break;case"top":h=t.x+g/2-u/2,p=t.y-f-d;break;case"bottom":h=t.x+g/2-u/2,p=t.y+m+d;break;case"left":h=t.x-u-d,p=t.y+m/2-f/2;break;case"right":h=t.x+g+d,p=t.y+m/2-f/2}return[h,p]}(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(),p=h[0],g=h[1];return null!=f&&(a+p+f+2>o?a-=p+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-=GV(b)?y[0]/2:"right"===b?y[0]:0),C&&(f-=GV(C)?y[1]/2:"bottom"===C?y[1]:0),IE(e)&&(x=function zV(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,p){var g=h.dataByAxis||[],y=(e[p]||{}).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 GV(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(p){var g=p.hasOwnProperty("toolbox")?p.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 WV(a){if(a)for(var t in a)if(a.hasOwnProperty(t))return!0}function pS(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,p){if(vn.isValidType(p)){var g={type:p,visual:h};e&&e(g,f),d[p]=new vn(g),"opacity"===p&&((g=ot(g)).type="colorAlpha",d.__hidden.__alphaForOpacity=new vn(g))}})}),o}function YV(a,t,e){var o;q(e,function(u){t.hasOwnProperty(u)&&WV(t[u])&&(o=!0)}),o&&q(e,function(u){t.hasOwnProperty(u)&&WV(t[u])?a[u]=ot(t[u]):delete a[u]})}var ZV={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,p=t.height,g=u[0];return!!(ki(u,f,d)||ki(u,f+h,d)||ki(u,f,d+p)||ki(u,f+h,d+p)||zt.create(t).contain(g[0],g[1])||hC(f,d,f+h,d,u)||hC(f,d,f,d+p,u)||hC(f+h,d,f+h,d+p,u)||hC(f,d+p,f+h,d+p,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,p=[u[t[a]],u[t[a]]+u[e[a]]];return p[1]e[0][1]&&(e[0][1]=d[0]),d[1]e[1][1]&&(e[1][1]=d[1])}return e&&QV(e)}};function QV(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 f3(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){XV(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&&YV(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 JV(this.option,o)},this))},t.prototype.setBrushOption=function(e){this.brushOption=JV(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 JV(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(p){f=p.brushType,d=p.brushOption.brushMode||"single",h=h||!!p.areas.length}),this._brushType=f,this._brushMode=d,q(e.get("type",!0),function(p){e.setIconStatus(p,("keep"===p?"multiple"===d:"clear"===p?h:p===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"),p=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"))}),pt(m).eventData=pt(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"));p||("middle"===(p=e.get("left")||e.get("right"))&&(p="center"),"right"===p?E.x+=E.width:"center"===p&&(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:p,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),e5=oQ,t5=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(e5.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}(e5);Ir(t5,Zk.prototype);var n5=t5,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,r5=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),a5=r5,rs=Math.PI,o5=Sn(),s5=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"),p=this._axis=this._createAxis(f,e);e.formatTooltip=function(g){return Gt("nameValue",{noName:!0,value:p.scale.getLabel({value:g})})},q(["AxisLine","AxisTick","Control","CurrentPointer"],function(g){this["_render"+g](f,d,p,e)},this),this._renderAxisLabel(f,h,p,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),p={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"])||p[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],p=d.x,g=d.y+d.height;ps(h,h,[-p,-g]),el(h,h,-rs/2),ps(h,h,[p,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 p=new a5("value",d,e.axisExtent,f);return p.model=o,p},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:pe({lineCap:"round"},f.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});o.add(h);var p=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(p)}},t.prototype._renderAxisTick=function(e,o,u,f){var d=this,h=f.getData(),p=u.scale.getTicks();this._tickSymbols=[],q(p,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=l5(y,b,o,k);D.ensureState("emphasis").style=C.getItemStyle(),D.ensureState("progress").style=S.getItemStyle(),Yc(D);var x=pt(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 p=f.getData(),g=u.getViewLabels();this._tickLabels=[],q(g,function(m){var y=m.tickValue,b=p.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),o5(x).dataIndex=y,d._tickLabels.push(x)})}},t.prototype._renderControl=function(e,o,u,f){var d=e.controlSize,h=e.rotation,p=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=gp(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:p,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(),p=d.getItemModel(h).getModel("checkpointStyle"),g=this;this._currentPointer=l5(p,p,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 h5={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&&h5[t.type]&&f.baseAxis&&f.valueAxis){var d=Ct(u,f.baseAxis.dim),h=Ct(u,f.valueAxis.dim),p=h5[t.type](e,f.baseDataDim,f.valueDataDim,d,h);t.coord=p[0],t.value=p[1]}else{for(var g=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],m=0;m<2;m++)h5[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 p=Jf.getMarkerModelFromSeries(h,f.type);p&&f.renderSeries(h,p,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(p){p&&(o?fk(p):dk(p))})})},t.type="marker",t}(Ze),$E=iY;function p5(a,t,e){var o=t.coordinateSystem;a.each(function(u){var d,f=a.getItemModel(u),h=Ie(f.get("x"),e.getWidth()),p=Ie(f.get("y"),e.getHeight());if(isNaN(h)||isNaN(p)){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,p];isNaN(h)||(d[0]=h),isNaN(p)||(d[1]=p),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&&(p5(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,p=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 pe(pe({},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),p5(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_(p,"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){pt(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 p=void 0,g=void 0;if(null!=u.yAxis||null!=u.xAxis)p=e.getAxis(null!=u.yAxis?"y":"x"),g=Ui(u.yAxis,u.xAxis);else{var m=rY(u,f,e,t);p=m.valueAxis,g=XE(f,ax(f,m.valueDataDim),h)}var b="x"===p.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]),pe({},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 g5(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&&(g5(1,e,o,a)||g5(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),p=Ie(d.get("x"),u.getWidth()),g=Ie(d.get("y"),u.getHeight());if(isNaN(p)||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(p)||(h[0]=p),isNaN(g)||(h[1]=g)}else h=[p,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(),p=SS(d).from,g=SS(d).to;p.each(function(m){QE(p,m,!0,f,u),QE(g,m,!1,f,u)}),h.each(function(m){h.setItemLayout(m,[p.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,p=e.getData(),g=this.markerGroupMap,m=g.get(h)||g.set(h,new Fs);this.group.add(m.group);var y=function vY(a,t,e){var o;o=a?Me(a&&a.dimensions,function(g){return pe(pe({},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 p=v5(!!a,o);return u.initData(Me(h,function(g){return g[0]}),null,p),f.initData(Me(h,function(g){return g[1]}),null,p),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_(p,"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){pt(N).dataModel=o})}),this.markKeep(m),m.group.silent=o.get("silent")||e.get("silent")},t.type="markLine",t}($E),pY=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,p=d.coord;h[0]=Ui(h[0],-1/0),h[1]=Ui(h[1],-1/0),p[0]=Ui(p[0],1/0),p[1]=Ui(p[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 m5(a,t,e,o){var u=1-a;return kS(t[u])&&kS(e[u])}function _5(a,t){var e=t.coord[0],o=t.coord[1];return!!(ac(a,"cartesian2d")&&e&&o&&(m5(1,e,o)||m5(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),p=Ie(d.get(e[0]),u.getWidth()),g=Ie(d.get(e[1]),u.getHeight());if(isNaN(p)||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(p)||(h[0]=p),isNaN(g)||(h[1]=g)}else h=[p,g];return h}var pr=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],y5=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(p){var g=Me(pr,function(y){return ui(h,p,y,f,u)});h.setItemLayout(p,g),h.getItemGraphicEl(p).setShape("points",g)})}},this)},t.prototype.renderSeries=function(e,o,u,f){var d=e.coordinateSystem,h=e.id,p=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 b5(a,t,e){var o,u;if(a){var d=Me(a&&a.dimensions,function(g){var m=t.getData();return pe(pe({},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(_5,a)));var p=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,p),o.hasItemOption=!0,o}(d,e,o);o.setData(y),y.each(function(b){var C=Me(pr,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=C5,iv=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 p=e.get("selector",!0),g=e.get("selectorPosition",!0);p&&(!g||"auto"===g)&&(g="horizontal"===h?"end":"start"),this.renderInner(d,e,o,u,p,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,p,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=pg(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,p){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",iv(tP,k,null,f,b)).on("mouseover",iv(nP,x.name,null,f,b)).on("mouseout",iv(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=pe(pe({},W),{fill:No(J,"rgba")})),this._createItem(H,k,S,C,o,e,{},W,X,y).on("click",iv(tP,null,k,f,b)).on("mouseover",iv(nP,null,k,f,b)).on("mouseout",iv(rP,null,k,f,b)),m.set(k,!0)}},this)},this),d&&this._createSelector(d,o,f,h,p)},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,p,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 p=t.getModel("itemStyle").getItemStyle(),g=0===a.lastIndexOf("empty",0)?"fill":"stroke";p.decal=o.decal,"inherit"===p.fill&&(p.fill=o[u]),"inherit"===p.stroke&&(p.stroke=o[g]),"inherit"===p.opacity&&(p.opacity=("fill"===u?o:e).opacity),d(p,o);var m=t.getModel("lineStyle"),y=m.getLineStyle();if(d(y,e),"auto"===p.fill&&(p.fill=o.fill),"auto"===p.stroke&&(p.stroke=o.fill),"auto"===y.stroke&&(y.stroke=o.fill),!f){var b=t.get("inactiveBorderWidth");p.lineWidth="auto"===b?o.lineWidth>0&&p[g]?2:0:p.lineWidth,p.fill=t.get("inactiveColor"),p.stroke=t.get("inactiveBorderColor"),y.stroke=m.get("inactiveColor"),y.lineWidth=m.get("inactiveWidth")}return{itemStyle:p,lineStyle:y}}(m=T||m||"roundRect",f,p,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 p=this.getContentGroup(),g=this.getSelectorGroup();Hu(e.get("orient"),p,e.get("itemGap"),u.width,u.height);var m=p.getBoundingRect(),y=[-m.x,-m.y];if(g.markRedraw(),p.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],p.x=y[0],p.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 p.x=y[0],p.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 av(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[p]=Math.min(0,S[p]+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,p=null!=h?h+1:0,g=o.pageCount;f&&d&&f.setStyle("text",Ne(d)?d.replace("{current}",null==p?"":p+"").replace("{total}",null==g?"":g+""):d({current:p,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],p=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 p=d.__legendDataIndex;null==f&&null!=p&&(f=h),p===e&&(o=h)}),null!=o?o:f):0;var o,f},t.type="legend.scroll",t}(w5),MY=SY;function x5(a){Nt(M5),a.registerComponentModel(xS),a.registerComponentView(MY),function D5(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(vg.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(vg),xY=DY,TS=Sn();function T5(a,t,e){TS(a).coordSysRecordMap.each(function(o){var u=o.dataZoomInfoMap.get(t.uid);u&&(u.getRange=e)})}function A5(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(),T5(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?p.pixelStart+p.pixelLength-p.pixel:p.pixel-p.pixelStart)/p.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(Qp(0,d,[0,100],0,y.minSpan,y.maxSpan),this.range=d,f[0]!==d[0]||f[1]!==d[1])return d}},pan:E5(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:E5(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 E5(a){return function(t,e,o,u){var f=this.range,d=f.slice(),h=t.axisModels[0];if(h&&(Qp(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={},p=f.model.coordinateSystem.getRect();return t=t||[0,0],"x"===d.dim?(h.pixel=e[0]-t[0],h.pixelLength=p.width,h.pixelStart=p.x,h.signal=d.inverse?1:-1):(h.pixel=e[1]-t[1],h.pixelLength=p.height,h.pixelStart=p.y,h.signal=d.inverse?-1:1),h},polar:function(t,e,o,u,f){var d=o.axis,h={},p=f.model.coordinateSystem,g=p.getRadiusAxis().getExtent(),m=p.getAngleAxis().getExtent();return t=t?p.pointToCoord(t):[0,0],e=p.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(),p={};return t=t||[0,0],"horizontal"===d.orient?(p.pixel=e[0]-t[0],p.pixelLength=h.width,p.pixelStart=h.x,p.signal=d.inverse?1:-1):(p.pixel=e[1]-t[1],p.pixelLength=h.height,p.pixelStart=h.y,p.signal=d.inverse?-1:1),p}},OY=PY;function P5(a){pV(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 p=h.model.uid,g=u.get(p)||u.set(p,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 p=(h.getRange||{})[u],g=p&&p(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,p=f.dataZoomInfoMap;if(p){var g=p.keys()[0];null!=g&&(h=p.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}}}(p);d.enable(m.controlType,m.opt),d.setPointerChecker(f.containsPoint),sh(f,"dispatchAction",h.model.get("throttle",!0),"fixRate")}else A5(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(vg.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}(vg),RY=IY,ub=fn,cb="horizontal",I5="vertical",R5=["line","bar","candlestick","scatter"],L5={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()},p=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=rp(e.option);q(["right","top","width","height"],function(y){"ph"===g[y]&&(g[y]=p[y])});var m=oi(g,h);this._location={x:m.x,y:m.y},this._size=[m.width,m.height],this._orient===I5&&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,p=(this._dataShadowInfo||{}).otherAxisInverse;h.attr(u!==cb||d?u===cb&&d?{scaleY:p?1:-1,scaleX:-1}:u!==I5||d?{scaleY:p?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:p?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:p?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 p=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}}),p=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:p},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(R5,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,p=this.dataZoomModel,g=this.api,m=p.get("borderRadius")||0,y=p.get("brushSelect"),b=o.filler=new ub({silent:y,style:{fill:p.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:p.get("dataBackgroundColor")||p.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),q([0,1],function(E){var P=p.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=p.get("handleSize");this._handleHeight=Ie(H,this._size[1]),this._handleWidth=N.width/N.height*this._handleHeight,V.setStyle(p.getModel("handleStyle").getItemStyle()),V.style.strokeNoScale=!0,V.rectHover=!0,V.ensureState("emphasis").style=p.getModel(["emphasis","handleStyle"]).getItemStyle(),Yc(V);var j=p.get("handleColor");null!=j&&(V.style.fill=j),d.add(u[E]=V);var Z=p.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(p.get("moveHandleSize"),h[1]),k=o.moveHandle=new fn({style:p.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:h[1]-.5,height:S}}),D=.8*S,x=o.moveHandleIcon=Dr(p.get("moveHandleIcon"),-D/2,-D/2,D,D,"#fff",!0);x.silent=!0,x.y=h[1]+S/2-.5,k.ensureState("emphasis").style=p.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(),p=[0,100];Qp(o,f,d,u.get("zoomLock")?"all":e,null!=h.minSpan?wn(h.minSpan,p,d,!0):null,null!=h.maxSpan?wn(h.maxSpan,p,d,!0):null);var g=this._range,m=this._range=Zi([wn(f[0],d,p,!0),wn(f[1],d,p,!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 p=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,p=this._displayables.sliderGroup,g=p.transformCoordToLocal(e,o),m=p.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?L5: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),pV(a)}var vQ={get:function(t,e,o){var u=ot((pQ[t]||{})[e]);return o&&Ce(u)?u[u.length-1]:u}},pQ={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=vQ,F5=vn.mapVisual,uo=vn.eachVisual,N5=Ce,B5=q,V5=Zi,H5=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&&YV(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=pS(this.option.controller,o,e),this.targetVisuals=pS(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,p=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(p)?p.replace("{value}",g?m[0]:m).replace("{value2}",g?m[1]:m):et(p)?g?p(e[0],e[1]):p(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=V5([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 p(y){N5(o.color)&&!y.inRange&&(y.inRange={color:o.color.slice().reverse()}),y.inRange=y.inRange||{color:e.get("gradientColor")}}p.call(this,f),p.call(this,d),function g(y,b,C){var S=y[b],k=y[C];S&&!k&&(k=y[C]={},B5(S,function(D,x){if(vn.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";B5(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=F5(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=F5(P,function(N){return H5(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,z5=[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]=z5[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=z5[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,p){e[0]<=h&&h<=e[1]&&f.push(p)},this),o.push({seriesId:u.id,dataIndex:f})},this),o},t.prototype.getVisualMeta=function(e){var o=G5(0,0,this.getExtent()),u=G5(0,0,this.option.range.slice()),f=[];function d(C,S){f.push({value:C,color:e(C,S)})}for(var h=0,p=0,g=u.length,m=o.length;pe[1])break;f.push({color:this.getControllerVisual(p,"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,p=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,p[1]],g,!0),C=this.getControllerVisual(b,"symbolSize");y.scaleX=y.scaleY=C/p[0],y.x=p[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(),p=d.itemSize,g=[0,p[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=p[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],"< ",p):y[1]===1/0?this._showIndicator(m,y[0],"> ",p):this._showIndicator(m,m,"\u2248 ",p));var b=this._hoverLinkDataIndices,C=[];(o||pP(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,p){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=vn.prepareVisualTypes(u),d={color:d_(a.getData(),"color")},h=0,p=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 $5(a){a.registerComponentModel(U5),a.registerComponentView(gQ),K5(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(p){return p=ot(p),"inRange"!==h&&(p.visual=null),p}))})},t.prototype.completeVisualOption=function(){var e=this.option,o={},u=vn.listVisualTypes(),f=this.isCategory();function d(h,p,g){return h&&h[p]&&h[p].hasOwnProperty(g)}q(e.pieces,function(h){q(u,function(p){h.hasOwnProperty(p)&&(o[p]=1)})}),q(o,function(h,p){var g=!1;q(this.stateList,function(m){g=g||d(e,m,p)||d(e.target,m,p)},this),!g&&q(this.stateList,function(m){(e[m]||(e[m]={}))[p]=AS.get(p,"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(p,g){var m=this.getSelectedMapKey(p);d.hasOwnProperty(m)||(d[m]=!0)},this),"single"===u.selectedMode){var h=!1;q(f,function(p,g){var m=this.getSelectedMapKey(p);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=vn.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(p,g){vn.findPieceIndex(p,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 p=h[0].interval[0];p!==-1/0&&h.unshift({interval:[-1/0,p]}),(p=h[h.length-1].interval[1])!==1/0&&h.push({interval:[p,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,p=u[0];h","\u2265"][u[0]]])},this)}};function Q5(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(),p=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,p),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"===p?-u:g[0]+u,y:g[1]/2,text:S.text,verticalAlign:"middle",align:p,font:d,fill:h,opacity:"outOfRange"===x?.5:1}}))}e.add(k)},this),y&&this._renderEndsText(e,y[1],g,b,p),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 p=u.visualMapModel;p.option.hoverLink&&u.api.dispatchAction({type:h,batch:fb(p.findTargetDataIndices(o),p)})}},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,p){return{piece:h,indexInModelPieceList:p}}),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,p){f[p]=p===d})):f[d]=!f[d],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:f})},t.type="visualMap.piecewise",t}(j5),KY=XY;function J5(a){a.registerComponentModel(ZY),a.registerComponentView(KY),K5(a)}var _Q={label:{enabled:!0},decal:{show:!1}},eH=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={}),eH(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=eH(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?pe(pe({},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:p(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=[],ve=0;ve":"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,p,g){if(Sg(a,e)&&Sg(t,o)&&Sg(u,d)&&Sg(f,h))p.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)p.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],p,g),yP(Z[4],W[4],Z[5],W[5],Z[6],W[6],Z[7],W[7],p,g)}}}}function rH(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 p=[],g=0;g0)for(g=0;gMath.abs(g),y=rH([p,g],m?0:1,t),b=(m?h:g)/y.length,C=0;C1?null:new Et(k*p+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 ov(a,t){var e=a[a.length-1];e&&e[0]===t[0]&&e[1]===t[1]||a.push(t)}function sv(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,p=u.y,g=new Et,m=new Et;return f>d?(g.x=m.x=h+f/2,g.y=p,m.y=p+d):(g.y=m.y=p+d/2,g.x=h,m.x=h+f),function pb(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),p=a,a=t,t=p)}return h}function wP(a){var t=1/0,e=1/0,o=-1/0,u=-1/0,f=Me(a,function(h){var p=h.getBoundingRect(),g=h.getComputedTransform(),m=p.x+p.width/2+(g?g[4]:0),y=p.y+p.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,p){return{cp:h,z:gq(h[0],h[1],t,e,o,u),path:a[p]}}).sort(function(h,p){return h.z-p.z}).map(function(h){return h.path})}function SP(a){return function sH(a,t){var u,e=[],o=a.shape;switch(a.type){case"rect":(function aH(a,t,e){for(var o=a.width,u=a.height,f=o>u,d=rH([o,u],f?0:1,t),h=f?"width":"height",p=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 p=e[h].many;if(p.length<=1){if(!h)return e;h=0}f=p.length;var g=Math.ceil(f/2);e[u].many=p.slice(g,f),e[h].many=p.slice(0,g),h++}return e}var hH={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"),p=Object.assign({setToFinal:!0},d);fH(a)&&(g=a,m=t),fH(t)&&(g=t,m=a);for(var b=g?g===a:a.length>t.length,C=g?dH(m,g):dH(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 uv(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:uv(t.oldData[h]),dim:d.dimension})}),q(Xn(a.to),function(d){var h=_H(e.updatedSeries,d);if(h>=0){var p=e.updatedSeries[h].getData();f.push({data:p,divide:uv(p),dim:d.dimension})}}),u.length>0&&f.length>0&&pH(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 p=a.oldData[h],g=gH(d),m=mH(g);o.set(m,p),Ce(g)&&q(g,function(y){u.set(y,{data:p,key:m})})}),q(t.updatedSeries,function(d){if(d.isUniversalTransitionEnabled()&&d.isAnimationEnabled()){var h=d.getData(),p=gH(d),g=mH(p),m=o.get(g);if(m)e.set(g,{oldSeries:[{divide:uv(m),data:m}],newSeries:[{divide:uv(h),data:h}]});else if(Ce(p)){var y=[];q(p,function(S){var k=o.get(S);k&&y.push({divide:uv(k),data:k})}),y.length&&e.set(g,{oldSeries:y,newSeries:[{data:h,divide:uv(h)}]})}else{var b=u.get(p);if(b){var C=e.get(b.key);C||(C={oldSeries:[{data:b.data,divide:uv(b.data)}],newSeries:[]},e.set(b.key,C)),C.newSeries.push({data:h,divide:uv(h)})}}}}),e}(u,o);q(d.keys(),function(b){var C=d.get(b);pH(C.oldSeries,C.newSeries,e)})}q(o.updatedSeries,function(b){b[qm]&&(b[qm]=!1)})}for(var h=t.getSeries(),p=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/static/modern/main.js b/server/src/uds/static/modern/main.js index 42b5f4fb..3e284229 100644 --- a/server/src/uds/static/modern/main.js +++ b/server/src/uds/static/modern/main.js @@ -1 +1 @@ -"use strict";(self.webpackChunkuds=self.webpackChunkuds||[]).push([[179],{6498:(qe,ye,C)=>{C.d(ye,{z:()=>g});var c=C(4893),o=C(2313);let g=(()=>{class Y{constructor(ie){this.sanitizer=ie}transform(ie,De){return this.sanitizer.bypassSecurityTrustHtml(ie)}}return Y.\u0275fac=function(ie){return new(ie||Y)(c.Y36(o.H7,16))},Y.\u0275pipe=c.Yjl({name:"safeHtml",type:Y,pure:!0}),Y})()},5928:(qe,ye,C)=>{C.d(ye,{h:()=>Be});var c=C(8966),o=C(8306),g=C(4986),Y=C(5963),ie=C(4893),De=C(9808),Ce=C(7423),ue=C(7918),ee=C(6498);function se(Z,et){if(1&Z){const Ye=ie.EpF();ie.TgZ(0,"button",3),ie.NdJ("click",function(){return ie.CHM(Ye),ie.oxw().close()}),ie.TgZ(1,"uds-translate"),ie._uU(2,"Close"),ie.qZA(),ie._uU(3),ie.qZA()}if(2&Z){const Ye=ie.oxw();ie.xp6(3),ie.Oqu(Ye.extra)}}function de(Z,et){if(1&Z){const Ye=ie.EpF();ie.TgZ(0,"button",3),ie.NdJ("click",function(){return ie.CHM(Ye),ie.oxw().yes()}),ie.TgZ(1,"uds-translate"),ie._uU(2,"Yes"),ie.qZA()()}}function J(Z,et){if(1&Z){const Ye=ie.EpF();ie.TgZ(0,"button",3),ie.NdJ("click",function(){return ie.CHM(Ye),ie.oxw().no()}),ie.TgZ(1,"uds-translate"),ie._uU(2,"No"),ie.qZA()()}}var le=(()=>{return(Z=le||(le={}))[Z.alert=0]="alert",Z[Z.yesno=1]="yesno",le;var Z})();let ke=(()=>{class Z{constructor(Ye,Qe){this.dialogRef=Ye,this.data=Qe,this.subscription=null,this.resetCallbacks(),this.yesno=new o.y(me=>{this.yes=()=>{me.next(!0),me.complete()},this.no=()=>{me.next(!1),me.complete()},this.close=()=>{this.doClose(),me.next(!1),me.complete()};const z=this;return{unsubscribe:()=>z.resetCallbacks()}})}resetCallbacks(){this.yes=this.no=()=>this.close(),this.close=()=>this.doClose()}closed(){null!==this.subscription&&this.subscription.unsubscribe()}doClose(){this.dialogRef.close()}setExtra(Ye){this.extra=" ("+Math.floor(Ye/1e3)+" "+django.gettext("seconds")+") "}initAlert(){this.data.autoclose>0?(this.dialogRef.afterClosed().subscribe(Ye=>{this.closed()}),this.setExtra(this.data.autoclose),this.subscription=function ce(Z=0,et=g.z){return Z<0&&(Z=0),(0,Y.H)(Z,Z,et)}(1e3).subscribe(Ye=>{const Qe=this.data.autoclose-1e3*(Ye+1);this.setExtra(Qe),Qe<=0&&this.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(Ye=>{this.closed()}),this.subscription=this.data.checkClose.subscribe(Ye=>{window.setTimeout(()=>{this.doClose()})}))}initYesNo(){}ngOnInit(){this.data.type===le.yesno?this.initYesNo():this.initAlert()}}return Z.\u0275fac=function(Ye){return new(Ye||Z)(ie.Y36(c.so),ie.Y36(c.WI))},Z.\u0275cmp=ie.Xpm({type:Z,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,"click"]],template:function(Ye,Qe){1&Ye&&(ie._UZ(0,"h4",0),ie.ALo(1,"safeHtml"),ie._UZ(2,"mat-dialog-content",1),ie.ALo(3,"safeHtml"),ie.TgZ(4,"mat-dialog-actions"),ie.YNc(5,se,4,1,"button",2),ie.YNc(6,de,3,0,"button",2),ie.YNc(7,J,3,0,"button",2),ie.qZA()),2&Ye&&(ie.Q6J("innerHtml",ie.lcZ(1,5,Qe.data.title),ie.oJD),ie.xp6(2),ie.Q6J("innerHTML",ie.lcZ(3,7,Qe.data.body),ie.oJD),ie.xp6(3),ie.Q6J("ngIf",0==Qe.data.type),ie.xp6(1),ie.Q6J("ngIf",1==Qe.data.type),ie.xp6(1),ie.Q6J("ngIf",1==Qe.data.type))},directives:[c.uh,c.xY,c.H8,De.O5,Ce.lW,c.ZT,ue.P],pipes:[ee.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),Z})(),Be=(()=>{class Z{constructor(Ye){this.dialog=Ye}alert(Ye,Qe,me=0,z=null){const q=window.innerWidth<800?"80%":"40%";return this.dialog.open(ke,{width:q,data:{title:Ye,body:Qe,autoclose:me,checkClose:z,type:le.alert},disableClose:!0})}yesno(Ye,Qe){const me=window.innerWidth<800?"80%":"40%";return this.dialog.open(ke,{width:me,data:{title:Ye,body:Qe,type:le.yesno},disableClose:!0}).componentInstance.yesno}}return Z.\u0275fac=function(Ye){return new(Ye||Z)(ie.LFG(c.uw))},Z.\u0275prov=ie.Yz7({token:Z,factory:Z.\u0275fac}),Z})()},2870:(qe,ye,C)=>{C.d(ye,{S:()=>o});var c=C(8306);let o=(()=>{class g{constructor(ce){this.api=ce,this.delay=ce.config.launcher_wait_time}launchURL(ce){let ie="init";const De=Ce=>{let ue=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof Ce?ue=Ce:403===Ce.status&&(ue=django.gettext("Your session has expired. Please, login again")),window.setTimeout(()=>{this.showAlert(django.gettext("Error"),ue,5e3),403===Ce.status&&window.setTimeout(()=>{this.api.logout()},5e3)})};if("udsa://"===ce.substring(0,7)){const Ce=ce.split("//")[1].split("/"),ue=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new c.y(ee=>{let se=0;const de=()=>{ue.componentInstance&&this.api.status(Ce[0],Ce[1]).subscribe(le=>{"ready"===le.status?(se?Date.now()-se>5*this.delay&&(ue.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),ue.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(se=Date.now(),ue.componentInstance.data.title=django.gettext("Service ready"),ue.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(de,this.delay)):"accessed"===le.status?(ue.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),ee.next(!0),ee.complete()):"running"===le.status?window.setTimeout(de,this.delay):(ee.next(!0),ee.complete(),De())},le=>{ee.next(!0),ee.complete(),De(le)})},J=()=>{if("init"===ie)window.setTimeout(J,this.delay);else{if("error"===ie||"stop"===ie)return;window.setTimeout(de)}};window.setTimeout(J)}));this.api.enabler(Ce[0],Ce[1]).subscribe(ee=>{if(ee.error)ie="error",this.api.gui.alert(django.gettext("Error launching service"),ee.error);else{if(ee.url.startsWith("/"))return ue.componentInstance&&ue.componentInstance.close(),ie="stop",void this.launchURL(ee.url);"https:"===window.location.protocol&&(ee.url=ee.url.replace("uds://","udss://")),ie="enabled",this.doLaunch(ee.url)}},ee=>{this.api.logout()})}else{const Ce=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new c.y(ue=>{const ee=()=>{Ce.componentInstance&&this.api.transportUrl(ce).subscribe(se=>{if(se.url)if(ue.next(!0),ue.complete(),-1!==se.url.indexOf("o_s_w=")){const de=/(.*)&o_s_w=.*/.exec(se.url);window.location.href=de[1]}else{let de="global";if(-1!==se.url.indexOf("o_n_w=")){const J=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(se.url);J&&(de=J[2],se.url=J[1])}g.transportsWindow[de]&&g.transportsWindow[de].close(),g.transportsWindow[de]=window.open(se.url,"uds_trans_"+de)}else se.running?window.setTimeout(ee,this.delay):(ue.next(!0),ue.complete(),De(se.error))},se=>{ue.next(!0),ue.complete(),De(se)})};window.setTimeout(ee)}))}}showAlert(ce,ie,De,Ce=null){return this.api.gui.alert(django.gettext("Launching service"),'

'+ce+'

'+ie+"

",De,Ce)}doLaunch(ce){let ie=document.getElementById("hiddenUdsLauncherIFrame");if(null===ie){const De=document.createElement("div");De.id="testID",De.innerHTML='',document.body.appendChild(De),ie=document.getElementById("hiddenUdsLauncherIFrame")}ie.contentWindow.location.href=ce}}return g.transportsWindow={},g})()},4902:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{G:()=>LoginComponent});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4893),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2382),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7322),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7531),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9808),_angular_material_select__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4107),_angular_material_core__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(508),_angular_material_button__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7423),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(qe,ye){if(1&qe&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&qe){const C=ye.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",C.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",C.name," ")}}function LoginComponent_div_22_Template(qe,ye){if(1&qe){const C=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9)(1,"mat-form-field",17)(2,"mat-label")(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(o){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(C),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(o.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()()}if(2&qe){const C=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",C.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",C.auths)}}let LoginComponent=(()=>{class LoginComponent{constructor(qe){this.api=qe,this.title="UDS Enterprise",this.title=qe.config.site_name,this.auths=qe.config.authenticators.slice(0),this.auths.sort((ye,C)=>ye.priority-C.priority)}ngOnInit(){document.getElementById("loginform").action=this.api.config.urls.login;const ye=document.getElementById("token");ye.name=this.api.config.csrf_field,ye.value=this.api.config.csrf,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}changeAuth(auth){this.auth.value=auth;const doCustomAuth=data=>{eval(data)};for(const qe of this.auths)qe.id===auth&&qe.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(qe.id).subscribe(ye=>doCustomAuth(ye)))}launch(){return document.getElementById("loginform").submit(),!0}}return LoginComponent.\u0275fac=function qe(ye){return new(ye||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function qe(ye,C){1&ye&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return C.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1)(2,"input",2)(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4)(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8)(10,"div",9)(11,"mat-form-field",10)(12,"mat-label")(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9)(17,"mat-form-field",10)(18,"mat-label")(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14)(24,"button",15)(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()),2&ye&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",C.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",C.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",C.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,C.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_select__WEBPACK_IMPORTED_MODULE_7__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_8__.ey,_angular_material_button__WEBPACK_IMPORTED_MODULE_9__.lW],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0000001f,0 1px 5px #0003;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent})()},7918:(qe,ye,C)=>{C.d(ye,{P:()=>o});var c=C(4893);let o=(()=>{class g{constructor(ce){this.el=ce}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}return g.\u0275fac=function(ce){return new(ce||g)(c.Y36(c.SBq))},g.\u0275dir=c.lG2({type:g,selectors:[["uds-translate"]]}),g})()},3513:(qe,ye,C)=>{C.d(ye,{n:()=>c});class c{constructor(g){this.user=g.user,this.role=g.role,this.admin=g.admin}get isStaff(){return"staff"===this.role||"admin"===this.role}get isAdmin(){return"admin"===this.role}get isLogged(){return null!=this.user}get isRestricted(){return"restricted"===this.role}}},7540:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{n:()=>UDSApiService});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4893),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(520),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5928),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9525);const DARK_THEME="dark-theme",LIGHT_THEME="light-theme";let UDSApiService=(()=>{class UDSApiService{constructor(qe,ye,C){this.http=qe,this.gui=ye,this.router=C,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}get config(){return udsData.config}get staffInfo(){return udsData.info}get plugins(){return udsData.plugins}get actors(){return udsData.actors}get errors(){return udsData.errors}enabler(qe,ye){const C=this.config.urls.enabler.replace("param1",qe).replace("param2",ye);return this.http.get(C)}status(qe,ye){const C=this.config.urls.status.replace("param1",qe).replace("param2",ye);return this.http.get(C)}action(qe,ye){const C=this.config.urls.action.replace("param1",ye).replace("param2",qe);return this.http.get(C)}transportUrl(qe){return this.http.get(qe)}galleryImageURL(qe){return this.config.urls.galleryImage.replace("param1",qe)}transportIconURL(qe){return this.config.urls.transportIcon.replace("param1",qe)}staticURL(qe){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+qe:"/static/"+qe}getServicesInformation(){return this.http.get(this.config.urls.services)}executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}gotoAdmin(){window.location.href=this.config.urls.admin}logout(){window.location.href=this.config.urls.logout}launchURL(qe){this.plugin.launchURL(qe)}getAuthCustomHtml(qe){return this.http.get(this.config.urls.customAuth+qe,{responseType:"text"})}switchTheme(qe){const ye=document.getElementsByTagName("html")[0];[DARK_THEME,LIGHT_THEME].forEach(C=>{ye.classList.contains(C)&&ye.classList.remove(C)}),ye.classList.add(qe?DARK_THEME:LIGHT_THEME)}}return UDSApiService.\u0275fac=function qe(ye){return new(ye||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService})()},2340:(qe,ye,C)=>{C.d(ye,{N:()=>c});const c={production:!0}},5664:(qe,ye,C)=>{var c=C(2313),o=C(4893),g=C(3191),Y=C(7579),ce=C(9841),ie=C(7272),De=C(8306),Ce=C(5698),ue=C(5684),ee=C(8372),se=C(4004),de=C(8675),J=C(2722),le=C(925);let ke=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({}),k})();const Be=new Set;let Z,et=(()=>{class k{constructor(m){this._platform=m,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Qe}matchMedia(m){return(this._platform.WEBKIT||this._platform.BLINK)&&function Ye(k){if(!Be.has(k))try{Z||(Z=document.createElement("style"),Z.setAttribute("type","text/css"),document.head.appendChild(Z)),Z.sheet&&(Z.sheet.insertRule(`@media ${k} {body{ }}`,0),Be.add(k))}catch(Ee){console.error(Ee)}}(m),this._matchMedia(m)}}return k.\u0275fac=function(m){return new(m||k)(o.LFG(le.t4))},k.\u0275prov=o.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();function Qe(k){return{matches:"all"===k||""===k,media:k,addListener:()=>{},removeListener:()=>{}}}let me=(()=>{class k{constructor(m,d){this._mediaMatcher=m,this._zone=d,this._queries=new Map,this._destroySubject=new Y.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(m){return z((0,g.Eq)(m)).some(a=>this._registerQuery(a).mql.matches)}observe(m){const a=z((0,g.Eq)(m)).map(v=>this._registerQuery(v).observable);let l=(0,ce.a)(a);return l=(0,ie.z)(l.pipe((0,Ce.q)(1)),l.pipe((0,ue.T)(1),(0,ee.b)(0))),l.pipe((0,se.U)(v=>{const R={matches:!1,breakpoints:{}};return v.forEach(({matches:G,query:ne})=>{R.matches=R.matches||G,R.breakpoints[ne]=G}),R}))}_registerQuery(m){if(this._queries.has(m))return this._queries.get(m);const d=this._mediaMatcher.matchMedia(m),l={observable:new De.y(v=>{const R=G=>this._zone.run(()=>v.next(G));return d.addListener(R),()=>{d.removeListener(R)}}).pipe((0,de.O)(d),(0,se.U)(({matches:v})=>({query:m,matches:v})),(0,J.R)(this._destroySubject)),mql:d};return this._queries.set(m,l),l}}return k.\u0275fac=function(m){return new(m||k)(o.LFG(et),o.LFG(o.R0b))},k.\u0275prov=o.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();function z(k){return k.map(Ee=>Ee.split(",")).reduce((Ee,m)=>Ee.concat(m)).map(Ee=>Ee.trim())}var pe=C(520),Te=C(9525),Ne=C(7540);let ve=(()=>{class k{constructor(m){this.api=m}canActivate(m,d){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}return k.\u0275fac=function(m){return new(m||k)(o.LFG(Ne.n))},k.\u0275prov=o.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();var Me=C(4902),xe=C(7918),Ae=C(9808);function tt(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"div",6),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw().download(l.url)}),o.TgZ(1,"div",7),o._UZ(2,"img",8),o.qZA(),o.TgZ(3,"div",9),o._uU(4),o.qZA(),o.TgZ(5,"div",10),o._uU(6),o.qZA()()}if(2&k){const m=Ee.$implicit,d=o.oxw();o.Tol(d.css(m)),o.xp6(2),o.Q6J("src",d.img(m.name),o.LSH),o.xp6(2),o.lnq(" ",d.legacy(m)," ",m.name," (",m.url.split(".").pop(),") "),o.xp6(2),o.hij(" ",m.description," ")}}let Fe=(()=>{class k{constructor(m){this.api=m}ngOnInit(){}download(m){window.location.href=m}img(m){return this.api.staticURL("modern/img/"+m+".png")}css(m){const d=["plugin"];return m.legacy&&d.push("legacy"),d}legacy(m){return m.legacy?"Legacy":""}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1")(4,"uds-translate"),o._uU(5,"UDS Client"),o.qZA()()()(),o.TgZ(6,"div",3),o.YNc(7,tt,7,7,"div",4),o.qZA(),o.TgZ(8,"div",5)(9,"ul")(10,"li")(11,"uds-translate"),o._uU(12,"Download UDS client for your platform"),o.qZA()()()()()),2&m&&(o.xp6(7),o.Q6J("ngForOf",d.api.plugins))},directives:[xe.P,Ae.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem #00000040,0 10px 10px #00000038;background-color:#0000001a}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem} .dark-theme uds-client-download{color:#fff!important} .dark-theme .plugin.legacy{background-color:#a9a9a9} .dark-theme .plugin:hover{background-color:#ffffff1a}"]}),k})();var Ct=C(6498);function mt(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"div",6),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw().download(l.url)}),o.TgZ(1,"div",7),o._UZ(2,"img",8),o.qZA(),o._UZ(3,"div",9),o.ALo(4,"safeHtml"),o._UZ(5,"div",10),o.ALo(6,"safeHtml"),o.qZA()}if(2&k){const m=Ee.$implicit,d=o.oxw();o.Tol(d.css(m.name)),o.xp6(2),o.Q6J("src",d.img(m.name),o.LSH),o.xp6(1),o.Q6J("innerHTML",o.lcZ(4,5,m.name),o.oJD),o.xp6(2),o.Q6J("innerHTML",o.lcZ(6,7,m.description),o.oJD)}}let Jt=(()=>{class k{constructor(m){this.api=m}ngOnInit(){this.actors=[];const m=[];this.api.actors.forEach(d=>{d.name.includes("legacy")?m.push(d):this.actors.push(d)}),m.forEach(d=>{this.actors.push(d)})}download(m){window.location.href=m}img(m){const d=m.split(".").pop().toLowerCase();let a="Linux";return"exe"===d?a="Windows":"pkg"===d&&(a="MacOS"),this.api.staticURL("modern/img/"+a+".png")}css(m){const d=["actor"];return m.toLowerCase().includes("legacy")&&d.push("legacy"),d}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1")(4,"uds-translate"),o._uU(5,"Downloads"),o.qZA()()()(),o.TgZ(6,"div",3),o.YNc(7,mt,7,9,"div",4),o.qZA(),o.TgZ(8,"div",5)(9,"ul")(10,"li")(11,"uds-translate"),o._uU(12,"Always download the UDS actor matching your platform"),o.qZA()(),o.TgZ(13,"li")(14,"uds-translate"),o._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),o.qZA()()()()()),2&m&&(o.xp6(7),o.Q6J("ngForOf",d.actors))},directives:[xe.P,Ae.sg],pipes:[Ct.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem #00000040,0 10px 10px #00000038;background-color:#0000001a}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:700;overflow:hidden} .dark-theme uds-downloads{color:#fff!important} .dark-theme .actor.legacy{background-color:#464646}"]}),k})();var yt=C(4968),Rt=C(9300),Wt=C(1884),Pt=C(8505),mn=C(7322),Ut=C(7531);const xt=["input"];let on=(()=>{class k{constructor(){this.updateEvent=new o.vpe}ngAfterViewInit(){(0,yt.R)(this.input.nativeElement,"keyup").pipe((0,Rt.h)(Boolean),(0,ee.b)(600),(0,Wt.x)(),(0,Pt.b)(()=>this.update(this.input.nativeElement.value))).subscribe()}update(m){this.updateEvent.emit(m.toLowerCase())}}return k.\u0275fac=function(m){return new(m||k)},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-filter"]],viewQuery:function(m,d){if(1&m&&o.Gf(xt,7),2&m){let a;o.iGM(a=o.CRH())&&(d.input=a.first)}},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-label")(3,"uds-translate"),o._uU(4,"Filter"),o.qZA()(),o._UZ(5,"input",2,3),o.TgZ(7,"i",4),o._uU(8,"search"),o.qZA()()())},directives:[mn.KE,mn.hX,xe.P,Ut.Nt,mn.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),k})();var Xe=C(727),je=C(449);let Q=0;const K=new o.OlP("CdkAccordion");let He=(()=>{class k{constructor(){this._stateChanges=new Y.x,this._openCloseAllActions=new Y.x,this.id="cdk-accordion-"+Q++,this._multi=!1}get multi(){return this._multi}set multi(m){this._multi=(0,g.Ig)(m)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(m){this._stateChanges.next(m)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return k.\u0275fac=function(m){return new(m||k)},k.\u0275dir=o.lG2({type:k,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[o._Bn([{provide:K,useExisting:k}]),o.TTD]}),k})(),Ge=0,lt=(()=>{class k{constructor(m,d,a){this.accordion=m,this._changeDetectorRef=d,this._expansionDispatcher=a,this._openCloseAllSubscription=Xe.w0.EMPTY,this.closed=new o.vpe,this.opened=new o.vpe,this.destroyed=new o.vpe,this.expandedChange=new o.vpe,this.id="cdk-accordion-child-"+Ge++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=a.listen((l,v)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===v&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(m){m=(0,g.Ig)(m),this._expanded!==m&&(this._expanded=m,this.expandedChange.emit(m),m?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(m){this._disabled=(0,g.Ig)(m)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(m=>{this.disabled||(this.expanded=m)})}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(K,12),o.Y36(o.sBO),o.Y36(je.A8))},k.\u0275dir=o.lG2({type:k,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[o._Bn([{provide:K,useValue:void 0}])]}),k})(),St=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({}),k})();var Ht=C(7429),bt=C(508),Nt=C(9950),at=C(1159),Pe=C(6360),E=C(515),S=C(6451),D=C(1777);const P=["body"];function L(k,Ee){}const re=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],be=["mat-expansion-panel-header","*","mat-action-row"];function Ue(k,Ee){if(1&k&&o._UZ(0,"span",2),2&k){const m=o.oxw();o.Q6J("@indicatorRotate",m._getExpandedState())}}const ze=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],_t=["mat-panel-title","mat-panel-description","*"],ct=new o.OlP("MAT_ACCORDION"),Ot="225ms cubic-bezier(0.4,0.0,0.2,1)",nn={indicatorRotate:(0,D.X$)("indicatorRotate",[(0,D.SB)("collapsed, void",(0,D.oB)({transform:"rotate(0deg)"})),(0,D.SB)("expanded",(0,D.oB)({transform:"rotate(180deg)"})),(0,D.eR)("expanded <=> collapsed, void => collapsed",(0,D.jt)(Ot))]),bodyExpansion:(0,D.X$)("bodyExpansion",[(0,D.SB)("collapsed, void",(0,D.oB)({height:"0px",visibility:"hidden"})),(0,D.SB)("expanded",(0,D.oB)({height:"*",visibility:"visible"})),(0,D.eR)("expanded <=> collapsed, void => collapsed",(0,D.jt)(Ot))])};let Yt=(()=>{class k{constructor(m){this._template=m}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.Rgc))},k.\u0275dir=o.lG2({type:k,selectors:[["ng-template","matExpansionPanelContent",""]]}),k})(),dn=0;const dt=new o.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let vt=(()=>{class k extends lt{constructor(m,d,a,l,v,R,G){super(m,d,a),this._viewContainerRef=l,this._animationMode=R,this._hideToggle=!1,this.afterExpand=new o.vpe,this.afterCollapse=new o.vpe,this._inputChanges=new Y.x,this._headerId="mat-expansion-panel-header-"+dn++,this._bodyAnimationDone=new Y.x,this.accordion=m,this._document=v,this._bodyAnimationDone.pipe((0,Wt.x)((ne,oe)=>ne.fromState===oe.fromState&&ne.toState===oe.toState)).subscribe(ne=>{"void"!==ne.fromState&&("expanded"===ne.toState?this.afterExpand.emit():"collapsed"===ne.toState&&this.afterCollapse.emit())}),G&&(this.hideToggle=G.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(m){this._hideToggle=(0,g.Ig)(m)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(m){this._togglePosition=m}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,de.O)(null),(0,Rt.h)(()=>this.expanded&&!this._portal),(0,Ce.q)(1)).subscribe(()=>{this._portal=new Ht.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(m){this._inputChanges.next(m)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const m=this._document.activeElement,d=this._body.nativeElement;return m===d||d.contains(m)}return!1}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(ct,12),o.Y36(o.sBO),o.Y36(je.A8),o.Y36(o.s_b),o.Y36(Ae.K0),o.Y36(Pe.Qb,8),o.Y36(dt,8))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-expansion-panel"]],contentQueries:function(m,d,a){if(1&m&&o.Suo(a,Yt,5),2&m){let l;o.iGM(l=o.CRH())&&(d._lazyContent=l.first)}},viewQuery:function(m,d){if(1&m&&o.Gf(P,5),2&m){let a;o.iGM(a=o.CRH())&&(d._body=a.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(m,d){2&m&&o.ekj("mat-expanded",d.expanded)("_mat-animation-noopable","NoopAnimations"===d._animationMode)("mat-expansion-panel-spacing",d._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[o._Bn([{provide:ct,useValue:void 0}]),o.qOj,o.TTD],ngContentSelectors:be,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(m,d){1&m&&(o.F$t(re),o.Hsn(0),o.TgZ(1,"div",0,1),o.NdJ("@bodyExpansion.done",function(l){return d._bodyAnimationDone.next(l)}),o.TgZ(3,"div",2),o.Hsn(4,1),o.YNc(5,L,0,0,"ng-template",3),o.qZA(),o.Hsn(6,2),o.qZA()),2&m&&(o.xp6(1),o.Q6J("@bodyExpansion",d._getExpandedState())("id",d.id),o.uIk("aria-labelledby",d._headerId),o.xp6(4),o.Q6J("cdkPortalOutlet",d._portal))},directives:[Ht.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[nn.bodyExpansion]},changeDetection:0}),k})();class we{}const V=(0,bt.sb)(we);let j=(()=>{class k extends V{constructor(m,d,a,l,v,R,G){super(),this.panel=m,this._element=d,this._focusMonitor=a,this._changeDetectorRef=l,this._animationMode=R,this._parentChangeSubscription=Xe.w0.EMPTY;const ne=m.accordion?m.accordion._stateChanges.pipe((0,Rt.h)(oe=>!(!oe.hideToggle&&!oe.togglePosition))):E.E;this.tabIndex=parseInt(G||"")||0,this._parentChangeSubscription=(0,S.T)(m.opened,m.closed,ne,m._inputChanges.pipe((0,Rt.h)(oe=>!!(oe.hideToggle||oe.disabled||oe.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),m.closed.pipe((0,Rt.h)(()=>m._containsFocus())).subscribe(()=>a.focusVia(d,"program")),v&&(this.expandedHeight=v.expandedHeight,this.collapsedHeight=v.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const m=this._isExpanded();return m&&this.expandedHeight?this.expandedHeight:!m&&this.collapsedHeight?this.collapsedHeight:null}_keydown(m){switch(m.keyCode){case at.L_:case at.K5:(0,at.Vb)(m)||(m.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(m))}}focus(m,d){m?this._focusMonitor.focusVia(this._element,m,d):this._element.nativeElement.focus(d)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(m=>{m&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(vt,1),o.Y36(o.SBq),o.Y36(Nt.tE),o.Y36(o.sBO),o.Y36(dt,8),o.Y36(Pe.Qb,8),o.$8M("tabindex"))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(m,d){1&m&&o.NdJ("click",function(){return d._toggle()})("keydown",function(l){return d._keydown(l)}),2&m&&(o.uIk("id",d.panel._headerId)("tabindex",d.tabIndex)("aria-controls",d._getPanelId())("aria-expanded",d._isExpanded())("aria-disabled",d.panel.disabled),o.Udp("height",d._getHeaderHeight()),o.ekj("mat-expanded",d._isExpanded())("mat-expansion-toggle-indicator-after","after"===d._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===d._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===d._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[o.qOj],ngContentSelectors:_t,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(m,d){1&m&&(o.F$t(ze),o.TgZ(0,"span",0),o.Hsn(1),o.Hsn(2,1),o.Hsn(3,2),o.qZA(),o.YNc(4,Ue,1,1,"span",1)),2&m&&(o.xp6(4),o.Q6J("ngIf",d._showToggle()))},directives:[Ae.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[nn.indicatorRotate]},changeDetection:0}),k})(),$=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275dir=o.lG2({type:k,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),k})(),he=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275dir=o.lG2({type:k,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),k})(),Se=(()=>{class k extends He{constructor(){super(...arguments),this._ownHeaders=new o.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(m){this._hideToggle=(0,g.Ig)(m)}ngAfterContentInit(){this._headers.changes.pipe((0,de.O)(this._headers)).subscribe(m=>{this._ownHeaders.reset(m.filter(d=>d.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Nt.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(m){this._keyManager.onKeydown(m)}_handleHeaderFocus(m){this._keyManager.updateActiveItem(m)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return k.\u0275fac=function(){let Ee;return function(d){return(Ee||(Ee=o.n5z(k)))(d||k)}}(),k.\u0275dir=o.lG2({type:k,selectors:[["mat-accordion"]],contentQueries:function(m,d,a){if(1&m&&o.Suo(a,j,5),2&m){let l;o.iGM(l=o.CRH())&&(d._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(m,d){2&m&&o.ekj("mat-accordion-multi",d.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[o._Bn([{provide:ct,useExisting:k}]),o.qOj]}),k})(),st=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[Ae.ez,bt.BQ,St,Ht.eL]]}),k})();var At=C(9646),Zt=C(3101),Kt=C(3900),Dt=C(4986),Rn=C(4482),Ve=C(5403),_e=C(5032),rt=C(5577);function kt(k,Ee){return Ee?m=>(0,ie.z)(Ee.pipe((0,Ce.q)(1),function te(){return(0,Rn.e)((k,Ee)=>{k.subscribe((0,Ve.x)(Ee,_e.Z))})}()),m.pipe(kt(k))):(0,rt.z)((m,d)=>k(m,d).pipe((0,Ce.q)(1),function Ie(k){return(0,se.U)(()=>k)}(m)))}var $t=C(5963);function bn(k,Ee=Dt.z){const m=(0,$t.H)(k,Ee);return kt(()=>m)}var en=C(9776),kn=C(226),Cn=C(495);const jn=["mat-menu-item",""];function oi(k,Ee){1&k&&(o.O4$(),o.TgZ(0,"svg",2),o._UZ(1,"polygon",3),o.qZA())}const Wn=["*"];function bi(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"div",0),o.NdJ("keydown",function(a){return o.CHM(m),o.oxw()._handleKeydown(a)})("click",function(){return o.CHM(m),o.oxw().closed.emit("click")})("@transformMenu.start",function(a){return o.CHM(m),o.oxw()._onAnimationStart(a)})("@transformMenu.done",function(a){return o.CHM(m),o.oxw()._onAnimationDone(a)}),o.TgZ(1,"div",1),o.Hsn(2),o.qZA()()}if(2&k){const m=o.oxw();o.Q6J("id",m.panelId)("ngClass",m._classList)("@transformMenu",m._panelAnimationState),o.uIk("aria-label",m.ariaLabel||null)("aria-labelledby",m.ariaLabelledby||null)("aria-describedby",m.ariaDescribedby||null)}}const si={transformMenu:(0,D.X$)("transformMenu",[(0,D.SB)("void",(0,D.oB)({opacity:0,transform:"scale(0.8)"})),(0,D.eR)("void => enter",(0,D.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,D.oB)({opacity:1,transform:"scale(1)"}))),(0,D.eR)("* => void",(0,D.jt)("100ms 25ms linear",(0,D.oB)({opacity:0})))]),fadeInItems:(0,D.X$)("fadeInItems",[(0,D.SB)("showing",(0,D.oB)({opacity:1})),(0,D.eR)("void => *",[(0,D.oB)({opacity:0}),(0,D.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},ji=new o.OlP("MatMenuContent"),An=new o.OlP("MAT_MENU_PANEL"),ci=(0,bt.Kr)((0,bt.Id)(class{}));let tn=(()=>{class k extends ci{constructor(m,d,a,l,v){var R;super(),this._elementRef=m,this._document=d,this._focusMonitor=a,this._parentMenu=l,this._changeDetectorRef=v,this.role="menuitem",this._hovered=new Y.x,this._focused=new Y.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(R=null==l?void 0:l.addItem)||void 0===R||R.call(l,this)}focus(m,d){this._focusMonitor&&m?this._focusMonitor.focusVia(this._getHostElement(),m,d):this._getHostElement().focus(d),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(m){this.disabled&&(m.preventDefault(),m.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var m;const d=this._elementRef.nativeElement.cloneNode(!0),a=d.querySelectorAll("mat-icon, .material-icons");for(let l=0;l{class k{constructor(m,d,a,l){this._elementRef=m,this._ngZone=d,this._defaultOptions=a,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new o.n_E,this._tabSubscription=Xe.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Y.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new o.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+jt++}get xPosition(){return this._xPosition}set xPosition(m){this._xPosition=m,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(m){this._yPosition=m,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(m){this._overlapTrigger=(0,g.Ig)(m)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(m){this._hasBackdrop=(0,g.Ig)(m)}set panelClass(m){const d=this._previousPanelClass;d&&d.length&&d.split(" ").forEach(a=>{this._classList[a]=!1}),this._previousPanelClass=m,m&&m.length&&(m.split(" ").forEach(a=>{this._classList[a]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(m){this.panelClass=m}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Nt.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,de.O)(this._directDescendantItems),(0,Kt.w)(m=>(0,S.T)(...m.map(d=>d._focused)))).subscribe(m=>this._keyManager.updateActiveItem(m)),this._directDescendantItems.changes.subscribe(m=>{var d;const a=this._keyManager;if("enter"===this._panelAnimationState&&(null===(d=a.activeItem)||void 0===d?void 0:d._hasFocus())){const l=m.toArray(),v=Math.max(0,Math.min(l.length-1,a.activeItemIndex||0));l[v]&&!l[v].disabled?a.setActiveItem(v):a.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,de.O)(this._directDescendantItems),(0,Kt.w)(d=>(0,S.T)(...d.map(a=>a._hovered))))}addItem(m){}removeItem(m){}_handleKeydown(m){const d=m.keyCode,a=this._keyManager;switch(d){case at.hY:(0,at.Vb)(m)||(m.preventDefault(),this.closed.emit("keydown"));break;case at.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case at.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(d===at.LH||d===at.JH)&&a.setFocusOrigin("keyboard"),void a.onKeydown(m)}m.stopPropagation()}focusFirstItem(m="program"){this.lazyContent?this._ngZone.onStable.pipe((0,Ce.q)(1)).subscribe(()=>this._focusFirstItem(m)):this._focusFirstItem(m)}_focusFirstItem(m){const d=this._keyManager;if(d.setFocusOrigin(m).setFirstItemActive(),!d.activeItem&&this._directDescendantItems.length){let a=this._directDescendantItems.first._getHostElement().parentElement;for(;a;){if("menu"===a.getAttribute("role")){a.focus();break}a=a.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(m){const d=Math.min(this._baseElevation+m,24),a=`${this._elevationPrefix}${d}`,l=Object.keys(this._classList).find(v=>v.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}setPositionClasses(m=this.xPosition,d=this.yPosition){var a;const l=this._classList;l["mat-menu-before"]="before"===m,l["mat-menu-after"]="after"===m,l["mat-menu-above"]="above"===d,l["mat-menu-below"]="below"===d,null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(m){this._animationDone.next(m),this._isAnimating=!1}_onAnimationStart(m){this._isAnimating=!0,"enter"===m.toState&&0===this._keyManager.activeItemIndex&&(m.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,de.O)(this._allItems)).subscribe(m=>{this._directDescendantItems.reset(m.filter(d=>d._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(Yn),o.Y36(o.sBO))},k.\u0275dir=o.lG2({type:k,contentQueries:function(m,d,a){if(1&m&&(o.Suo(a,ji,5),o.Suo(a,tn,5),o.Suo(a,tn,4)),2&m){let l;o.iGM(l=o.CRH())&&(d.lazyContent=l.first),o.iGM(l=o.CRH())&&(d._allItems=l),o.iGM(l=o.CRH())&&(d.items=l)}},viewQuery:function(m,d){if(1&m&&o.Gf(o.Rgc,5),2&m){let a;o.iGM(a=o.CRH())&&(d.templateRef=a.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"}}),k})(),Jn=(()=>{class k extends ui{constructor(m,d,a,l){super(m,d,a,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(Yn),o.Y36(o.sBO))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(m,d){2&m&&o.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[o._Bn([{provide:An,useExisting:k}]),o.qOj],ngContentSelectors:Wn,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(m,d){1&m&&(o.F$t(),o.YNc(0,bi,3,6,"ng-template"))},directives:[Ae.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[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:[si.transformMenu,si.fadeInItems]},changeDetection:0}),k})();const Si=new o.OlP("mat-menu-scroll-strategy"),gn={provide:Si,deps:[en.aV],useFactory:function Gn(k){return()=>k.scrollStrategies.reposition()}},Nn=(0,le.i$)({passive:!0});let Xn=(()=>{class k{constructor(m,d,a,l,v,R,G,ne,oe){this._overlay=m,this._element=d,this._viewContainerRef=a,this._menuItemInstance=R,this._dir=G,this._focusMonitor=ne,this._ngZone=oe,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Xe.w0.EMPTY,this._hoverSubscription=Xe.w0.EMPTY,this._menuCloseSubscription=Xe.w0.EMPTY,this._handleTouchStart=Oe=>{(0,Nt.yG)(Oe)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new o.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new o.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=v instanceof ui?v:void 0,d.nativeElement.addEventListener("touchstart",this._handleTouchStart,Nn),R&&(R._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(m){this.menu=m}get menu(){return this._menu}set menu(m){m!==this._menu&&(this._menu=m,this._menuCloseSubscription.unsubscribe(),m&&(this._menuCloseSubscription=m.close.subscribe(d=>{this._destroyMenu(d),("click"===d||"tab"===d)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(d)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Nn),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const m=this._createOverlay(),d=m.getConfig(),a=d.positionStrategy;this._setPosition(a),d.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,m.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ui&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,J.R)(this.menu.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(m,d){this._focusMonitor&&m?this._focusMonitor.focusVia(this._element,m,d):this._element.nativeElement.focus(d)}updatePosition(){var m;null===(m=this._overlayRef)||void 0===m||m.updatePosition()}_destroyMenu(m){if(!this._overlayRef||!this.menuOpen)return;const d=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===m||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,d instanceof ui?(d._resetAnimation(),d.lazyContent?d._animationDone.pipe((0,Rt.h)(a=>"void"===a.toState),(0,Ce.q)(1),(0,J.R)(d.lazyContent._attached)).subscribe({next:()=>d.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),d.lazyContent&&d.lazyContent.detach())}_initMenu(){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)}_setMenuElevation(){if(this.menu.setElevation){let m=0,d=this.menu.parentMenu;for(;d;)m++,d=d.parentMenu;this.menu.setElevation(m)}}_setIsMenuOpen(m){this._menuOpen=m,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(m)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const m=this._getOverlayConfig();this._subscribeToPositions(m.positionStrategy),this._overlayRef=this._overlay.create(m),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new en.X_({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})}_subscribeToPositions(m){this.menu.setPositionClasses&&m.positionChanges.subscribe(d=>{const a="start"===d.connectionPair.overlayX?"after":"before",l="top"===d.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(a,l)):this.menu.setPositionClasses(a,l)})}_setPosition(m){let[d,a]="before"===this.menu.xPosition?["end","start"]:["start","end"],[l,v]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[R,G]=[l,v],[ne,oe]=[d,a],Oe=0;this.triggersSubmenu()?(oe=d="before"===this.menu.xPosition?"start":"end",a=ne="end"===d?"start":"end",Oe="bottom"===l?8:-8):this.menu.overlapTrigger||(R="top"===l?"bottom":"top",G="top"===v?"bottom":"top"),m.withPositions([{originX:d,originY:R,overlayX:ne,overlayY:l,offsetY:Oe},{originX:a,originY:R,overlayX:oe,overlayY:l,offsetY:Oe},{originX:d,originY:G,overlayX:ne,overlayY:v,offsetY:-Oe},{originX:a,originY:G,overlayX:oe,overlayY:v,offsetY:-Oe}])}_menuClosingActions(){const m=this._overlayRef.backdropClick(),d=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,At.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Rt.h)(v=>v!==this._menuItemInstance),(0,Rt.h)(()=>this._menuOpen)):(0,At.of)();return(0,S.T)(m,a,l,d)}_handleMousedown(m){(0,Nt.X6)(m)||(this._openedBy=0===m.button?"mouse":void 0,this.triggersSubmenu()&&m.preventDefault())}_handleKeydown(m){const d=m.keyCode;(d===at.K5||d===at.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(d===at.SV&&"ltr"===this.dir||d===at.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(m){this.triggersSubmenu()?(m.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Rt.h)(m=>m===this._menuItemInstance&&!m.disabled),bn(0,Zt.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ui&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Ce.q)(1),bn(0,Zt.E),(0,J.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Ht.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(en.aV),o.Y36(o.SBq),o.Y36(o.s_b),o.Y36(Si),o.Y36(An,8),o.Y36(tn,10),o.Y36(kn.Is,8),o.Y36(Nt.tE),o.Y36(o.R0b))},k.\u0275dir=o.lG2({type:k,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(m,d){1&m&&o.NdJ("click",function(l){return d._handleClick(l)})("mousedown",function(l){return d._handleMousedown(l)})("keydown",function(l){return d._handleKeydown(l)}),2&m&&o.uIk("aria-expanded",d.menuOpen||null)("aria-controls",d.menuOpen?d.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"}}),k})(),un=(()=>{class k extends Xn{}return k.\u0275fac=function(){let Ee;return function(d){return(Ee||(Ee=o.n5z(k)))(d||k)}}(),k.\u0275dir=o.lG2({type:k,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[o.qOj]}),k})(),ir=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({providers:[gn],imports:[[Ae.ez,bt.BQ,bt.si,en.U8],Cn.ZD,bt.BQ]}),k})();const Tr={tooltipState:(0,D.X$)("state",[(0,D.SB)("initial, void, hidden",(0,D.oB)({opacity:0,transform:"scale(0)"})),(0,D.SB)("visible",(0,D.oB)({transform:"scale(1)"})),(0,D.eR)("* => visible",(0,D.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,D.F4)([(0,D.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,D.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,D.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,D.eR)("* => hidden",(0,D.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,D.oB)({opacity:0})))])},Ki="tooltip-panel",Zi=(0,le.i$)({passive:!0}),Oi=new o.OlP("mat-tooltip-scroll-strategy"),rr={provide:Oi,deps:[en.aV],useFactory:function hr(k){return()=>k.scrollStrategies.reposition({scrollThrottle:20})}},fr=new o.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function pr(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let kr=(()=>{class k{constructor(m,d,a,l,v,R,G,ne,oe,Oe,Ke,gt){this._overlay=m,this._elementRef=d,this._scrollDispatcher=a,this._viewContainerRef=l,this._ngZone=v,this._platform=R,this._ariaDescriber=G,this._focusMonitor=ne,this._dir=Oe,this._defaultOptions=Ke,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 Y.x,this._scrollStrategy=oe,this._document=gt,Ke&&(Ke.position&&(this.position=Ke.position),Ke.touchGestures&&(this.touchGestures=Ke.touchGestures)),Oe.change.pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(m){var d;m!==this._position&&(this._position=m,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(d=this._tooltipInstance)||void 0===d||d.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(m){this._disabled=(0,g.Ig)(m),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(m){this._showDelay=(0,g.su)(m)}get hideDelay(){return this._hideDelay}set hideDelay(m){this._hideDelay=(0,g.su)(m),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(m){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=m?String(m).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(m){this._tooltipClass=m,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,J.R)(this._destroyed)).subscribe(m=>{m?"keyboard"===m&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const m=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([d,a])=>{m.removeEventListener(d,a,Zi)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(m,this.message,"tooltip"),this._focusMonitor.stopMonitoring(m)}show(m=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const d=this._createOverlay();this._detach(),this._portal=this._portal||new Ht.C5(this._tooltipComponent,this._viewContainerRef);const a=this._tooltipInstance=d.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe((0,J.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(m)}hide(m=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(m)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var m;if(this._overlayRef)return this._overlayRef;const d=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),a=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(d);return a.positionChanges.pipe((0,J.R)(this._destroyed)).subscribe(l=>{this._updateCurrentPositionClass(l.connectionPair),this._tooltipInstance&&l.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:`${this._cssClassPrefix}-${Ki}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,J.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,J.R)(this._destroyed)).subscribe(()=>{var l;return null===(l=this._tooltipInstance)||void 0===l?void 0:l._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,J.R)(this._destroyed)).subscribe(l=>{this._isTooltipVisible()&&l.keyCode===at.hY&&!(0,at.Vb)(l)&&(l.preventDefault(),l.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(m=this._defaultOptions)||void 0===m?void 0:m.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(m){const d=m.getConfig().positionStrategy,a=this._getOrigin(),l=this._getOverlayPosition();d.withPositions([this._addOffset(Object.assign(Object.assign({},a.main),l.main)),this._addOffset(Object.assign(Object.assign({},a.fallback),l.fallback))])}_addOffset(m){return m}_getOrigin(){const m=!this._dir||"ltr"==this._dir.value,d=this.position;let a;"above"==d||"below"==d?a={originX:"center",originY:"above"==d?"top":"bottom"}:"before"==d||"left"==d&&m||"right"==d&&!m?a={originX:"start",originY:"center"}:("after"==d||"right"==d&&m||"left"==d&&!m)&&(a={originX:"end",originY:"center"});const{x:l,y:v}=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:l,originY:v}}}_getOverlayPosition(){const m=!this._dir||"ltr"==this._dir.value,d=this.position;let a;"above"==d?a={overlayX:"center",overlayY:"bottom"}:"below"==d?a={overlayX:"center",overlayY:"top"}:"before"==d||"left"==d&&m||"right"==d&&!m?a={overlayX:"end",overlayY:"center"}:("after"==d||"right"==d&&m||"left"==d&&!m)&&(a={overlayX:"start",overlayY:"center"});const{x:l,y:v}=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:l,overlayY:v}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ce.q)(1),(0,J.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(m){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=m,this._tooltipInstance._markForCheck())}_invertPosition(m,d){return"above"===this.position||"below"===this.position?"top"===d?d="bottom":"bottom"===d&&(d="top"):"end"===m?m="start":"start"===m&&(m="end"),{x:m,y:d}}_updateCurrentPositionClass(m){const{overlayY:d,originX:a,originY:l}=m;let v;if(v="center"===d?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===d&&"top"===l?"above":"below",v!==this._currentPosition){const R=this._overlayRef;if(R){const G=`${this._cssClassPrefix}-${Ki}-`;R.removePanelClass(G+this._currentPosition),R.addPanelClass(G+v)}this._currentPosition=v}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const m=[];if(this._platformSupportsMouseEvents())m.push(["mouseleave",d=>{var a;const l=d.relatedTarget;(!l||!(null===(a=this._overlayRef)||void 0===a?void 0:a.overlayElement.contains(l)))&&this.hide()}],["wheel",d=>this._wheelListener(d)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const d=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};m.push(["touchend",d],["touchcancel",d])}this._addListeners(m),this._passiveListeners.push(...m)}_addListeners(m){m.forEach(([d,a])=>{this._elementRef.nativeElement.addEventListener(d,a,Zi)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(m){if(this._isTooltipVisible()){const d=this._document.elementFromPoint(m.clientX,m.clientY),a=this._elementRef.nativeElement;d!==a&&!a.contains(d)&&this.hide()}}_disableNativeGesturesIfNecessary(){const m=this.touchGestures;if("off"!==m){const d=this._elementRef.nativeElement,a=d.style;("on"===m||"INPUT"!==d.nodeName&&"TEXTAREA"!==d.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===m||!d.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}return k.\u0275fac=function(m){o.$Z()},k.\u0275dir=o.lG2({type:k,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),k})(),uo=(()=>{class k extends kr{constructor(m,d,a,l,v,R,G,ne,oe,Oe,Ke,gt){super(m,d,a,l,v,R,G,ne,oe,Oe,Ke,gt),this._tooltipComponent=Fr}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(en.aV),o.Y36(o.SBq),o.Y36(Cn.mF),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(le.t4),o.Y36(Nt.$s),o.Y36(Nt.tE),o.Y36(Oi),o.Y36(kn.Is,8),o.Y36(fr,8),o.Y36(Ae.K0))},k.\u0275dir=o.lG2({type:k,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[o.qOj]}),k})(),mr=(()=>{class k{constructor(m){this._changeDetectorRef=m,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Y.x}show(m){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},m)}hide(m){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},m)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_animationStart(){this._closeOnInteraction=!1}_animationDone(m){const d=m.toState;"hidden"===d&&!this.isVisible()&&this._onHide.next(),("visible"===d||"hidden"===d)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:m}){(!m||!this._triggerElement.contains(m))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.sBO))},k.\u0275dir=o.lG2({type:k}),k})(),Fr=(()=>{class k extends mr{constructor(m,d){super(m),this._breakpointObserver=d,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.sBO),o.Y36(me))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(m,d){1&m&&o.NdJ("mouseleave",function(l){return d._handleMouseLeave(l)}),2&m&&o.Udp("zoom","visible"===d._visibility?1:null)},features:[o.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(m,d){if(1&m&&(o.TgZ(0,"div",0),o.NdJ("@state.start",function(){return d._animationStart()})("@state.done",function(l){return d._animationDone(l)}),o.ALo(1,"async"),o._uU(2),o.qZA()),2&m){let a;o.ekj("mat-tooltip-handset",null==(a=o.lcZ(1,5,d._isHandset))?null:a.matches),o.Q6J("ngClass",d.tooltipClass)("@state",d._visibility),o.xp6(2),o.Oqu(d.message)}},directives:[Ae.mk],pipes:[Ae.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}\n"],encapsulation:2,data:{animation:[Tr.tooltipState]},changeDetection:0}),k})(),gr=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({providers:[rr],imports:[[Nt.rt,Ae.ez,en.U8,bt.BQ],bt.BQ,Cn.ZD]}),k})();var or=C(7423);function xr(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"button",14),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw(2).launch(l)}),o.TgZ(1,"div",15),o._UZ(2,"img",9),o._uU(3),o.qZA()()}if(2&k){const m=Ee.$implicit,d=o.oxw(2);o.xp6(2),o.Q6J("src",d.getTransportIcon(m.id),o.LSH),o.xp6(1),o.hij(" ",m.name," ")}}function sr(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"button",14),o.NdJ("click",function(){return o.CHM(m),o.oxw(2).action("release")}),o.TgZ(1,"i",16),o._uU(2,"delete"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4," Release service"),o.qZA()()}}function _r(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"button",14),o.NdJ("click",function(){return o.CHM(m),o.oxw(2).action("reset")}),o.TgZ(1,"i",16),o._uU(2,"refresh"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4," Reset service"),o.qZA()()}}function ar(k,Ee){if(1&k&&(o.TgZ(0,"button",17)(1,"uds-translate"),o._uU(2,"Connections"),o.qZA()()),2&k){o.oxw();const m=o.MAs(2);o.Q6J("matMenuTriggerFor",m)}}function Zr(k,Ee){if(1&k&&(o.TgZ(0,"button",17)(1,"uds-translate"),o._uU(2,"Actions"),o.qZA()()),2&k){o.oxw();const m=o.MAs(5);o.Q6J("matMenuTriggerFor",m)}}function vr(k,Ee){if(1&k&&(o.TgZ(0,"button",18)(1,"i",16),o._uU(2,"menu"),o.qZA()()),2&k){o.oxw();const m=o.MAs(9);o.Q6J("matMenuTriggerFor",m)}}function Lr(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"div")(1,"mat-menu",null,1),o.YNc(3,xr,4,2,"button",2),o.qZA(),o.TgZ(4,"mat-menu",null,3),o.YNc(6,sr,5,0,"button",4),o.YNc(7,_r,5,0,"button",4),o.qZA(),o.TgZ(8,"mat-menu",null,5),o.YNc(10,ar,3,1,"button",6),o.YNc(11,Zr,3,1,"button",6),o.qZA(),o.TgZ(12,"div",7)(13,"div",8),o.NdJ("click",function(){return o.CHM(m),o.oxw().launch(null)}),o._UZ(14,"img",9),o.qZA(),o.TgZ(15,"div",10)(16,"span",11),o._uU(17),o.qZA()(),o.TgZ(18,"div",12),o.YNc(19,vr,3,1,"button",13),o.qZA()()()}if(2&k){const m=o.oxw();o.xp6(3),o.Q6J("ngForOf",m.service.transports),o.xp6(3),o.Q6J("ngIf",m.service.allow_users_remove),o.xp6(1),o.Q6J("ngIf",m.service.allow_users_reset),o.xp6(3),o.Q6J("ngIf",m.showTransportsMenu()),o.xp6(1),o.Q6J("ngIf",m.hasActions()),o.xp6(1),o.Q6J("ngClass",m.serviceClass)("matTooltipDisabled",""===m.serviceTooltip)("matTooltip",m.serviceTooltip),o.xp6(2),o.Q6J("src",m.serviceImage,o.LSH),o.xp6(2),o.Q6J("ngClass",m.serviceNameClass),o.xp6(1),o.Oqu(m.serviceName),o.xp6(2),o.Q6J("ngIf",m.hasMenu())}}let mi=(()=>{class k{constructor(m){this.api=m}get serviceImage(){return this.api.galleryImageURL(this.service.imageId)}get serviceName(){let m=this.service.visual_name;return m.length>32&&(m=m.substring(0,29)+"..."),m}get serviceTooltip(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}get serviceClass(){const m=["service"];return null!=this.service.to_be_replaced?m.push("tobereplaced"):this.service.maintenance?m.push("maintenance"):this.service.not_accesible?m.push("forbidden"):this.service.in_use&&m.push("inuse"),m.length>1&&m.push("alert"),m}get serviceNameClass(){const m=[],d=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return d>=16&&m.push("small-"+d.toString()),m}ngOnInit(){}getTransportIcon(m){return this.api.transportIconURL(m)}hasActions(){return this.service.allow_users_remove||this.service.allow_users_reset}showTransportsMenu(){return this.service.transports.length>1&&this.service.show_transports}hasMenu(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}notifyNotLaunching(m){this.api.gui.alert('

'+django.gettext("Launcher")+"

",m)}launch(m){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){const d=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+d+'

')}else(null===m||!1===this.service.show_transports)&&(m=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(m.link)}action(m){const d=("release"===m?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,a="release"===m?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(d,django.gettext("Are you sure?")).subscribe(l=>{l&&this.api.action(m,this.service.id).subscribe(v=>{v&&this.api.gui.alert(d,a)})})}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","","class","service-menu",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",1,"service-menu",3,"matMenuTriggerFor"]],template:function(m,d){1&m&&o.YNc(0,Lr,20,12,"div",0),2&m&&o.Q6J("ngIf",d.service.transports.length>0)},directives:[Ae.O5,Jn,Ae.sg,tn,xe.P,un,Ae.mk,uo,or.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;border-radius:1rem;box-shadow:0 12px 18px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:#00000038;display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service-menu[_ngcontent-%COMP%]{border-radius:.6rem!important}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px #00000040,0 10px 10px #00000038}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;background-color:#fffc}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:Material Icons;font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"} .dark-theme .menu .mat-icon-button{background-color:#0003!important}']}),k})();function yr(k,Ee){1&k&&o._UZ(0,"uds-service",8),2&k&&o.Q6J("service",Ee.$implicit)}function Di(k,Ee){if(1&k&&(o.TgZ(0,"mat-expansion-panel",1)(1,"mat-expansion-panel-header",2)(2,"mat-panel-title")(3,"div",3),o._UZ(4,"img",4),o._uU(5),o.qZA()(),o.TgZ(6,"mat-panel-description",5),o._uU(7),o.qZA()(),o.TgZ(8,"div",6),o.YNc(9,yr,1,1,"uds-service",7),o.qZA()()),2&k){const m=o.oxw();o.Q6J("expanded",m.expanded),o.xp6(1),o.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),o.xp6(3),o.Q6J("src",m.groupImage,o.LSH),o.xp6(1),o.hij(" ",m.group.name,""),o.xp6(2),o.hij(" ",m.group.comments," "),o.xp6(2),o.Q6J("ngForOf",m.sortedServices)}}let qr=(()=>{class k{constructor(m){this.api=m,this.expanded=!1}ngOnInit(){}get groupImage(){return this.api.galleryImageURL(this.group.imageUuid)}get hasVisibleServices(){return this.services.length>0}get sortedServices(){return this.services.sort((m,d)=>m.name>d.name?1:m.name{class k{constructor(m){this.api=m}ngOnInit(){}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(m,d){1&m&&o.YNc(0,Bi,38,4,"div",0),2&m&&o.Q6J("ngIf",d.api.staffInfo)},directives:[Ae.O5,xe.P,Se,vt,j,he,$,Ae.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4} .dark-theme .staff-info{margin-top:1rem;padding:1rem;background-color:#0f0f0f} .dark-theme .staff-panel{background-color:#2b2b2b}"]}),k})();function Qr(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"uds-filter",3),o.NdJ("updateEvent",function(a){return o.CHM(m),o.oxw().update(a)}),o.qZA()}}function Ii(k,Ee){if(1&k&&o._UZ(0,"uds-services-group",4),2&k){const m=Ee.$implicit,d=Ee.index;o.Q6J("services",m.services)("group",m.group)("expanded",0===d)}}function lr(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"uds-filter",3),o.NdJ("updateEvent",function(a){return o.CHM(m),o.oxw().update(a)}),o.qZA()}}class Br{constructor(Ee){this.group=Ee,this.services=[]}}function cr(k,Ee){1&k&&o._UZ(0,"span",10),2&k&&o.Q6J("innerHTML",Ee.$implicit,o.oJD)}const ni=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:(()=>{class k{constructor(m){this.api=m,this.servicesInformation={autorun:!1,ip:"",nets:"",services:[],transports:""}}update(m){this.updateServices(m)}ngOnInit(){this.api.config.urls.launch?this.api.logout():this.loadServices()}autorun(){if(this.servicesInformation.autorun&&1===this.servicesInformation.services.length){if(!this.servicesInformation.services[0].maintenance)return this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(this.servicesInformation.services[0].transports[0].link),!0;this.api.gui.alert(django.gettext("Warning"),django.gettext("Service is in maintenance and cannot be executed"))}return!1}loadServices(){this.api.user.isRestricted&&this.api.logout(),this.api.getServicesInformation().subscribe(m=>{this.servicesInformation=m,this.autorun(),this.updateServices()})}updateServices(m=""){this.group=[];let d=null;this.servicesInformation.services.filter(a=>!m||a.visual_name.toLowerCase().includes(m)||a.group.name.toLowerCase().includes(m)).sort((a,l)=>a.group.priority!==l.group.priority?a.group.priority-l.group.priority:a.group.id>l.group.id?1:a.group.id{(null===d||a.group.id!==d.group.id)&&(null!==d&&this.group.push(d),d=new Br(a.group)),d.services.push(a)}),null!==d&&this.group.push(d)}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-services-page"]],decls:6,vars:3,consts:[[3,"updateEvent",4,"ngIf"],[1,"services-groups"],[3,"services","group","expanded",4,"ngFor","ngForOf"],[3,"updateEvent"],[3,"services","group","expanded"]],template:function(m,d){1&m&&(o.YNc(0,Qr,1,0,"uds-filter",0),o.TgZ(1,"div",1)(2,"mat-accordion"),o.YNc(3,Ii,1,3,"uds-services-group",2),o.qZA()(),o.YNc(4,lr,1,0,"uds-filter",0),o._UZ(5,"uds-staff-info")),2&m&&(o.Q6J("ngIf",d.servicesInformation.services.length>=d.api.config.min_for_filter&&d.api.config.site_filter_on_top),o.xp6(3),o.Q6J("ngForOf",d.group),o.xp6(1),o.Q6J("ngIf",d.servicesInformation.services.length>=d.api.config.min_for_filter&&!d.api.config.site_filter_on_top))},directives:[Ae.O5,on,Se,Ae.sg,qr,Qi],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),k})(),canActivate:[ve]},{path:"login",component:Me.G},{path:"login/:id",component:Me.G},{path:"client-download",component:Fe},{path:"downloads",component:Jt,canActivate:[ve]},{path:"error/:id",component:(()=>{class k{constructor(m){this.route=m,this.error=[""]}ngOnInit(){this.getError()}getError(){const m=this.route.snapshot.paramMap.get("id");try{const d=(new TextDecoder).decode(Uint8Array.from(window.atob(m),a=>a.charCodeAt(a))).replace("<","<").replace(">",">");this.error=d.split("\n"),console.log(this.error),udsData.error=this.error}catch(d){console.log(d),this.error=[django.gettext("Invalid error string")]}}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Te.gz))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-error"]],decls:14,vars:1,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],[3,"innerHTML",4,"ngFor","ngForOf"],["mat-raised-button","","color","warn","routerLink","/"],[3,"innerHTML"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1),o.O4$(),o.TgZ(2,"svg",2),o._UZ(3,"path",3),o.qZA(),o.TgZ(4,"svg",4),o._UZ(5,"path",5),o.qZA()(),o.kcU(),o.TgZ(6,"h1",6)(7,"uds-translate"),o._uU(8,"An error has occurred"),o.qZA()(),o.TgZ(9,"p",7),o.YNc(10,cr,1,1,"span",8),o.qZA(),o.TgZ(11,"a",9)(12,"uds-translate"),o._uU(13,"Return"),o.qZA()()()),2&m&&(o.xp6(10),o.Q6J("ngForOf",d.error))},directives:[xe.P,Ae.sg,or.zs,Te.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),k})()},{path:"about",component:(()=>{class k{constructor(m){this.api=m,this.year=(new Date).getFullYear()}ngOnInit(){this.year<2021&&(this.year=2021)}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-about"]],decls:46,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"h1"),o._uU(2),o.qZA(),o.TgZ(3,"h3")(4,"a",1),o._uU(5),o.qZA()(),o.TgZ(6,"h4")(7,"uds-translate"),o._uU(8,"You can access UDS Open Source code at"),o.qZA(),o._uU(9,"\xa0"),o.TgZ(10,"a",2),o._uU(11,"OpenUDS github repository"),o.qZA()(),o.TgZ(12,"div",3)(13,"h2")(14,"uds-translate"),o._uU(15,"UDS has been developed using these components:"),o.qZA()(),o.TgZ(16,"ul")(17,"li")(18,"a",4),o._uU(19,"Python"),o.qZA()(),o.TgZ(20,"li")(21,"a",5),o._uU(22,"TypeScript"),o.qZA()(),o.TgZ(23,"li")(24,"a",6),o._uU(25,"Django"),o.qZA()(),o.TgZ(26,"li")(27,"a",7),o._uU(28,"Angular"),o.qZA()(),o.TgZ(29,"li")(30,"a",8),o._uU(31,"Guacamole"),o.qZA()(),o.TgZ(32,"li")(33,"a",9),o._uU(34,"weasyprint"),o.qZA()(),o.TgZ(35,"li")(36,"a",10),o._uU(37,"Crystal project icons"),o.qZA()(),o.TgZ(38,"li")(39,"a",11),o._uU(40,"Flattr Icons"),o.qZA()()(),o.TgZ(41,"p")(42,"small"),o._uU(43,"* "),o.TgZ(44,"uds-translate"),o._uU(45,"If you find that we missed any component, please let us know"),o.qZA()()()()()),2&m&&(o.xp6(2),o.AsE("Universal Desktop Services ",d.api.config.version," build ",d.api.config.version_stamp,""),o.xp6(3),o.hij(" \xa9 2012-",d.year," Virtual Cable S.L.U."))},directives:[xe.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:400}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px} .dark-theme .about{color:#fff!important} .dark-theme ul li a{color:#fff!important;background-color:inherit!important} .dark-theme ul li a:hover{color:#3e6b2d!important}"]}),k})()},{path:"ticket/launcher",component:(()=>{class k{constructor(m){this.api=m}ngOnInit(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1)(2,"h1")(3,"uds-translate"),o._uU(4,"UDS Service launcher"),o.qZA()(),o.TgZ(5,"h4")(6,"uds-translate"),o._uU(7,"The service you have requested is being launched."),o.qZA()(),o.TgZ(8,"h5")(9,"uds-translate"),o._uU(10,"Please, note that reloading this page will not work."),o.qZA()(),o.TgZ(11,"h5")(12,"uds-translate"),o._uU(13,"To relaunch service, you will have to do it from origin."),o.qZA()(),o.TgZ(14,"h6")(15,"uds-translate"),o._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),o.qZA()(),o.TgZ(17,"h6")(18,"uds-translate"),o._uU(19,"You can obtain it from the"),o.qZA(),o._uU(20,"\xa0"),o.TgZ(21,"a",2)(22,"uds-translate"),o._uU(23,"UDS Client download page"),o.qZA()()()()())},directives:[xe.P,Te.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:#00000038;padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:400}"]}),k})()},{path:"**",redirectTo:"services"}];let ur=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[Te.Bz.forRoot(ni,{relativeLinkResolution:"legacy"})],Te.Bz]}),k})();var Pi=C(2382),A=C(7144);let Sn=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({}),k})(),Vn=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[bt.si,bt.BQ,A.Q8,Sn],bt.BQ,Sn]}),k})();var wi=C(8966),er=C(4107);const Ri=["*",[["mat-toolbar-row"]]],ki=["*","mat-toolbar-row"],x=(0,bt.pj)(class{constructor(k){this._elementRef=k}});let M=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275dir=o.lG2({type:k,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),k})(),y=(()=>{class k extends x{constructor(m,d,a){super(m),this._platform=d,this._document=a}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.SBq),o.Y36(le.t4),o.Y36(Ae.K0))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-toolbar"]],contentQueries:function(m,d,a){if(1&m&&o.Suo(a,M,5),2&m){let l;o.iGM(l=o.CRH())&&(d._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(m,d){2&m&&o.ekj("mat-toolbar-multiple-rows",d._toolbarRows.length>0)("mat-toolbar-single-row",0===d._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[o.qOj],ngContentSelectors:ki,decls:2,vars:0,template:function(m,d){1&m&&(o.F$t(Ri),o.Hsn(0),o.Hsn(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}),k})(),We=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[bt.BQ],bt.BQ]}),k})(),Et=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({providers:[{provide:mn.o2,useValue:{floatLabel:"always"}}],imports:[Pi.u5,We,or.ot,ir,gr,st,wi.Is,mn.lN,Ut.c,er.LD,Vn]}),k})();function Dn(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw(2).changeLang(l)}),o._uU(1),o.qZA()}if(2&k){const m=Ee.$implicit;o.xp6(1),o.Oqu(m.name)}}function gi(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){return o.CHM(m),o.oxw(2).admin()}),o.TgZ(1,"i",23),o._uU(2,"dashboard"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4,"Dashboard"),o.qZA()()}}function Gi(k,Ee){1&k&&(o.TgZ(0,"button",28)(1,"i",23),o._uU(2,"file_download"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4,"Downloads"),o.qZA()())}function Fi(k,Ee){if(1&k&&(o.TgZ(0,"button",14),o._uU(1),o.qZA()),2&k){o.oxw();const m=o.MAs(8),d=o.oxw();o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.Oqu(d.api.user.user)}}function ot(k,Ee){if(1&k&&(o.TgZ(0,"button",25),o._uU(1),o.TgZ(2,"i",23),o._uU(3,"arrow_drop_down"),o.qZA()()),2&k){o.oxw();const m=o.MAs(8),d=o.oxw();o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.hij("",d.api.user.user," ")}}function sn(k,Ee){if(1&k){const m=o.EpF();o.ynx(0),o.TgZ(1,"form",1),o._UZ(2,"input",2)(3,"input",3),o.qZA(),o.TgZ(4,"mat-menu",null,4),o.YNc(6,Dn,2,1,"button",5),o.qZA(),o.TgZ(7,"mat-menu",null,6),o.YNc(9,gi,5,0,"button",7),o.YNc(10,Gi,5,0,"button",8),o.TgZ(11,"button",9),o.NdJ("click",function(){return o.CHM(m),o.oxw().logout()}),o.TgZ(12,"i",10),o._uU(13,"exit_to_app"),o.qZA(),o.TgZ(14,"uds-translate"),o._uU(15,"Logout"),o.qZA()()(),o.TgZ(16,"mat-menu",11,12),o.YNc(18,Fi,2,2,"button",13),o.TgZ(19,"button",14),o._uU(20),o.qZA(),o.TgZ(21,"button",15)(22,"uds-translate"),o._uU(23,"UDS Client"),o.qZA()(),o.TgZ(24,"button",16)(25,"uds-translate"),o._uU(26,"About"),o.qZA()()(),o.TgZ(27,"mat-toolbar",17)(28,"button",18),o._UZ(29,"img",19),o._uU(30),o.qZA(),o._UZ(31,"span",20),o.TgZ(32,"div",21)(33,"button",22)(34,"i",23),o._uU(35,"file_download"),o.qZA(),o.TgZ(36,"uds-translate"),o._uU(37,"UDS Client"),o.qZA()(),o.TgZ(38,"button",24)(39,"i",23),o._uU(40,"info"),o.qZA(),o.TgZ(41,"uds-translate"),o._uU(42,"About"),o.qZA()(),o.TgZ(43,"button",25),o._uU(44),o.TgZ(45,"i",23),o._uU(46,"arrow_drop_down"),o.qZA()(),o.YNc(47,ot,4,2,"button",26),o.qZA(),o.TgZ(48,"div",27)(49,"button",25)(50,"i",23),o._uU(51,"menu"),o.qZA()()()(),o.BQk()}if(2&k){const m=o.MAs(5),d=o.MAs(17),a=o.oxw();o.xp6(1),o.s9C("action",a.api.config.urls.changeLang,o.LSH),o.xp6(1),o.s9C("name",a.api.config.csrf_field),o.s9C("value",a.api.config.csrf),o.xp6(1),o.s9C("value",a.lang.id),o.xp6(3),o.Q6J("ngForOf",a.langs),o.xp6(3),o.Q6J("ngIf",a.api.user.isStaff),o.xp6(1),o.Q6J("ngIf",a.api.user.isStaff),o.xp6(8),o.Q6J("ngIf",a.api.user.isLogged),o.xp6(1),o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.hij("",a.lang.name," "),o.xp6(9),o.Q6J("src",a.api.staticURL("modern/img/udsicon.png"),o.LSH),o.xp6(1),o.hij(" ",a.api.config.site_logo_name," "),o.xp6(13),o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.hij("",a.lang.name," "),o.xp6(3),o.Q6J("ngIf",a.api.user.isLogged),o.xp6(2),o.Q6J("matMenuTriggerFor",d)}}let Jr=(()=>{class k{constructor(m){this.api=m,this.style="";const d=m.config.language;this.langs=[];for(const a of m.config.available_languages)a.id===d?this.lang=a:this.langs.push(a)}ngOnInit(){}changeLang(m){return this.lang=m,document.getElementById("id_language").attributes.value.value=m.id,document.getElementById("form_language").submit(),!1}admin(){this.api.gotoAdmin()}logout(){this.api.logout()}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["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",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(m,d){1&m&&o.YNc(0,sn,52,16,"ng-container",0),2&m&&o.Q6J("ngIf",""==d.api.config.urls.launch)},directives:[Ae.O5,Pi._Y,Pi.JL,Pi.F,Jn,Ae.sg,tn,xe.P,Te.rH,un,y,or.lW],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}@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}}"]}),k})(),Zn=(()=>{class k{constructor(m){this.api=m}ngOnInit(){}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(m,d){1&m&&(o.TgZ(0,"div")(1,"a",0),o._uU(2),o.qZA()()),2&m&&(o.xp6(1),o.Q6J("href",d.api.config.site_copyright_link,o.LSH),o.xp6(1),o.Oqu(d.api.config.site_copyright_info))},styles:[""]}),k})(),bo=(()=>{class k{constructor(m){this.api=m,this.title="UDS",this.blackTheme=!1}handleKeyboardEvent(m){m.altKey&&m.ctrlKey&&"b"===m.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}ngOnInit(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-root"]],hostBindings:function(m,d){1&m&&o.NdJ("keydown",function(l){return d.handleKeyboardEvent(l)},!1,o.evT)},decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(m,d){1&m&&(o._UZ(0,"uds-navbar"),o.TgZ(1,"div",0)(2,"div",1),o._UZ(3,"router-outlet"),o.qZA(),o.TgZ(4,"div",2),o._UZ(5,"uds-footer"),o.qZA()())},directives:[Jr,Te.lC,Zn],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:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),k})();var br=C(5928);let Vi=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k,bootstrap:[bo]}),k.\u0275inj=o.cJS({providers:[Ne.n,br.h],imports:[[c.b2,ke,pe.JF,ur,Pe.PW,Et]]}),k})();C(2340).N.production&&(0,o.G48)(),c.q6().bootstrapModule(Vi).catch(k=>console.log(k))},1135:(qe,ye,C)=>{C.d(ye,{X:()=>o});var c=C(7579);class o extends c.x{constructor(Y){super(),this._value=Y}get value(){return this.getValue()}_subscribe(Y){const ce=super._subscribe(Y);return!ce.closed&&Y.next(this._value),ce}getValue(){const{hasError:Y,thrownError:ce,_value:ie}=this;if(Y)throw ce;return this._throwIfClosed(),ie}next(Y){super.next(this._value=Y)}}},8306:(qe,ye,C)=>{C.d(ye,{y:()=>ee});var c=C(930),o=C(727),g=C(8822),Y=C(4671);var De=C(2416),Ce=C(576),ue=C(2806);let ee=(()=>{class le{constructor(Be){Be&&(this._subscribe=Be)}lift(Be){const Z=new le;return Z.source=this,Z.operator=Be,Z}subscribe(Be,Z,et){const Ye=function J(le){return le&&le instanceof c.Lv||function de(le){return le&&(0,Ce.m)(le.next)&&(0,Ce.m)(le.error)&&(0,Ce.m)(le.complete)}(le)&&(0,o.Nn)(le)}(Be)?Be:new c.Hp(Be,Z,et);return(0,ue.x)(()=>{const{operator:Qe,source:me}=this;Ye.add(Qe?Qe.call(Ye,me):me?this._subscribe(Ye):this._trySubscribe(Ye))}),Ye}_trySubscribe(Be){try{return this._subscribe(Be)}catch(Z){Be.error(Z)}}forEach(Be,Z){return new(Z=se(Z))((et,Ye)=>{const Qe=new c.Hp({next:me=>{try{Be(me)}catch(z){Ye(z),Qe.unsubscribe()}},error:Ye,complete:et});this.subscribe(Qe)})}_subscribe(Be){var Z;return null===(Z=this.source)||void 0===Z?void 0:Z.subscribe(Be)}[g.L](){return this}pipe(...Be){return function ie(le){return 0===le.length?Y.y:1===le.length?le[0]:function(Be){return le.reduce((Z,et)=>et(Z),Be)}}(Be)(this)}toPromise(Be){return new(Be=se(Be))((Z,et)=>{let Ye;this.subscribe(Qe=>Ye=Qe,Qe=>et(Qe),()=>Z(Ye))})}}return le.create=ke=>new le(ke),le})();function se(le){var ke;return null!==(ke=null!=le?le:De.v.Promise)&&void 0!==ke?ke:Promise}},7579:(qe,ye,C)=>{C.d(ye,{x:()=>De});var c=C(8306),o=C(727);const Y=(0,C(3888).d)(ue=>function(){ue(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ce=C(8737),ie=C(2806);let De=(()=>{class ue extends c.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(se){const de=new Ce(this,this);return de.operator=se,de}_throwIfClosed(){if(this.closed)throw new Y}next(se){(0,ie.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const de=this.observers.slice();for(const J of de)J.next(se)}})}error(se){(0,ie.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=se;const{observers:de}=this;for(;de.length;)de.shift().error(se)}})}complete(){(0,ie.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:se}=this;for(;se.length;)se.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var se;return(null===(se=this.observers)||void 0===se?void 0:se.length)>0}_trySubscribe(se){return this._throwIfClosed(),super._trySubscribe(se)}_subscribe(se){return this._throwIfClosed(),this._checkFinalizedStatuses(se),this._innerSubscribe(se)}_innerSubscribe(se){const{hasError:de,isStopped:J,observers:le}=this;return de||J?o.Lc:(le.push(se),new o.w0(()=>(0,ce.P)(le,se)))}_checkFinalizedStatuses(se){const{hasError:de,thrownError:J,isStopped:le}=this;de?se.error(J):le&&se.complete()}asObservable(){const se=new c.y;return se.source=this,se}}return ue.create=(ee,se)=>new Ce(ee,se),ue})();class Ce extends De{constructor(ee,se){super(),this.destination=ee,this.source=se}next(ee){var se,de;null===(de=null===(se=this.destination)||void 0===se?void 0:se.next)||void 0===de||de.call(se,ee)}error(ee){var se,de;null===(de=null===(se=this.destination)||void 0===se?void 0:se.error)||void 0===de||de.call(se,ee)}complete(){var ee,se;null===(se=null===(ee=this.destination)||void 0===ee?void 0:ee.complete)||void 0===se||se.call(ee)}_subscribe(ee){var se,de;return null!==(de=null===(se=this.source)||void 0===se?void 0:se.subscribe(ee))&&void 0!==de?de:o.Lc}}},930:(qe,ye,C)=>{C.d(ye,{Hp:()=>Be,Lv:()=>de});var c=C(576),o=C(727),g=C(2416),Y=C(7849),ce=C(5032);const ie=ue("C",void 0,void 0);function ue(me,z,q){return{kind:me,value:z,error:q}}var ee=C(3410),se=C(2806);class de extends o.w0{constructor(z){super(),this.isStopped=!1,z?(this.destination=z,(0,o.Nn)(z)&&z.add(this)):this.destination=Qe}static create(z,q,pe){return new Be(z,q,pe)}next(z){this.isStopped?Ye(function Ce(me){return ue("N",me,void 0)}(z),this):this._next(z)}error(z){this.isStopped?Ye(function De(me){return ue("E",void 0,me)}(z),this):(this.isStopped=!0,this._error(z))}complete(){this.isStopped?Ye(ie,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(z){this.destination.next(z)}_error(z){try{this.destination.error(z)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const J=Function.prototype.bind;function le(me,z){return J.call(me,z)}class ke{constructor(z){this.partialObserver=z}next(z){const{partialObserver:q}=this;if(q.next)try{q.next(z)}catch(pe){Z(pe)}}error(z){const{partialObserver:q}=this;if(q.error)try{q.error(z)}catch(pe){Z(pe)}else Z(z)}complete(){const{partialObserver:z}=this;if(z.complete)try{z.complete()}catch(q){Z(q)}}}class Be extends de{constructor(z,q,pe){let Te;if(super(),(0,c.m)(z)||!z)Te={next:null!=z?z:void 0,error:null!=q?q:void 0,complete:null!=pe?pe:void 0};else{let Ne;this&&g.v.useDeprecatedNextContext?(Ne=Object.create(z),Ne.unsubscribe=()=>this.unsubscribe(),Te={next:z.next&&le(z.next,Ne),error:z.error&&le(z.error,Ne),complete:z.complete&&le(z.complete,Ne)}):Te=z}this.destination=new ke(Te)}}function Z(me){g.v.useDeprecatedSynchronousErrorHandling?(0,se.O)(me):(0,Y.h)(me)}function Ye(me,z){const{onStoppedNotification:q}=g.v;q&&ee.z.setTimeout(()=>q(me,z))}const Qe={closed:!0,next:ce.Z,error:function et(me){throw me},complete:ce.Z}},727:(qe,ye,C)=>{C.d(ye,{Lc:()=>ie,w0:()=>ce,Nn:()=>De});var c=C(576);const g=(0,C(3888).d)(ue=>function(se){ue(this),this.message=se?`${se.length} errors occurred during unsubscription:\n${se.map((de,J)=>`${J+1}) ${de.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=se});var Y=C(8737);class ce{constructor(ee){this.initialTeardown=ee,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let ee;if(!this.closed){this.closed=!0;const{_parentage:se}=this;if(se)if(this._parentage=null,Array.isArray(se))for(const le of se)le.remove(this);else se.remove(this);const{initialTeardown:de}=this;if((0,c.m)(de))try{de()}catch(le){ee=le instanceof g?le.errors:[le]}const{_teardowns:J}=this;if(J){this._teardowns=null;for(const le of J)try{Ce(le)}catch(ke){ee=null!=ee?ee:[],ke instanceof g?ee=[...ee,...ke.errors]:ee.push(ke)}}if(ee)throw new g(ee)}}add(ee){var se;if(ee&&ee!==this)if(this.closed)Ce(ee);else{if(ee instanceof ce){if(ee.closed||ee._hasParent(this))return;ee._addParent(this)}(this._teardowns=null!==(se=this._teardowns)&&void 0!==se?se:[]).push(ee)}}_hasParent(ee){const{_parentage:se}=this;return se===ee||Array.isArray(se)&&se.includes(ee)}_addParent(ee){const{_parentage:se}=this;this._parentage=Array.isArray(se)?(se.push(ee),se):se?[se,ee]:ee}_removeParent(ee){const{_parentage:se}=this;se===ee?this._parentage=null:Array.isArray(se)&&(0,Y.P)(se,ee)}remove(ee){const{_teardowns:se}=this;se&&(0,Y.P)(se,ee),ee instanceof ce&&ee._removeParent(this)}}ce.EMPTY=(()=>{const ue=new ce;return ue.closed=!0,ue})();const ie=ce.EMPTY;function De(ue){return ue instanceof ce||ue&&"closed"in ue&&(0,c.m)(ue.remove)&&(0,c.m)(ue.add)&&(0,c.m)(ue.unsubscribe)}function Ce(ue){(0,c.m)(ue)?ue():ue.unsubscribe()}},2416:(qe,ye,C)=>{C.d(ye,{v:()=>c});const c={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(qe,ye,C)=>{C.d(ye,{a:()=>ee});var c=C(8306),o=C(4742),g=C(2076),Y=C(4671),ce=C(3268),ie=C(3269),De=C(1810),Ce=C(5403),ue=C(9672);function ee(...J){const le=(0,ie.yG)(J),ke=(0,ie.jO)(J),{args:Be,keys:Z}=(0,o.D)(J);if(0===Be.length)return(0,g.D)([],le);const et=new c.y(function se(J,le,ke=Y.y){return Be=>{de(le,()=>{const{length:Z}=J,et=new Array(Z);let Ye=Z,Qe=Z;for(let me=0;me{const z=(0,g.D)(J[me],le);let q=!1;z.subscribe((0,Ce.x)(Be,pe=>{et[me]=pe,q||(q=!0,Qe--),Qe||Be.next(ke(et.slice()))},()=>{--Ye||Be.complete()}))},Be)},Be)}}(Be,le,Z?Ye=>(0,De.n)(Z,Ye):Y.y));return ke?et.pipe((0,ce.Z)(ke)):et}function de(J,le,ke){J?(0,ue.f)(ke,J,le):le()}},7272:(qe,ye,C)=>{C.d(ye,{z:()=>ce});var c=C(8189),g=C(3269),Y=C(2076);function ce(...ie){return function o(){return(0,c.J)(1)}()((0,Y.D)(ie,(0,g.yG)(ie)))}},9770:(qe,ye,C)=>{C.d(ye,{P:()=>g});var c=C(8306),o=C(8421);function g(Y){return new c.y(ce=>{(0,o.Xf)(Y()).subscribe(ce)})}},515:(qe,ye,C)=>{C.d(ye,{E:()=>o});const o=new(C(8306).y)(ce=>ce.complete())},2076:(qe,ye,C)=>{C.d(ye,{D:()=>pe});var c=C(8421),o=C(9672),g=C(4482),Y=C(5403);function ce(Te,Ne=0){return(0,g.e)((ve,Me)=>{ve.subscribe((0,Y.x)(Me,xe=>(0,o.f)(Me,Te,()=>Me.next(xe),Ne),()=>(0,o.f)(Me,Te,()=>Me.complete(),Ne),xe=>(0,o.f)(Me,Te,()=>Me.error(xe),Ne)))})}function ie(Te,Ne=0){return(0,g.e)((ve,Me)=>{Me.add(Te.schedule(()=>ve.subscribe(Me),Ne))})}var ue=C(8306),se=C(2202),de=C(576);function le(Te,Ne){if(!Te)throw new Error("Iterable cannot be null");return new ue.y(ve=>{(0,o.f)(ve,Ne,()=>{const Me=Te[Symbol.asyncIterator]();(0,o.f)(ve,Ne,()=>{Me.next().then(xe=>{xe.done?ve.complete():ve.next(xe.value)})},0,!0)})})}var ke=C(3670),Be=C(8239),Z=C(1144),et=C(6495),Ye=C(2206),Qe=C(4532),me=C(3260);function pe(Te,Ne){return Ne?function q(Te,Ne){if(null!=Te){if((0,ke.c)(Te))return function De(Te,Ne){return(0,c.Xf)(Te).pipe(ie(Ne),ce(Ne))}(Te,Ne);if((0,Z.z)(Te))return function ee(Te,Ne){return new ue.y(ve=>{let Me=0;return Ne.schedule(function(){Me===Te.length?ve.complete():(ve.next(Te[Me++]),ve.closed||this.schedule())})})}(Te,Ne);if((0,Be.t)(Te))return function Ce(Te,Ne){return(0,c.Xf)(Te).pipe(ie(Ne),ce(Ne))}(Te,Ne);if((0,Ye.D)(Te))return le(Te,Ne);if((0,et.T)(Te))return function J(Te,Ne){return new ue.y(ve=>{let Me;return(0,o.f)(ve,Ne,()=>{Me=Te[se.h](),(0,o.f)(ve,Ne,()=>{let xe,Ae;try{({value:xe,done:Ae}=Me.next())}catch(tt){return void ve.error(tt)}Ae?ve.complete():ve.next(xe)},0,!0)}),()=>(0,de.m)(null==Me?void 0:Me.return)&&Me.return()})}(Te,Ne);if((0,me.L)(Te))return function z(Te,Ne){return le((0,me.Q)(Te),Ne)}(Te,Ne)}throw(0,Qe.z)(Te)}(Te,Ne):(0,c.Xf)(Te)}},4968:(qe,ye,C)=>{C.d(ye,{R:()=>ee});var c=C(8421),o=C(8306),g=C(5577),Y=C(1144),ce=C(576),ie=C(3268);const De=["addListener","removeListener"],Ce=["addEventListener","removeEventListener"],ue=["on","off"];function ee(ke,Be,Z,et){if((0,ce.m)(Z)&&(et=Z,Z=void 0),et)return ee(ke,Be,Z).pipe((0,ie.Z)(et));const[Ye,Qe]=function le(ke){return(0,ce.m)(ke.addEventListener)&&(0,ce.m)(ke.removeEventListener)}(ke)?Ce.map(me=>z=>ke[me](Be,z,Z)):function de(ke){return(0,ce.m)(ke.addListener)&&(0,ce.m)(ke.removeListener)}(ke)?De.map(se(ke,Be)):function J(ke){return(0,ce.m)(ke.on)&&(0,ce.m)(ke.off)}(ke)?ue.map(se(ke,Be)):[];if(!Ye&&(0,Y.z)(ke))return(0,g.z)(me=>ee(me,Be,Z))((0,c.Xf)(ke));if(!Ye)throw new TypeError("Invalid event target");return new o.y(me=>{const z=(...q)=>me.next(1Qe(z)})}function se(ke,Be){return Z=>et=>ke[Z](Be,et)}},8421:(qe,ye,C)=>{C.d(ye,{Xf:()=>J});var c=C(655),o=C(1144),g=C(8239),Y=C(8306),ce=C(3670),ie=C(2206),De=C(4532),Ce=C(6495),ue=C(3260),ee=C(576),se=C(7849),de=C(8822);function J(me){if(me instanceof Y.y)return me;if(null!=me){if((0,ce.c)(me))return function le(me){return new Y.y(z=>{const q=me[de.L]();if((0,ee.m)(q.subscribe))return q.subscribe(z);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(me);if((0,o.z)(me))return function ke(me){return new Y.y(z=>{for(let q=0;q{me.then(q=>{z.closed||(z.next(q),z.complete())},q=>z.error(q)).then(null,se.h)})}(me);if((0,ie.D)(me))return et(me);if((0,Ce.T)(me))return function Z(me){return new Y.y(z=>{for(const q of me)if(z.next(q),z.closed)return;z.complete()})}(me);if((0,ue.L)(me))return function Ye(me){return et((0,ue.Q)(me))}(me)}throw(0,De.z)(me)}function et(me){return new Y.y(z=>{(function Qe(me,z){var q,pe,Te,Ne;return(0,c.mG)(this,void 0,void 0,function*(){try{for(q=(0,c.KL)(me);!(pe=yield q.next()).done;)if(z.next(pe.value),z.closed)return}catch(ve){Te={error:ve}}finally{try{pe&&!pe.done&&(Ne=q.return)&&(yield Ne.call(q))}finally{if(Te)throw Te.error}}z.complete()})})(me,z).catch(q=>z.error(q))})}},6451:(qe,ye,C)=>{C.d(ye,{T:()=>ie});var c=C(8189),o=C(8421),g=C(515),Y=C(3269),ce=C(2076);function ie(...De){const Ce=(0,Y.yG)(De),ue=(0,Y._6)(De,1/0),ee=De;return ee.length?1===ee.length?(0,o.Xf)(ee[0]):(0,c.J)(ue)((0,ce.D)(ee,Ce)):g.E}},9646:(qe,ye,C)=>{C.d(ye,{of:()=>g});var c=C(3269),o=C(2076);function g(...Y){const ce=(0,c.yG)(Y);return(0,o.D)(Y,ce)}},5963:(qe,ye,C)=>{C.d(ye,{H:()=>ce});var c=C(8306),o=C(4986),g=C(3532);function ce(ie=0,De,Ce=o.P){let ue=-1;return null!=De&&((0,g.K)(De)?Ce=De:ue=De),new c.y(ee=>{let se=function Y(ie){return ie instanceof Date&&!isNaN(ie)}(ie)?+ie-Ce.now():ie;se<0&&(se=0);let de=0;return Ce.schedule(function(){ee.closed||(ee.next(de++),0<=ue?this.schedule(void 0,ue):ee.complete())},se)})}},5403:(qe,ye,C)=>{C.d(ye,{x:()=>o});var c=C(930);function o(Y,ce,ie,De,Ce){return new g(Y,ce,ie,De,Ce)}class g extends c.Lv{constructor(ce,ie,De,Ce,ue,ee){super(ce),this.onFinalize=ue,this.shouldUnsubscribe=ee,this._next=ie?function(se){try{ie(se)}catch(de){ce.error(de)}}:super._next,this._error=Ce?function(se){try{Ce(se)}catch(de){ce.error(de)}finally{this.unsubscribe()}}:super._error,this._complete=De?function(){try{De()}catch(se){ce.error(se)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var ce;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ie}=this;super.unsubscribe(),!ie&&(null===(ce=this.onFinalize)||void 0===ce||ce.call(this))}}}},4351:(qe,ye,C)=>{C.d(ye,{b:()=>g});var c=C(5577),o=C(576);function g(Y,ce){return(0,o.m)(ce)?(0,c.z)(Y,ce,1):(0,c.z)(Y,1)}},8372:(qe,ye,C)=>{C.d(ye,{b:()=>Y});var c=C(4986),o=C(4482),g=C(5403);function Y(ce,ie=c.z){return(0,o.e)((De,Ce)=>{let ue=null,ee=null,se=null;const de=()=>{if(ue){ue.unsubscribe(),ue=null;const le=ee;ee=null,Ce.next(le)}};function J(){const le=se+ce,ke=ie.now();if(ke{ee=le,se=ie.now(),ue||(ue=ie.schedule(J,ce),Ce.add(ue))},()=>{de(),Ce.complete()},void 0,()=>{ee=ue=null}))})}},1884:(qe,ye,C)=>{C.d(ye,{x:()=>Y});var c=C(4671),o=C(4482),g=C(5403);function Y(ie,De=c.y){return ie=null!=ie?ie:ce,(0,o.e)((Ce,ue)=>{let ee,se=!0;Ce.subscribe((0,g.x)(ue,de=>{const J=De(de);(se||!ie(ee,J))&&(se=!1,ee=J,ue.next(de))}))})}function ce(ie,De){return ie===De}},9300:(qe,ye,C)=>{C.d(ye,{h:()=>g});var c=C(4482),o=C(5403);function g(Y,ce){return(0,c.e)((ie,De)=>{let Ce=0;ie.subscribe((0,o.x)(De,ue=>Y.call(ce,ue,Ce++)&&De.next(ue)))})}},4004:(qe,ye,C)=>{C.d(ye,{U:()=>g});var c=C(4482),o=C(5403);function g(Y,ce){return(0,c.e)((ie,De)=>{let Ce=0;ie.subscribe((0,o.x)(De,ue=>{De.next(Y.call(ce,ue,Ce++))}))})}},8189:(qe,ye,C)=>{C.d(ye,{J:()=>g});var c=C(5577),o=C(4671);function g(Y=1/0){return(0,c.z)(o.y,Y)}},5577:(qe,ye,C)=>{C.d(ye,{z:()=>Ce});var c=C(4004),o=C(8421),g=C(4482),Y=C(9672),ce=C(5403),De=C(576);function Ce(ue,ee,se=1/0){return(0,De.m)(ee)?Ce((de,J)=>(0,c.U)((le,ke)=>ee(de,le,J,ke))((0,o.Xf)(ue(de,J))),se):("number"==typeof ee&&(se=ee),(0,g.e)((de,J)=>function ie(ue,ee,se,de,J,le,ke,Be){const Z=[];let et=0,Ye=0,Qe=!1;const me=()=>{Qe&&!Z.length&&!et&&ee.complete()},z=pe=>et{le&&ee.next(pe),et++;let Te=!1;(0,o.Xf)(se(pe,Ye++)).subscribe((0,ce.x)(ee,Ne=>{null==J||J(Ne),le?z(Ne):ee.next(Ne)},()=>{Te=!0},void 0,()=>{if(Te)try{for(et--;Z.length&&etq(Ne)):q(Ne)}me()}catch(Ne){ee.error(Ne)}}))};return ue.subscribe((0,ce.x)(ee,z,()=>{Qe=!0,me()})),()=>{null==Be||Be()}}(de,J,ue,se)))}},5684:(qe,ye,C)=>{C.d(ye,{T:()=>o});var c=C(9300);function o(g){return(0,c.h)((Y,ce)=>g<=ce)}},8675:(qe,ye,C)=>{C.d(ye,{O:()=>Y});var c=C(7272),o=C(3269),g=C(4482);function Y(...ce){const ie=(0,o.yG)(ce);return(0,g.e)((De,Ce)=>{(ie?(0,c.z)(ce,De,ie):(0,c.z)(ce,De)).subscribe(Ce)})}},3900:(qe,ye,C)=>{C.d(ye,{w:()=>Y});var c=C(8421),o=C(4482),g=C(5403);function Y(ce,ie){return(0,o.e)((De,Ce)=>{let ue=null,ee=0,se=!1;const de=()=>se&&!ue&&Ce.complete();De.subscribe((0,g.x)(Ce,J=>{null==ue||ue.unsubscribe();let le=0;const ke=ee++;(0,c.Xf)(ce(J,ke)).subscribe(ue=(0,g.x)(Ce,Be=>Ce.next(ie?ie(J,Be,ke,le++):Be),()=>{ue=null,de()}))},()=>{se=!0,de()}))})}},5698:(qe,ye,C)=>{C.d(ye,{q:()=>Y});var c=C(515),o=C(4482),g=C(5403);function Y(ce){return ce<=0?()=>c.E:(0,o.e)((ie,De)=>{let Ce=0;ie.subscribe((0,g.x)(De,ue=>{++Ce<=ce&&(De.next(ue),ce<=Ce&&De.complete())}))})}},2722:(qe,ye,C)=>{C.d(ye,{R:()=>ce});var c=C(4482),o=C(5403),g=C(8421),Y=C(5032);function ce(ie){return(0,c.e)((De,Ce)=>{(0,g.Xf)(ie).subscribe((0,o.x)(Ce,()=>Ce.complete(),Y.Z)),!Ce.closed&&De.subscribe(Ce)})}},8505:(qe,ye,C)=>{C.d(ye,{b:()=>ce});var c=C(576),o=C(4482),g=C(5403),Y=C(4671);function ce(ie,De,Ce){const ue=(0,c.m)(ie)||De||Ce?{next:ie,error:De,complete:Ce}:ie;return ue?(0,o.e)((ee,se)=>{var de;null===(de=ue.subscribe)||void 0===de||de.call(ue);let J=!0;ee.subscribe((0,g.x)(se,le=>{var ke;null===(ke=ue.next)||void 0===ke||ke.call(ue,le),se.next(le)},()=>{var le;J=!1,null===(le=ue.complete)||void 0===le||le.call(ue),se.complete()},le=>{var ke;J=!1,null===(ke=ue.error)||void 0===ke||ke.call(ue,le),se.error(le)},()=>{var le,ke;J&&(null===(le=ue.unsubscribe)||void 0===le||le.call(ue)),null===(ke=ue.finalize)||void 0===ke||ke.call(ue)}))}):Y.y}},4408:(qe,ye,C)=>{C.d(ye,{o:()=>ce});var c=C(727);class o extends c.w0{constructor(De,Ce){super()}schedule(De,Ce=0){return this}}const g={setInterval(...ie){const{delegate:De}=g;return((null==De?void 0:De.setInterval)||setInterval)(...ie)},clearInterval(ie){const{delegate:De}=g;return((null==De?void 0:De.clearInterval)||clearInterval)(ie)},delegate:void 0};var Y=C(8737);class ce extends o{constructor(De,Ce){super(De,Ce),this.scheduler=De,this.work=Ce,this.pending=!1}schedule(De,Ce=0){if(this.closed)return this;this.state=De;const ue=this.id,ee=this.scheduler;return null!=ue&&(this.id=this.recycleAsyncId(ee,ue,Ce)),this.pending=!0,this.delay=Ce,this.id=this.id||this.requestAsyncId(ee,this.id,Ce),this}requestAsyncId(De,Ce,ue=0){return g.setInterval(De.flush.bind(De,this),ue)}recycleAsyncId(De,Ce,ue=0){if(null!=ue&&this.delay===ue&&!1===this.pending)return Ce;g.clearInterval(Ce)}execute(De,Ce){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ue=this._execute(De,Ce);if(ue)return ue;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(De,Ce){let ee,ue=!1;try{this.work(De)}catch(se){ue=!0,ee=se||new Error("Scheduled action threw falsy error")}if(ue)return this.unsubscribe(),ee}unsubscribe(){if(!this.closed){const{id:De,scheduler:Ce}=this,{actions:ue}=Ce;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Y.P)(ue,this),null!=De&&(this.id=this.recycleAsyncId(Ce,De,null)),this.delay=null,super.unsubscribe()}}}},640:(qe,ye,C)=>{C.d(ye,{v:()=>g});const c={now:()=>(c.delegate||Date).now(),delegate:void 0};class o{constructor(ce,ie=o.now){this.schedulerActionCtor=ce,this.now=ie}schedule(ce,ie=0,De){return new this.schedulerActionCtor(this,ce).schedule(De,ie)}}o.now=c.now;class g extends o{constructor(ce,ie=o.now){super(ce,ie),this.actions=[],this._active=!1,this._scheduled=void 0}flush(ce){const{actions:ie}=this;if(this._active)return void ie.push(ce);let De;this._active=!0;do{if(De=ce.execute(ce.state,ce.delay))break}while(ce=ie.shift());if(this._active=!1,De){for(;ce=ie.shift();)ce.unsubscribe();throw De}}}},3101:(qe,ye,C)=>{C.d(ye,{E:()=>le});var c=C(4408);let g,o=1;const Y={};function ce(Be){return Be in Y&&(delete Y[Be],!0)}const ie={setImmediate(Be){const Z=o++;return Y[Z]=!0,g||(g=Promise.resolve()),g.then(()=>ce(Z)&&Be()),Z},clearImmediate(Be){ce(Be)}},{setImmediate:Ce,clearImmediate:ue}=ie,ee={setImmediate(...Be){const{delegate:Z}=ee;return((null==Z?void 0:Z.setImmediate)||Ce)(...Be)},clearImmediate(Be){const{delegate:Z}=ee;return((null==Z?void 0:Z.clearImmediate)||ue)(Be)},delegate:void 0};var de=C(640);const le=new class J extends de.v{flush(Z){this._active=!0;const et=this._scheduled;this._scheduled=void 0;const{actions:Ye}=this;let Qe;Z=Z||Ye.shift();do{if(Qe=Z.execute(Z.state,Z.delay))break}while((Z=Ye[0])&&Z.id===et&&Ye.shift());if(this._active=!1,Qe){for(;(Z=Ye[0])&&Z.id===et&&Ye.shift();)Z.unsubscribe();throw Qe}}}(class se extends c.o{constructor(Z,et){super(Z,et),this.scheduler=Z,this.work=et}requestAsyncId(Z,et,Ye=0){return null!==Ye&&Ye>0?super.requestAsyncId(Z,et,Ye):(Z.actions.push(this),Z._scheduled||(Z._scheduled=ee.setImmediate(Z.flush.bind(Z,void 0))))}recycleAsyncId(Z,et,Ye=0){if(null!=Ye&&Ye>0||null==Ye&&this.delay>0)return super.recycleAsyncId(Z,et,Ye);Z.actions.some(Qe=>Qe.id===et)||(ee.clearImmediate(et),Z._scheduled=void 0)}})},4986:(qe,ye,C)=>{C.d(ye,{z:()=>g,P:()=>Y});var c=C(4408);const g=new(C(640).v)(c.o),Y=g},3410:(qe,ye,C)=>{C.d(ye,{z:()=>c});const c={setTimeout(...o){const{delegate:g}=c;return((null==g?void 0:g.setTimeout)||setTimeout)(...o)},clearTimeout(o){const{delegate:g}=c;return((null==g?void 0:g.clearTimeout)||clearTimeout)(o)},delegate:void 0}},2202:(qe,ye,C)=>{C.d(ye,{h:()=>o});const o=function c(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(qe,ye,C)=>{C.d(ye,{L:()=>c});const c="function"==typeof Symbol&&Symbol.observable||"@@observable"},3269:(qe,ye,C)=>{C.d(ye,{jO:()=>Y,yG:()=>ce,_6:()=>ie});var c=C(576),o=C(3532);function g(De){return De[De.length-1]}function Y(De){return(0,c.m)(g(De))?De.pop():void 0}function ce(De){return(0,o.K)(g(De))?De.pop():void 0}function ie(De,Ce){return"number"==typeof g(De)?De.pop():Ce}},4742:(qe,ye,C)=>{C.d(ye,{D:()=>ce});const{isArray:c}=Array,{getPrototypeOf:o,prototype:g,keys:Y}=Object;function ce(De){if(1===De.length){const Ce=De[0];if(c(Ce))return{args:Ce,keys:null};if(function ie(De){return De&&"object"==typeof De&&o(De)===g}(Ce)){const ue=Y(Ce);return{args:ue.map(ee=>Ce[ee]),keys:ue}}}return{args:De,keys:null}}},8737:(qe,ye,C)=>{function c(o,g){if(o){const Y=o.indexOf(g);0<=Y&&o.splice(Y,1)}}C.d(ye,{P:()=>c})},3888:(qe,ye,C)=>{function c(o){const Y=o(ce=>{Error.call(ce),ce.stack=(new Error).stack});return Y.prototype=Object.create(Error.prototype),Y.prototype.constructor=Y,Y}C.d(ye,{d:()=>c})},1810:(qe,ye,C)=>{function c(o,g){return o.reduce((Y,ce,ie)=>(Y[ce]=g[ie],Y),{})}C.d(ye,{n:()=>c})},2806:(qe,ye,C)=>{C.d(ye,{x:()=>g,O:()=>Y});var c=C(2416);let o=null;function g(ce){if(c.v.useDeprecatedSynchronousErrorHandling){const ie=!o;if(ie&&(o={errorThrown:!1,error:null}),ce(),ie){const{errorThrown:De,error:Ce}=o;if(o=null,De)throw Ce}}else ce()}function Y(ce){c.v.useDeprecatedSynchronousErrorHandling&&o&&(o.errorThrown=!0,o.error=ce)}},9672:(qe,ye,C)=>{function c(o,g,Y,ce=0,ie=!1){const De=g.schedule(function(){Y(),ie?o.add(this.schedule(null,ce)):this.unsubscribe()},ce);if(o.add(De),!ie)return De}C.d(ye,{f:()=>c})},4671:(qe,ye,C)=>{function c(o){return o}C.d(ye,{y:()=>c})},1144:(qe,ye,C)=>{C.d(ye,{z:()=>c});const c=o=>o&&"number"==typeof o.length&&"function"!=typeof o},2206:(qe,ye,C)=>{C.d(ye,{D:()=>o});var c=C(576);function o(g){return Symbol.asyncIterator&&(0,c.m)(null==g?void 0:g[Symbol.asyncIterator])}},576:(qe,ye,C)=>{function c(o){return"function"==typeof o}C.d(ye,{m:()=>c})},3670:(qe,ye,C)=>{C.d(ye,{c:()=>g});var c=C(8822),o=C(576);function g(Y){return(0,o.m)(Y[c.L])}},6495:(qe,ye,C)=>{C.d(ye,{T:()=>g});var c=C(2202),o=C(576);function g(Y){return(0,o.m)(null==Y?void 0:Y[c.h])}},8239:(qe,ye,C)=>{C.d(ye,{t:()=>o});var c=C(576);function o(g){return(0,c.m)(null==g?void 0:g.then)}},3260:(qe,ye,C)=>{C.d(ye,{Q:()=>g,L:()=>Y});var c=C(655),o=C(576);function g(ce){return(0,c.FC)(this,arguments,function*(){const De=ce.getReader();try{for(;;){const{value:Ce,done:ue}=yield(0,c.qq)(De.read());if(ue)return yield(0,c.qq)(void 0);yield yield(0,c.qq)(Ce)}}finally{De.releaseLock()}})}function Y(ce){return(0,o.m)(null==ce?void 0:ce.getReader)}},3532:(qe,ye,C)=>{C.d(ye,{K:()=>o});var c=C(576);function o(g){return g&&(0,c.m)(g.schedule)}},4482:(qe,ye,C)=>{C.d(ye,{A:()=>o,e:()=>g});var c=C(576);function o(Y){return(0,c.m)(null==Y?void 0:Y.lift)}function g(Y){return ce=>{if(o(ce))return ce.lift(function(ie){try{return Y(ie,this)}catch(De){this.error(De)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(qe,ye,C)=>{C.d(ye,{Z:()=>Y});var c=C(4004);const{isArray:o}=Array;function Y(ce){return(0,c.U)(ie=>function g(ce,ie){return o(ie)?ce(...ie):ce(ie)}(ce,ie))}},5032:(qe,ye,C)=>{function c(){}C.d(ye,{Z:()=>c})},7849:(qe,ye,C)=>{C.d(ye,{h:()=>g});var c=C(2416),o=C(3410);function g(Y){o.z.setTimeout(()=>{const{onUnhandledError:ce}=c.v;if(!ce)throw Y;ce(Y)})}},4532:(qe,ye,C)=>{function c(o){return new TypeError(`You provided ${null!==o&&"object"==typeof o?"an invalid object":`'${o}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(ye,{z:()=>c})},655:(qe,ye,C)=>{function Ce(ve,Me,xe,Ae){return new(xe||(xe=Promise))(function(Fe,Ct){function mt(Rt){try{yt(Ae.next(Rt))}catch(Wt){Ct(Wt)}}function Jt(Rt){try{yt(Ae.throw(Rt))}catch(Wt){Ct(Wt)}}function yt(Rt){Rt.done?Fe(Rt.value):function tt(Fe){return Fe instanceof xe?Fe:new xe(function(Ct){Ct(Fe)})}(Rt.value).then(mt,Jt)}yt((Ae=Ae.apply(ve,Me||[])).next())})}function Z(ve){return this instanceof Z?(this.v=ve,this):new Z(ve)}function et(ve,Me,xe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var tt,Ae=xe.apply(ve,Me||[]),Fe=[];return tt={},Ct("next"),Ct("throw"),Ct("return"),tt[Symbol.asyncIterator]=function(){return this},tt;function Ct(Pt){Ae[Pt]&&(tt[Pt]=function(mn){return new Promise(function(Ut,xt){Fe.push([Pt,mn,Ut,xt])>1||mt(Pt,mn)})})}function mt(Pt,mn){try{!function Jt(Pt){Pt.value instanceof Z?Promise.resolve(Pt.value.v).then(yt,Rt):Wt(Fe[0][2],Pt)}(Ae[Pt](mn))}catch(Ut){Wt(Fe[0][3],Ut)}}function yt(Pt){mt("next",Pt)}function Rt(Pt){mt("throw",Pt)}function Wt(Pt,mn){Pt(mn),Fe.shift(),Fe.length&&mt(Fe[0][0],Fe[0][1])}}function Qe(ve){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var xe,Me=ve[Symbol.asyncIterator];return Me?Me.call(ve):(ve=function de(ve){var Me="function"==typeof Symbol&&Symbol.iterator,xe=Me&&ve[Me],Ae=0;if(xe)return xe.call(ve);if(ve&&"number"==typeof ve.length)return{next:function(){return ve&&Ae>=ve.length&&(ve=void 0),{value:ve&&ve[Ae++],done:!ve}}};throw new TypeError(Me?"Object is not iterable.":"Symbol.iterator is not defined.")}(ve),xe={},Ae("next"),Ae("throw"),Ae("return"),xe[Symbol.asyncIterator]=function(){return this},xe);function Ae(Fe){xe[Fe]=ve[Fe]&&function(Ct){return new Promise(function(mt,Jt){!function tt(Fe,Ct,mt,Jt){Promise.resolve(Jt).then(function(yt){Fe({value:yt,done:mt})},Ct)}(mt,Jt,(Ct=ve[Fe](Ct)).done,Ct.value)})}}}C.d(ye,{mG:()=>Ce,qq:()=>Z,FC:()=>et,KL:()=>Qe})},1777:(qe,ye,C)=>{C.d(ye,{l3:()=>g,_j:()=>c,LC:()=>o,ZN:()=>et,jt:()=>ce,pV:()=>J,F4:()=>ee,IO:()=>ke,vP:()=>De,SB:()=>ue,oB:()=>Ce,eR:()=>se,X$:()=>Y,ZE:()=>Ye,k1:()=>Qe});class c{}class o{}const g="*";function Y(me,z){return{type:7,name:me,definitions:z,options:{}}}function ce(me,z=null){return{type:4,styles:z,timings:me}}function De(me,z=null){return{type:2,steps:me,options:z}}function Ce(me){return{type:6,styles:me,offset:null}}function ue(me,z,q){return{type:0,name:me,styles:z,options:q}}function ee(me){return{type:5,steps:me}}function se(me,z,q=null){return{type:1,expr:me,animation:z,options:q}}function J(me=null){return{type:9,options:me}}function ke(me,z,q=null){return{type:11,selector:me,animation:z,options:q}}function Z(me){Promise.resolve(null).then(me)}class et{constructor(z=0,q=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=z+q}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(z=>z()),this._onDoneFns=[])}onStart(z){this._onStartFns.push(z)}onDone(z){this._onDoneFns.push(z)}onDestroy(z){this._onDestroyFns.push(z)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Z(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(z=>z()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(z=>z()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(z){this._position=this.totalTime?z*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(z){const q="start"==z?this._onStartFns:this._onDoneFns;q.forEach(pe=>pe()),q.length=0}}class Ye{constructor(z){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=z;let q=0,pe=0,Te=0;const Ne=this.players.length;0==Ne?Z(()=>this._onFinish()):this.players.forEach(ve=>{ve.onDone(()=>{++q==Ne&&this._onFinish()}),ve.onDestroy(()=>{++pe==Ne&&this._onDestroy()}),ve.onStart(()=>{++Te==Ne&&this._onStart()})}),this.totalTime=this.players.reduce((ve,Me)=>Math.max(ve,Me.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(z=>z()),this._onDoneFns=[])}init(){this.players.forEach(z=>z.init())}onStart(z){this._onStartFns.push(z)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(z=>z()),this._onStartFns=[])}onDone(z){this._onDoneFns.push(z)}onDestroy(z){this._onDestroyFns.push(z)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(z=>z.play())}pause(){this.players.forEach(z=>z.pause())}restart(){this.players.forEach(z=>z.restart())}finish(){this._onFinish(),this.players.forEach(z=>z.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(z=>z.destroy()),this._onDestroyFns.forEach(z=>z()),this._onDestroyFns=[])}reset(){this.players.forEach(z=>z.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(z){const q=z*this.totalTime;this.players.forEach(pe=>{const Te=pe.totalTime?Math.min(1,q/pe.totalTime):1;pe.setPosition(Te)})}getPosition(){const z=this.players.reduce((q,pe)=>null===q||pe.totalTime>q.totalTime?pe:q,null);return null!=z?z.getPosition():0}beforeDestroy(){this.players.forEach(z=>{z.beforeDestroy&&z.beforeDestroy()})}triggerCallback(z){const q="start"==z?this._onStartFns:this._onDoneFns;q.forEach(pe=>pe()),q.length=0}}const Qe="!"},9950:(qe,ye,C)=>{C.d(ye,{rt:()=>we,s1:()=>tt,$s:()=>ve,Em:()=>Fe,tE:()=>nn,qV:()=>He,qm:()=>Le,ic:()=>mt,Kd:()=>ze,X6:()=>at,yG:()=>Pe});var c=C(9808),o=C(4893),g=C(925),Y=C(7579),ce=C(727),ie=C(1135),De=C(9646),Ce=C(1159),ue=C(8505),ee=C(8372),se=C(9300),de=C(4004),J=C(5698),le=C(5684),ke=C(1884),Be=C(2722),Z=C(3191),et=C(7144);function z(V,j){return(V.getAttribute(j)||"").match(/\S+/g)||[]}const pe="cdk-describedby-message",Te="cdk-describedby-host";let Ne=0,ve=(()=>{class V{constructor($,he){this._platform=he,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ne++,this._document=$}describe($,he,Se){if(!this._canBeDescribed($,he))return;const st=Me(he,Se);"string"!=typeof he?(xe(he),this._messageRegistry.set(st,{messageElement:he,referenceCount:0})):this._messageRegistry.has(st)||this._createMessageElement(he,Se),this._isElementDescribedByMessage($,st)||this._addMessageReference($,st)}removeDescription($,he,Se){var st;if(!he||!this._isElementNode($))return;const At=Me(he,Se);if(this._isElementDescribedByMessage($,At)&&this._removeMessageReference($,At),"string"==typeof he){const Zt=this._messageRegistry.get(At);Zt&&0===Zt.referenceCount&&this._deleteMessageElement(At)}0===(null===(st=this._messagesContainer)||void 0===st?void 0:st.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var $;const he=this._document.querySelectorAll(`[${Te}="${this._id}"]`);for(let Se=0;Se0!=Se.indexOf(pe));$.setAttribute("aria-describedby",he.join(" "))}_addMessageReference($,he){const Se=this._messageRegistry.get(he);(function Qe(V,j,$){const he=z(V,j);he.some(Se=>Se.trim()==$.trim())||(he.push($.trim()),V.setAttribute(j,he.join(" ")))})($,"aria-describedby",Se.messageElement.id),$.setAttribute(Te,this._id),Se.referenceCount++}_removeMessageReference($,he){const Se=this._messageRegistry.get(he);Se.referenceCount--,function me(V,j,$){const Se=z(V,j).filter(st=>st!=$.trim());Se.length?V.setAttribute(j,Se.join(" ")):V.removeAttribute(j)}($,"aria-describedby",Se.messageElement.id),$.removeAttribute(Te)}_isElementDescribedByMessage($,he){const Se=z($,"aria-describedby"),st=this._messageRegistry.get(he),At=st&&st.messageElement.id;return!!At&&-1!=Se.indexOf(At)}_canBeDescribed($,he){if(!this._isElementNode($))return!1;if(he&&"object"==typeof he)return!0;const Se=null==he?"":`${he}`.trim(),st=$.getAttribute("aria-label");return!(!Se||st&&st.trim()===Se)}_isElementNode($){return $.nodeType===this._document.ELEMENT_NODE}}return V.\u0275fac=function($){return new($||V)(o.LFG(c.K0),o.LFG(g.t4))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function Me(V,j){return"string"==typeof V?`${j||""}/${V}`:V}function xe(V){V.id||(V.id=`${pe}-${Ne++}`)}class Ae{constructor(j){this._items=j,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Y.x,this._typeaheadSubscription=ce.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=$=>$.disabled,this._pressedLetters=[],this.tabOut=new Y.x,this.change=new Y.x,j instanceof o.n_E&&j.changes.subscribe($=>{if(this._activeItem){const Se=$.toArray().indexOf(this._activeItem);Se>-1&&Se!==this._activeItemIndex&&(this._activeItemIndex=Se)}})}skipPredicate(j){return this._skipPredicateFn=j,this}withWrap(j=!0){return this._wrap=j,this}withVerticalOrientation(j=!0){return this._vertical=j,this}withHorizontalOrientation(j){return this._horizontal=j,this}withAllowedModifierKeys(j){return this._allowedModifierKeys=j,this}withTypeAhead(j=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ue.b)($=>this._pressedLetters.push($)),(0,ee.b)(j),(0,se.h)(()=>this._pressedLetters.length>0),(0,de.U)(()=>this._pressedLetters.join(""))).subscribe($=>{const he=this._getItemsArray();for(let Se=1;Se!j[st]||this._allowedModifierKeys.indexOf(st)>-1);switch($){case Ce.Mf:return void this.tabOut.next();case Ce.JH:if(this._vertical&&Se){this.setNextItemActive();break}return;case Ce.LH:if(this._vertical&&Se){this.setPreviousItemActive();break}return;case Ce.SV:if(this._horizontal&&Se){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Ce.oh:if(this._horizontal&&Se){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case Ce.Sd:if(this._homeAndEnd&&Se){this.setFirstItemActive();break}return;case Ce.uR:if(this._homeAndEnd&&Se){this.setLastItemActive();break}return;default:return void((Se||(0,Ce.Vb)(j,"shiftKey"))&&(j.key&&1===j.key.length?this._letterKeyStream.next(j.key.toLocaleUpperCase()):($>=Ce.A&&$<=Ce.Z||$>=Ce.xE&&$<=Ce.aO)&&this._letterKeyStream.next(String.fromCharCode($))))}this._pressedLetters=[],j.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(j){const $=this._getItemsArray(),he="number"==typeof j?j:$.indexOf(j),Se=$[he];this._activeItem=null==Se?null:Se,this._activeItemIndex=he}_setActiveItemByDelta(j){this._wrap?this._setActiveInWrapMode(j):this._setActiveInDefaultMode(j)}_setActiveInWrapMode(j){const $=this._getItemsArray();for(let he=1;he<=$.length;he++){const Se=(this._activeItemIndex+j*he+$.length)%$.length;if(!this._skipPredicateFn($[Se]))return void this.setActiveItem(Se)}}_setActiveInDefaultMode(j){this._setActiveItemByIndex(this._activeItemIndex+j,j)}_setActiveItemByIndex(j,$){const he=this._getItemsArray();if(he[j]){for(;this._skipPredicateFn(he[j]);)if(!he[j+=$])return;this.setActiveItem(j)}}_getItemsArray(){return this._items instanceof o.n_E?this._items.toArray():this._items}}class tt extends Ae{setActiveItem(j){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(j),this.activeItem&&this.activeItem.setActiveStyles()}}class Fe extends Ae{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(j){return this._origin=j,this}setActiveItem(j){super.setActiveItem(j),this.activeItem&&this.activeItem.focus(this._origin)}}let mt=(()=>{class V{constructor($){this._platform=$}isDisabled($){return $.hasAttribute("disabled")}isVisible($){return function yt(V){return!!(V.offsetWidth||V.offsetHeight||"function"==typeof V.getClientRects&&V.getClientRects().length)}($)&&"visible"===getComputedStyle($).visibility}isTabbable($){if(!this._platform.isBrowser)return!1;const he=function Jt(V){try{return V.frameElement}catch(j){return null}}(function Q(V){return V.ownerDocument&&V.ownerDocument.defaultView||window}($));if(he&&(-1===on(he)||!this.isVisible(he)))return!1;let Se=$.nodeName.toLowerCase(),st=on($);return $.hasAttribute("contenteditable")?-1!==st:!("iframe"===Se||"object"===Se||this._platform.WEBKIT&&this._platform.IOS&&!function Xe(V){let j=V.nodeName.toLowerCase(),$="input"===j&&V.type;return"text"===$||"password"===$||"select"===j||"textarea"===j}($))&&("audio"===Se?!!$.hasAttribute("controls")&&-1!==st:"video"===Se?-1!==st&&(null!==st||this._platform.FIREFOX||$.hasAttribute("controls")):$.tabIndex>=0)}isFocusable($,he){return function je(V){return!function Wt(V){return function mn(V){return"input"==V.nodeName.toLowerCase()}(V)&&"hidden"==V.type}(V)&&(function Rt(V){let j=V.nodeName.toLowerCase();return"input"===j||"select"===j||"button"===j||"textarea"===j}(V)||function Pt(V){return function Ut(V){return"a"==V.nodeName.toLowerCase()}(V)&&V.hasAttribute("href")}(V)||V.hasAttribute("contenteditable")||xt(V))}($)&&!this.isDisabled($)&&((null==he?void 0:he.ignoreVisibility)||this.isVisible($))}}return V.\u0275fac=function($){return new($||V)(o.LFG(g.t4))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function xt(V){if(!V.hasAttribute("tabindex")||void 0===V.tabIndex)return!1;let j=V.getAttribute("tabindex");return!(!j||isNaN(parseInt(j,10)))}function on(V){if(!xt(V))return null;const j=parseInt(V.getAttribute("tabindex")||"",10);return isNaN(j)?-1:j}class K{constructor(j,$,he,Se,st=!1){this._element=j,this._checker=$,this._ngZone=he,this._document=Se,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,st||this.attachAnchors()}get enabled(){return this._enabled}set enabled(j){this._enabled=j,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(j,this._startAnchor),this._toggleAnchorTabIndex(j,this._endAnchor))}destroy(){const j=this._startAnchor,$=this._endAnchor;j&&(j.removeEventListener("focus",this.startAnchorListener),j.remove()),$&&($.removeEventListener("focus",this.endAnchorListener),$.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.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)}focusInitialElementWhenReady(j){return new Promise($=>{this._executeOnStable(()=>$(this.focusInitialElement(j)))})}focusFirstTabbableElementWhenReady(j){return new Promise($=>{this._executeOnStable(()=>$(this.focusFirstTabbableElement(j)))})}focusLastTabbableElementWhenReady(j){return new Promise($=>{this._executeOnStable(()=>$(this.focusLastTabbableElement(j)))})}_getRegionBoundary(j){const $=this._element.querySelectorAll(`[cdk-focus-region-${j}], [cdkFocusRegion${j}], [cdk-focus-${j}]`);return"start"==j?$.length?$[0]:this._getFirstTabbableElement(this._element):$.length?$[$.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(j){const $=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if($){if(!this._checker.isFocusable($)){const he=this._getFirstTabbableElement($);return null==he||he.focus(j),!!he}return $.focus(j),!0}return this.focusFirstTabbableElement(j)}focusFirstTabbableElement(j){const $=this._getRegionBoundary("start");return $&&$.focus(j),!!$}focusLastTabbableElement(j){const $=this._getRegionBoundary("end");return $&&$.focus(j),!!$}hasAttached(){return this._hasAttached}_getFirstTabbableElement(j){if(this._checker.isFocusable(j)&&this._checker.isTabbable(j))return j;const $=j.children;for(let he=0;he<$.length;he++){const Se=$[he].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement($[he]):null;if(Se)return Se}return null}_getLastTabbableElement(j){if(this._checker.isFocusable(j)&&this._checker.isTabbable(j))return j;const $=j.children;for(let he=$.length-1;he>=0;he--){const Se=$[he].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement($[he]):null;if(Se)return Se}return null}_createAnchor(){const j=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,j),j.classList.add("cdk-visually-hidden"),j.classList.add("cdk-focus-trap-anchor"),j.setAttribute("aria-hidden","true"),j}_toggleAnchorTabIndex(j,$){j?$.setAttribute("tabindex","0"):$.removeAttribute("tabindex")}toggleAnchors(j){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(j,this._startAnchor),this._toggleAnchorTabIndex(j,this._endAnchor))}_executeOnStable(j){this._ngZone.isStable?j():this._ngZone.onStable.pipe((0,J.q)(1)).subscribe(j)}}let He=(()=>{class V{constructor($,he,Se){this._checker=$,this._ngZone=he,this._document=Se}create($,he=!1){return new K($,this._checker,this._ngZone,this._document,he)}}return V.\u0275fac=function($){return new($||V)(o.LFG(mt),o.LFG(o.R0b),o.LFG(c.K0))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function at(V){return 0===V.buttons||0===V.offsetX&&0===V.offsetY}function Pe(V){const j=V.touches&&V.touches[0]||V.changedTouches&&V.changedTouches[0];return!(!j||-1!==j.identifier||null!=j.radiusX&&1!==j.radiusX||null!=j.radiusY&&1!==j.radiusY)}const E=new o.OlP("cdk-input-modality-detector-options"),S={ignoreKeys:[Ce.zL,Ce.jx,Ce.b2,Ce.MW,Ce.JU]},P=(0,g.i$)({passive:!0,capture:!0});let L=(()=>{class V{constructor($,he,Se,st){this._platform=$,this._mostRecentTarget=null,this._modality=new ie.X(null),this._lastTouchMs=0,this._onKeydown=At=>{var Zt,Kt;(null===(Kt=null===(Zt=this._options)||void 0===Zt?void 0:Zt.ignoreKeys)||void 0===Kt?void 0:Kt.some(Dt=>Dt===At.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,g.sA)(At))},this._onMousedown=At=>{Date.now()-this._lastTouchMs<650||(this._modality.next(at(At)?"keyboard":"mouse"),this._mostRecentTarget=(0,g.sA)(At))},this._onTouchstart=At=>{Pe(At)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,g.sA)(At))},this._options=Object.assign(Object.assign({},S),st),this.modalityDetected=this._modality.pipe((0,le.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ke.x)()),$.isBrowser&&he.runOutsideAngular(()=>{Se.addEventListener("keydown",this._onKeydown,P),Se.addEventListener("mousedown",this._onMousedown,P),Se.addEventListener("touchstart",this._onTouchstart,P)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,P),document.removeEventListener("mousedown",this._onMousedown,P),document.removeEventListener("touchstart",this._onTouchstart,P))}}return V.\u0275fac=function($){return new($||V)(o.LFG(g.t4),o.LFG(o.R0b),o.LFG(c.K0),o.LFG(E,8))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const re=new o.OlP("liveAnnouncerElement",{providedIn:"root",factory:function be(){return null}}),Ue=new o.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ze=(()=>{class V{constructor($,he,Se,st){this._ngZone=he,this._defaultOptions=st,this._document=Se,this._liveElement=$||this._createLiveElement()}announce($,...he){const Se=this._defaultOptions;let st,At;return 1===he.length&&"number"==typeof he[0]?At=he[0]:[st,At]=he,this.clear(),clearTimeout(this._previousTimeout),st||(st=Se&&Se.politeness?Se.politeness:"polite"),null==At&&Se&&(At=Se.duration),this._liveElement.setAttribute("aria-live",st),this._ngZone.runOutsideAngular(()=>new Promise(Zt=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=$,Zt(),"number"==typeof At&&(this._previousTimeout=setTimeout(()=>this.clear(),At))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var $;clearTimeout(this._previousTimeout),null===($=this._liveElement)||void 0===$||$.remove(),this._liveElement=null}_createLiveElement(){const $="cdk-live-announcer-element",he=this._document.getElementsByClassName($),Se=this._document.createElement("div");for(let st=0;st{class V{constructor($,he,Se,st,At){this._ngZone=$,this._platform=he,this._inputModalityDetector=Se,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Y.x,this._rootNodeFocusAndBlurListener=Zt=>{const Kt=(0,g.sA)(Zt),Dt="focus"===Zt.type?this._onFocus:this._onBlur;for(let Rn=Kt;Rn;Rn=Rn.parentElement)Dt.call(this,Zt,Rn)},this._document=st,this._detectionMode=(null==At?void 0:At.detectionMode)||0}monitor($,he=!1){const Se=(0,Z.fI)($);if(!this._platform.isBrowser||1!==Se.nodeType)return(0,De.of)(null);const st=(0,g.kV)(Se)||this._getDocument(),At=this._elementInfo.get(Se);if(At)return he&&(At.checkChildren=!0),At.subject;const Zt={checkChildren:he,subject:new Y.x,rootNode:st};return this._elementInfo.set(Se,Zt),this._registerGlobalListeners(Zt),Zt.subject}stopMonitoring($){const he=(0,Z.fI)($),Se=this._elementInfo.get(he);Se&&(Se.subject.complete(),this._setClasses(he),this._elementInfo.delete(he),this._removeGlobalListeners(Se))}focusVia($,he,Se){const st=(0,Z.fI)($);st===this._getDocument().activeElement?this._getClosestElementsInfo(st).forEach(([Zt,Kt])=>this._originChanged(Zt,he,Kt)):(this._setOrigin(he),"function"==typeof st.focus&&st.focus(Se))}ngOnDestroy(){this._elementInfo.forEach(($,he)=>this.stopMonitoring(he))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin($){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch($)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch($){return 1===this._detectionMode||!!(null==$?void 0:$.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses($,he){$.classList.toggle("cdk-focused",!!he),$.classList.toggle("cdk-touch-focused","touch"===he),$.classList.toggle("cdk-keyboard-focused","keyboard"===he),$.classList.toggle("cdk-mouse-focused","mouse"===he),$.classList.toggle("cdk-program-focused","program"===he)}_setOrigin($,he=!1){this._ngZone.runOutsideAngular(()=>{this._origin=$,this._originFromTouchInteraction="touch"===$&&he,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus($,he){const Se=this._elementInfo.get(he),st=(0,g.sA)($);!Se||!Se.checkChildren&&he!==st||this._originChanged(he,this._getFocusOrigin(st),Se)}_onBlur($,he){const Se=this._elementInfo.get(he);!Se||Se.checkChildren&&$.relatedTarget instanceof Node&&he.contains($.relatedTarget)||(this._setClasses(he),this._emitOrigin(Se.subject,null))}_emitOrigin($,he){this._ngZone.run(()=>$.next(he))}_registerGlobalListeners($){if(!this._platform.isBrowser)return;const he=$.rootNode,Se=this._rootNodeFocusListenerCount.get(he)||0;Se||this._ngZone.runOutsideAngular(()=>{he.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ot),he.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ot)}),this._rootNodeFocusListenerCount.set(he,Se+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Be.R)(this._stopInputModalityDetector)).subscribe(st=>{this._setOrigin(st,!0)}))}_removeGlobalListeners($){const he=$.rootNode;if(this._rootNodeFocusListenerCount.has(he)){const Se=this._rootNodeFocusListenerCount.get(he);Se>1?this._rootNodeFocusListenerCount.set(he,Se-1):(he.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ot),he.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ot),this._rootNodeFocusListenerCount.delete(he))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged($,he,Se){this._setClasses($,he),this._emitOrigin(Se.subject,he),this._lastFocusOrigin=he}_getClosestElementsInfo($){const he=[];return this._elementInfo.forEach((Se,st)=>{(st===$||Se.checkChildren&&st.contains($))&&he.push([st,Se])}),he}}return V.\u0275fac=function($){return new($||V)(o.LFG(o.R0b),o.LFG(g.t4),o.LFG(L),o.LFG(c.K0,8),o.LFG(ct,8))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const dn="cdk-high-contrast-black-on-white",dt="cdk-high-contrast-white-on-black",vt="cdk-high-contrast-active";let Le=(()=>{class V{constructor($,he){this._platform=$,this._document=he}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const $=this._document.createElement("div");$.style.backgroundColor="rgb(1,2,3)",$.style.position="absolute",this._document.body.appendChild($);const he=this._document.defaultView||window,Se=he&&he.getComputedStyle?he.getComputedStyle($):null,st=(Se&&Se.backgroundColor||"").replace(/ /g,"");switch($.remove(),st){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const $=this._document.body.classList;$.remove(vt),$.remove(dn),$.remove(dt),this._hasCheckedHighContrastMode=!0;const he=this.getHighContrastMode();1===he?($.add(vt),$.add(dn)):2===he&&($.add(vt),$.add(dt))}}}return V.\u0275fac=function($){return new($||V)(o.LFG(g.t4),o.LFG(c.K0))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})(),we=(()=>{class V{constructor($){$._applyBodyHighContrastModeCssClasses()}}return V.\u0275fac=function($){return new($||V)(o.LFG(Le))},V.\u0275mod=o.oAB({type:V}),V.\u0275inj=o.cJS({imports:[[et.Q8]]}),V})()},226:(qe,ye,C)=>{C.d(ye,{vT:()=>ue,Is:()=>De});var c=C(4893),o=C(9808);const g=new c.OlP("cdk-dir-doc",{providedIn:"root",factory:function Y(){return(0,c.f3M)(o.K0)}}),ce=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let De=(()=>{class ee{constructor(de){if(this.value="ltr",this.change=new c.vpe,de){const le=de.documentElement?de.documentElement.dir:null;this.value=function ie(ee){const se=(null==ee?void 0:ee.toLowerCase())||"";return"auto"===se&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?ce.test(navigator.language)?"rtl":"ltr":"rtl"===se?"rtl":"ltr"}((de.body?de.body.dir:null)||le||"ltr")}}ngOnDestroy(){this.change.complete()}}return ee.\u0275fac=function(de){return new(de||ee)(c.LFG(g,8))},ee.\u0275prov=c.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),ue=(()=>{class ee{}return ee.\u0275fac=function(de){return new(de||ee)},ee.\u0275mod=c.oAB({type:ee}),ee.\u0275inj=c.cJS({}),ee})()},3191:(qe,ye,C)=>{C.d(ye,{Eq:()=>ce,Ig:()=>o,HM:()=>ie,fI:()=>De,su:()=>g});var c=C(4893);function o(ue){return null!=ue&&"false"!=`${ue}`}function g(ue,ee=0){return function Y(ue){return!isNaN(parseFloat(ue))&&!isNaN(Number(ue))}(ue)?Number(ue):ee}function ce(ue){return Array.isArray(ue)?ue:[ue]}function ie(ue){return null==ue?"":"string"==typeof ue?ue:`${ue}px`}function De(ue){return ue instanceof c.SBq?ue.nativeElement:ue}},449:(qe,ye,C)=>{C.d(ye,{Ov:()=>Ce,A8:()=>ee});var c=C(7579),o=C(4893);class Ce{constructor(J=!1,le,ke=!0){this._multiple=J,this._emitChanges=ke,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new c.x,le&&le.length&&(J?le.forEach(Be=>this._markSelected(Be)):this._markSelected(le[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...J){this._verifyValueAssignment(J),J.forEach(le=>this._markSelected(le)),this._emitChangeEvent()}deselect(...J){this._verifyValueAssignment(J),J.forEach(le=>this._unmarkSelected(le)),this._emitChangeEvent()}toggle(J){this.isSelected(J)?this.deselect(J):this.select(J)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(J){return this._selection.has(J)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(J){this._multiple&&this.selected&&this._selected.sort(J)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(J){this.isSelected(J)||(this._multiple||this._unmarkAll(),this._selection.add(J),this._emitChanges&&this._selectedToEmit.push(J))}_unmarkSelected(J){this.isSelected(J)&&(this._selection.delete(J),this._emitChanges&&this._deselectedToEmit.push(J))}_unmarkAll(){this.isEmpty()||this._selection.forEach(J=>this._unmarkSelected(J))}_verifyValueAssignment(J){}}let ee=(()=>{class de{constructor(){this._listeners=[]}notify(le,ke){for(let Be of this._listeners)Be(le,ke)}listen(le){return this._listeners.push(le),()=>{this._listeners=this._listeners.filter(ke=>le!==ke)}}ngOnDestroy(){this._listeners=[]}}return de.\u0275fac=function(le){return new(le||de)},de.\u0275prov=o.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})()},1159:(qe,ye,C)=>{C.d(ye,{A:()=>Pt,zL:()=>Ce,jx:()=>De,JH:()=>Qe,uR:()=>ke,K5:()=>ce,hY:()=>se,Sd:()=>Be,oh:()=>Z,b2:()=>Jn,MW:()=>ze,aO:()=>mt,SV:()=>Ye,JU:()=>ie,L_:()=>de,Mf:()=>g,LH:()=>et,Z:()=>Ue,xE:()=>Te,Vb:()=>Si});const g=9,ce=13,ie=16,De=17,Ce=18,se=27,de=32,ke=35,Be=36,Z=37,et=38,Ye=39,Qe=40,Te=48,mt=57,Pt=65,Ue=90,ze=91,Jn=224;function Si(Gn,...gn){return gn.length?gn.some(di=>Gn[di]):Gn.altKey||Gn.shiftKey||Gn.ctrlKey||Gn.metaKey}},7144:(qe,ye,C)=>{C.d(ye,{wD:()=>Ce,Q8:()=>ue});var c=C(3191),o=C(4893),g=C(8306),Y=C(7579),ce=C(8372);let ie=(()=>{class ee{create(de){return"undefined"==typeof MutationObserver?null:new MutationObserver(de)}}return ee.\u0275fac=function(de){return new(de||ee)},ee.\u0275prov=o.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),De=(()=>{class ee{constructor(de){this._mutationObserverFactory=de,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((de,J)=>this._cleanupObserver(J))}observe(de){const J=(0,c.fI)(de);return new g.y(le=>{const Be=this._observeElement(J).subscribe(le);return()=>{Be.unsubscribe(),this._unobserveElement(J)}})}_observeElement(de){if(this._observedElements.has(de))this._observedElements.get(de).count++;else{const J=new Y.x,le=this._mutationObserverFactory.create(ke=>J.next(ke));le&&le.observe(de,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(de,{observer:le,stream:J,count:1})}return this._observedElements.get(de).stream}_unobserveElement(de){this._observedElements.has(de)&&(this._observedElements.get(de).count--,this._observedElements.get(de).count||this._cleanupObserver(de))}_cleanupObserver(de){if(this._observedElements.has(de)){const{observer:J,stream:le}=this._observedElements.get(de);J&&J.disconnect(),le.complete(),this._observedElements.delete(de)}}}return ee.\u0275fac=function(de){return new(de||ee)(o.LFG(ie))},ee.\u0275prov=o.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),Ce=(()=>{class ee{constructor(de,J,le){this._contentObserver=de,this._elementRef=J,this._ngZone=le,this.event=new o.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(de){this._disabled=(0,c.Ig)(de),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(de){this._debounce=(0,c.su)(de),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const de=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?de.pipe((0,ce.b)(this.debounce)):de).subscribe(this.event)})}_unsubscribe(){var de;null===(de=this._currentSubscription)||void 0===de||de.unsubscribe()}}return ee.\u0275fac=function(de){return new(de||ee)(o.Y36(De),o.Y36(o.SBq),o.Y36(o.R0b))},ee.\u0275dir=o.lG2({type:ee,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),ee})(),ue=(()=>{class ee{}return ee.\u0275fac=function(de){return new(de||ee)},ee.\u0275mod=o.oAB({type:ee}),ee.\u0275inj=o.cJS({providers:[ie]}),ee})()},9776:(qe,ye,C)=>{C.d(ye,{pI:()=>St,xu:()=>lt,aV:()=>K,X_:()=>Ne,Xj:()=>Ct,U8:()=>Nt});var c=C(495),o=C(9808),g=C(4893),Y=C(3191),ce=C(925),ie=C(226),De=C(7429),Ce=C(7579),ue=C(727),ee=C(6451),se=C(4482),de=C(5403),le=C(5698),ke=C(2722),Be=C(1159);const Z=(0,ce.Mq)();class et{constructor(E,S){this._viewportRuler=E,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=S}attach(){}enable(){if(this._canBeEnabled()){const E=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=E.style.left||"",this._previousHTMLStyles.top=E.style.top||"",E.style.left=(0,Y.HM)(-this._previousScrollPosition.left),E.style.top=(0,Y.HM)(-this._previousScrollPosition.top),E.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const E=this._document.documentElement,D=E.style,P=this._document.body.style,L=D.scrollBehavior||"",re=P.scrollBehavior||"";this._isEnabled=!1,D.left=this._previousHTMLStyles.left,D.top=this._previousHTMLStyles.top,E.classList.remove("cdk-global-scrollblock"),Z&&(D.scrollBehavior=P.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Z&&(D.scrollBehavior=L,P.scrollBehavior=re)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const S=this._document.body,D=this._viewportRuler.getViewportSize();return S.scrollHeight>D.height||S.scrollWidth>D.width}}class Qe{constructor(E,S,D,P){this._scrollDispatcher=E,this._ngZone=S,this._viewportRuler=D,this._config=P,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(E){this._overlayRef=E}enable(){if(this._scrollSubscription)return;const E=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=E.subscribe(()=>{const S=this._viewportRuler.getViewportScrollPosition().top;Math.abs(S-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=E.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class me{enable(){}disable(){}attach(){}}function z(Pe,E){return E.some(S=>Pe.bottomS.bottom||Pe.rightS.right)}function q(Pe,E){return E.some(S=>Pe.topS.bottom||Pe.leftS.right)}class pe{constructor(E,S,D,P){this._scrollDispatcher=E,this._viewportRuler=S,this._ngZone=D,this._config=P,this._scrollSubscription=null}attach(E){this._overlayRef=E}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const S=this._overlayRef.overlayElement.getBoundingClientRect(),{width:D,height:P}=this._viewportRuler.getViewportSize();z(S,[{width:D,height:P,bottom:P,right:D,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Te=(()=>{class Pe{constructor(S,D,P,L){this._scrollDispatcher=S,this._viewportRuler=D,this._ngZone=P,this.noop=()=>new me,this.close=re=>new Qe(this._scrollDispatcher,this._ngZone,this._viewportRuler,re),this.block=()=>new et(this._viewportRuler,this._document),this.reposition=re=>new pe(this._scrollDispatcher,this._viewportRuler,this._ngZone,re),this._document=L}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(c.mF),g.LFG(c.rL),g.LFG(g.R0b),g.LFG(o.K0))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();class Ne{constructor(E){if(this.scrollStrategy=new me,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,E){const S=Object.keys(E);for(const D of S)void 0!==E[D]&&(this[D]=E[D])}}}class xe{constructor(E,S){this.connectionPair=E,this.scrollableViewProperties=S}}class Fe{constructor(E,S,D,P,L,re,be,Ue,ze){this._portalOutlet=E,this._host=S,this._pane=D,this._config=P,this._ngZone=L,this._keyboardDispatcher=re,this._document=be,this._location=Ue,this._outsideClickDispatcher=ze,this._backdropElement=null,this._backdropClick=new Ce.x,this._attachments=new Ce.x,this._detachments=new Ce.x,this._locationChanges=ue.w0.EMPTY,this._backdropClickHandler=_t=>this._backdropClick.next(_t),this._keydownEvents=new Ce.x,this._outsidePointerEvents=new Ce.x,P.scrollStrategy&&(this._scrollStrategy=P.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=P.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(E){let S=this._portalOutlet.attach(E);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,le.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),S}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const E=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),E}dispose(){var E;const S=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(E=this._host)||void 0===E||E.remove(),this._previousHostParent=this._pane=this._host=null,S&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(E){E!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=E,this.hasAttached()&&(E.attach(this),this.updatePosition()))}updateSize(E){this._config=Object.assign(Object.assign({},this._config),E),this._updateElementSize()}setDirection(E){this._config=Object.assign(Object.assign({},this._config),{direction:E}),this._updateElementDirection()}addPanelClass(E){this._pane&&this._toggleClasses(this._pane,E,!0)}removePanelClass(E){this._pane&&this._toggleClasses(this._pane,E,!1)}getDirection(){const E=this._config.direction;return E?"string"==typeof E?E:E.value:"ltr"}updateScrollStrategy(E){E!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=E,this.hasAttached()&&(E.attach(this),E.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const E=this._pane.style;E.width=(0,Y.HM)(this._config.width),E.height=(0,Y.HM)(this._config.height),E.minWidth=(0,Y.HM)(this._config.minWidth),E.minHeight=(0,Y.HM)(this._config.minHeight),E.maxWidth=(0,Y.HM)(this._config.maxWidth),E.maxHeight=(0,Y.HM)(this._config.maxHeight)}_togglePointerEvents(E){this._pane.style.pointerEvents=E?"":"none"}_attachBackdrop(){const E="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(E)})}):this._backdropElement.classList.add(E)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const E=this._backdropElement;if(!E)return;let S;const D=()=>{E&&(E.removeEventListener("click",this._backdropClickHandler),E.removeEventListener("transitionend",D),this._disposeBackdrop(E)),this._config.backdropClass&&this._toggleClasses(E,this._config.backdropClass,!1),clearTimeout(S)};E.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{E.addEventListener("transitionend",D)}),E.style.pointerEvents="none",S=this._ngZone.runOutsideAngular(()=>setTimeout(D,500))}_toggleClasses(E,S,D){const P=(0,Y.Eq)(S||[]).filter(L=>!!L);P.length&&(D?E.classList.add(...P):E.classList.remove(...P))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const E=this._ngZone.onStable.pipe((0,ke.R)((0,ee.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),E.unsubscribe())})})}_disposeScrollStrategy(){const E=this._scrollStrategy;E&&(E.disable(),E.detach&&E.detach())}_disposeBackdrop(E){E&&(E.remove(),this._backdropElement===E&&(this._backdropElement=null))}}let Ct=(()=>{class Pe{constructor(S,D){this._platform=D,this._document=S}ngOnDestroy(){var S;null===(S=this._containerElement)||void 0===S||S.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const S="cdk-overlay-container";if(this._platform.isBrowser||(0,ce.Oy)()){const P=this._document.querySelectorAll(`.${S}[platform="server"], .${S}[platform="test"]`);for(let L=0;L{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const E=this._originRect,S=this._overlayRect,D=this._viewportRect,P=this._containerRect,L=[];let re;for(let be of this._preferredPositions){let Ue=this._getOriginPoint(E,P,be),ze=this._getOverlayPoint(Ue,S,be),_t=this._getOverlayFit(ze,S,D,be);if(_t.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(be,Ue);this._canFitWithFlexibleDimensions(_t,ze,D)?L.push({position:be,origin:Ue,overlayRect:S,boundingBoxRect:this._calculateBoundingBoxRect(Ue,be)}):(!re||re.overlayFit.visibleArea<_t.visibleArea)&&(re={overlayFit:_t,overlayPoint:ze,originPoint:Ue,position:be,overlayRect:S})}if(L.length){let be=null,Ue=-1;for(const ze of L){const _t=ze.boundingBoxRect.width*ze.boundingBoxRect.height*(ze.position.weight||1);_t>Ue&&(Ue=_t,be=ze)}return this._isPushed=!1,void this._applyPosition(be.position,be.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(re.position,re.originPoint);this._applyPosition(re.position,re.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Rt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(mt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const E=this._lastPosition;if(E){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const S=this._getOriginPoint(this._originRect,this._containerRect,E);this._applyPosition(E,S)}else this.apply()}withScrollableContainers(E){return this._scrollables=E,this}withPositions(E){return this._preferredPositions=E,-1===E.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(E){return this._viewportMargin=E,this}withFlexibleDimensions(E=!0){return this._hasFlexibleDimensions=E,this}withGrowAfterOpen(E=!0){return this._growAfterOpen=E,this}withPush(E=!0){return this._canPush=E,this}withLockedPosition(E=!0){return this._positionLocked=E,this}setOrigin(E){return this._origin=E,this}withDefaultOffsetX(E){return this._offsetX=E,this}withDefaultOffsetY(E){return this._offsetY=E,this}withTransformOriginOn(E){return this._transformOriginSelector=E,this}_getOriginPoint(E,S,D){let P,L;if("center"==D.originX)P=E.left+E.width/2;else{const re=this._isRtl()?E.right:E.left,be=this._isRtl()?E.left:E.right;P="start"==D.originX?re:be}return S.left<0&&(P-=S.left),L="center"==D.originY?E.top+E.height/2:"top"==D.originY?E.top:E.bottom,S.top<0&&(L-=S.top),{x:P,y:L}}_getOverlayPoint(E,S,D){let P,L;return P="center"==D.overlayX?-S.width/2:"start"===D.overlayX?this._isRtl()?-S.width:0:this._isRtl()?0:-S.width,L="center"==D.overlayY?-S.height/2:"top"==D.overlayY?0:-S.height,{x:E.x+P,y:E.y+L}}_getOverlayFit(E,S,D,P){const L=Pt(S);let{x:re,y:be}=E,Ue=this._getOffset(P,"x"),ze=this._getOffset(P,"y");Ue&&(re+=Ue),ze&&(be+=ze);let Ot=0-be,nn=be+L.height-D.height,Yt=this._subtractOverflows(L.width,0-re,re+L.width-D.width),dn=this._subtractOverflows(L.height,Ot,nn),dt=Yt*dn;return{visibleArea:dt,isCompletelyWithinViewport:L.width*L.height===dt,fitsInViewportVertically:dn===L.height,fitsInViewportHorizontally:Yt==L.width}}_canFitWithFlexibleDimensions(E,S,D){if(this._hasFlexibleDimensions){const P=D.bottom-S.y,L=D.right-S.x,re=Wt(this._overlayRef.getConfig().minHeight),be=Wt(this._overlayRef.getConfig().minWidth),ze=E.fitsInViewportHorizontally||null!=be&&be<=L;return(E.fitsInViewportVertically||null!=re&&re<=P)&&ze}return!1}_pushOverlayOnScreen(E,S,D){if(this._previousPushAmount&&this._positionLocked)return{x:E.x+this._previousPushAmount.x,y:E.y+this._previousPushAmount.y};const P=Pt(S),L=this._viewportRect,re=Math.max(E.x+P.width-L.width,0),be=Math.max(E.y+P.height-L.height,0),Ue=Math.max(L.top-D.top-E.y,0),ze=Math.max(L.left-D.left-E.x,0);let _t=0,ct=0;return _t=P.width<=L.width?ze||-re:E.xYt&&!this._isInitialRender&&!this._growAfterOpen&&(re=E.y-Yt/2)}if("end"===S.overlayX&&!P||"start"===S.overlayX&&P)Ot=D.width-E.x+this._viewportMargin,_t=E.x-this._viewportMargin;else if("start"===S.overlayX&&!P||"end"===S.overlayX&&P)ct=E.x,_t=D.right-E.x;else{const nn=Math.min(D.right-E.x+D.left,E.x),Yt=this._lastBoundingBoxSize.width;_t=2*nn,ct=E.x-nn,_t>Yt&&!this._isInitialRender&&!this._growAfterOpen&&(ct=E.x-Yt/2)}return{top:re,left:ct,bottom:be,right:Ot,width:_t,height:L}}_setBoundingBoxStyles(E,S){const D=this._calculateBoundingBoxRect(E,S);!this._isInitialRender&&!this._growAfterOpen&&(D.height=Math.min(D.height,this._lastBoundingBoxSize.height),D.width=Math.min(D.width,this._lastBoundingBoxSize.width));const P={};if(this._hasExactPosition())P.top=P.left="0",P.bottom=P.right=P.maxHeight=P.maxWidth="",P.width=P.height="100%";else{const L=this._overlayRef.getConfig().maxHeight,re=this._overlayRef.getConfig().maxWidth;P.height=(0,Y.HM)(D.height),P.top=(0,Y.HM)(D.top),P.bottom=(0,Y.HM)(D.bottom),P.width=(0,Y.HM)(D.width),P.left=(0,Y.HM)(D.left),P.right=(0,Y.HM)(D.right),P.alignItems="center"===S.overlayX?"center":"end"===S.overlayX?"flex-end":"flex-start",P.justifyContent="center"===S.overlayY?"center":"bottom"===S.overlayY?"flex-end":"flex-start",L&&(P.maxHeight=(0,Y.HM)(L)),re&&(P.maxWidth=(0,Y.HM)(re))}this._lastBoundingBoxSize=D,Rt(this._boundingBox.style,P)}_resetBoundingBoxStyles(){Rt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Rt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(E,S){const D={},P=this._hasExactPosition(),L=this._hasFlexibleDimensions,re=this._overlayRef.getConfig();if(P){const _t=this._viewportRuler.getViewportScrollPosition();Rt(D,this._getExactOverlayY(S,E,_t)),Rt(D,this._getExactOverlayX(S,E,_t))}else D.position="static";let be="",Ue=this._getOffset(S,"x"),ze=this._getOffset(S,"y");Ue&&(be+=`translateX(${Ue}px) `),ze&&(be+=`translateY(${ze}px)`),D.transform=be.trim(),re.maxHeight&&(P?D.maxHeight=(0,Y.HM)(re.maxHeight):L&&(D.maxHeight="")),re.maxWidth&&(P?D.maxWidth=(0,Y.HM)(re.maxWidth):L&&(D.maxWidth="")),Rt(this._pane.style,D)}_getExactOverlayY(E,S,D){let P={top:"",bottom:""},L=this._getOverlayPoint(S,this._overlayRect,E);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,D)),"bottom"===E.overlayY?P.bottom=this._document.documentElement.clientHeight-(L.y+this._overlayRect.height)+"px":P.top=(0,Y.HM)(L.y),P}_getExactOverlayX(E,S,D){let re,P={left:"",right:""},L=this._getOverlayPoint(S,this._overlayRect,E);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,D)),re=this._isRtl()?"end"===E.overlayX?"left":"right":"end"===E.overlayX?"right":"left","right"===re?P.right=this._document.documentElement.clientWidth-(L.x+this._overlayRect.width)+"px":P.left=(0,Y.HM)(L.x),P}_getScrollVisibility(){const E=this._getOriginRect(),S=this._pane.getBoundingClientRect(),D=this._scrollables.map(P=>P.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:q(E,D),isOriginOutsideView:z(E,D),isOverlayClipped:q(S,D),isOverlayOutsideView:z(S,D)}}_subtractOverflows(E,...S){return S.reduce((D,P)=>D-Math.max(P,0),E)}_getNarrowedViewportRect(){const E=this._document.documentElement.clientWidth,S=this._document.documentElement.clientHeight,D=this._viewportRuler.getViewportScrollPosition();return{top:D.top+this._viewportMargin,left:D.left+this._viewportMargin,right:D.left+E-this._viewportMargin,bottom:D.top+S-this._viewportMargin,width:E-2*this._viewportMargin,height:S-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(E,S){return"x"===S?null==E.offsetX?this._offsetX:E.offsetX:null==E.offsetY?this._offsetY:E.offsetY}_validatePositions(){}_addPanelClasses(E){this._pane&&(0,Y.Eq)(E).forEach(S=>{""!==S&&-1===this._appliedPanelClasses.indexOf(S)&&(this._appliedPanelClasses.push(S),this._pane.classList.add(S))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(E=>{this._pane.classList.remove(E)}),this._appliedPanelClasses=[])}_getOriginRect(){const E=this._origin;if(E instanceof g.SBq)return E.nativeElement.getBoundingClientRect();if(E instanceof Element)return E.getBoundingClientRect();const S=E.width||0,D=E.height||0;return{top:E.y,bottom:E.y+D,left:E.x,right:E.x+S,height:D,width:S}}}function Rt(Pe,E){for(let S in E)E.hasOwnProperty(S)&&(Pe[S]=E[S]);return Pe}function Wt(Pe){if("number"!=typeof Pe&&null!=Pe){const[E,S]=Pe.split(Jt);return S&&"px"!==S?null:parseFloat(E)}return Pe||null}function Pt(Pe){return{top:Math.floor(Pe.top),right:Math.floor(Pe.right),bottom:Math.floor(Pe.bottom),left:Math.floor(Pe.left),width:Math.floor(Pe.width),height:Math.floor(Pe.height)}}const mn="cdk-global-overlay-wrapper";class Ut{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(E){const S=E.getConfig();this._overlayRef=E,this._width&&!S.width&&E.updateSize({width:this._width}),this._height&&!S.height&&E.updateSize({height:this._height}),E.hostElement.classList.add(mn),this._isDisposed=!1}top(E=""){return this._bottomOffset="",this._topOffset=E,this._alignItems="flex-start",this}left(E=""){return this._rightOffset="",this._leftOffset=E,this._justifyContent="flex-start",this}bottom(E=""){return this._topOffset="",this._bottomOffset=E,this._alignItems="flex-end",this}right(E=""){return this._leftOffset="",this._rightOffset=E,this._justifyContent="flex-end",this}width(E=""){return this._overlayRef?this._overlayRef.updateSize({width:E}):this._width=E,this}height(E=""){return this._overlayRef?this._overlayRef.updateSize({height:E}):this._height=E,this}centerHorizontally(E=""){return this.left(E),this._justifyContent="center",this}centerVertically(E=""){return this.top(E),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const E=this._overlayRef.overlayElement.style,S=this._overlayRef.hostElement.style,D=this._overlayRef.getConfig(),{width:P,height:L,maxWidth:re,maxHeight:be}=D,Ue=!("100%"!==P&&"100vw"!==P||re&&"100%"!==re&&"100vw"!==re),ze=!("100%"!==L&&"100vh"!==L||be&&"100%"!==be&&"100vh"!==be);E.position=this._cssPosition,E.marginLeft=Ue?"0":this._leftOffset,E.marginTop=ze?"0":this._topOffset,E.marginBottom=this._bottomOffset,E.marginRight=this._rightOffset,Ue?S.justifyContent="flex-start":"center"===this._justifyContent?S.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?S.justifyContent="flex-end":"flex-end"===this._justifyContent&&(S.justifyContent="flex-start"):S.justifyContent=this._justifyContent,S.alignItems=ze?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const E=this._overlayRef.overlayElement.style,S=this._overlayRef.hostElement,D=S.style;S.classList.remove(mn),D.justifyContent=D.alignItems=E.marginTop=E.marginBottom=E.marginLeft=E.marginRight=E.position="",this._overlayRef=null,this._isDisposed=!0}}let xt=(()=>{class Pe{constructor(S,D,P,L){this._viewportRuler=S,this._document=D,this._platform=P,this._overlayContainer=L}global(){return new Ut}flexibleConnectedTo(S){return new yt(S,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(c.rL),g.LFG(o.K0),g.LFG(ce.t4),g.LFG(Ct))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),on=(()=>{class Pe{constructor(S){this._attachedOverlays=[],this._document=S}ngOnDestroy(){this.detach()}add(S){this.remove(S),this._attachedOverlays.push(S)}remove(S){const D=this._attachedOverlays.indexOf(S);D>-1&&this._attachedOverlays.splice(D,1),0===this._attachedOverlays.length&&this.detach()}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(o.K0))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Xe=(()=>{class Pe extends on{constructor(S,D){super(S),this._ngZone=D,this._keydownListener=P=>{const L=this._attachedOverlays;for(let re=L.length-1;re>-1;re--)if(L[re]._keydownEvents.observers.length>0){const be=L[re]._keydownEvents;this._ngZone?this._ngZone.run(()=>be.next(P)):be.next(P);break}}}add(S){super.add(S),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(o.K0),g.LFG(g.R0b,8))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),je=(()=>{class Pe extends on{constructor(S,D,P){super(S),this._platform=D,this._ngZone=P,this._cursorStyleIsSet=!1,this._pointerDownListener=L=>{this._pointerDownEventTarget=(0,ce.sA)(L)},this._clickListener=L=>{const re=(0,ce.sA)(L),be="click"===L.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:re;this._pointerDownEventTarget=null;const Ue=this._attachedOverlays.slice();for(let ze=Ue.length-1;ze>-1;ze--){const _t=Ue[ze];if(_t._outsidePointerEvents.observers.length<1||!_t.hasAttached())continue;if(_t.overlayElement.contains(re)||_t.overlayElement.contains(be))break;const ct=_t._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ct.next(L)):ct.next(L)}}}add(S){if(super.add(S),!this._isAttached){const D=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(D)):this._addEventListeners(D),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=D.style.cursor,D.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const S=this._document.body;S.removeEventListener("pointerdown",this._pointerDownListener,!0),S.removeEventListener("click",this._clickListener,!0),S.removeEventListener("auxclick",this._clickListener,!0),S.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(S.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(S){S.addEventListener("pointerdown",this._pointerDownListener,!0),S.addEventListener("click",this._clickListener,!0),S.addEventListener("auxclick",this._clickListener,!0),S.addEventListener("contextmenu",this._clickListener,!0)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(o.K0),g.LFG(ce.t4),g.LFG(g.R0b,8))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Q=0,K=(()=>{class Pe{constructor(S,D,P,L,re,be,Ue,ze,_t,ct,Ot){this.scrollStrategies=S,this._overlayContainer=D,this._componentFactoryResolver=P,this._positionBuilder=L,this._keyboardDispatcher=re,this._injector=be,this._ngZone=Ue,this._document=ze,this._directionality=_t,this._location=ct,this._outsideClickDispatcher=Ot}create(S){const D=this._createHostElement(),P=this._createPaneElement(D),L=this._createPortalOutlet(P),re=new Ne(S);return re.direction=re.direction||this._directionality.value,new Fe(L,D,P,re,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(S){const D=this._document.createElement("div");return D.id="cdk-overlay-"+Q++,D.classList.add("cdk-overlay-pane"),S.appendChild(D),D}_createHostElement(){const S=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(S),S}_createPortalOutlet(S){return this._appRef||(this._appRef=this._injector.get(g.z2F)),new De.u0(S,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(Te),g.LFG(Ct),g.LFG(g._Vd),g.LFG(xt),g.LFG(Xe),g.LFG(g.zs3),g.LFG(g.R0b),g.LFG(o.K0),g.LFG(ie.Is),g.LFG(o.Ye),g.LFG(je))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const He=[{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"}],Ge=new g.OlP("cdk-connected-overlay-scroll-strategy");let lt=(()=>{class Pe{constructor(S){this.elementRef=S}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.Y36(g.SBq))},Pe.\u0275dir=g.lG2({type:Pe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Pe})(),St=(()=>{class Pe{constructor(S,D,P,L,re){this._overlay=S,this._dir=re,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=ue.w0.EMPTY,this._attachSubscription=ue.w0.EMPTY,this._detachSubscription=ue.w0.EMPTY,this._positionSubscription=ue.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new g.vpe,this.positionChange=new g.vpe,this.attach=new g.vpe,this.detach=new g.vpe,this.overlayKeydown=new g.vpe,this.overlayOutsideClick=new g.vpe,this._templatePortal=new De.UE(D,P),this._scrollStrategyFactory=L,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(S){this._offsetX=S,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(S){this._offsetY=S,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(S){this._hasBackdrop=(0,Y.Ig)(S)}get lockPosition(){return this._lockPosition}set lockPosition(S){this._lockPosition=(0,Y.Ig)(S)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(S){this._flexibleDimensions=(0,Y.Ig)(S)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(S){this._growAfterOpen=(0,Y.Ig)(S)}get push(){return this._push}set push(S){this._push=(0,Y.Ig)(S)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(S){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),S.origin&&this.open&&this._position.apply()),S.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=He);const S=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=S.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=S.detachments().subscribe(()=>this.detach.emit()),S.keydownEvents().subscribe(D=>{this.overlayKeydown.next(D),D.keyCode===Be.hY&&!this.disableClose&&!(0,Be.Vb)(D)&&(D.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(D=>{this.overlayOutsideClick.next(D)})}_buildConfig(){const S=this._position=this.positionStrategy||this._createPositionStrategy(),D=new Ne({direction:this._dir,positionStrategy:S,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(D.width=this.width),(this.height||0===this.height)&&(D.height=this.height),(this.minWidth||0===this.minWidth)&&(D.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(D.minHeight=this.minHeight),this.backdropClass&&(D.backdropClass=this.backdropClass),this.panelClass&&(D.panelClass=this.panelClass),D}_updatePositionStrategy(S){const D=this.positions.map(P=>({originX:P.originX,originY:P.originY,overlayX:P.overlayX,overlayY:P.overlayY,offsetX:P.offsetX||this.offsetX,offsetY:P.offsetY||this.offsetY,panelClass:P.panelClass||void 0}));return S.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(D).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const S=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(S),S}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof lt?this.origin.elementRef:this.origin}_attachOverlay(){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(S=>{this.backdropClick.emit(S)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function J(Pe,E=!1){return(0,se.e)((S,D)=>{let P=0;S.subscribe((0,de.x)(D,L=>{const re=Pe(L,P++);(re||E)&&D.next(L),!re&&D.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(S=>{this.positionChange.emit(S),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.Y36(K),g.Y36(g.Rgc),g.Y36(g.s_b),g.Y36(Ge),g.Y36(ie.Is,8))},Pe.\u0275dir=g.lG2({type:Pe,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:[g.TTD]}),Pe})();const bt={provide:Ge,deps:[K],useFactory:function Ht(Pe){return()=>Pe.scrollStrategies.reposition()}};let Nt=(()=>{class Pe{}return Pe.\u0275fac=function(S){return new(S||Pe)},Pe.\u0275mod=g.oAB({type:Pe}),Pe.\u0275inj=g.cJS({providers:[K,bt],imports:[[ie.vT,De.eL,c.Cl],c.Cl]}),Pe})()},925:(qe,ye,C)=>{C.d(ye,{t4:()=>Y,sA:()=>Qe,ht:()=>Ye,kV:()=>et,Oy:()=>me,qK:()=>Ce,i$:()=>se,Mq:()=>le});var c=C(4893),o=C(9808);let g;try{g="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(z){g=!1}let ie,Y=(()=>{class z{constructor(pe){this._platformId=pe,this.isBrowser=this._platformId?(0,o.NF)(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&&!g)&&"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 z.\u0275fac=function(pe){return new(pe||z)(c.LFG(c.Lbi))},z.\u0275prov=c.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();const De=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ce(){if(ie)return ie;if("object"!=typeof document||!document)return ie=new Set(De),ie;let z=document.createElement("input");return ie=new Set(De.filter(q=>(z.setAttribute("type",q),z.type===q))),ie}let ue,J,Be;function se(z){return function ee(){if(null==ue&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ue=!0}))}finally{ue=ue||!1}return ue}()?z:!!z.capture}function le(){if(null==J){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return J=!1,J;if("scrollBehavior"in document.documentElement.style)J=!0;else{const z=Element.prototype.scrollTo;J=!!z&&!/\{\s*\[native code\]\s*\}/.test(z.toString())}}return J}function et(z){if(function Z(){if(null==Be){const z="undefined"!=typeof document?document.head:null;Be=!(!z||!z.createShadowRoot&&!z.attachShadow)}return Be}()){const q=z.getRootNode?z.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&q instanceof ShadowRoot)return q}return null}function Ye(){let z="undefined"!=typeof document&&document?document.activeElement:null;for(;z&&z.shadowRoot;){const q=z.shadowRoot.activeElement;if(q===z)break;z=q}return z}function Qe(z){return z.composedPath?z.composedPath()[0]:z.target}function me(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(qe,ye,C)=>{C.d(ye,{en:()=>J,Pl:()=>Ye,C5:()=>ee,u0:()=>ke,eL:()=>me,UE:()=>se});var c=C(4893),o=C(9808);class ue{attach(pe){return this._attachedHost=pe,pe.attach(this)}detach(){let pe=this._attachedHost;null!=pe&&(this._attachedHost=null,pe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(pe){this._attachedHost=pe}}class ee extends ue{constructor(pe,Te,Ne,ve){super(),this.component=pe,this.viewContainerRef=Te,this.injector=Ne,this.componentFactoryResolver=ve}}class se extends ue{constructor(pe,Te,Ne){super(),this.templateRef=pe,this.viewContainerRef=Te,this.context=Ne}get origin(){return this.templateRef.elementRef}attach(pe,Te=this.context){return this.context=Te,super.attach(pe)}detach(){return this.context=void 0,super.detach()}}class de extends ue{constructor(pe){super(),this.element=pe instanceof c.SBq?pe.nativeElement:pe}}class J{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(pe){return pe instanceof ee?(this._attachedPortal=pe,this.attachComponentPortal(pe)):pe instanceof se?(this._attachedPortal=pe,this.attachTemplatePortal(pe)):this.attachDomPortal&&pe instanceof de?(this._attachedPortal=pe,this.attachDomPortal(pe)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(pe){this._disposeFn=pe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ke extends J{constructor(pe,Te,Ne,ve,Me){super(),this.outletElement=pe,this._componentFactoryResolver=Te,this._appRef=Ne,this._defaultInjector=ve,this.attachDomPortal=xe=>{const Ae=xe.element,tt=this._document.createComment("dom-portal");Ae.parentNode.insertBefore(tt,Ae),this.outletElement.appendChild(Ae),this._attachedPortal=xe,super.setDisposeFn(()=>{tt.parentNode&&tt.parentNode.replaceChild(Ae,tt)})},this._document=Me}attachComponentPortal(pe){const Ne=(pe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(pe.component);let ve;return pe.viewContainerRef?(ve=pe.viewContainerRef.createComponent(Ne,pe.viewContainerRef.length,pe.injector||pe.viewContainerRef.injector),this.setDisposeFn(()=>ve.destroy())):(ve=Ne.create(pe.injector||this._defaultInjector),this._appRef.attachView(ve.hostView),this.setDisposeFn(()=>{this._appRef.detachView(ve.hostView),ve.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ve)),this._attachedPortal=pe,ve}attachTemplatePortal(pe){let Te=pe.viewContainerRef,Ne=Te.createEmbeddedView(pe.templateRef,pe.context);return Ne.rootNodes.forEach(ve=>this.outletElement.appendChild(ve)),Ne.detectChanges(),this.setDisposeFn(()=>{let ve=Te.indexOf(Ne);-1!==ve&&Te.remove(ve)}),this._attachedPortal=pe,Ne}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(pe){return pe.hostView.rootNodes[0]}}let Ye=(()=>{class q extends J{constructor(Te,Ne,ve){super(),this._componentFactoryResolver=Te,this._viewContainerRef=Ne,this._isInitialized=!1,this.attached=new c.vpe,this.attachDomPortal=Me=>{const xe=Me.element,Ae=this._document.createComment("dom-portal");Me.setAttachedHost(this),xe.parentNode.insertBefore(Ae,xe),this._getRootNode().appendChild(xe),this._attachedPortal=Me,super.setDisposeFn(()=>{Ae.parentNode&&Ae.parentNode.replaceChild(xe,Ae)})},this._document=ve}get portal(){return this._attachedPortal}set portal(Te){this.hasAttached()&&!Te&&!this._isInitialized||(this.hasAttached()&&super.detach(),Te&&super.attach(Te),this._attachedPortal=Te||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Te){Te.setAttachedHost(this);const Ne=null!=Te.viewContainerRef?Te.viewContainerRef:this._viewContainerRef,Me=(Te.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Te.component),xe=Ne.createComponent(Me,Ne.length,Te.injector||Ne.injector);return Ne!==this._viewContainerRef&&this._getRootNode().appendChild(xe.hostView.rootNodes[0]),super.setDisposeFn(()=>xe.destroy()),this._attachedPortal=Te,this._attachedRef=xe,this.attached.emit(xe),xe}attachTemplatePortal(Te){Te.setAttachedHost(this);const Ne=this._viewContainerRef.createEmbeddedView(Te.templateRef,Te.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Te,this._attachedRef=Ne,this.attached.emit(Ne),Ne}_getRootNode(){const Te=this._viewContainerRef.element.nativeElement;return Te.nodeType===Te.ELEMENT_NODE?Te:Te.parentNode}}return q.\u0275fac=function(Te){return new(Te||q)(c.Y36(c._Vd),c.Y36(c.s_b),c.Y36(o.K0))},q.\u0275dir=c.lG2({type:q,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[c.qOj]}),q})(),me=(()=>{class q{}return q.\u0275fac=function(Te){return new(Te||q)},q.\u0275mod=c.oAB({type:q}),q.\u0275inj=c.cJS({}),q})()},495:(qe,ye,C)=>{C.d(ye,{ZD:()=>on,mF:()=>mt,Cl:()=>Xe,rL:()=>Rt});var c=C(3191),o=C(4893),g=C(4408),Y=C(727);const ce={schedule(je){let Q=requestAnimationFrame,K=cancelAnimationFrame;const{delegate:He}=ce;He&&(Q=He.requestAnimationFrame,K=He.cancelAnimationFrame);const Ge=Q(lt=>{K=void 0,je(lt)});return new Y.w0(()=>null==K?void 0:K(Ge))},requestAnimationFrame(...je){const{delegate:Q}=ce;return((null==Q?void 0:Q.requestAnimationFrame)||requestAnimationFrame)(...je)},cancelAnimationFrame(...je){const{delegate:Q}=ce;return((null==Q?void 0:Q.cancelAnimationFrame)||cancelAnimationFrame)(...je)},delegate:void 0};var De=C(640);new class Ce extends De.v{flush(Q){this._active=!0;const K=this._scheduled;this._scheduled=void 0;const{actions:He}=this;let Ge;Q=Q||He.shift();do{if(Ge=Q.execute(Q.state,Q.delay))break}while((Q=He[0])&&Q.id===K&&He.shift());if(this._active=!1,Ge){for(;(Q=He[0])&&Q.id===K&&He.shift();)Q.unsubscribe();throw Ge}}}(class ie extends g.o{constructor(Q,K){super(Q,K),this.scheduler=Q,this.work=K}requestAsyncId(Q,K,He=0){return null!==He&&He>0?super.requestAsyncId(Q,K,He):(Q.actions.push(this),Q._scheduled||(Q._scheduled=ce.requestAnimationFrame(()=>Q.flush(void 0))))}recycleAsyncId(Q,K,He=0){if(null!=He&&He>0||null==He&&this.delay>0)return super.recycleAsyncId(Q,K,He);Q.actions.some(Ge=>Ge.id===K)||(ce.cancelAnimationFrame(K),Q._scheduled=void 0)}});var se=C(7579),de=C(9646),J=C(8306),le=C(4968),Be=(C(3101),C(4986)),Z=C(4482),et=C(8421),Ye=C(5403),me=C(5963);function z(je,Q=Be.z){return function Qe(je){return(0,Z.e)((Q,K)=>{let He=!1,Ge=null,lt=null,St=!1;const Ht=()=>{if(null==lt||lt.unsubscribe(),lt=null,He){He=!1;const Nt=Ge;Ge=null,K.next(Nt)}St&&K.complete()},bt=()=>{lt=null,St&&K.complete()};Q.subscribe((0,Ye.x)(K,Nt=>{He=!0,Ge=Nt,lt||(0,et.Xf)(je(Nt)).subscribe(lt=(0,Ye.x)(K,Ht,bt))},()=>{St=!0,(!He||!lt||lt.closed)&&K.complete()}))})}(()=>(0,me.H)(je,Q))}var q=C(9300),pe=C(9808),Te=C(925),Ne=C(226);let mt=(()=>{class je{constructor(K,He,Ge){this._ngZone=K,this._platform=He,this._scrolled=new se.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ge}register(K){this.scrollContainers.has(K)||this.scrollContainers.set(K,K.elementScrolled().subscribe(()=>this._scrolled.next(K)))}deregister(K){const He=this.scrollContainers.get(K);He&&(He.unsubscribe(),this.scrollContainers.delete(K))}scrolled(K=20){return this._platform.isBrowser?new J.y(He=>{this._globalSubscription||this._addGlobalListener();const Ge=K>0?this._scrolled.pipe(z(K)).subscribe(He):this._scrolled.subscribe(He);return this._scrolledCount++,()=>{Ge.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,de.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((K,He)=>this.deregister(He)),this._scrolled.complete()}ancestorScrolled(K,He){const Ge=this.getAncestorScrollContainers(K);return this.scrolled(He).pipe((0,q.h)(lt=>!lt||Ge.indexOf(lt)>-1))}getAncestorScrollContainers(K){const He=[];return this.scrollContainers.forEach((Ge,lt)=>{this._scrollableContainsElement(lt,K)&&He.push(lt)}),He}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(K,He){let Ge=(0,c.fI)(He),lt=K.getElementRef().nativeElement;do{if(Ge==lt)return!0}while(Ge=Ge.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const K=this._getWindow();return(0,le.R)(K.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return je.\u0275fac=function(K){return new(K||je)(o.LFG(o.R0b),o.LFG(Te.t4),o.LFG(pe.K0,8))},je.\u0275prov=o.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})(),Rt=(()=>{class je{constructor(K,He,Ge){this._platform=K,this._change=new se.x,this._changeListener=lt=>{this._change.next(lt)},this._document=Ge,He.runOutsideAngular(()=>{if(K.isBrowser){const lt=this._getWindow();lt.addEventListener("resize",this._changeListener),lt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const K=this._getWindow();K.removeEventListener("resize",this._changeListener),K.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const K={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),K}getViewportRect(){const K=this.getViewportScrollPosition(),{width:He,height:Ge}=this.getViewportSize();return{top:K.top,left:K.left,bottom:K.top+Ge,right:K.left+He,height:Ge,width:He}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const K=this._document,He=this._getWindow(),Ge=K.documentElement,lt=Ge.getBoundingClientRect();return{top:-lt.top||K.body.scrollTop||He.scrollY||Ge.scrollTop||0,left:-lt.left||K.body.scrollLeft||He.scrollX||Ge.scrollLeft||0}}change(K=20){return K>0?this._change.pipe(z(K)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const K=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:K.innerWidth,height:K.innerHeight}:{width:0,height:0}}}return je.\u0275fac=function(K){return new(K||je)(o.LFG(Te.t4),o.LFG(o.R0b),o.LFG(pe.K0,8))},je.\u0275prov=o.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})(),on=(()=>{class je{}return je.\u0275fac=function(K){return new(K||je)},je.\u0275mod=o.oAB({type:je}),je.\u0275inj=o.cJS({}),je})(),Xe=(()=>{class je{}return je.\u0275fac=function(K){return new(K||je)},je.\u0275mod=o.oAB({type:je}),je.\u0275inj=o.cJS({imports:[[Ne.vT,on],Ne.vT,on]}),je})()},9808:(qe,ye,C)=>{C.d(ye,{mr:()=>Ye,Ov:()=>fr,ez:()=>Nr,K0:()=>De,Do:()=>me,V_:()=>ee,Ye:()=>z,S$:()=>Z,mk:()=>tn,sg:()=>jt,O5:()=>Si,RF:()=>Nn,n9:()=>Xn,ED:()=>un,b0:()=>Qe,lw:()=>Ce,EM:()=>Tn,JF:()=>Pi,NF:()=>Ii,w_:()=>ie,bD:()=>zi,q:()=>g,Mx:()=>ci,HT:()=>ce});var c=C(4893);let o=null;function g(){return o}function ce(A){o||(o=A)}class ie{}const De=new c.OlP("DocumentToken");let Ce=(()=>{class A{historyGo(T){throw new Error("Not implemented")}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=c.Yz7({token:A,factory:function(){return function ue(){return(0,c.LFG)(se)}()},providedIn:"platform"}),A})();const ee=new c.OlP("Location Initialized");let se=(()=>{class A extends Ce{constructor(T){super(),this._doc=T,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return g().getBaseHref(this._doc)}onPopState(T){const H=g().getGlobalEventTarget(this._doc,"window");return H.addEventListener("popstate",T,!1),()=>H.removeEventListener("popstate",T)}onHashChange(T){const H=g().getGlobalEventTarget(this._doc,"window");return H.addEventListener("hashchange",T,!1),()=>H.removeEventListener("hashchange",T)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(T){this.location.pathname=T}pushState(T,H,ae){de()?this._history.pushState(T,H,ae):this.location.hash=ae}replaceState(T,H,ae){de()?this._history.replaceState(T,H,ae):this.location.hash=ae}forward(){this._history.forward()}back(){this._history.back()}historyGo(T=0){this._history.go(T)}getState(){return this._history.state}}return A.\u0275fac=function(T){return new(T||A)(c.LFG(De))},A.\u0275prov=c.Yz7({token:A,factory:function(){return function J(){return new se((0,c.LFG)(De))}()},providedIn:"platform"}),A})();function de(){return!!window.history.pushState}function le(A,N){if(0==A.length)return N;if(0==N.length)return A;let T=0;return A.endsWith("/")&&T++,N.startsWith("/")&&T++,2==T?A+N.substring(1):1==T?A+N:A+"/"+N}function ke(A){const N=A.match(/#|\?|$/),T=N&&N.index||A.length;return A.slice(0,T-("/"===A[T-1]?1:0))+A.slice(T)}function Be(A){return A&&"?"!==A[0]?"?"+A:A}let Z=(()=>{class A{historyGo(T){throw new Error("Not implemented")}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=c.Yz7({token:A,factory:function(){return function et(A){const N=(0,c.LFG)(De).location;return new Qe((0,c.LFG)(Ce),N&&N.origin||"")}()},providedIn:"root"}),A})();const Ye=new c.OlP("appBaseHref");let Qe=(()=>{class A extends Z{constructor(T,H){if(super(),this._platformLocation=T,this._removeListenerFns=[],null==H&&(H=this._platformLocation.getBaseHrefFromDOM()),null==H)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=H}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}prepareExternalUrl(T){return le(this._baseHref,T)}path(T=!1){const H=this._platformLocation.pathname+Be(this._platformLocation.search),ae=this._platformLocation.hash;return ae&&T?`${H}${ae}`:H}pushState(T,H,ae,$e){const nt=this.prepareExternalUrl(ae+Be($e));this._platformLocation.pushState(T,H,nt)}replaceState(T,H,ae,$e){const nt=this.prepareExternalUrl(ae+Be($e));this._platformLocation.replaceState(T,H,nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(T=0){var H,ae;null===(ae=(H=this._platformLocation).historyGo)||void 0===ae||ae.call(H,T)}}return A.\u0275fac=function(T){return new(T||A)(c.LFG(Ce),c.LFG(Ye,8))},A.\u0275prov=c.Yz7({token:A,factory:A.\u0275fac}),A})(),me=(()=>{class A extends Z{constructor(T,H){super(),this._platformLocation=T,this._baseHref="",this._removeListenerFns=[],null!=H&&(this._baseHref=H)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}path(T=!1){let H=this._platformLocation.hash;return null==H&&(H="#"),H.length>0?H.substring(1):H}prepareExternalUrl(T){const H=le(this._baseHref,T);return H.length>0?"#"+H:H}pushState(T,H,ae,$e){let nt=this.prepareExternalUrl(ae+Be($e));0==nt.length&&(nt=this._platformLocation.pathname),this._platformLocation.pushState(T,H,nt)}replaceState(T,H,ae,$e){let nt=this.prepareExternalUrl(ae+Be($e));0==nt.length&&(nt=this._platformLocation.pathname),this._platformLocation.replaceState(T,H,nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(T=0){var H,ae;null===(ae=(H=this._platformLocation).historyGo)||void 0===ae||ae.call(H,T)}}return A.\u0275fac=function(T){return new(T||A)(c.LFG(Ce),c.LFG(Ye,8))},A.\u0275prov=c.Yz7({token:A,factory:A.\u0275fac}),A})(),z=(()=>{class A{constructor(T,H){this._subject=new c.vpe,this._urlChangeListeners=[],this._platformStrategy=T;const ae=this._platformStrategy.getBaseHref();this._platformLocation=H,this._baseHref=ke(Te(ae)),this._platformStrategy.onPopState($e=>{this._subject.emit({url:this.path(!0),pop:!0,state:$e.state,type:$e.type})})}path(T=!1){return this.normalize(this._platformStrategy.path(T))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(T,H=""){return this.path()==this.normalize(T+Be(H))}normalize(T){return A.stripTrailingSlash(function pe(A,N){return A&&N.startsWith(A)?N.substring(A.length):N}(this._baseHref,Te(T)))}prepareExternalUrl(T){return T&&"/"!==T[0]&&(T="/"+T),this._platformStrategy.prepareExternalUrl(T)}go(T,H="",ae=null){this._platformStrategy.pushState(ae,"",T,H),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Be(H)),ae)}replaceState(T,H="",ae=null){this._platformStrategy.replaceState(ae,"",T,H),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Be(H)),ae)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(T=0){var H,ae;null===(ae=(H=this._platformStrategy).historyGo)||void 0===ae||ae.call(H,T)}onUrlChange(T){this._urlChangeListeners.push(T),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(H=>{this._notifyUrlChangeListeners(H.url,H.state)}))}_notifyUrlChangeListeners(T="",H){this._urlChangeListeners.forEach(ae=>ae(T,H))}subscribe(T,H,ae){return this._subject.subscribe({next:T,error:H,complete:ae})}}return A.normalizeQueryParams=Be,A.joinWithSlash=le,A.stripTrailingSlash=ke,A.\u0275fac=function(T){return new(T||A)(c.LFG(Z),c.LFG(Ce))},A.\u0275prov=c.Yz7({token:A,factory:function(){return function q(){return new z((0,c.LFG)(Z),(0,c.LFG)(Ce))}()},providedIn:"root"}),A})();function Te(A){return A.replace(/\/index.html$/,"")}function ci(A,N){N=encodeURIComponent(N);for(const T of A.split(";")){const H=T.indexOf("="),[ae,$e]=-1==H?[T,""]:[T.slice(0,H),T.slice(H+1)];if(ae.trim()===N)return decodeURIComponent($e)}return null}let tn=(()=>{class A{constructor(T,H,ae,$e){this._iterableDiffers=T,this._keyValueDiffers=H,this._ngEl=ae,this._renderer=$e,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(T){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof T?T.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(T){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof T?T.split(/\s+/):T,this._rawClass&&((0,c.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const T=this._iterableDiffer.diff(this._rawClass);T&&this._applyIterableChanges(T)}else if(this._keyValueDiffer){const T=this._keyValueDiffer.diff(this._rawClass);T&&this._applyKeyValueChanges(T)}}_applyKeyValueChanges(T){T.forEachAddedItem(H=>this._toggleClass(H.key,H.currentValue)),T.forEachChangedItem(H=>this._toggleClass(H.key,H.currentValue)),T.forEachRemovedItem(H=>{H.previousValue&&this._toggleClass(H.key,!1)})}_applyIterableChanges(T){T.forEachAddedItem(H=>{if("string"!=typeof H.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,c.AaK)(H.item)}`);this._toggleClass(H.item,!0)}),T.forEachRemovedItem(H=>this._toggleClass(H.item,!1))}_applyClasses(T){T&&(Array.isArray(T)||T instanceof Set?T.forEach(H=>this._toggleClass(H,!0)):Object.keys(T).forEach(H=>this._toggleClass(H,!!T[H])))}_removeClasses(T){T&&(Array.isArray(T)||T instanceof Set?T.forEach(H=>this._toggleClass(H,!1)):Object.keys(T).forEach(H=>this._toggleClass(H,!1)))}_toggleClass(T,H){(T=T.trim())&&T.split(/\s+/g).forEach(ae=>{H?this._renderer.addClass(this._ngEl.nativeElement,ae):this._renderer.removeClass(this._ngEl.nativeElement,ae)})}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.ZZ4),c.Y36(c.aQg),c.Y36(c.SBq),c.Y36(c.Qsj))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),A})();class pi{constructor(N,T,H,ae){this.$implicit=N,this.ngForOf=T,this.index=H,this.count=ae}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let jt=(()=>{class A{constructor(T,H,ae){this._viewContainer=T,this._template=H,this._differs=ae,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(T){this._ngForOf=T,this._ngForOfDirty=!0}set ngForTrackBy(T){this._trackByFn=T}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(T){T&&(this._template=T)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const T=this._ngForOf;!this._differ&&T&&(this._differ=this._differs.find(T).create(this.ngForTrackBy))}if(this._differ){const T=this._differ.diff(this._ngForOf);T&&this._applyChanges(T)}}_applyChanges(T){const H=this._viewContainer;T.forEachOperation((ae,$e,nt)=>{if(null==ae.previousIndex)H.createEmbeddedView(this._template,new pi(ae.item,this._ngForOf,-1,-1),null===nt?void 0:nt);else if(null==nt)H.remove(null===$e?void 0:$e);else if(null!==$e){const ht=H.get($e);H.move(ht,nt),ui(ht,ae)}});for(let ae=0,$e=H.length;ae<$e;ae++){const ht=H.get(ae).context;ht.index=ae,ht.count=$e,ht.ngForOf=this._ngForOf}T.forEachIdentityChange(ae=>{ui(H.get(ae.currentIndex),ae)})}static ngTemplateContextGuard(T,H){return!0}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(c.ZZ4))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),A})();function ui(A,N){A.context.$implicit=N.item}let Si=(()=>{class A{constructor(T,H){this._viewContainer=T,this._context=new Gn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=H}set ngIf(T){this._context.$implicit=this._context.ngIf=T,this._updateView()}set ngIfThen(T){gn("ngIfThen",T),this._thenTemplateRef=T,this._thenViewRef=null,this._updateView()}set ngIfElse(T){gn("ngIfElse",T),this._elseTemplateRef=T,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(T,H){return!0}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),A})();class Gn{constructor(){this.$implicit=null,this.ngIf=null}}function gn(A,N){if(N&&!N.createEmbeddedView)throw new Error(`${A} must be a TemplateRef, but received '${(0,c.AaK)(N)}'.`)}class di{constructor(N,T){this._viewContainerRef=N,this._templateRef=T,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(N){N&&!this._created?this.create():!N&&this._created&&this.destroy()}}let Nn=(()=>{class A{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(T){this._ngSwitch=T,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(T){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(T)}_matchCase(T){const H=T==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||H,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),H}_updateDefaultCases(T){if(this._defaultViews&&T!==this._defaultUsed){this._defaultUsed=T;for(let H=0;H{class A{constructor(T,H,ae){this.ngSwitch=ae,ae._addCase(),this._view=new di(T,H)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(Nn,9))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),A})(),un=(()=>{class A{constructor(T,H,ae){ae._addDefault(new di(T,H))}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(Nn,9))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngSwitchDefault",""]]}),A})();class ei{createSubscription(N,T){return N.subscribe({next:T,error:H=>{throw H}})}dispose(N){N.unsubscribe()}onDestroy(N){N.unsubscribe()}}class Oi{createSubscription(N,T){return N.then(T,H=>{throw H})}dispose(N){}onDestroy(N){}}const hr=new Oi,rr=new ei;let fr=(()=>{class A{constructor(T){this._ref=T,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(T){return this._obj?T!==this._obj?(this._dispose(),this.transform(T)):this._latestValue:(T&&this._subscribe(T),this._latestValue)}_subscribe(T){this._obj=T,this._strategy=this._selectStrategy(T),this._subscription=this._strategy.createSubscription(T,H=>this._updateLatestValue(T,H))}_selectStrategy(T){if((0,c.QGY)(T))return hr;if((0,c.F4k)(T))return rr;throw function On(A,N){return new c.vHH(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(T,H){T===this._obj&&(this._latestValue=H,this._ref.markForCheck())}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.sBO,16))},A.\u0275pipe=c.Yjl({name:"async",type:A,pure:!1}),A})(),Nr=(()=>{class A{}return A.\u0275fac=function(T){return new(T||A)},A.\u0275mod=c.oAB({type:A}),A.\u0275inj=c.cJS({}),A})();const zi="browser";function Ii(A){return A===zi}let Tn=(()=>{class A{}return A.\u0275prov=(0,c.Yz7)({token:A,providedIn:"root",factory:()=>new Ji((0,c.LFG)(De),window)}),A})();class Ji{constructor(N,T){this.document=N,this.window=T,this.offset=()=>[0,0]}setOffset(N){this.offset=Array.isArray(N)?()=>N:N}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(N){this.supportsScrolling()&&this.window.scrollTo(N[0],N[1])}scrollToAnchor(N){if(!this.supportsScrolling())return;const T=function ni(A,N){const T=A.getElementById(N)||A.getElementsByName(N)[0];if(T)return T;if("function"==typeof A.createTreeWalker&&A.body&&(A.body.createShadowRoot||A.body.attachShadow)){const H=A.createTreeWalker(A.body,NodeFilter.SHOW_ELEMENT);let ae=H.currentNode;for(;ae;){const $e=ae.shadowRoot;if($e){const nt=$e.getElementById(N)||$e.querySelector(`[name="${N}"]`);if(nt)return nt}ae=H.nextNode()}}return null}(this.document,N);T&&(this.scrollToElement(T),T.focus())}setHistoryScrollRestoration(N){if(this.supportScrollRestoration()){const T=this.window.history;T&&T.scrollRestoration&&(T.scrollRestoration=N)}}scrollToElement(N){const T=N.getBoundingClientRect(),H=T.left+this.window.pageXOffset,ae=T.top+this.window.pageYOffset,$e=this.offset();this.window.scrollTo(H-$e[0],ae-$e[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const N=Xi(this.window.history)||Xi(Object.getPrototypeOf(this.window.history));return!(!N||!N.writable&&!N.set)}catch(N){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(N){return!1}}}function Xi(A){return Object.getOwnPropertyDescriptor(A,"scrollRestoration")}class Pi{}},520:(qe,ye,C)=>{C.d(ye,{eN:()=>Fe,JF:()=>Pe});var c=C(9808),o=C(4893),g=C(9646),Y=C(8306),ce=C(4351),ie=C(9300),De=C(4004);class Ce{}class ue{}class ee{constructor(P){this.normalizedNames=new Map,this.lazyUpdate=null,P?this.lazyInit="string"==typeof P?()=>{this.headers=new Map,P.split("\n").forEach(L=>{const re=L.indexOf(":");if(re>0){const be=L.slice(0,re),Ue=be.toLowerCase(),ze=L.slice(re+1).trim();this.maybeSetNormalizedName(be,Ue),this.headers.has(Ue)?this.headers.get(Ue).push(ze):this.headers.set(Ue,[ze])}})}:()=>{this.headers=new Map,Object.keys(P).forEach(L=>{let re=P[L];const be=L.toLowerCase();"string"==typeof re&&(re=[re]),re.length>0&&(this.headers.set(be,re),this.maybeSetNormalizedName(L,be))})}:this.headers=new Map}has(P){return this.init(),this.headers.has(P.toLowerCase())}get(P){this.init();const L=this.headers.get(P.toLowerCase());return L&&L.length>0?L[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(P){return this.init(),this.headers.get(P.toLowerCase())||null}append(P,L){return this.clone({name:P,value:L,op:"a"})}set(P,L){return this.clone({name:P,value:L,op:"s"})}delete(P,L){return this.clone({name:P,value:L,op:"d"})}maybeSetNormalizedName(P,L){this.normalizedNames.has(L)||this.normalizedNames.set(L,P)}init(){this.lazyInit&&(this.lazyInit instanceof ee?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(P=>this.applyUpdate(P)),this.lazyUpdate=null))}copyFrom(P){P.init(),Array.from(P.headers.keys()).forEach(L=>{this.headers.set(L,P.headers.get(L)),this.normalizedNames.set(L,P.normalizedNames.get(L))})}clone(P){const L=new ee;return L.lazyInit=this.lazyInit&&this.lazyInit instanceof ee?this.lazyInit:this,L.lazyUpdate=(this.lazyUpdate||[]).concat([P]),L}applyUpdate(P){const L=P.name.toLowerCase();switch(P.op){case"a":case"s":let re=P.value;if("string"==typeof re&&(re=[re]),0===re.length)return;this.maybeSetNormalizedName(P.name,L);const be=("a"===P.op?this.headers.get(L):void 0)||[];be.push(...re),this.headers.set(L,be);break;case"d":const Ue=P.value;if(Ue){let ze=this.headers.get(L);if(!ze)return;ze=ze.filter(_t=>-1===Ue.indexOf(_t)),0===ze.length?(this.headers.delete(L),this.normalizedNames.delete(L)):this.headers.set(L,ze)}else this.headers.delete(L),this.normalizedNames.delete(L)}}forEach(P){this.init(),Array.from(this.normalizedNames.keys()).forEach(L=>P(this.normalizedNames.get(L),this.headers.get(L)))}}class se{encodeKey(P){return ke(P)}encodeValue(P){return ke(P)}decodeKey(P){return decodeURIComponent(P)}decodeValue(P){return decodeURIComponent(P)}}const J=/%(\d[a-f0-9])/gi,le={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ke(D){return encodeURIComponent(D).replace(J,(P,L)=>{var re;return null!==(re=le[L])&&void 0!==re?re:P})}function Be(D){return`${D}`}class Z{constructor(P={}){if(this.updates=null,this.cloneFrom=null,this.encoder=P.encoder||new se,P.fromString){if(P.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function de(D,P){const L=new Map;return D.length>0&&D.replace(/^\?/,"").split("&").forEach(be=>{const Ue=be.indexOf("="),[ze,_t]=-1==Ue?[P.decodeKey(be),""]:[P.decodeKey(be.slice(0,Ue)),P.decodeValue(be.slice(Ue+1))],ct=L.get(ze)||[];ct.push(_t),L.set(ze,ct)}),L}(P.fromString,this.encoder)}else P.fromObject?(this.map=new Map,Object.keys(P.fromObject).forEach(L=>{const re=P.fromObject[L];this.map.set(L,Array.isArray(re)?re:[re])})):this.map=null}has(P){return this.init(),this.map.has(P)}get(P){this.init();const L=this.map.get(P);return L?L[0]:null}getAll(P){return this.init(),this.map.get(P)||null}keys(){return this.init(),Array.from(this.map.keys())}append(P,L){return this.clone({param:P,value:L,op:"a"})}appendAll(P){const L=[];return Object.keys(P).forEach(re=>{const be=P[re];Array.isArray(be)?be.forEach(Ue=>{L.push({param:re,value:Ue,op:"a"})}):L.push({param:re,value:be,op:"a"})}),this.clone(L)}set(P,L){return this.clone({param:P,value:L,op:"s"})}delete(P,L){return this.clone({param:P,value:L,op:"d"})}toString(){return this.init(),this.keys().map(P=>{const L=this.encoder.encodeKey(P);return this.map.get(P).map(re=>L+"="+this.encoder.encodeValue(re)).join("&")}).filter(P=>""!==P).join("&")}clone(P){const L=new Z({encoder:this.encoder});return L.cloneFrom=this.cloneFrom||this,L.updates=(this.updates||[]).concat(P),L}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(P=>this.map.set(P,this.cloneFrom.map.get(P))),this.updates.forEach(P=>{switch(P.op){case"a":case"s":const L=("a"===P.op?this.map.get(P.param):void 0)||[];L.push(Be(P.value)),this.map.set(P.param,L);break;case"d":if(void 0===P.value){this.map.delete(P.param);break}{let re=this.map.get(P.param)||[];const be=re.indexOf(Be(P.value));-1!==be&&re.splice(be,1),re.length>0?this.map.set(P.param,re):this.map.delete(P.param)}}}),this.cloneFrom=this.updates=null)}}class Ye{constructor(){this.map=new Map}set(P,L){return this.map.set(P,L),this}get(P){return this.map.has(P)||this.map.set(P,P.defaultValue()),this.map.get(P)}delete(P){return this.map.delete(P),this}has(P){return this.map.has(P)}keys(){return this.map.keys()}}function me(D){return"undefined"!=typeof ArrayBuffer&&D instanceof ArrayBuffer}function z(D){return"undefined"!=typeof Blob&&D instanceof Blob}function q(D){return"undefined"!=typeof FormData&&D instanceof FormData}class Te{constructor(P,L,re,be){let Ue;if(this.url=L,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=P.toUpperCase(),function Qe(D){switch(D){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||be?(this.body=void 0!==re?re:null,Ue=be):Ue=re,Ue&&(this.reportProgress=!!Ue.reportProgress,this.withCredentials=!!Ue.withCredentials,Ue.responseType&&(this.responseType=Ue.responseType),Ue.headers&&(this.headers=Ue.headers),Ue.context&&(this.context=Ue.context),Ue.params&&(this.params=Ue.params)),this.headers||(this.headers=new ee),this.context||(this.context=new Ye),this.params){const ze=this.params.toString();if(0===ze.length)this.urlWithParams=L;else{const _t=L.indexOf("?");this.urlWithParams=L+(-1===_t?"?":_tdn.set(dt,P.setHeaders[dt]),Ot)),P.setParams&&(nn=Object.keys(P.setParams).reduce((dn,dt)=>dn.set(dt,P.setParams[dt]),nn)),new Te(re,be,ze,{params:nn,headers:Ot,context:Yt,reportProgress:ct,responseType:Ue,withCredentials:_t})}}var Ne=(()=>((Ne=Ne||{})[Ne.Sent=0]="Sent",Ne[Ne.UploadProgress=1]="UploadProgress",Ne[Ne.ResponseHeader=2]="ResponseHeader",Ne[Ne.DownloadProgress=3]="DownloadProgress",Ne[Ne.Response=4]="Response",Ne[Ne.User=5]="User",Ne))();class ve{constructor(P,L=200,re="OK"){this.headers=P.headers||new ee,this.status=void 0!==P.status?P.status:L,this.statusText=P.statusText||re,this.url=P.url||null,this.ok=this.status>=200&&this.status<300}}class Me extends ve{constructor(P={}){super(P),this.type=Ne.ResponseHeader}clone(P={}){return new Me({headers:P.headers||this.headers,status:void 0!==P.status?P.status:this.status,statusText:P.statusText||this.statusText,url:P.url||this.url||void 0})}}class xe extends ve{constructor(P={}){super(P),this.type=Ne.Response,this.body=void 0!==P.body?P.body:null}clone(P={}){return new xe({body:void 0!==P.body?P.body:this.body,headers:P.headers||this.headers,status:void 0!==P.status?P.status:this.status,statusText:P.statusText||this.statusText,url:P.url||this.url||void 0})}}class Ae extends ve{constructor(P){super(P,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${P.url||"(unknown url)"}`:`Http failure response for ${P.url||"(unknown url)"}: ${P.status} ${P.statusText}`,this.error=P.error||null}}function tt(D,P){return{body:P,headers:D.headers,context:D.context,observe:D.observe,params:D.params,reportProgress:D.reportProgress,responseType:D.responseType,withCredentials:D.withCredentials}}let Fe=(()=>{class D{constructor(L){this.handler=L}request(L,re,be={}){let Ue;if(L instanceof Te)Ue=L;else{let ct,Ot;ct=be.headers instanceof ee?be.headers:new ee(be.headers),be.params&&(Ot=be.params instanceof Z?be.params:new Z({fromObject:be.params})),Ue=new Te(L,re,void 0!==be.body?be.body:null,{headers:ct,context:be.context,params:Ot,reportProgress:be.reportProgress,responseType:be.responseType||"json",withCredentials:be.withCredentials})}const ze=(0,g.of)(Ue).pipe((0,ce.b)(ct=>this.handler.handle(ct)));if(L instanceof Te||"events"===be.observe)return ze;const _t=ze.pipe((0,ie.h)(ct=>ct instanceof xe));switch(be.observe||"body"){case"body":switch(Ue.responseType){case"arraybuffer":return _t.pipe((0,De.U)(ct=>{if(null!==ct.body&&!(ct.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ct.body}));case"blob":return _t.pipe((0,De.U)(ct=>{if(null!==ct.body&&!(ct.body instanceof Blob))throw new Error("Response is not a Blob.");return ct.body}));case"text":return _t.pipe((0,De.U)(ct=>{if(null!==ct.body&&"string"!=typeof ct.body)throw new Error("Response is not a string.");return ct.body}));default:return _t.pipe((0,De.U)(ct=>ct.body))}case"response":return _t;default:throw new Error(`Unreachable: unhandled observe type ${be.observe}}`)}}delete(L,re={}){return this.request("DELETE",L,re)}get(L,re={}){return this.request("GET",L,re)}head(L,re={}){return this.request("HEAD",L,re)}jsonp(L,re){return this.request("JSONP",L,{params:(new Z).append(re,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(L,re={}){return this.request("OPTIONS",L,re)}patch(L,re,be={}){return this.request("PATCH",L,tt(be,re))}post(L,re,be={}){return this.request("POST",L,tt(be,re))}put(L,re,be={}){return this.request("PUT",L,tt(be,re))}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(Ce))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})();class Ct{constructor(P,L){this.next=P,this.interceptor=L}handle(P){return this.interceptor.intercept(P,this.next)}}const mt=new o.OlP("HTTP_INTERCEPTORS");let Jt=(()=>{class D{intercept(L,re){return re.handle(L)}}return D.\u0275fac=function(L){return new(L||D)},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})();const Xe=/^\)\]\}',?\n/;let Q=(()=>{class D{constructor(L){this.xhrFactory=L}handle(L){if("JSONP"===L.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Y.y(re=>{const be=this.xhrFactory.build();if(be.open(L.method,L.urlWithParams),L.withCredentials&&(be.withCredentials=!0),L.headers.forEach((dt,vt)=>be.setRequestHeader(dt,vt.join(","))),L.headers.has("Accept")||be.setRequestHeader("Accept","application/json, text/plain, */*"),!L.headers.has("Content-Type")){const dt=L.detectContentTypeHeader();null!==dt&&be.setRequestHeader("Content-Type",dt)}if(L.responseType){const dt=L.responseType.toLowerCase();be.responseType="json"!==dt?dt:"text"}const Ue=L.serializeBody();let ze=null;const _t=()=>{if(null!==ze)return ze;const dt=be.statusText||"OK",vt=new ee(be.getAllResponseHeaders()),Le=function je(D){return"responseURL"in D&&D.responseURL?D.responseURL:/^X-Request-URL:/m.test(D.getAllResponseHeaders())?D.getResponseHeader("X-Request-URL"):null}(be)||L.url;return ze=new Me({headers:vt,status:be.status,statusText:dt,url:Le}),ze},ct=()=>{let{headers:dt,status:vt,statusText:Le,url:we}=_t(),V=null;204!==vt&&(V=void 0===be.response?be.responseText:be.response),0===vt&&(vt=V?200:0);let j=vt>=200&&vt<300;if("json"===L.responseType&&"string"==typeof V){const $=V;V=V.replace(Xe,"");try{V=""!==V?JSON.parse(V):null}catch(he){V=$,j&&(j=!1,V={error:he,text:V})}}j?(re.next(new xe({body:V,headers:dt,status:vt,statusText:Le,url:we||void 0})),re.complete()):re.error(new Ae({error:V,headers:dt,status:vt,statusText:Le,url:we||void 0}))},Ot=dt=>{const{url:vt}=_t(),Le=new Ae({error:dt,status:be.status||0,statusText:be.statusText||"Unknown Error",url:vt||void 0});re.error(Le)};let nn=!1;const Yt=dt=>{nn||(re.next(_t()),nn=!0);let vt={type:Ne.DownloadProgress,loaded:dt.loaded};dt.lengthComputable&&(vt.total=dt.total),"text"===L.responseType&&!!be.responseText&&(vt.partialText=be.responseText),re.next(vt)},dn=dt=>{let vt={type:Ne.UploadProgress,loaded:dt.loaded};dt.lengthComputable&&(vt.total=dt.total),re.next(vt)};return be.addEventListener("load",ct),be.addEventListener("error",Ot),be.addEventListener("timeout",Ot),be.addEventListener("abort",Ot),L.reportProgress&&(be.addEventListener("progress",Yt),null!==Ue&&be.upload&&be.upload.addEventListener("progress",dn)),be.send(Ue),re.next({type:Ne.Sent}),()=>{be.removeEventListener("error",Ot),be.removeEventListener("abort",Ot),be.removeEventListener("load",ct),be.removeEventListener("timeout",Ot),L.reportProgress&&(be.removeEventListener("progress",Yt),null!==Ue&&be.upload&&be.upload.removeEventListener("progress",dn)),be.readyState!==be.DONE&&be.abort()}})}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(c.JF))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})();const K=new o.OlP("XSRF_COOKIE_NAME"),He=new o.OlP("XSRF_HEADER_NAME");class Ge{}let lt=(()=>{class D{constructor(L,re,be){this.doc=L,this.platform=re,this.cookieName=be,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const L=this.doc.cookie||"";return L!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,c.Mx)(L,this.cookieName),this.lastCookieString=L),this.lastToken}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(c.K0),o.LFG(o.Lbi),o.LFG(K))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})(),St=(()=>{class D{constructor(L,re){this.tokenService=L,this.headerName=re}intercept(L,re){const be=L.url.toLowerCase();if("GET"===L.method||"HEAD"===L.method||be.startsWith("http://")||be.startsWith("https://"))return re.handle(L);const Ue=this.tokenService.getToken();return null!==Ue&&!L.headers.has(this.headerName)&&(L=L.clone({headers:L.headers.set(this.headerName,Ue)})),re.handle(L)}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(Ge),o.LFG(He))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})(),Ht=(()=>{class D{constructor(L,re){this.backend=L,this.injector=re,this.chain=null}handle(L){if(null===this.chain){const re=this.injector.get(mt,[]);this.chain=re.reduceRight((be,Ue)=>new Ct(be,Ue),this.backend)}return this.chain.handle(L)}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(ue),o.LFG(o.zs3))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})(),at=(()=>{class D{static disable(){return{ngModule:D,providers:[{provide:St,useClass:Jt}]}}static withOptions(L={}){return{ngModule:D,providers:[L.cookieName?{provide:K,useValue:L.cookieName}:[],L.headerName?{provide:He,useValue:L.headerName}:[]]}}}return D.\u0275fac=function(L){return new(L||D)},D.\u0275mod=o.oAB({type:D}),D.\u0275inj=o.cJS({providers:[St,{provide:mt,useExisting:St,multi:!0},{provide:Ge,useClass:lt},{provide:K,useValue:"XSRF-TOKEN"},{provide:He,useValue:"X-XSRF-TOKEN"}]}),D})(),Pe=(()=>{class D{}return D.\u0275fac=function(L){return new(L||D)},D.\u0275mod=o.oAB({type:D}),D.\u0275inj=o.cJS({providers:[Fe,{provide:Ce,useClass:Ht},Q,{provide:ue,useExisting:Q}],imports:[[at.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),D})()},4893:(qe,ye,C)=>{C.d(ye,{deG:()=>Im,tb:()=>am,AFp:()=>im,ip1:()=>nm,CZH:()=>jc,hGG:()=>VC,z2F:()=>Zc,sBO:()=>DC,Sil:()=>rC,_Vd:()=>Ra,EJc:()=>nC,SBq:()=>Ws,qLn:()=>ca,vpe:()=>co,tBr:()=>ra,XFs:()=>S,OlP:()=>vi,zs3:()=>zr,ZZ4:()=>tu,aQg:()=>nu,soG:()=>Gc,YKP:()=>gp,h0i:()=>fs,PXZ:()=>gC,R0b:()=>Yr,FiY:()=>As,Lbi:()=>sm,g9A:()=>om,n_E:()=>Fa,Qsj:()=>qb,FYo:()=>hp,JOm:()=>ro,q3G:()=>yi,tp0:()=>Ts,Rgc:()=>qs,dDg:()=>dm,GfV:()=>fp,s_b:()=>Na,ifc:()=>Ot,eFA:()=>pm,G48:()=>EC,Gpc:()=>Be,f3M:()=>Mu,_c5:()=>BC,VLi:()=>fC,c2e:()=>lm,zSh:()=>Gl,wAp:()=>qt,vHH:()=>Qe,EiD:()=>Uu,mCW:()=>Ss,qzn:()=>Go,JVY:()=>cg,pB0:()=>fg,eBb:()=>dg,L6k:()=>ug,LAX:()=>hg,cg1:()=>bc,kL8:()=>Lf,yhl:()=>Pu,dqk:()=>vt,sIi:()=>Bs,CqO:()=>zh,QGY:()=>sc,F4k:()=>jh,RDi:()=>N,AaK:()=>J,z3N:()=>_o,qOj:()=>Zl,TTD:()=>zi,_Bn:()=>cp,xp6:()=>Cd,uIk:()=>Jl,Tol:()=>hf,Gre:()=>Af,ekj:()=>fc,Suo:()=>Fp,Xpm:()=>Dt,lG2:()=>$t,Yz7:()=>Q,cJS:()=>He,oAB:()=>Ie,Yjl:()=>bn,Y36:()=>Us,_UZ:()=>oc,BQk:()=>wa,ynx:()=>Ma,qZA:()=>Da,TgZ:()=>Ea,EpF:()=>Hh,n5z:()=>pu,Ikx:()=>vc,LFG:()=>Ni,$8M:()=>$a,$Z:()=>Vh,NdJ:()=>ac,CRH:()=>Lp,kcU:()=>Mo,O4$:()=>eo,oxw:()=>Wh,ALo:()=>Ap,lcZ:()=>Tp,Hsn:()=>Kh,F$t:()=>Yh,Q6J:()=>ic,s9C:()=>uc,VKq:()=>bp,iGM:()=>Rp,MAs:()=>xh,evT:()=>Zu,CHM:()=>Jr,oJD:()=>Hu,LSH:()=>ol,Udp:()=>hc,WFA:()=>lc,d8E:()=>yc,YNc:()=>Th,_uU:()=>yf,Oqu:()=>mc,hij:()=>Ta,AsE:()=>gc,lnq:()=>_c,Gf:()=>kp});var c=C(7579),o=C(727),g=C(8306),Y=C(6451),ce=C(2076),ie=C(5698),De=C(930),Ce=C(4482);function ee(e,t,...n){return!0===t?(e(),null):!1===t?null:t(...n).pipe((0,ie.q)(1)).subscribe(()=>e())}function se(e){for(let t in e)if(e[t]===se)return t;throw Error("Could not find renamed property on target object.")}function de(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function J(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(J).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function le(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ke=se({__forward_ref__:se});function Be(e){return e.__forward_ref__=Be,e.toString=function(){return J(this())},e}function Z(e){return et(e)?e():e}function et(e){return"function"==typeof e&&e.hasOwnProperty(ke)&&e.__forward_ref__===Be}class Qe extends Error{constructor(t,n){super(function me(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function z(e){return"string"==typeof e?e:null==e?"":String(e)}function q(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():z(e)}function ve(e,t){const n=t?` in ${t}`:"";throw new Qe(-201,`No provider for ${q(e)} found${n}`)}function Ut(e,t){null==e&&function xt(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function Q(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function He(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ge(e){return lt(e,Nt)||lt(e,Pe)}function lt(e,t){return e.hasOwnProperty(t)?e[t]:null}function bt(e){return e&&(e.hasOwnProperty(at)||e.hasOwnProperty(E))?e[at]:null}const Nt=se({\u0275prov:se}),at=se({\u0275inj:se}),Pe=se({ngInjectableDef:se}),E=se({ngInjectorDef:se});var S=(()=>((S=S||{})[S.Default=0]="Default",S[S.Host=1]="Host",S[S.Self=2]="Self",S[S.SkipSelf=4]="SkipSelf",S[S.Optional=8]="Optional",S))();let D;function L(e){const t=D;return D=e,t}function re(e,t,n){const i=Ge(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&S.Optional?null:void 0!==t?t:void ve(J(e),"Injector")}function Ue(e){return{toString:e}.toString()}var ze=(()=>((ze=ze||{})[ze.OnPush=0]="OnPush",ze[ze.Default=1]="Default",ze))(),Ot=(()=>{return(e=Ot||(Ot={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ot;var e})();const nn="undefined"!=typeof globalThis&&globalThis,Yt="undefined"!=typeof window&&window,dn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,vt=nn||"undefined"!=typeof global&&global||Yt||dn,V={},j=[],$=se({\u0275cmp:se}),he=se({\u0275dir:se}),Se=se({\u0275pipe:se}),st=se({\u0275mod:se}),At=se({\u0275fac:se}),Zt=se({__NG_ELEMENT_ID__:se});let Kt=0;function Dt(e){return Ue(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ze.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||j,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ot.Emulated,id:"c",styles:e.styles||j,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,s=e.features,u=e.pipes;return i.id+=Kt++,i.inputs=kt(e.inputs,n),i.outputs=kt(e.outputs),s&&s.forEach(p=>p(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Ve):null,i.pipeDefs=u?()=>("function"==typeof u?u():u).map(_e):null,i})}function Ve(e){return en(e)||function kn(e){return e[he]||null}(e)}function _e(e){return function Cn(e){return e[Se]||null}(e)}const te={};function Ie(e){return Ue(()=>{const t={type:e.type,bootstrap:e.bootstrap||j,declarations:e.declarations||j,imports:e.imports||j,exports:e.exports||j,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(te[e.id]=e.type),t})}function kt(e,t){if(null==e)return V;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}const $t=Dt;function bn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function en(e){return e[$]||null}function jn(e,t){const n=e[st]||null;if(!n&&!0===t)throw new Error(`Type ${J(e)} does not have '\u0275mod' property.`);return n}function Kn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ci(e){return Array.isArray(e)&&!0===e[1]}function Ki(e){return 0!=(8&e.flags)}function Zi(e){return 2==(2&e.flags)}function On(e){return 1==(1&e.flags)}function ei(e){return null!==e.template}function Oi(e){return 0!=(512&e[2])}function Mi(e,t){return e.hasOwnProperty(At)?e[At]:null}class Nr{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function zi(){return Bi}function Bi(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qr),Qi}function Qi(){const e=lr(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===V)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Qr(e,t,n,i){const r=lr(e)||function Br(e,t){return e[Ii]=t}(e,{previous:V,current:null}),s=r.current||(r.current={}),u=r.previous,p=this.declaredInputs[n],b=u[p];s[p]=new Nr(b&&b.currentValue,t,u===V),e[i]=t}zi.ngInherit=!0;const Ii="__ngSimpleChanges__";function lr(e){return e[Ii]||null}let A;function N(e){A=e}function T(){return void 0!==A?A:"undefined"!=typeof document?document:void 0}function ae(e){return!!e.listen}const $e={createRenderer:(e,t)=>T()};function ht(e){for(;Array.isArray(e);)e=e[0];return e}function hn(e,t){return ht(t[e])}function zt(e,t){return ht(t[e.index])}function vn(e,t){return e.data[t]}function Sn(e,t){return e[t]}function Vn(e,t){const n=t[e];return Kn(n)?n:n[0]}function wi(e){return 4==(4&e[2])}function er(e){return 128==(128&e[2])}function ki(e,t){return null==t?null:e[t]}function x(e){e[18]=0}function M(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const y={lFrame:Ei(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function gi(){return y.bindingsEnabled}function ot(){return y.lFrame.lView}function sn(){return y.lFrame.tView}function Jr(e){return y.lFrame.contextLView=e,e[8]}function Zn(){let e=bo();for(;null!==e&&64===e.type;)e=e.parent;return e}function bo(){return y.lFrame.currentTNode}function Vi(e,t){const n=y.lFrame;n.currentTNode=e,n.isParent=t}function Xr(){return y.lFrame.isParent}function k(){y.lFrame.isParent=!1}function d(){return y.isInCheckNoChangesMode}function a(e){y.isInCheckNoChangesMode=e}function l(){const e=y.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function v(){return y.lFrame.bindingIndex}function G(){return y.lFrame.bindingIndex++}function ne(e){const t=y.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ke(e,t){const n=y.lFrame;n.bindingIndex=n.bindingRootIndex=e,It(t)}function It(e){y.lFrame.currentDirectiveIndex=e}function Xt(e){const t=y.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function ln(){return y.lFrame.currentQueryIndex}function Vt(e){y.lFrame.currentQueryIndex=e}function rn(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Mn(e,t,n){if(n&S.SkipSelf){let r=t,s=e;for(;!(r=r.parent,null!==r||n&S.Host||(r=rn(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,e=s}const i=y.lFrame=li();return i.currentTNode=t,i.lView=e,!0}function $n(e){const t=li(),n=e[1];y.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function li(){const e=y.lFrame,t=null===e?null:e.child;return null===t?Ei(e):t}function Ei(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ii(){const e=y.lFrame;return y.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Sr=ii;function Ui(){const e=ii();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Un(){return y.lFrame.selectedIndex}function _i(e){y.lFrame.selectedIndex=e}function Hn(){const e=y.lFrame;return vn(e.tView,e.selectedIndex)}function eo(){y.lFrame.currentNamespace="svg"}function Mo(){!function ho(){y.lFrame.currentNamespace=null}()}function Lt(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[b]<0&&(e[18]+=65536),(p>11>16&&(3&e[2])===t){e[2]+=2048;try{s.call(p)}finally{}}}else try{s.call(p)}finally{}}class Or{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function Ro(e,t,n){const i=ae(e);let r=0;for(;rt){u=s-1;break}}}for(;s>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let vs=!0;function ys(e){const t=vs;return vs=e,t}let w=0;function B(e,t){const n=ge(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,X(i.data,e),X(t,null),X(i.blueprint,null));const r=Ze(e,t),s=e.injectorIndex;if(Fo(r)){const u=Co(r),p=fo(r,t),b=p[1].data;for(let I=0;I<8;I++)t[s+I]=p[u+I]|b[u+I]}return t[s+8]=r,s}function X(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ge(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ze(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){const s=r[1],u=s.type;if(i=2===u?s.declTNode:1===u?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Mt(e,t,n){!function O(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Zt)&&(i=n[Zt]),null==i&&(i=n[Zt]=w++);const r=255&i;t.data[e+(r>>5)]|=1<=0?255&t:Ur:t}(n);if("function"==typeof s){if(!Mn(t,e,i))return i&S.Host?Bt(r,n,i):xn(t,n,i,r);try{const u=s(i);if(null!=u||i&S.Optional)return u;ve(n)}finally{Sr()}}else if("number"==typeof s){let u=null,p=ge(e,t),b=-1,I=i&S.Host?t[16][6]:null;for((-1===p||i&S.SkipSelf)&&(b=-1===p?Ze(e,t):t[p+8],-1!==b&&ea(i,!1)?(u=t[1],p=Co(b),t=fo(b,t)):p=-1);-1!==p;){const F=t[1];if(Ao(s,p,F.data)){const W=mo(p,t,n,u,i,I);if(W!==po)return W}b=t[p+8],-1!==b&&ea(i,t[1].data[p+8]===I)&&Ao(s,p,t)?(u=F,p=Co(b),t=fo(b,t)):p=-1}}}return xn(t,n,i,r)}const po={};function Ur(){return new Lo(Zn(),ot())}function mo(e,t,n,i,r,s){const u=t[1],p=u.data[e+8],F=Ir(p,u,n,null==i?Zi(p)&&vs:i!=u&&0!=(3&p.type),r&S.Host&&s===p);return null!==F?Dr(t,u,F,p):po}function Ir(e,t,n,i,r){const s=e.providerIndexes,u=t.data,p=1048575&s,b=e.directiveStart,F=s>>20,fe=r?p+F:e.directiveEnd;for(let Re=i?p:p+F;Re=b&&Je.type===n)return Re}if(r){const Re=u[b];if(Re&&ei(Re)&&Re.type===n)return b}return null}function Dr(e,t,n,i){let r=e[n];const s=t.data;if(function Js(e){return e instanceof Or}(r)){const u=r;u.resolving&&function pe(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Qe(-200,`Circular dependency in DI detected for ${e}${n}`)}(q(s[n]));const p=ys(u.canSeeViewProviders);u.resolving=!0;const b=u.injectImpl?L(u.injectImpl):null;Mn(e,i,S.Default);try{r=e[n]=u.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Ft(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const u=Bi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==b&&L(b),ys(p),u.resolving=!1,Sr()}}return r}function Ao(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[At]||Ga(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const s=r[At]||Ga(r);if(s&&s!==n)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Ga(e){return et(e)?()=>{const t=Ga(Z(e));return t&&t()}:Mi(e)}function $a(e){return function cn(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let r=0;for(;r{const i=function Wa(e){return function(...n){if(e){const i=e(...n);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const u=new r(...s);return p.annotation=u,p;function p(b,I,F){const W=b.hasOwnProperty(Bo)?b[Bo]:Object.defineProperty(b,Bo,{value:[]})[Bo];for(;W.length<=F;)W.push(null);return(W[F]=W[F]||[]).push(u),b}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}class vi{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Q({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Im=new vi("AnalyzeForEntryComponents");function Pr(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?to(n,t):t(n))}function gu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ta(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Es(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function km(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Ka(e,t){const n=Ho(e,t);if(n>=0)return e[1|n]}function Ho(e,t){return function yu(e,t,n){let i=0,r=e.length>>n;for(;r!==i;){const s=i+(r-i>>1),u=e[s<t?r=s:i=s+1}return~(r<({token:e})),-1),As=ws(Uo("Optional"),8),Ts=ws(Uo("SkipSelf"),4);let sa,aa;function zo(e){var t;return(null===(t=function Xa(){if(void 0===sa&&(sa=null,vt.trustedTypes))try{sa=vt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return sa}())||void 0===t?void 0:t.createHTML(e))||e}function Su(e){var t;return(null===(t=function el(){if(void 0===aa&&(aa=null,vt.trustedTypes))try{aa=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return aa}())||void 0===t?void 0:t.createHTML(e))||e}class To{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class rg extends To{getTypeName(){return"HTML"}}class og extends To{getTypeName(){return"Style"}}class sg extends To{getTypeName(){return"Script"}}class ag extends To{getTypeName(){return"URL"}}class lg extends To{getTypeName(){return"ResourceURL"}}function _o(e){return e instanceof To?e.changingThisBreaksApplicationSecurity:e}function Go(e,t){const n=Pu(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Pu(e){return e instanceof To&&e.getTypeName()||null}function cg(e){return new rg(e)}function ug(e){return new og(e)}function dg(e){return new sg(e)}function hg(e){return new ag(e)}function fg(e){return new lg(e)}class pg{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(zo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class mg{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=zo(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=zo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let r=n.length-1;0Ss(t.trim())).join(", ")),this.buf.push(" ",u,'="',Vu(b),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();tl.hasOwnProperty(n)&&!Fu.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Vu(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Cg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Eg=/([^\#-~ |!])/g;function Vu(e){return e.replace(/&/g,"&").replace(Cg,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Eg,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let la;function Uu(e,t){let n=null;try{la=la||function Ru(e){const t=new mg(e);return function gg(){try{return!!(new window.DOMParser).parseFromString(zo(""),"text/html")}catch(e){return!1}}()?new pg(t):t}(e);let i=t?String(t):"";n=la.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=la.getInertBodyElement(i)}while(i!==s);return zo((new bg).sanitizeChildren(rl(n)||n))}finally{if(n){const i=rl(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function rl(e){return"content"in e&&function Dg(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var yi=(()=>((yi=yi||{})[yi.NONE=0]="NONE",yi[yi.HTML=1]="HTML",yi[yi.STYLE=2]="STYLE",yi[yi.SCRIPT=3]="SCRIPT",yi[yi.URL=4]="URL",yi[yi.RESOURCE_URL=5]="RESOURCE_URL",yi))();function Hu(e){const t=Is();return t?Su(t.sanitize(yi.HTML,e)||""):Go(e,"HTML")?Su(_o(e)):Uu(T(),z(e))}function ol(e){const t=Is();return t?t.sanitize(yi.URL,e)||"":Go(e,"URL")?_o(e):Ss(z(e))}function Is(){const e=ot();return e&&e[12]}const Gu="__ngContext__";function Wi(e,t){e[Gu]=t}function al(e){const t=function Ps(e){return e[Gu]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function cl(e){return e.ngOriginalError}function Vg(e,...t){e.error(...t)}class ca{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function Bg(e){return e&&e.ngErrorLogger||Vg}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&cl(t);for(;n&&cl(n);)n=cl(n);return n||null}}const Zg=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(vt))();function Zu(e){return e.ownerDocument}function io(e){return e instanceof Function?e():e}var ro=(()=>((ro=ro||{})[ro.Important=1]="Important",ro[ro.DashCase=2]="DashCase",ro))();function dl(e,t){return undefined(e,t)}function Rs(e){const t=e[3];return Ci(t)?t[3]:t}function hl(e){return ed(e[13])}function fl(e){return ed(e[4])}function ed(e){for(;null!==e&&!Ci(e);)e=e[4];return e}function Wo(e,t,n,i,r){if(null!=i){let s,u=!1;Ci(i)?s=i:Kn(i)&&(u=!0,i=i[0]);const p=ht(i);0===e&&null!==n?null==r?sd(t,n,p):xo(t,n,p,r||null,!0):1===e&&null!==n?xo(t,n,p,r||null,!0):2===e?function fd(e,t,n){const i=ua(e,t);i&&function l_(e,t,n,i){ae(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,p,u):3===e&&t.destroyNode(p),null!=s&&function d_(e,t,n,i,r){const s=n[7];s!==ht(n)&&Wo(t,e,i,s,r);for(let p=10;p0&&(e[n-1][4]=i[4]);const s=ta(e,10+t);!function e_(e,t){ks(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const u=s[19];null!==u&&u.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function id(e,t){if(!(256&t[2])){const n=t[11];ae(n)&&n.destroyNode&&ks(e,t,n,3,null,null),function i_(e){let t=e[13];if(!t)return _l(e[1],e);for(;t;){let n=null;if(Kn(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Kn(t)&&_l(t[1],t),t=t[3];null===t&&(t=e),Kn(t)&&_l(t[1],t),n=t&&t[4]}t=n}}(t)}}function _l(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function a_(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[r=I]():i[r=-I].unsubscribe(),s+=2}else{const u=i[r=n[s+1]];n[s].call(u)}if(null!==i){for(let s=r+1;ss?"":r[W+1].toLowerCase();const Re=8&i?fe:null;if(Re&&-1!==gd(Re,I,0)||2&i&&I!==fe){if(Hr(i))return!1;u=!0}}}}else{if(!u&&!Hr(i)&&!Hr(b))return!1;if(u&&Hr(b))continue;u=!1,i=b|1&i}}return Hr(i)||u}function Hr(e){return 0==(1&e)}function g_(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let s=!1;for(;r-1)for(n++;n0?'="'+p+'"':"")+"]"}else 8&i?r+="."+u:4&i&&(r+=" "+u);else""!==r&&!Hr(u)&&(t+=bd(s,r),r=""),i=u,s=s||!Hr(i);n++}return""!==r&&(t+=bd(s,r)),t}const an={};function Cd(e){Ed(sn(),ot(),Un()+e,d())}function Ed(e,t,n,i){if(!i)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&fn(t,s,n)}else{const s=e.preOrderHooks;null!==s&&qn(t,s,0,n)}_i(n)}function fa(e,t){return e<<17|t<<2}function jr(e){return e>>17&32767}function El(e){return 2|e}function vo(e){return(131068&e)>>2}function Dl(e,t){return-131069&e|t<<2}function Ml(e){return 1|e}function Rd(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i20&&Ed(e,t,20,d()),n(i,r)}finally{_i(s)}}function Fd(e,t,n){if(Ki(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(p)!=b&&p.push(b),p.push(i,r,u)}}function zd(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Gd(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function q_(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&Bl(n)}}function Bl(e){for(let i=hl(e);null!==i;i=fl(i))for(let r=10;r0&&Bl(s)}const n=e[1].components;if(null!==n)for(let i=0;i0&&Bl(r)}}function iv(e,t){const n=Vn(t,e),i=n[1];(function rv(e,t){for(let n=t.length;nPromise.resolve(null))();function Zd(e){return e[7]||(e[7]=[])}function qd(e){return e.cleanup||(e.cleanup=[])}function Qd(e,t,n){return(null===e||ei(e))&&(n=function En(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Jd(e,t){const n=e[9],i=n?n.get(ca,null):null;i&&i.handleError(t)}function Xd(e,t,n,i,r){for(let s=0;sthis.processProvider(p,t,n)),to([t],p=>this.processInjectorType(p,[],s)),this.records.set(zl,qo(void 0,this));const u=this.records.get(Gl);this.scope=null!=u?u.value:null,this.source=r||("object"==typeof t?null:J(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Ds,i=S.Default){this.assertNotDestroyed();const r=Eu(this),s=L(void 0);try{if(!(i&S.SkipSelf)){let p=this.records.get(t);if(void 0===p){const b=function bv(e){return"function"==typeof e||"object"==typeof e&&e instanceof vi}(t)&&Ge(t);p=b&&this.injectableDefInScope(b)?qo(Wl(t),Ns):null,this.records.set(t,p)}if(null!=p)return this.hydrate(t,p)}return(i&S.Self?th():this.parent).get(t,n=i&S.Optional&&n===Ds?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[ia]=u[ia]||[]).unshift(J(t)),r)throw u;return function Wm(e,t,n,i){const r=e[ia];throw t[Cu]&&r.unshift(t[Cu]),e.message=function Ym(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=J(t);if(Array.isArray(t))r=t.map(J).join(" -> ");else if("object"==typeof t){let s=[];for(let u in t)if(t.hasOwnProperty(u)){let p=t[u];s.push(u+":"+("string"==typeof p?JSON.stringify(p):J(p)))}r=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(Hm,"\n ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[ia]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{L(s),Eu(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(J(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Qe(205,!1)}processInjectorType(t,n,i){if(!(t=Z(t)))return!1;let r=bt(t);const s=null==r&&t.ngModule||void 0,u=void 0===s?t:s,p=-1!==i.indexOf(u);if(void 0!==s&&(r=bt(s)),null==r)return!1;if(null!=r.imports&&!p){let F;i.push(u);try{to(r.imports,W=>{this.processInjectorType(W,n,i)&&(void 0===F&&(F=[]),F.push(W))})}finally{}if(void 0!==F)for(let W=0;Wthis.processProvider(Je,fe,Re||j))}}this.injectorDefTypes.add(u);const b=Mi(u)||(()=>new u);this.records.set(u,qo(b,Ns));const I=r.providers;if(null!=I&&!p){const F=t;to(I,W=>this.processProvider(W,F,I))}return void 0!==s&&void 0!==t.providers}processProvider(t,n,i){let r=Qo(t=Z(t))?t:Z(t&&t.provide);const s=function pv(e,t,n){return oh(e)?qo(void 0,e.useValue):qo(rh(e),Ns)}(t);if(Qo(t)||!0!==t.multi)this.records.get(r);else{let u=this.records.get(r);u||(u=qo(void 0,Ns,!0),u.factory=()=>Qa(u.multi),this.records.set(r,u)),r=t,u.multi.push(t)}this.records.set(r,s)}hydrate(t,n){return n.value===Ns&&(n.value=dv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function yv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Z(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Wl(e){const t=Ge(e),n=null!==t?t.factory:Mi(e);if(null!==n)return n;if(e instanceof vi)throw new Qe(204,!1);if(e instanceof Function)return function fv(e){const t=e.length;if(t>0)throw Es(t,"?"),new Qe(204,!1);const n=function St(e){const t=e&&(e[Nt]||e[Pe]);if(t){const n=function Ht(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Qe(204,!1)}function rh(e,t,n){let i;if(Qo(e)){const r=Z(e);return Mi(r)||Wl(r)}if(oh(e))i=()=>Z(e.useValue);else if(function gv(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Qa(e.deps||[]));else if(function mv(e){return!(!e||!e.useExisting)}(e))i=()=>Ni(Z(e.useExisting));else{const r=Z(e&&(e.useClass||e.provide));if(!function vv(e){return!!e.deps}(e))return Mi(r)||Wl(r);i=()=>new r(...Qa(e.deps))}return i}function qo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function oh(e){return null!==e&&"object"==typeof e&&zm in e}function Qo(e){return"function"==typeof e}let zr=(()=>{class e{static create(n,i){var r;if(Array.isArray(n))return nh({name:""},i,n,"");{const s=null!==(r=n.name)&&void 0!==r?r:"";return nh({name:s},n.parent,n.providers,s)}}}return e.THROW_IF_NOT_FOUND=Ds,e.NULL=new eh,e.\u0275prov=Q({token:e,providedIn:"any",factory:()=>Ni(zl)}),e.__NG_ELEMENT_ID__=-1,e})();function xv(e,t){Lt(al(e)[1],Zn())}function Zl(e){let t=function _h(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let r;if(ei(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Qe(903,"");r=t.\u0275dir}if(r){if(n){i.push(r);const u=e;u.inputs=ql(e.inputs),u.declaredInputs=ql(e.declaredInputs),u.outputs=ql(e.outputs);const p=r.hostBindings;p&&Pv(e,p);const b=r.viewQuery,I=r.contentQueries;if(b&&Ov(e,b),I&&Iv(e,I),de(e.inputs,r.inputs),de(e.declaredInputs,r.declaredInputs),de(e.outputs,r.outputs),ei(r)&&r.data.animation){const F=e.data;F.animation=(F.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let u=0;u=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=ko(r.hostAttrs,n=ko(n,r.hostAttrs))}}(i)}function ql(e){return e===V?{}:e===j?[]:e}function Ov(e,t){const n=e.viewQuery;e.viewQuery=n?(i,r)=>{t(i,r),n(i,r)}:t}function Iv(e,t){const n=e.contentQueries;e.contentQueries=n?(i,r,s)=>{t(i,r,s),n(i,r,s)}:t}function Pv(e,t){const n=e.hostBindings;e.hostBindings=n?(i,r)=>{t(i,r),n(i,r)}:t}let ya=null;function Jo(){if(!ya){const e=vt.Symbol;if(e&&e.iterator)ya=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;np(ht(yn[i.index])):i.index;if(ae(n)){let yn=null;if(!p&&b&&(yn=function ly(e,t,n,i){const r=e.cleanup;if(null!=r)for(let s=0;sb?p[b]:null}"string"==typeof u&&(s+=2)}return null}(e,t,r,i.index)),null!==yn)(yn.__ngLastListenerFn__||yn).__ngNextListenerFn__=s,yn.__ngLastListenerFn__=s,Re=!1;else{s=cc(i,t,W,s,!1);const In=n.listen(wt,r,s);fe.push(s,In),F&&F.push(r,Gt,it,it+1)}}else s=cc(i,t,W,s,!0),wt.addEventListener(r,s,u),fe.push(s),F&&F.push(r,Gt,it,u)}else s=cc(i,t,W,s,!1);const Je=i.outputs;let ut;if(Re&&null!==Je&&(ut=Je[r])){const pt=ut.length;if(pt)for(let wt=0;wt0;)t=t[15],e--;return t}(e,y.lFrame.contextLView))[8]}(e)}function cy(e,t){let n=null;const i=function __(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let r=0;r=0}const xi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function sf(e){return e.substring(xi.key,xi.keyEnd)}function af(e,t){const n=xi.textEnd;return n===t?-1:(t=xi.keyEnd=function gy(e,t,n){for(;t32;)t++;return t}(e,xi.key=t,n),cs(e,t,n))}function cs(e,t,n){for(;t=0;n=af(t,n))Mr(e,sf(t),!0)}function $r(e,t,n,i){const r=ot(),s=sn(),u=ne(2);s.firstUpdatePass&&pf(s,e,u,i),t!==an&&Yi(r,u,t)&&gf(s,s.data[Un()],r,r[11],e,r[u+1]=function Ay(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=J(_o(e)))),e}(t,n),i,u)}function Wr(e,t,n,i){const r=sn(),s=ne(2);r.firstUpdatePass&&pf(r,null,s,i);const u=ot();if(n!==an&&Yi(u,s,n)){const p=r.data[Un()];if(vf(p,i)&&!ff(r,s)){let b=i?p.classesWithoutHost:p.stylesWithoutHost;null!==b&&(n=le(b,n||"")),rc(r,p,u,n,i)}else!function wy(e,t,n,i,r,s,u,p){r===an&&(r=j);let b=0,I=0,F=0=e.expandoStartIndex}function pf(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[Un()],u=ff(e,n);vf(s,i)&&null===t&&!u&&(t=!1),t=function by(e,t,n,i){const r=Xt(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Hs(n=pc(null,e,t,n,i),t.attrs,i),s=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==r)if(n=pc(r,e,t,n,i),null===s){let b=function Cy(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==vo(i))return e[jr(i)]}(e,t,i);void 0!==b&&Array.isArray(b)&&(b=pc(null,e,t,b[1],i),b=Hs(b,t.attrs,i),function Ey(e,t,n,i){e[jr(n?t.classBindings:t.styleBindings)]=i}(e,t,i,b))}else s=function Dy(e,t,n){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(I=!0)}else F=n;if(r)if(0!==b){const fe=jr(e[p+1]);e[i+1]=fa(fe,p),0!==fe&&(e[fe+1]=Dl(e[fe+1],i)),e[p+1]=function M_(e,t){return 131071&e|t<<17}(e[p+1],i)}else e[i+1]=fa(p,0),0!==p&&(e[p+1]=Dl(e[p+1],i)),p=i;else e[i+1]=fa(b,0),0===p?p=i:e[b+1]=Dl(e[b+1],i),b=i;I&&(e[i+1]=El(e[i+1])),rf(e,F,i,!0),rf(e,F,i,!1),function dy(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&Ho(s,t)>=0&&(n[i+1]=Ml(n[i+1]))}(t,F,e,i,s),u=fa(p,b),s?t.classBindings=u:t.styleBindings=u}(r,s,t,n,u,i)}}function pc(e,t,n,i,r){let s=null;const u=n.directiveEnd;let p=n.directiveStylingLast;for(-1===p?p=n.directiveStart:p++;p0;){const b=e[r],I=Array.isArray(b),F=I?b[1]:b,W=null===F;let fe=n[r+1];fe===an&&(fe=W?j:void 0);let Re=W?Ka(fe,i):F===i?fe:void 0;if(I&&!Aa(Re)&&(Re=Ka(b,i)),Aa(Re)&&(p=Re,u))return p;const Je=e[r+1];r=u?jr(Je):vo(Je)}if(null!==t){let b=s?t.residualClasses:t.residualStyles;null!=b&&(p=Ka(b,i))}return p}function Aa(e){return void 0!==e}function vf(e,t){return 0!=(e.flags&(t?16:32))}function yf(e,t=""){const n=ot(),i=sn(),r=e+20,s=i.firstCreatePass?Yo(i,r,1,t,null):i.data[r],u=n[r]=function pl(e,t){return ae(e)?e.createText(t):e.createTextNode(t)}(n[11],t);da(i,n,u,s),Vi(s,!1)}function mc(e){return Ta("",e,""),mc}function Ta(e,t,n){const i=ot(),r=es(i,e,t,n);return r!==an&&yo(i,Un(),r),Ta}function gc(e,t,n,i,r){const s=ot(),u=function ts(e,t,n,i,r,s){const p=So(e,v(),n,r);return ne(2),p?t+z(n)+i+z(r)+s:an}(s,e,t,n,i,r);return u!==an&&yo(s,Un(),u),gc}function _c(e,t,n,i,r,s,u){const p=ot(),b=ns(p,e,t,n,i,r,s,u);return b!==an&&yo(p,Un(),b),_c}function Af(e,t,n){Wr(Mr,lo,es(ot(),e,t,n),!0)}function vc(e,t,n){const i=ot();return Yi(i,G(),t)&&wr(sn(),Hn(),i,e,t,i[11],n,!0),vc}function yc(e,t,n){const i=ot();if(Yi(i,G(),t)){const s=sn(),u=Hn();wr(s,u,i,e,t,Qd(Xt(s.data),u,i),n,!0)}return yc}const Oo=void 0;var $y=["en",[["a","p"],["AM","PM"],Oo],[["AM","PM"],Oo,Oo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Oo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Oo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Oo,"{1} 'at' {0}",Oo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Gy(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let us={};function bc(e){const t=function Wy(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Nf(t);if(n)return n;const i=t.split("-")[0];if(n=Nf(i),n)return n;if("en"===i)return $y;throw new Error(`Missing locale data for the locale "${e}".`)}function Lf(e){return bc(e)[qt.PluralCase]}function Nf(e){return e in us||(us[e]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[e]),us[e]}var qt=(()=>((qt=qt||{})[qt.LocaleId=0]="LocaleId",qt[qt.DayPeriodsFormat=1]="DayPeriodsFormat",qt[qt.DayPeriodsStandalone=2]="DayPeriodsStandalone",qt[qt.DaysFormat=3]="DaysFormat",qt[qt.DaysStandalone=4]="DaysStandalone",qt[qt.MonthsFormat=5]="MonthsFormat",qt[qt.MonthsStandalone=6]="MonthsStandalone",qt[qt.Eras=7]="Eras",qt[qt.FirstDayOfWeek=8]="FirstDayOfWeek",qt[qt.WeekendRange=9]="WeekendRange",qt[qt.DateFormat=10]="DateFormat",qt[qt.TimeFormat=11]="TimeFormat",qt[qt.DateTimeFormat=12]="DateTimeFormat",qt[qt.NumberSymbols=13]="NumberSymbols",qt[qt.NumberFormats=14]="NumberFormats",qt[qt.CurrencyCode=15]="CurrencyCode",qt[qt.CurrencySymbol=16]="CurrencySymbol",qt[qt.CurrencyName=17]="CurrencyName",qt[qt.Currencies=18]="Currencies",qt[qt.Directionality=19]="Directionality",qt[qt.PluralCase=20]="PluralCase",qt[qt.ExtraData=21]="ExtraData",qt))();const xa="en-US";let Bf=xa;function Dc(e,t,n,i,r){if(e=Z(e),Array.isArray(e))for(let s=0;s>20;if(Qo(e)||!e.multi){const Re=new Or(b,r,Us),Je=wc(p,t,r?F:F+fe,W);-1===Je?(Mt(B(I,u),s,p),Mc(s,e,t.length),t.push(p),I.directiveStart++,I.directiveEnd++,r&&(I.providerIndexes+=1048576),n.push(Re),u.push(Re)):(n[Je]=Re,u[Je]=Re)}else{const Re=wc(p,t,F+fe,W),Je=wc(p,t,F,F+fe),ut=Re>=0&&n[Re],pt=Je>=0&&n[Je];if(r&&!pt||!r&&!ut){Mt(B(I,u),s,p);const wt=function Gb(e,t,n,i,r){const s=new Or(e,n,Us);return s.multi=[],s.index=t,s.componentProviders=0,lp(s,r,i&&!n),s}(r?zb:jb,n.length,r,i,b);!r&&pt&&(n[Je].providerFactory=wt),Mc(s,e,t.length,0),t.push(p),I.directiveStart++,I.directiveEnd++,r&&(I.providerIndexes+=1048576),n.push(wt),u.push(wt)}else Mc(s,e,Re>-1?Re:Je,lp(n[r?Je:Re],b,!r&&i));!r&&i&&pt&&n[Je].componentProviders++}}}function Mc(e,t,n,i){const r=Qo(t),s=function _v(e){return!!e.useClass}(t);if(r||s){const b=(s?Z(t.useClass):t).prototype.ngOnDestroy;if(b){const I=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const F=I.indexOf(n);-1===F?I.push(n,[i,b]):I[F+1].push(i,b)}else I.push(n,b)}}}function lp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function wc(e,t,n,i){for(let r=n;r{n.providersResolver=(i,r)=>function Hb(e,t,n){const i=sn();if(i.firstCreatePass){const r=ei(e);Dc(n,i.data,i.blueprint,r,!0),Dc(t,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,t)}}class up{}class Yb{resolveComponentFactory(t){throw function Wb(e){const t=Error(`No component factory found for ${J(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ra=(()=>{class e{}return e.NULL=new Yb,e})();function Kb(){return hs(Zn(),ot())}function hs(e,t){return new Ws(zt(e,t))}let Ws=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Kb,e})();function Zb(e){return e instanceof Ws?e.nativeElement:e}class hp{}let qb=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function Jb(){const e=ot(),n=Vn(Zn().index,e);return function Qb(e){return e[11]}(Kn(n)?n:e)}(),e})(),Xb=(()=>{class e{}return e.\u0275prov=Q({token:e,providedIn:"root",factory:()=>null}),e})();class fp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const e0=new fp("13.2.5"),Tc={};function ka(e,t,n,i,r=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(ht(s)),Ci(s))for(let p=10;p-1&&(gl(t,i),ta(n,i))}this._attachedToViewContainer=!1}id(this._lView[1],this._lView)}onDestroy(t){Vd(this._lView[1],this._lView,null,t)}markForCheck(){Vl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Hl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function sv(e,t,n){a(!0);try{Hl(e,t,n)}finally{a(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Qe(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function n_(e,t){ks(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Qe(902,"");this._appRef=t}}class t0 extends Ys{constructor(t){super(t),this._view=t}detectChanges(){Kd(this._view)}checkNoChanges(){!function av(e){a(!0);try{Kd(e)}finally{a(!1)}}(this._view)}get context(){return null}}class pp extends Ra{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=en(t);return new xc(n,this.ngModule)}}function mp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class xc extends up{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function E_(e){return e.map(C_).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return mp(this.componentDef.inputs)}get outputs(){return mp(this.componentDef.outputs)}create(t,n,i,r){const s=(r=r||this.ngModule)?function r0(e,t){return{get:(n,i,r)=>{const s=e.get(n,Tc,r);return s!==Tc||i===Tc?s:t.get(n,i,r)}}}(t,r.injector):t,u=s.get(hp,$e),p=s.get(Xb,null),b=u.createRenderer(null,this.componentDef),I=this.componentDef.selectors[0][0]||"div",F=i?function Bd(e,t,n){if(ae(e))return e.selectRootElement(t,n===Ot.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(b,i,this.componentDef.encapsulation):ml(u.createRenderer(null,this.componentDef),I,function n0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(I)),W=this.componentDef.onPush?576:528,fe=function gh(e,t){return{components:[],scheduler:e||Zg,clean:lv,playerHandler:t||null,flags:0}}(),Re=ga(0,null,null,1,0,null,null,null,null,null),Je=Fs(null,Re,fe,W,null,null,u,b,p,s);let ut,pt;$n(Je);try{const wt=function ph(e,t,n,i,r,s){const u=n[1];n[20]=e;const b=Yo(u,20,2,"#host",null),I=b.mergedAttrs=t.hostAttrs;null!==I&&(va(b,I,!0),null!==e&&(Ro(r,e,I),null!==b.classes&&Cl(r,e,b.classes),null!==b.styles&&md(r,e,b.styles)));const F=i.createRenderer(e,t),W=Fs(n,Ld(t),null,t.onPush?64:16,n[20],b,i,F,s||null,null);return u.firstCreatePass&&(Mt(B(b,n),u,t.type),Gd(u,b),$d(b,n.length,1)),_a(n,W),n[20]=W}(F,this.componentDef,Je,u,b);if(F)if(i)Ro(b,F,["ng-version",e0.full]);else{const{attrs:it,classes:Gt}=function D_(e){const t=[],n=[];let i=1,r=2;for(;i0&&Cl(b,F,Gt.join(" "))}if(pt=vn(Re,20),void 0!==n){const it=pt.projection=[];for(let Gt=0;Gtb(u,t)),t.contentQueries){const b=Zn();t.contentQueries(1,u,b.directiveStart)}const p=Zn();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(_i(p.index),jd(n[1],p,0,p.directiveStart,p.directiveEnd,t),zd(t,u)),u}(wt,this.componentDef,Je,fe,[xv]),Ls(Re,Je,null)}finally{Ui()}return new s0(this.componentType,ut,hs(pt,Je),Je,pt)}}class s0 extends class $b{}{constructor(t,n,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new t0(r),this.componentType=t}get injector(){return new Lo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class fs{}class gp{}const ps=new Map;class yp extends fs{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new pp(this);const i=jn(t);this._bootstrapComponents=io(i.bootstrap),this._r3Injector=ih(t,n,[{provide:fs,useValue:this},{provide:Ra,useValue:this.componentFactoryResolver}],J(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=zr.THROW_IF_NOT_FOUND,i=S.Default){return t===zr||t===fs||t===zl?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Sc extends gp{constructor(t){super(),this.moduleType=t,null!==jn(t)&&function l0(e){const t=new Set;!function n(i){const r=jn(i,!0),s=r.id;null!==s&&(function _p(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${J(t)} vs ${J(t.name)}`)}(s,ps.get(s),i),ps.set(s,i));const u=io(r.imports);for(const p of u)t.has(p)||(t.add(p),n(p))}(e)}(t)}create(t){return new yp(this.moduleType,t)}}function bp(e,t,n,i){return Cp(ot(),l(),e,t,n,i)}function Cp(e,t,n,i,r,s){const u=t+n;return Yi(e,u,r)?function so(e,t,n){return e[t]=n}(e,u+1,s?i.call(s,r):i(r)):function Ks(e,t){const n=e[t];return n===an?void 0:n}(e,u+1)}function Ap(e,t){const n=sn();let i;const r=e+20;n.firstCreatePass?(i=function v0(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=Mi(i.type)),u=L(Us);try{const p=ys(!1),b=s();return ys(p),function Uv(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,ot(),r,b),b}finally{L(u)}}function Tp(e,t,n){const i=e+20,r=ot(),s=Sn(r,i);return function Zs(e,t){return e[1].data[t].pure}(r,i)?Cp(r,l(),t,s.transform,n,s):s.transform(n)}function Oc(e){return t=>{setTimeout(e,void 0,t)}}const co=class D0 extends c.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var r,s,u;let p=t,b=n||(()=>null),I=i;if(t&&"object"==typeof t){const W=t;p=null===(r=W.next)||void 0===r?void 0:r.bind(W),b=null===(s=W.error)||void 0===s?void 0:s.bind(W),I=null===(u=W.complete)||void 0===u?void 0:u.bind(W)}this.__isAsync&&(b=Oc(b),p&&(p=Oc(p)),I&&(I=Oc(I)));const F=super.subscribe({next:p,error:b,complete:I});return t instanceof o.w0&&t.add(F),F}};function M0(){return this._results[Jo()]()}class Fa{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Jo(),i=Fa.prototype;i[n]||(i[n]=M0)}get changes(){return this._changes||(this._changes=new co)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const r=Pr(t);(this._changesDetected=!function Pm(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=T0,e})();const w0=qs,A0=class extends w0{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Fs(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(n)),Ls(n,i,t),new Ys(i)}};function T0(){return La(Zn(),ot())}function La(e,t){return 4&e.type?new A0(t,e,hs(e,t)):null}let Na=(()=>{class e{}return e.__NG_ELEMENT_ID__=x0,e})();function x0(){return Op(Zn(),ot())}const S0=Na,xp=class extends S0{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return hs(this._hostTNode,this._hostLView)}get injector(){return new Lo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ze(this._hostTNode,this._hostLView);if(Fo(t)){const n=fo(t,this._hostLView),i=Co(t);return new Lo(n[1].data[i+8],n)}return new Lo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Sp(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const r=t.createEmbeddedView(n||{});return this.insert(r,i),r}createComponent(t,n,i,r,s){const u=t&&!function Cs(e){return"function"==typeof e}(t);let p;if(u)p=n;else{const W=n||{};p=W.index,i=W.injector,r=W.projectableNodes,s=W.ngModuleRef}const b=u?t:new xc(en(t)),I=i||this.parentInjector;if(!s&&null==b.ngModule){const fe=(u?I:this.parentInjector).get(fs,null);fe&&(s=fe)}const F=b.create(I,r,void 0,s);return this.insert(F.hostView,p),F}insert(t,n){const i=t._lView,r=i[1];if(function Ri(e){return Ci(e[3])}(i)){const F=this.indexOf(t);if(-1!==F)this.detach(F);else{const W=i[3],fe=new xp(W,W[6],W[3]);fe.detach(fe.indexOf(t))}}const s=this._adjustIndex(n),u=this._lContainer;!function r_(e,t,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=t),i0)i.push(u[p/2]);else{const I=s[p+1],F=t[-b];for(let W=10;W{class e{constructor(n){this.appInits=n,this.resolve=Ua,this.reject=Ua,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{s.subscribe({complete:p,error:b})});n.push(u)}}Promise.all(n).then(()=>{i()}).catch(r=>{this.reject(r)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Ni(nm,8))},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const im=new vi("AppId",{providedIn:"root",factory:function rm(){return`${zc()}${zc()}${zc()}`}});function zc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const om=new vi("Platform Initializer"),sm=new vi("Platform ID"),am=new vi("appBootstrapListener");let lm=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();const Gc=new vi("LocaleId",{providedIn:"root",factory:()=>Mu(Gc,S.Optional|S.SkipSelf)||function tC(){return"undefined"!=typeof $localize&&$localize.locale||xa}()}),nC=new vi("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class iC{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let rC=(()=>{class e{compileModuleSync(n){return new Sc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),s=io(jn(n).declarations).reduce((u,p)=>{const b=en(p);return b&&u.push(new xc(b)),u},[]);return new iC(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sC=(()=>Promise.resolve(0))();function $c(e){"undefined"==typeof Zone?sC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Yr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new co(!1),this.onMicrotaskEmpty=new co(!1),this.onStable=new co(!1),this.onError=new co(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&n,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function aC(){let e=vt.requestAnimationFrame,t=vt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function uC(e){const t=()=>{!function cC(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(vt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Yc(e),e.isCheckStableRunning=!0,Wc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Yc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,u,p)=>{try{return cm(e),n.invokeTask(r,s,u,p)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),um(e)}},onInvoke:(n,i,r,s,u,p,b)=>{try{return cm(e),n.invoke(r,s,u,p,b)}finally{e.shouldCoalesceRunChangeDetection&&t(),um(e)}},onHasTask:(n,i,r,s)=>{n.hasTask(r,s),i===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Yc(e),Wc(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,r,s)=>(n.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Yr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Yr.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,r){const s=this._inner,u=s.scheduleEventTask("NgZoneEvent: "+r,t,lC,Ua,Ua);try{return s.runTask(u,n,i)}finally{s.cancelTask(u)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const lC={};function Wc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Yc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function cm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function um(e){e._nesting--,Wc(e)}class dC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new co,this.onMicrotaskEmpty=new co,this.onStable=new co,this.onError=new co}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,r){return t.apply(n,i)}}let dm=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Yr.assertNotInAngularZone(),$c(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())$c(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:r})}whenStable(n,i,r){if(r&&!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,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,r){return[]}}return e.\u0275fac=function(n){return new(n||e)(Ni(Yr))},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})(),hm=(()=>{class e{constructor(){this._applications=new Map,Kc.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return Kc.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();class hC{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function fC(e){Kc=e}let Kr,Kc=new hC;const fm=new vi("AllowMultipleToken");class gC{constructor(t,n){this.name=t,this.token=n}}function pm(e,t,n=[]){const i=`Platform: ${t}`,r=new vi(i);return(s=[])=>{let u=mm();if(!u||u.injector.get(fm,!1))if(e)e(n.concat(s).concat({provide:r,useValue:!0}));else{const p=n.concat(s).concat({provide:r,useValue:!0},{provide:Gl,useValue:"platform"});!function _C(e){if(Kr&&!Kr.destroyed&&!Kr.injector.get(fm,!1))throw new Qe(400,"");Kr=e.get(gm);const t=e.get(om,null);t&&t.forEach(n=>n())}(zr.create({providers:p,name:i}))}return function vC(e){const t=mm();if(!t)throw new Qe(401,"");return t}()}}function mm(){return Kr&&!Kr.destroyed?Kr:null}let gm=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const p=function yC(e,t){let n;return n="noop"===e?new dC:("zone.js"===e?void 0:e)||new Yr({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),b=[{provide:Yr,useValue:p}];return p.run(()=>{const I=zr.create({providers:b,parent:this.injector,name:n.moduleType.name}),F=n.create(I),W=F.injector.get(ca,null);if(!W)throw new Qe(402,"");return p.runOutsideAngular(()=>{const fe=p.onError.subscribe({next:Re=>{W.handleError(Re)}});F.onDestroy(()=>{qc(this._modules,F),fe.unsubscribe()})}),function bC(e,t,n){try{const i=n();return sc(i)?i.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(W,p,()=>{const fe=F.injector.get(jc);return fe.runInitializers(),fe.donePromise.then(()=>(function qy(e){Ut(e,"Expected localeId to be defined"),"string"==typeof e&&(Bf=e.toLowerCase().replace(/_/g,"-"))}(F.injector.get(Gc,xa)||xa),this._moduleDoBootstrap(F),F))})})}bootstrapModule(n,i=[]){const r=_m({},i);return function pC(e,t,n){const i=new Sc(n);return Promise.resolve(i)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(n){const i=n.injector.get(Zc);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!n.instance.ngDoBootstrap)throw new Qe(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Qe(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Ni(zr))},e.\u0275prov=Q({token:e,factory:e.\u0275fac}),e})();function _m(e,t){return Array.isArray(t)?t.reduce(_m,e):Object.assign(Object.assign({},e),t)}let Zc=(()=>{class e{constructor(n,i,r,s,u){this._zone=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const p=new g.y(I=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{I.next(this._stable),I.complete()})}),b=new g.y(I=>{let F;this._zone.runOutsideAngular(()=>{F=this._zone.onStable.subscribe(()=>{Yr.assertNotInAngularZone(),$c(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,I.next(!0))})})});const W=this._zone.onUnstable.subscribe(()=>{Yr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{I.next(!1)}))});return()=>{F.unsubscribe(),W.unsubscribe()}});this.isStable=(0,Y.T)(p,b.pipe(function ue(e={}){const{connector:t=(()=>new c.x),resetOnError:n=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return s=>{let u=null,p=null,b=null,I=0,F=!1,W=!1;const fe=()=>{null==p||p.unsubscribe(),p=null},Re=()=>{fe(),u=b=null,F=W=!1},Je=()=>{const ut=u;Re(),null==ut||ut.unsubscribe()};return(0,Ce.e)((ut,pt)=>{I++,!W&&!F&&fe();const wt=b=null!=b?b:t();pt.add(()=>{I--,0===I&&!W&&!F&&(p=ee(Je,r))}),wt.subscribe(pt),u||(u=new De.Hp({next:it=>wt.next(it),error:it=>{W=!0,fe(),p=ee(Re,n,it),wt.error(it)},complete:()=>{F=!0,fe(),p=ee(Re,i),wt.complete()}}),(0,ce.D)(ut).subscribe(u))})(s)}}()))}bootstrap(n,i){if(!this._initStatus.done)throw new Qe(405,"");let r;r=n instanceof up?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(r.componentType);const s=function mC(e){return e.isBoundToModule}(r)?void 0:this._injector.get(fs),p=r.create(zr.NULL,[],i||r.selector,s),b=p.location.nativeElement,I=p.injector.get(dm,null),F=I&&p.injector.get(hm);return I&&F&&F.registerApplication(b,I),p.onDestroy(()=>{this.detachView(p.hostView),qc(this.components,p),F&&F.unregisterApplication(b)}),this._loadComponent(p),p}tick(){if(this._runningTick)throw new Qe(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;qc(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(am,[]).concat(this._bootstrapListeners).forEach(r=>r(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(Ni(Yr),Ni(zr),Ni(ca),Ni(Ra),Ni(jc))},e.\u0275prov=Q({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function qc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let ym=!0;function EC(){ym=!1}let DC=(()=>{class e{}return e.__NG_ELEMENT_ID__=MC,e})();function MC(e){return function wC(e,t,n){if(Zi(e)&&!n){const i=Vn(e.index,t);return new Ys(i,i)}return 47&e.type?new Ys(t[16],t):null}(Zn(),ot(),16==(16&e))}class Mm{constructor(){}supports(t){return Bs(t)}create(t){return new IC(t)}}const OC=(e,t)=>t;class IC{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||OC}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,r=0,s=null;for(;n||i;){const u=!i||n&&n.currentIndex{u=this._trackByFn(r,p),null!==n&&Object.is(n.trackById,u)?(i&&(n=this._verifyReinsertion(n,p,u,r)),Object.is(n.item,p)||this._addIdentityChange(n,p)):(n=this._mismatch(n,p,u,r),i=!0),n=n._next,r++}),this.length=r;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,r)):t=this._addAfter(new PC(n,i),s,r),t}_verifyReinsertion(t,n,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const r=null===n?this._itHead:n._next;return t._next=r,t._prev=n,null===r?this._itTail=t:r._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new wm),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wm),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class PC{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class RC{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class wm{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new RC,this.map.set(n,i)),i.add(t)}get(t,n){const r=this.map.get(t);return r?r.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Am(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i{if(n&&n.key===r)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(r,i);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,n);const s=r._prev,u=r._next;return s&&(s._next=u),u&&(u._prev=s),r._next=null,r._prev=null,r}const i=new FC(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class FC{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function xm(){return new tu([new Mm])}let tu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||xm()),deps:[[e,new Ts,new As]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(null!=i)return i;throw new Qe(901,"")}}return e.\u0275prov=Q({token:e,providedIn:"root",factory:xm}),e})();function Sm(){return new nu([new Tm])}let nu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Sm()),deps:[[e,new Ts,new As]]}}find(n){const i=this.factories.find(s=>s.supports(n));if(i)return i;throw new Qe(901,"")}}return e.\u0275prov=Q({token:e,providedIn:"root",factory:Sm}),e})();const BC=pm(null,"core",[{provide:sm,useValue:"unknown"},{provide:gm,deps:[zr]},{provide:hm,deps:[]},{provide:lm,deps:[]}]);let VC=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Ni(Zc))},e.\u0275mod=Ie({type:e}),e.\u0275inj=He({}),e})()},2382:(qe,ye,C)=>{C.d(ye,{Zs:()=>T,sg:()=>sr,u5:()=>Vn,Cf:()=>pe,JU:()=>ke,a5:()=>at,JL:()=>L,F:()=>gn,kI:()=>ve,_Y:()=>On});var c=C(4893),g=(C(9808),C(8306)),Y=C(4742),ce=C(8421),ie=C(3269),De=C(5403),Ce=C(3268),ue=C(1810),se=C(2076),de=C(4004);const ke=new c.OlP("NgValueAccessor");function z(x){return null==x||0===x.length}function q(x){return null!=x&&"number"==typeof x.length}const pe=new c.OlP("NgValidators"),Te=new c.OlP("NgAsyncValidators"),Ne=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ve{static min(M){return function Me(x){return M=>{if(z(M.value)||z(x))return null;const y=parseFloat(M.value);return!isNaN(y)&&y{if(z(M.value)||z(x))return null;const y=parseFloat(M.value);return!isNaN(y)&&y>x?{max:{max:x,actual:M.value}}:null}}(M)}static required(M){return Ae(M)}static requiredTrue(M){return tt(M)}static email(M){return function Fe(x){return z(x.value)||Ne.test(x.value)?null:{email:!0}}(M)}static minLength(M){return function Ct(x){return M=>z(M.value)||!q(M.value)?null:M.value.lengthq(M.value)&&M.value.length>x?{maxlength:{requiredLength:x,actualLength:M.value.length}}:null}(M)}static pattern(M){return function Jt(x){if(!x)return yt;let M,y;return"string"==typeof x?(y="","^"!==x.charAt(0)&&(y+="^"),y+=x,"$"!==x.charAt(x.length-1)&&(y+="$"),M=new RegExp(y)):(y=x.toString(),M=x),U=>{if(z(U.value))return null;const We=U.value;return M.test(We)?null:{pattern:{requiredPattern:y,actualValue:We}}}}(M)}static nullValidator(M){return null}static compose(M){return on(M)}static composeAsync(M){return je(M)}}function Ae(x){return z(x.value)?{required:!0}:null}function tt(x){return!0===x.value?null:{required:!0}}function yt(x){return null}function Rt(x){return null!=x}function Wt(x){const M=(0,c.QGY)(x)?(0,se.D)(x):x;return(0,c.CqO)(M),M}function Pt(x){let M={};return x.forEach(y=>{M=null!=y?Object.assign(Object.assign({},M),y):M}),0===Object.keys(M).length?null:M}function mn(x,M){return M.map(y=>y(x))}function xt(x){return x.map(M=>function Ut(x){return!x.validate}(M)?M:y=>M.validate(y))}function on(x){if(!x)return null;const M=x.filter(Rt);return 0==M.length?null:function(y){return Pt(mn(y,M))}}function Xe(x){return null!=x?on(xt(x)):null}function je(x){if(!x)return null;const M=x.filter(Rt);return 0==M.length?null:function(y){return function ee(...x){const M=(0,ie.jO)(x),{args:y,keys:U}=(0,Y.D)(x),We=new g.y(Et=>{const{length:Dn}=y;if(!Dn)return void Et.complete();const gi=new Array(Dn);let Gi=Dn,Fi=Dn;for(let ot=0;ot{sn||(sn=!0,Fi--),gi[ot]=Jr},()=>Gi--,void 0,()=>{(!Gi||!sn)&&(Fi||Et.next(U?(0,ue.n)(U,gi):gi),Et.complete())}))}});return M?We.pipe((0,Ce.Z)(M)):We}(mn(y,M).map(Wt)).pipe((0,de.U)(Pt))}}function Q(x){return null!=x?je(xt(x)):null}function K(x,M){return null===x?[M]:Array.isArray(x)?[...x,M]:[x,M]}function He(x){return x._rawValidators}function Ge(x){return x._rawAsyncValidators}function lt(x){return x?Array.isArray(x)?x:[x]:[]}function St(x,M){return Array.isArray(x)?x.includes(M):x===M}function Ht(x,M){const y=lt(M);return lt(x).forEach(We=>{St(y,We)||y.push(We)}),y}function bt(x,M){return lt(M).filter(y=>!St(x,y))}class Nt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(M){this._rawValidators=M||[],this._composedValidatorFn=Xe(this._rawValidators)}_setAsyncValidators(M){this._rawAsyncValidators=M||[],this._composedAsyncValidatorFn=Q(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(M){this._onDestroyCallbacks.push(M)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(M=>M()),this._onDestroyCallbacks=[]}reset(M){this.control&&this.control.reset(M)}hasError(M,y){return!!this.control&&this.control.hasError(M,y)}getError(M,y){return this.control?this.control.getError(M,y):null}}class at extends Nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Pe extends Nt{get formDirective(){return null}get path(){return null}}let L=(()=>{class x extends class E{constructor(M){this._cd=M}is(M){var y,U,We;return"submitted"===M?!!(null===(y=this._cd)||void 0===y?void 0:y.submitted):!!(null===(We=null===(U=this._cd)||void 0===U?void 0:U.control)||void 0===We?void 0:We[M])}}{constructor(y){super(y)}}return x.\u0275fac=function(y){return new(y||x)(c.Y36(Pe,10))},x.\u0275dir=c.lG2({type:x,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(y,U){2&y&&c.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))("ng-submitted",U.is("submitted"))},features:[c.qOj]}),x})();function he(x,M){Zt(x,M),M.valueAccessor.writeValue(x.value),function Dt(x,M){M.valueAccessor.registerOnChange(y=>{x._pendingValue=y,x._pendingChange=!0,x._pendingDirty=!0,"change"===x.updateOn&&Ve(x,M)})}(x,M),function _e(x,M){const y=(U,We)=>{M.valueAccessor.writeValue(U),We&&M.viewToModelUpdate(U)};x.registerOnChange(y),M._registerOnDestroy(()=>{x._unregisterOnChange(y)})}(x,M),function Rn(x,M){M.valueAccessor.registerOnTouched(()=>{x._pendingTouched=!0,"blur"===x.updateOn&&x._pendingChange&&Ve(x,M),"submit"!==x.updateOn&&x.markAsTouched()})}(x,M),function At(x,M){if(M.valueAccessor.setDisabledState){const y=U=>{M.valueAccessor.setDisabledState(U)};x.registerOnDisabledChange(y),M._registerOnDestroy(()=>{x._unregisterOnDisabledChange(y)})}}(x,M)}function Se(x,M,y=!0){const U=()=>{};M.valueAccessor&&(M.valueAccessor.registerOnChange(U),M.valueAccessor.registerOnTouched(U)),Kt(x,M),x&&(M._invokeOnDestroyCallbacks(),x._registerOnCollectionChange(()=>{}))}function st(x,M){x.forEach(y=>{y.registerOnValidatorChange&&y.registerOnValidatorChange(M)})}function Zt(x,M){const y=He(x);null!==M.validator?x.setValidators(K(y,M.validator)):"function"==typeof y&&x.setValidators([y]);const U=Ge(x);null!==M.asyncValidator?x.setAsyncValidators(K(U,M.asyncValidator)):"function"==typeof U&&x.setAsyncValidators([U]);const We=()=>x.updateValueAndValidity();st(M._rawValidators,We),st(M._rawAsyncValidators,We)}function Kt(x,M){let y=!1;if(null!==x){if(null!==M.validator){const We=He(x);if(Array.isArray(We)&&We.length>0){const Et=We.filter(Dn=>Dn!==M.validator);Et.length!==We.length&&(y=!0,x.setValidators(Et))}}if(null!==M.asyncValidator){const We=Ge(x);if(Array.isArray(We)&&We.length>0){const Et=We.filter(Dn=>Dn!==M.asyncValidator);Et.length!==We.length&&(y=!0,x.setAsyncValidators(Et))}}}const U=()=>{};return st(M._rawValidators,U),st(M._rawAsyncValidators,U),y}function Ve(x,M){x._pendingDirty&&x.markAsDirty(),x.setValue(x._pendingValue,{emitModelToViewChange:!1}),M.viewToModelUpdate(x._pendingValue),x._pendingChange=!1}function te(x,M){Zt(x,M)}function en(x,M){x._syncPendingControls(),M.forEach(y=>{const U=y.control;"submit"===U.updateOn&&U._pendingChange&&(y.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function Cn(x,M){const y=x.indexOf(M);y>-1&&x.splice(y,1)}const Wn="VALID",bi="INVALID",si="PENDING",fi="DISABLED";function ji(x){return(pn(x)?x.validators:x)||null}function zn(x){return Array.isArray(x)?Xe(x):x||null}function ft(x,M){return(pn(M)?M.asyncValidators:x)||null}function Qt(x){return Array.isArray(x)?Q(x):x||null}function pn(x){return null!=x&&!Array.isArray(x)&&"object"==typeof x}const Fn=x=>x instanceof jt,ai=x=>x instanceof ui;function ci(x){return Fn(x)?x.value:x.getRawValue()}function tn(x,M){const y=ai(x),U=x.controls;if(!(y?Object.keys(U):U).length)throw new c.vHH(1e3,"");if(!U[M])throw new c.vHH(1001,"")}function Yn(x,M){ai(x),x._forEachChild((U,We)=>{if(void 0===M[We])throw new c.vHH(1002,"")})}class pi{constructor(M,y){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=M,this._rawAsyncValidators=y,this._composedValidatorFn=zn(this._rawValidators),this._composedAsyncValidatorFn=Qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(M){this._rawValidators=this._composedValidatorFn=M}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(M){this._rawAsyncValidators=this._composedAsyncValidatorFn=M}get parent(){return this._parent}get valid(){return this.status===Wn}get invalid(){return this.status===bi}get pending(){return this.status==si}get disabled(){return this.status===fi}get enabled(){return this.status!==fi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(M){this._rawValidators=M,this._composedValidatorFn=zn(M)}setAsyncValidators(M){this._rawAsyncValidators=M,this._composedAsyncValidatorFn=Qt(M)}addValidators(M){this.setValidators(Ht(M,this._rawValidators))}addAsyncValidators(M){this.setAsyncValidators(Ht(M,this._rawAsyncValidators))}removeValidators(M){this.setValidators(bt(M,this._rawValidators))}removeAsyncValidators(M){this.setAsyncValidators(bt(M,this._rawAsyncValidators))}hasValidator(M){return St(this._rawValidators,M)}hasAsyncValidator(M){return St(this._rawAsyncValidators,M)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(M={}){this.touched=!0,this._parent&&!M.onlySelf&&this._parent.markAsTouched(M)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(M=>M.markAllAsTouched())}markAsUntouched(M={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(y=>{y.markAsUntouched({onlySelf:!0})}),this._parent&&!M.onlySelf&&this._parent._updateTouched(M)}markAsDirty(M={}){this.pristine=!1,this._parent&&!M.onlySelf&&this._parent.markAsDirty(M)}markAsPristine(M={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(y=>{y.markAsPristine({onlySelf:!0})}),this._parent&&!M.onlySelf&&this._parent._updatePristine(M)}markAsPending(M={}){this.status=si,!1!==M.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!M.onlySelf&&this._parent.markAsPending(M)}disable(M={}){const y=this._parentMarkedDirty(M.onlySelf);this.status=fi,this.errors=null,this._forEachChild(U=>{U.disable(Object.assign(Object.assign({},M),{onlySelf:!0}))}),this._updateValue(),!1!==M.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},M),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!0))}enable(M={}){const y=this._parentMarkedDirty(M.onlySelf);this.status=Wn,this._forEachChild(U=>{U.enable(Object.assign(Object.assign({},M),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:M.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},M),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!1))}_updateAncestors(M){this._parent&&!M.onlySelf&&(this._parent.updateValueAndValidity(M),M.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(M){this._parent=M}updateValueAndValidity(M={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Wn||this.status===si)&&this._runAsyncValidator(M.emitEvent)),!1!==M.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!M.onlySelf&&this._parent.updateValueAndValidity(M)}_updateTreeValidity(M={emitEvent:!0}){this._forEachChild(y=>y._updateTreeValidity(M)),this.updateValueAndValidity({onlySelf:!0,emitEvent:M.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fi:Wn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(M){if(this.asyncValidator){this.status=si,this._hasOwnPendingAsyncValidator=!0;const y=Wt(this.asyncValidator(this));this._asyncValidationSubscription=y.subscribe(U=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(U,{emitEvent:M})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(M,y={}){this.errors=M,this._updateControlsErrors(!1!==y.emitEvent)}get(M){return function Ln(x,M,y){if(null==M||(Array.isArray(M)||(M=M.split(y)),Array.isArray(M)&&0===M.length))return null;let U=x;return M.forEach(We=>{U=ai(U)?U.controls.hasOwnProperty(We)?U.controls[We]:null:(x=>x instanceof Jn)(U)&&U.at(We)||null}),U}(this,M,".")}getError(M,y){const U=y?this.get(y):this;return U&&U.errors?U.errors[M]:null}hasError(M,y){return!!this.getError(M,y)}get root(){let M=this;for(;M._parent;)M=M._parent;return M}_updateControlsErrors(M){this.status=this._calculateStatus(),M&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(M)}_initObservables(){this.valueChanges=new c.vpe,this.statusChanges=new c.vpe}_calculateStatus(){return this._allControlsDisabled()?fi:this.errors?bi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(si)?si:this._anyControlsHaveStatus(bi)?bi:Wn}_anyControlsHaveStatus(M){return this._anyControls(y=>y.status===M)}_anyControlsDirty(){return this._anyControls(M=>M.dirty)}_anyControlsTouched(){return this._anyControls(M=>M.touched)}_updatePristine(M={}){this.pristine=!this._anyControlsDirty(),this._parent&&!M.onlySelf&&this._parent._updatePristine(M)}_updateTouched(M={}){this.touched=this._anyControlsTouched(),this._parent&&!M.onlySelf&&this._parent._updateTouched(M)}_isBoxedValue(M){return"object"==typeof M&&null!==M&&2===Object.keys(M).length&&"value"in M&&"disabled"in M}_registerOnCollectionChange(M){this._onCollectionChange=M}_setUpdateStrategy(M){pn(M)&&null!=M.updateOn&&(this._updateOn=M.updateOn)}_parentMarkedDirty(M){return!M&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class jt extends pi{constructor(M=null,y,U){super(ji(y),ft(U,y)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(M),this._setUpdateStrategy(y),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),pn(y)&&y.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(M)?M.value:M)}setValue(M,y={}){this.value=this._pendingValue=M,this._onChange.length&&!1!==y.emitModelToViewChange&&this._onChange.forEach(U=>U(this.value,!1!==y.emitViewToModelChange)),this.updateValueAndValidity(y)}patchValue(M,y={}){this.setValue(M,y)}reset(M=this.defaultValue,y={}){this._applyFormState(M),this.markAsPristine(y),this.markAsUntouched(y),this.setValue(this.value,y),this._pendingChange=!1}_updateValue(){}_anyControls(M){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(M){this._onChange.push(M)}_unregisterOnChange(M){Cn(this._onChange,M)}registerOnDisabledChange(M){this._onDisabledChange.push(M)}_unregisterOnDisabledChange(M){Cn(this._onDisabledChange,M)}_forEachChild(M){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(M){this._isBoxedValue(M)?(this.value=this._pendingValue=M.value,M.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=M}}class ui extends pi{constructor(M,y,U){super(ji(y),ft(U,y)),this.controls=M,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(M,y){return this.controls[M]?this.controls[M]:(this.controls[M]=y,y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange),y)}addControl(M,y,U={}){this.registerControl(M,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}removeControl(M,y={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),delete this.controls[M],this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}setControl(M,y,U={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),delete this.controls[M],y&&this.registerControl(M,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}contains(M){return this.controls.hasOwnProperty(M)&&this.controls[M].enabled}setValue(M,y={}){Yn(this,M),Object.keys(M).forEach(U=>{tn(this,U),this.controls[U].setValue(M[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(M,y={}){null!=M&&(Object.keys(M).forEach(U=>{this.controls[U]&&this.controls[U].patchValue(M[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(M={},y={}){this._forEachChild((U,We)=>{U.reset(M[We],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this._reduceChildren({},(M,y,U)=>(M[U]=ci(y),M))}_syncPendingControls(){let M=this._reduceChildren(!1,(y,U)=>!!U._syncPendingControls()||y);return M&&this.updateValueAndValidity({onlySelf:!0}),M}_forEachChild(M){Object.keys(this.controls).forEach(y=>{const U=this.controls[y];U&&M(U,y)})}_setUpControls(){this._forEachChild(M=>{M.setParent(this),M._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(M){for(const y of Object.keys(this.controls)){const U=this.controls[y];if(this.contains(y)&&M(U))return!0}return!1}_reduceValue(){return this._reduceChildren({},(M,y,U)=>((y.enabled||this.disabled)&&(M[U]=y.value),M))}_reduceChildren(M,y){let U=M;return this._forEachChild((We,Et)=>{U=y(U,We,Et)}),U}_allControlsDisabled(){for(const M of Object.keys(this.controls))if(this.controls[M].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Jn extends pi{constructor(M,y,U){super(ji(y),ft(U,y)),this.controls=M,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(M){return this.controls[M]}push(M,y={}){this.controls.push(M),this._registerControl(M),this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}insert(M,y,U={}){this.controls.splice(M,0,y),this._registerControl(y),this.updateValueAndValidity({emitEvent:U.emitEvent})}removeAt(M,y={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),this.controls.splice(M,1),this.updateValueAndValidity({emitEvent:y.emitEvent})}setControl(M,y,U={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),this.controls.splice(M,1),y&&(this.controls.splice(M,0,y),this._registerControl(y)),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(M,y={}){Yn(this,M),M.forEach((U,We)=>{tn(this,We),this.at(We).setValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(M,y={}){null!=M&&(M.forEach((U,We)=>{this.at(We)&&this.at(We).patchValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(M=[],y={}){this._forEachChild((U,We)=>{U.reset(M[We],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this.controls.map(M=>ci(M))}clear(M={}){this.controls.length<1||(this._forEachChild(y=>y._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:M.emitEvent}))}_syncPendingControls(){let M=this.controls.reduce((y,U)=>!!U._syncPendingControls()||y,!1);return M&&this.updateValueAndValidity({onlySelf:!0}),M}_forEachChild(M){this.controls.forEach((y,U)=>{M(y,U)})}_updateValue(){this.value=this.controls.filter(M=>M.enabled||this.disabled).map(M=>M.value)}_anyControls(M){return this.controls.some(y=>y.enabled&&M(y))}_setUpControls(){this._forEachChild(M=>this._registerControl(M))}_allControlsDisabled(){for(const M of this.controls)if(M.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(M){M.setParent(this),M._registerOnCollectionChange(this._onCollectionChange)}}const Si={provide:Pe,useExisting:(0,c.Gpc)(()=>gn)},Gn=(()=>Promise.resolve(null))();let gn=(()=>{class x extends Pe{constructor(y,U){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new c.vpe,this.form=new ui({},Xe(y),Q(U))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(y){Gn.then(()=>{const U=this._findContainer(y.path);y.control=U.registerControl(y.name,y.control),he(y.control,y),y.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(y)})}getControl(y){return this.form.get(y.path)}removeControl(y){Gn.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name),this._directives.delete(y)})}addFormGroup(y){Gn.then(()=>{const U=this._findContainer(y.path),We=new ui({});te(We,y),U.registerControl(y.name,We),We.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(y){Gn.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name)})}getFormGroup(y){return this.form.get(y.path)}updateModel(y,U){Gn.then(()=>{this.form.get(y.path).setValue(U)})}setValue(y){this.control.setValue(y)}onSubmit(y){return this.submitted=!0,en(this.form,this._directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(y){return y.pop(),y.length?this.form.get(y):this.form}}return x.\u0275fac=function(y){return new(y||x)(c.Y36(pe,10),c.Y36(Te,10))},x.\u0275dir=c.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(y,U){1&y&&c.NdJ("submit",function(Et){return U.onSubmit(Et)})("reset",function(){return U.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c._Bn([Si]),c.qOj]}),x})(),On=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275dir=c.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),x})(),fr=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({}),x})();const xr={provide:Pe,useExisting:(0,c.Gpc)(()=>sr)};let sr=(()=>{class x extends Pe{constructor(y,U){super(),this.validators=y,this.asyncValidators=U,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new c.vpe,this._setValidators(y),this._setAsyncValidators(U)}ngOnChanges(y){this._checkFormPresent(),y.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Kt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(y){const U=this.form.get(y.path);return he(U,y),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(y),U}getControl(y){return this.form.get(y.path)}removeControl(y){Se(y.control||null,y,!1),Cn(this.directives,y)}addFormGroup(y){this._setUpFormContainer(y)}removeFormGroup(y){this._cleanUpFormContainer(y)}getFormGroup(y){return this.form.get(y.path)}addFormArray(y){this._setUpFormContainer(y)}removeFormArray(y){this._cleanUpFormContainer(y)}getFormArray(y){return this.form.get(y.path)}updateModel(y,U){this.form.get(y.path).setValue(U)}onSubmit(y){return this.submitted=!0,en(this.form,this.directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_updateDomValue(){this.directives.forEach(y=>{const U=y.control,We=this.form.get(y.path);U!==We&&(Se(U||null,y),Fn(We)&&(he(We,y),y.control=We))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(y){const U=this.form.get(y.path);te(U,y),U.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(y){if(this.form){const U=this.form.get(y.path);U&&function Ie(x,M){return Kt(x,M)}(U,y)&&U.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Zt(this.form,this),this._oldForm&&Kt(this._oldForm,this)}_checkFormPresent(){}}return x.\u0275fac=function(y){return new(y||x)(c.Y36(pe,10),c.Y36(Te,10))},x.\u0275dir=c.lG2({type:x,selectors:[["","formGroup",""]],hostBindings:function(y,U){1&y&&c.NdJ("submit",function(Et){return U.onSubmit(Et)})("reset",function(){return U.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c._Bn([xr]),c.qOj,c.TTD]}),x})(),Tn=(()=>{class x{constructor(){this._validator=yt}ngOnChanges(y){if(this.inputName in y){const U=this.normalizeInput(y[this.inputName].currentValue);this._enabled=this.enabled(U),this._validator=this._enabled?this.createValidator(U):yt,this._onChange&&this._onChange()}}validate(y){return this._validator(y)}registerOnValidatorChange(y){this._onChange=y}enabled(y){return null!=y}}return x.\u0275fac=function(y){return new(y||x)},x.\u0275dir=c.lG2({type:x,features:[c.TTD]}),x})();const Pi={provide:pe,useExisting:(0,c.Gpc)(()=>N),multi:!0},A={provide:pe,useExisting:(0,c.Gpc)(()=>T),multi:!0};let N=(()=>{class x extends Tn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=y=>function ti(x){return null!=x&&!1!==x&&"false"!=`${x}`}(y),this.createValidator=y=>Ae}enabled(y){return y}}return x.\u0275fac=function(){let M;return function(U){return(M||(M=c.n5z(x)))(U||x)}}(),x.\u0275dir=c.lG2({type:x,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(y,U){2&y&&c.uIk("required",U._enabled?"":null)},inputs:{required:"required"},features:[c._Bn([Pi]),c.qOj]}),x})(),T=(()=>{class x extends N{constructor(){super(...arguments),this.createValidator=y=>tt}}return x.\u0275fac=function(){let M;return function(U){return(M||(M=c.n5z(x)))(U||x)}}(),x.\u0275dir=c.lG2({type:x,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(y,U){2&y&&c.uIk("required",U._enabled?"":null)},features:[c._Bn([A]),c.qOj]}),x})(),Sn=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({imports:[[fr]]}),x})(),Vn=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({imports:[Sn]}),x})()},7423:(qe,ye,C)=>{C.d(ye,{zs:()=>de,lW:()=>se,ot:()=>J});var c=C(4893),o=C(508),g=C(6360),Y=C(9950);const ce=["mat-button",""],ie=["*"],ue=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],ee=(0,o.pj)((0,o.Id)((0,o.Kr)(class{constructor(le){this._elementRef=le}})));let se=(()=>{class le extends ee{constructor(Be,Z,et){super(Be),this._focusMonitor=Z,this._animationMode=et,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Ye of ue)this._hasHostAttributes(Ye)&&this._getHostElement().classList.add(Ye);Be.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(Be,Z){Be?this._focusMonitor.focusVia(this._getHostElement(),Be,Z):this._getHostElement().focus(Z)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...Be){return Be.some(Z=>this._getHostElement().hasAttribute(Z))}}return le.\u0275fac=function(Be){return new(Be||le)(c.Y36(c.SBq),c.Y36(Y.tE),c.Y36(g.Qb,8))},le.\u0275cmp=c.Xpm({type:le,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(Be,Z){if(1&Be&&c.Gf(o.wG,5),2&Be){let et;c.iGM(et=c.CRH())&&(Z.ripple=et.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(Be,Z){2&Be&&(c.uIk("disabled",Z.disabled||null),c.ekj("_mat-animation-noopable","NoopAnimations"===Z._animationMode)("mat-button-disabled",Z.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[c.qOj],attrs:ce,ngContentSelectors:ie,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(Be,Z){1&Be&&(c.F$t(),c.TgZ(0,"span",0),c.Hsn(1),c.qZA(),c._UZ(2,"span",1)(3,"span",2)),2&Be&&(c.xp6(2),c.ekj("mat-button-ripple-round",Z.isRoundButton||Z.isIconButton),c.Q6J("matRippleDisabled",Z._isRippleDisabled())("matRippleCentered",Z.isIconButton)("matRippleTrigger",Z._getHostElement()))},directives:[o.wG],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;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;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}),le})(),de=(()=>{class le extends se{constructor(Be,Z,et,Ye){super(Z,Be,et),this._ngZone=Ye,this._haltDisabledEvents=Qe=>{this.disabled&&(Qe.preventDefault(),Qe.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return le.\u0275fac=function(Be){return new(Be||le)(c.Y36(Y.tE),c.Y36(c.SBq),c.Y36(g.Qb,8),c.Y36(c.R0b,8))},le.\u0275cmp=c.Xpm({type:le,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(Be,Z){2&Be&&(c.uIk("tabindex",Z.disabled?-1:Z.tabIndex||0)("disabled",Z.disabled||null)("aria-disabled",Z.disabled.toString()),c.ekj("_mat-animation-noopable","NoopAnimations"===Z._animationMode)("mat-button-disabled",Z.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[c.qOj],attrs:ce,ngContentSelectors:ie,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(Be,Z){1&Be&&(c.F$t(),c.TgZ(0,"span",0),c.Hsn(1),c.qZA(),c._UZ(2,"span",1)(3,"span",2)),2&Be&&(c.xp6(2),c.ekj("mat-button-ripple-round",Z.isRoundButton||Z.isIconButton),c.Q6J("matRippleDisabled",Z._isRippleDisabled())("matRippleCentered",Z.isIconButton)("matRippleTrigger",Z._getHostElement()))},directives:[o.wG],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;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;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}),le})(),J=(()=>{class le{}return le.\u0275fac=function(Be){return new(Be||le)},le.\u0275mod=c.oAB({type:le}),le.\u0275inj=c.cJS({imports:[[o.si,o.BQ],o.BQ]}),le})()},508:(qe,ye,C)=>{C.d(ye,{rD:()=>xt,K7:()=>ze,HF:()=>L,BQ:()=>me,ey:()=>Yt,Ng:()=>vt,wG:()=>E,si:()=>S,CB:()=>dn,jH:()=>dt,pj:()=>Ne,Kr:()=>ve,Id:()=>Te,FD:()=>xe,sb:()=>Me});var c=C(4893),o=C(226),Y=C(9808),ce=C(925),ie=C(9950),De=C(3191),Ce=C(7579),ue=C(6360),ee=C(1159);function J(Le,we){if(1&Le&&c._UZ(0,"mat-pseudo-checkbox",4),2&Le){const V=c.oxw();c.Q6J("state",V.selected?"checked":"unchecked")("disabled",V.disabled)}}function le(Le,we){if(1&Le&&(c.TgZ(0,"span",5),c._uU(1),c.qZA()),2&Le){const V=c.oxw();c.xp6(1),c.hij("(",V.group.label,")")}}const ke=["*"],Qe=new c.OlP("mat-sanity-checks",{providedIn:"root",factory:function Ye(){return!0}});let me=(()=>{class Le{constructor(V,j,$){this._sanityChecks=j,this._document=$,this._hasDoneGlobalChecks=!1,V._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(V){return!(0,ce.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[V])}}return Le.\u0275fac=function(V){return new(V||Le)(c.LFG(ie.qm),c.LFG(Qe,8),c.LFG(Y.K0))},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[o.vT],o.vT]}),Le})();function Te(Le){return class extends Le{constructor(...we){super(...we),this._disabled=!1}get disabled(){return this._disabled}set disabled(we){this._disabled=(0,De.Ig)(we)}}}function Ne(Le,we){return class extends Le{constructor(...V){super(...V),this.defaultColor=we,this.color=we}get color(){return this._color}set color(V){const j=V||this.defaultColor;j!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),j&&this._elementRef.nativeElement.classList.add(`mat-${j}`),this._color=j)}}}function ve(Le){return class extends Le{constructor(...we){super(...we),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(we){this._disableRipple=(0,De.Ig)(we)}}}function Me(Le,we=0){return class extends Le{constructor(...V){super(...V),this._tabIndex=we,this.defaultTabIndex=we}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(V){this._tabIndex=null!=V?(0,De.su)(V):this.defaultTabIndex}}}function xe(Le){return class extends Le{constructor(...we){super(...we),this.stateChanges=new Ce.x,this.errorState=!1}updateErrorState(){const we=this.errorState,he=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);he!==we&&(this.errorState=he,this.stateChanges.next())}}}let xt=(()=>{class Le{isErrorState(V,j){return!!(V&&V.invalid&&(V.touched||j&&j.submitted))}}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275prov=c.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})();class K{constructor(we,V,j){this._renderer=we,this.element=V,this.config=j,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const He={enterDuration:225,exitDuration:150},lt=(0,ce.i$)({passive:!0}),St=["mousedown","touchstart"],Ht=["mouseup","mouseleave","touchend","touchcancel"];class bt{constructor(we,V,j,$){this._target=we,this._ngZone=V,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,$.isBrowser&&(this._containerElement=(0,De.fI)(j))}fadeInRipple(we,V,j={}){const $=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),he=Object.assign(Object.assign({},He),j.animation);j.centered&&(we=$.left+$.width/2,V=$.top+$.height/2);const Se=j.radius||function at(Le,we,V){const j=Math.max(Math.abs(Le-V.left),Math.abs(Le-V.right)),$=Math.max(Math.abs(we-V.top),Math.abs(we-V.bottom));return Math.sqrt(j*j+$*$)}(we,V,$),st=we-$.left,At=V-$.top,Zt=he.enterDuration,Kt=document.createElement("div");Kt.classList.add("mat-ripple-element"),Kt.style.left=st-Se+"px",Kt.style.top=At-Se+"px",Kt.style.height=2*Se+"px",Kt.style.width=2*Se+"px",null!=j.color&&(Kt.style.backgroundColor=j.color),Kt.style.transitionDuration=`${Zt}ms`,this._containerElement.appendChild(Kt),function Nt(Le){window.getComputedStyle(Le).getPropertyValue("opacity")}(Kt),Kt.style.transform="scale(1)";const Dt=new K(this,Kt,j);return Dt.state=0,this._activeRipples.add(Dt),j.persistent||(this._mostRecentTransientRipple=Dt),this._runTimeoutOutsideZone(()=>{const Rn=Dt===this._mostRecentTransientRipple;Dt.state=1,!j.persistent&&(!Rn||!this._isPointerDown)&&Dt.fadeOut()},Zt),Dt}fadeOutRipple(we){const V=this._activeRipples.delete(we);if(we===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!V)return;const j=we.element,$=Object.assign(Object.assign({},He),we.config.animation);j.style.transitionDuration=`${$.exitDuration}ms`,j.style.opacity="0",we.state=2,this._runTimeoutOutsideZone(()=>{we.state=3,j.remove()},$.exitDuration)}fadeOutAll(){this._activeRipples.forEach(we=>we.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(we=>{we.config.persistent||we.fadeOut()})}setupTriggerEvents(we){const V=(0,De.fI)(we);!V||V===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=V,this._registerEvents(St))}handleEvent(we){"mousedown"===we.type?this._onMousedown(we):"touchstart"===we.type?this._onTouchStart(we):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ht),this._pointerUpEventsRegistered=!0)}_onMousedown(we){const V=(0,ie.X6)(we),j=this._lastTouchStartEvent&&Date.now(){!we.config.persistent&&(1===we.state||we.config.terminateOnPointerUp&&0===we.state)&&we.fadeOut()}))}_runTimeoutOutsideZone(we,V=0){this._ngZone.runOutsideAngular(()=>setTimeout(we,V))}_registerEvents(we){this._ngZone.runOutsideAngular(()=>{we.forEach(V=>{this._triggerElement.addEventListener(V,this,lt)})})}_removeTriggerEvents(){this._triggerElement&&(St.forEach(we=>{this._triggerElement.removeEventListener(we,this,lt)}),this._pointerUpEventsRegistered&&Ht.forEach(we=>{this._triggerElement.removeEventListener(we,this,lt)}))}}const Pe=new c.OlP("mat-ripple-global-options");let E=(()=>{class Le{constructor(V,j,$,he,Se){this._elementRef=V,this._animationMode=Se,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=he||{},this._rippleRenderer=new bt(this,j,V,$)}get disabled(){return this._disabled}set disabled(V){V&&this.fadeOutAllNonPersistent(),this._disabled=V,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(V){this._trigger=V,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(V,j=0,$){return"number"==typeof V?this._rippleRenderer.fadeInRipple(V,j,Object.assign(Object.assign({},this.rippleConfig),$)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),V))}}return Le.\u0275fac=function(V){return new(V||Le)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(ce.t4),c.Y36(Pe,8),c.Y36(ue.Qb,8))},Le.\u0275dir=c.lG2({type:Le,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(V,j){2&V&&c.ekj("mat-ripple-unbounded",j.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"]}),Le})(),S=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[me],me]}),Le})(),D=(()=>{class Le{constructor(V){this._animationMode=V,this.state="unchecked",this.disabled=!1}}return Le.\u0275fac=function(V){return new(V||Le)(c.Y36(ue.Qb,8))},Le.\u0275cmp=c.Xpm({type:Le,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(V,j){2&V&&c.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===j.state)("mat-pseudo-checkbox-checked","checked"===j.state)("mat-pseudo-checkbox-disabled",j.disabled)("_mat-animation-noopable","NoopAnimations"===j._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(V,j){},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}),Le})(),P=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[me]]}),Le})();const L=new c.OlP("MAT_OPTION_PARENT_COMPONENT"),ze=new c.OlP("MatOptgroup");let ct=0;class Ot{constructor(we,V=!1){this.source=we,this.isUserInput=V}}let nn=(()=>{class Le{constructor(V,j,$,he){this._element=V,this._changeDetectorRef=j,this._parent=$,this.group=he,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ct++,this.onSelectionChange=new c.vpe,this._stateChanges=new Ce.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(V){this._disabled=(0,De.Ig)(V)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(V,j){const $=this._getHostElement();"function"==typeof $.focus&&$.focus(j)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(V){(V.keyCode===ee.K5||V.keyCode===ee.L_)&&!(0,ee.Vb)(V)&&(this._selectViaInteraction(),V.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const V=this.viewValue;V!==this._mostRecentViewValue&&(this._mostRecentViewValue=V,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(V=!1){this.onSelectionChange.emit(new Ot(this,V))}}return Le.\u0275fac=function(V){c.$Z()},Le.\u0275dir=c.lG2({type:Le,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Le})(),Yt=(()=>{class Le extends nn{constructor(V,j,$,he){super(V,j,$,he)}}return Le.\u0275fac=function(V){return new(V||Le)(c.Y36(c.SBq),c.Y36(c.sBO),c.Y36(L,8),c.Y36(ze,8))},Le.\u0275cmp=c.Xpm({type:Le,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(V,j){1&V&&c.NdJ("click",function(){return j._selectViaInteraction()})("keydown",function(he){return j._handleKeydown(he)}),2&V&&(c.Ikx("id",j.id),c.uIk("tabindex",j._getTabIndex())("aria-selected",j._getAriaSelected())("aria-disabled",j.disabled.toString()),c.ekj("mat-selected",j.selected)("mat-option-multiple",j.multiple)("mat-active",j.active)("mat-option-disabled",j.disabled))},exportAs:["matOption"],features:[c.qOj],ngContentSelectors:ke,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(V,j){1&V&&(c.F$t(),c.YNc(0,J,1,2,"mat-pseudo-checkbox",0),c.TgZ(1,"span",1),c.Hsn(2),c.qZA(),c.YNc(3,le,2,1,"span",2),c._UZ(4,"div",3)),2&V&&(c.Q6J("ngIf",j.multiple),c.xp6(3),c.Q6J("ngIf",j.group&&j.group._inert),c.xp6(1),c.Q6J("matRippleTrigger",j._getHostElement())("matRippleDisabled",j.disabled||j.disableRipple))},directives:[D,Y.O5,E],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;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}),Le})();function dn(Le,we,V){if(V.length){let j=we.toArray(),$=V.toArray(),he=0;for(let Se=0;SeV+j?Math.max(0,Le-j+we):V}let vt=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[S,Y.ez,me,P]]}),Le})()},8966:(qe,ye,C)=>{C.d(ye,{WI:()=>Me,uw:()=>Jt,H8:()=>Ut,ZT:()=>Wt,xY:()=>mn,Is:()=>on,so:()=>Ne,uh:()=>Pt});var c=C(9776),o=C(7429),g=C(4893),Y=C(508),ce=C(226),ie=C(7579),De=C(9770),Ce=C(727),ue=C(9646),ee=C(9300),se=C(5698),de=C(8675),J=C(925),le=C(9808),ke=C(1777),Be=C(9950),Z=C(1159),et=C(6360);function Ye(Xe,je){}class Qe{constructor(){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.closeOnNavigation=!0}}const me={dialogContainer:(0,ke.X$)("dialogContainer",[(0,ke.SB)("void, exit",(0,ke.oB)({opacity:0,transform:"scale(0.7)"})),(0,ke.SB)("enter",(0,ke.oB)({transform:"none"})),(0,ke.eR)("* => enter",(0,ke.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ke.oB)({transform:"none",opacity:1}))),(0,ke.eR)("* => void, * => exit",(0,ke.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,ke.oB)({opacity:0})))])};let q=(()=>{class Xe extends o.en{constructor(Q,K,He,Ge,lt,St,Ht,bt){super(),this._elementRef=Q,this._focusTrapFactory=K,this._changeDetectorRef=He,this._config=lt,this._interactivityChecker=St,this._ngZone=Ht,this._focusMonitor=bt,this._animationStateChanged=new g.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Nt=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(Nt)),this._ariaLabelledBy=lt.ariaLabelledBy||null,this._document=Ge}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(Q){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(Q)}attachTemplatePortal(Q){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(Q)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(Q,K){this._interactivityChecker.isFocusable(Q)||(Q.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{Q.addEventListener("blur",()=>Q.removeAttribute("tabindex")),Q.addEventListener("mousedown",()=>Q.removeAttribute("tabindex"))})),Q.focus(K)}_focusByCssSelector(Q,K){let He=this._elementRef.nativeElement.querySelector(Q);He&&this._forceFocus(He,K)}_trapFocus(){const Q=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||Q.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(K=>{K||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const Q=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&Q&&"function"==typeof Q.focus){const K=(0,J.ht)(),He=this._elementRef.nativeElement;(!K||K===this._document.body||K===He||He.contains(K))&&(this._focusMonitor?(this._focusMonitor.focusVia(Q,this._closeInteractionType),this._closeInteractionType=null):Q.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,J.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const Q=this._elementRef.nativeElement,K=(0,J.ht)();return Q===K||Q.contains(K)}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(g.Y36(g.SBq),g.Y36(Be.qV),g.Y36(g.sBO),g.Y36(le.K0,8),g.Y36(Qe),g.Y36(Be.ic),g.Y36(g.R0b),g.Y36(Be.tE))},Xe.\u0275dir=g.lG2({type:Xe,viewQuery:function(Q,K){if(1&Q&&g.Gf(o.Pl,7),2&Q){let He;g.iGM(He=g.CRH())&&(K._portalOutlet=He.first)}},features:[g.qOj]}),Xe})(),pe=(()=>{class Xe extends q{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:Q,totalTime:K}){"enter"===Q?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:K})):"exit"===Q&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:K}))}_onAnimationStart({toState:Q,totalTime:K}){"enter"===Q?this._animationStateChanged.next({state:"opening",totalTime:K}):("exit"===Q||"void"===Q)&&this._animationStateChanged.next({state:"closing",totalTime:K})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return Xe.\u0275fac=function(){let je;return function(K){return(je||(je=g.n5z(Xe)))(K||Xe)}}(),Xe.\u0275cmp=g.Xpm({type:Xe,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(Q,K){1&Q&&g.WFA("@dialogContainer.start",function(Ge){return K._onAnimationStart(Ge)})("@dialogContainer.done",function(Ge){return K._onAnimationDone(Ge)}),2&Q&&(g.Ikx("id",K._id),g.uIk("role",K._config.role)("aria-labelledby",K._config.ariaLabel?null:K._ariaLabelledBy)("aria-label",K._config.ariaLabel)("aria-describedby",K._config.ariaDescribedBy||null),g.d8E("@dialogContainer",K._state))},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Q,K){1&Q&&g.YNc(0,Ye,0,0,"ng-template",0)},directives:[o.Pl],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:[me.dialogContainer]}}),Xe})(),Te=0;class Ne{constructor(je,Q,K="mat-dialog-"+Te++){this._overlayRef=je,this._containerInstance=Q,this.id=K,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new ie.x,this._afterClosed=new ie.x,this._beforeClosed=new ie.x,this._state=0,Q._id=K,Q._animationStateChanged.pipe((0,ee.h)(He=>"opened"===He.state),(0,se.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Q._animationStateChanged.pipe((0,ee.h)(He=>"closed"===He.state),(0,se.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),je.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),je.keydownEvents().pipe((0,ee.h)(He=>He.keyCode===Z.hY&&!this.disableClose&&!(0,Z.Vb)(He))).subscribe(He=>{He.preventDefault(),ve(this,"keyboard")}),je.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():ve(this,"mouse")})}close(je){this._result=je,this._containerInstance._animationStateChanged.pipe((0,ee.h)(Q=>"closing"===Q.state),(0,se.q)(1)).subscribe(Q=>{this._beforeClosed.next(je),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Q.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(je){let Q=this._getPositionStrategy();return je&&(je.left||je.right)?je.left?Q.left(je.left):Q.right(je.right):Q.centerHorizontally(),je&&(je.top||je.bottom)?je.top?Q.top(je.top):Q.bottom(je.bottom):Q.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(je="",Q=""){return this._overlayRef.updateSize({width:je,height:Q}),this._overlayRef.updatePosition(),this}addPanelClass(je){return this._overlayRef.addPanelClass(je),this}removePanelClass(je){return this._overlayRef.removePanelClass(je),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function ve(Xe,je,Q){return void 0!==Xe._containerInstance&&(Xe._containerInstance._closeInteractionType=je),Xe.close(Q)}const Me=new g.OlP("MatDialogData"),xe=new g.OlP("mat-dialog-default-options"),Ae=new g.OlP("mat-dialog-scroll-strategy"),Ct={provide:Ae,deps:[c.aV],useFactory:function Fe(Xe){return()=>Xe.scrollStrategies.block()}};let mt=(()=>{class Xe{constructor(Q,K,He,Ge,lt,St,Ht,bt,Nt,at){this._overlay=Q,this._injector=K,this._defaultOptions=He,this._parentDialog=Ge,this._overlayContainer=lt,this._dialogRefConstructor=Ht,this._dialogContainerType=bt,this._dialogDataToken=Nt,this._animationMode=at,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ie.x,this._afterOpenedAtThisLevel=new ie.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,De.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,de.O)(void 0))),this._scrollStrategy=St}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Q=this._parentDialog;return Q?Q._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(Q,K){if(K=function yt(Xe,je){return Object.assign(Object.assign({},je),Xe)}(K,this._defaultOptions||new Qe),K.id&&this.getDialogById(K.id),this._dialogAnimatingOpen)return this._lastDialogRef;const He=this._createOverlay(K),Ge=this._attachDialogContainer(He,K);if("NoopAnimations"!==this._animationMode){const St=Ge._animationStateChanged.subscribe(Ht=>{"opening"===Ht.state&&(this._dialogAnimatingOpen=!0),"opened"===Ht.state&&(this._dialogAnimatingOpen=!1,St.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new Ce.w0),this._animationStateSubscriptions.add(St)}const lt=this._attachDialogContent(Q,Ge,He,K);return this._lastDialogRef=lt,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(lt),lt.afterClosed().subscribe(()=>this._removeOpenDialog(lt)),this.afterOpened.next(lt),Ge._initializeWithAttachedContent(),lt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Q){return this.openDialogs.find(K=>K.id===Q)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(Q){const K=this._getOverlayConfig(Q);return this._overlay.create(K)}_getOverlayConfig(Q){const K=new c.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:Q.scrollStrategy||this._scrollStrategy(),panelClass:Q.panelClass,hasBackdrop:Q.hasBackdrop,direction:Q.direction,minWidth:Q.minWidth,minHeight:Q.minHeight,maxWidth:Q.maxWidth,maxHeight:Q.maxHeight,disposeOnNavigation:Q.closeOnNavigation});return Q.backdropClass&&(K.backdropClass=Q.backdropClass),K}_attachDialogContainer(Q,K){const Ge=g.zs3.create({parent:K&&K.viewContainerRef&&K.viewContainerRef.injector||this._injector,providers:[{provide:Qe,useValue:K}]}),lt=new o.C5(this._dialogContainerType,K.viewContainerRef,Ge,K.componentFactoryResolver);return Q.attach(lt).instance}_attachDialogContent(Q,K,He,Ge){const lt=new this._dialogRefConstructor(He,K,Ge.id);if(Q instanceof g.Rgc)K.attachTemplatePortal(new o.UE(Q,null,{$implicit:Ge.data,dialogRef:lt}));else{const St=this._createInjector(Ge,lt,K),Ht=K.attachComponentPortal(new o.C5(Q,Ge.viewContainerRef,St,Ge.componentFactoryResolver));lt.componentInstance=Ht.instance}return lt.updateSize(Ge.width,Ge.height).updatePosition(Ge.position),lt}_createInjector(Q,K,He){const Ge=Q&&Q.viewContainerRef&&Q.viewContainerRef.injector,lt=[{provide:this._dialogContainerType,useValue:He},{provide:this._dialogDataToken,useValue:Q.data},{provide:this._dialogRefConstructor,useValue:K}];return Q.direction&&(!Ge||!Ge.get(ce.Is,null,g.XFs.Optional))&<.push({provide:ce.Is,useValue:{value:Q.direction,change:(0,ue.of)()}}),g.zs3.create({parent:Ge||this._injector,providers:lt})}_removeOpenDialog(Q){const K=this.openDialogs.indexOf(Q);K>-1&&(this.openDialogs.splice(K,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((He,Ge)=>{He?Ge.setAttribute("aria-hidden",He):Ge.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const Q=this._overlayContainer.getContainerElement();if(Q.parentElement){const K=Q.parentElement.children;for(let He=K.length-1;He>-1;He--){let Ge=K[He];Ge!==Q&&"SCRIPT"!==Ge.nodeName&&"STYLE"!==Ge.nodeName&&!Ge.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Ge,Ge.getAttribute("aria-hidden")),Ge.setAttribute("aria-hidden","true"))}}}_closeDialogs(Q){let K=Q.length;for(;K--;)Q[K].close()}}return Xe.\u0275fac=function(Q){g.$Z()},Xe.\u0275dir=g.lG2({type:Xe}),Xe})(),Jt=(()=>{class Xe extends mt{constructor(Q,K,He,Ge,lt,St,Ht,bt){super(Q,K,Ge,St,Ht,lt,Ne,pe,Me,bt)}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(g.LFG(c.aV),g.LFG(g.zs3),g.LFG(le.Ye,8),g.LFG(xe,8),g.LFG(Ae),g.LFG(Xe,12),g.LFG(c.Xj),g.LFG(et.Qb,8))},Xe.\u0275prov=g.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),Rt=0,Wt=(()=>{class Xe{constructor(Q,K,He){this.dialogRef=Q,this._elementRef=K,this._dialog=He,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=xt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(Q){const K=Q._matDialogClose||Q._matDialogCloseResult;K&&(this.dialogResult=K.currentValue)}_onButtonClick(Q){ve(this.dialogRef,0===Q.screenX&&0===Q.screenY?"keyboard":"mouse",this.dialogResult)}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(g.Y36(Ne,8),g.Y36(g.SBq),g.Y36(Jt))},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Q,K){1&Q&&g.NdJ("click",function(Ge){return K._onButtonClick(Ge)}),2&Q&&g.uIk("aria-label",K.ariaLabel||null)("type",K.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[g.TTD]}),Xe})(),Pt=(()=>{class Xe{constructor(Q,K,He){this._dialogRef=Q,this._elementRef=K,this._dialog=He,this.id="mat-dialog-title-"+Rt++}ngOnInit(){this._dialogRef||(this._dialogRef=xt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const Q=this._dialogRef._containerInstance;Q&&!Q._ariaLabelledBy&&(Q._ariaLabelledBy=this.id)})}}return Xe.\u0275fac=function(Q){return new(Q||Xe)(g.Y36(Ne,8),g.Y36(g.SBq),g.Y36(Jt))},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(Q,K){2&Q&&g.Ikx("id",K.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Xe})(),mn=(()=>{class Xe{}return Xe.\u0275fac=function(Q){return new(Q||Xe)},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Xe})(),Ut=(()=>{class Xe{}return Xe.\u0275fac=function(Q){return new(Q||Xe)},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),Xe})();function xt(Xe,je){let Q=Xe.nativeElement.parentElement;for(;Q&&!Q.classList.contains("mat-dialog-container");)Q=Q.parentElement;return Q?je.find(K=>K.id===Q.id):null}let on=(()=>{class Xe{}return Xe.\u0275fac=function(Q){return new(Q||Xe)},Xe.\u0275mod=g.oAB({type:Xe}),Xe.\u0275inj=g.cJS({providers:[Jt,Ct],imports:[[c.U8,o.eL,Y.BQ],Y.BQ]}),Xe})()},7322:(qe,ye,C)=>{C.d(ye,{G_:()=>Nt,o2:()=>bt,KE:()=>at,Eo:()=>yt,lN:()=>Pe,hX:()=>on,R9:()=>He});var c=C(7144),o=C(9808),g=C(4893),Y=C(508),ce=C(3191),ie=C(7579),De=C(6451),Ce=C(4968),ue=C(8675),ee=C(2722),se=C(5698),de=C(1777),J=C(6360),le=C(226),ke=C(925);const Be=["connectionContainer"],Z=["inputContainer"],et=["label"];function Ye(E,S){1&E&&(g.ynx(0),g.TgZ(1,"div",14),g._UZ(2,"div",15)(3,"div",16)(4,"div",17),g.qZA(),g.TgZ(5,"div",18),g._UZ(6,"div",15)(7,"div",16)(8,"div",17),g.qZA(),g.BQk())}function Qe(E,S){if(1&E){const D=g.EpF();g.TgZ(0,"div",19),g.NdJ("cdkObserveContent",function(){return g.CHM(D),g.oxw().updateOutlineGap()}),g.Hsn(1,1),g.qZA()}if(2&E){const D=g.oxw();g.Q6J("cdkObserveContentDisabled","outline"!=D.appearance)}}function me(E,S){if(1&E&&(g.ynx(0),g.Hsn(1,2),g.TgZ(2,"span"),g._uU(3),g.qZA(),g.BQk()),2&E){const D=g.oxw(2);g.xp6(3),g.Oqu(D._control.placeholder)}}function z(E,S){1&E&&g.Hsn(0,3,["*ngSwitchCase","true"])}function q(E,S){1&E&&(g.TgZ(0,"span",23),g._uU(1," *"),g.qZA())}function pe(E,S){if(1&E){const D=g.EpF();g.TgZ(0,"label",20,21),g.NdJ("cdkObserveContent",function(){return g.CHM(D),g.oxw().updateOutlineGap()}),g.YNc(2,me,4,1,"ng-container",12),g.YNc(3,z,1,0,"ng-content",12),g.YNc(4,q,2,0,"span",22),g.qZA()}if(2&E){const D=g.oxw();g.ekj("mat-empty",D._control.empty&&!D._shouldAlwaysFloat())("mat-form-field-empty",D._control.empty&&!D._shouldAlwaysFloat())("mat-accent","accent"==D.color)("mat-warn","warn"==D.color),g.Q6J("cdkObserveContentDisabled","outline"!=D.appearance)("id",D._labelId)("ngSwitch",D._hasLabel()),g.uIk("for",D._control.id)("aria-owns",D._control.id),g.xp6(2),g.Q6J("ngSwitchCase",!1),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngIf",!D.hideRequiredMarker&&D._control.required&&!D._control.disabled)}}function Te(E,S){1&E&&(g.TgZ(0,"div",24),g.Hsn(1,4),g.qZA())}function Ne(E,S){if(1&E&&(g.TgZ(0,"div",25),g._UZ(1,"span",26),g.qZA()),2&E){const D=g.oxw();g.xp6(1),g.ekj("mat-accent","accent"==D.color)("mat-warn","warn"==D.color)}}function ve(E,S){if(1&E&&(g.TgZ(0,"div"),g.Hsn(1,5),g.qZA()),2&E){const D=g.oxw();g.Q6J("@transitionMessages",D._subscriptAnimationState)}}function Me(E,S){if(1&E&&(g.TgZ(0,"div",30),g._uU(1),g.qZA()),2&E){const D=g.oxw(2);g.Q6J("id",D._hintLabelId),g.xp6(1),g.Oqu(D.hintLabel)}}function xe(E,S){if(1&E&&(g.TgZ(0,"div",27),g.YNc(1,Me,2,2,"div",28),g.Hsn(2,6),g._UZ(3,"div",29),g.Hsn(4,7),g.qZA()),2&E){const D=g.oxw();g.Q6J("@transitionMessages",D._subscriptAnimationState),g.xp6(1),g.Q6J("ngIf",D.hintLabel)}}const Ae=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],tt=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Ct=new g.OlP("MatError"),Jt={transitionMessages:(0,de.X$)("transitionMessages",[(0,de.SB)("enter",(0,de.oB)({opacity:1,transform:"translateY(0%)"})),(0,de.eR)("void => enter",[(0,de.oB)({opacity:0,transform:"translateY(-5px)"}),(0,de.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let yt=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E}),E})();const Ut=new g.OlP("MatHint");let on=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E,selectors:[["mat-label"]]}),E})(),Xe=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E,selectors:[["mat-placeholder"]]}),E})();const je=new g.OlP("MatPrefix"),K=new g.OlP("MatSuffix");let He=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E,selectors:[["","matSuffix",""]],features:[g._Bn([{provide:K,useExisting:E}])]}),E})(),Ge=0;const Ht=(0,Y.pj)(class{constructor(E){this._elementRef=E}},"primary"),bt=new g.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Nt=new g.OlP("MatFormField");let at=(()=>{class E extends Ht{constructor(D,P,L,re,be,Ue,ze){super(D),this._changeDetectorRef=P,this._dir=L,this._defaults=re,this._platform=be,this._ngZone=Ue,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new ie.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Ge++,this._labelId="mat-form-field-label-"+Ge++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==ze,this.appearance=re&&re.appearance?re.appearance:"legacy",this._hideRequiredMarker=!(!re||null==re.hideRequiredMarker)&&re.hideRequiredMarker}get appearance(){return this._appearance}set appearance(D){const P=this._appearance;this._appearance=D||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&P!==D&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(D){this._hideRequiredMarker=(0,ce.Ig)(D)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(D){this._hintLabel=D,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(D){D!==this._floatLabel&&(this._floatLabel=D||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(D){this._explicitFormFieldControl=D}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const D=this._control;D.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${D.controlType}`),D.stateChanges.pipe((0,ue.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),D.ngControl&&D.ngControl.valueChanges&&D.ngControl.valueChanges.pipe((0,ee.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ee.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,De.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,ue.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,ue.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,ee.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(D){const P=this._control?this._control.ngControl:null;return P&&P[D]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,Ce.R)(this._label.nativeElement,"transitionend").pipe((0,se.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let D=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&D.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const P=this._hintChildren?this._hintChildren.find(re=>"start"===re.align):null,L=this._hintChildren?this._hintChildren.find(re=>"end"===re.align):null;P?D.push(P.id):this._hintLabel&&D.push(this._hintLabelId),L&&D.push(L.id)}else this._errorChildren&&D.push(...this._errorChildren.map(P=>P.id));this._control.setDescribedByIds(D)}}_validateControlChild(){}updateOutlineGap(){const D=this._label?this._label.nativeElement:null,P=this._connectionContainerRef.nativeElement,L=".mat-form-field-outline-start",re=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!D||!D.children.length||!D.textContent.trim()){const ct=P.querySelectorAll(`${L}, ${re}`);for(let Ot=0;Ot0?.75*dn+10:0}for(let ct=0;ct{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275mod=g.oAB({type:E}),E.\u0275inj=g.cJS({imports:[[o.ez,Y.BQ,c.Q8],Y.BQ]}),E})()},7531:(qe,ye,C)=>{C.d(ye,{Nt:()=>Ye,c:()=>Qe});var c=C(3191),o=C(925),g=C(4893),Y=C(2382),ce=C(508),ie=C(7322),De=C(7579),Ce=C(515);const ue=(0,o.i$)({passive:!0});let ee=(()=>{class me{constructor(q,pe){this._platform=q,this._ngZone=pe,this._monitoredElements=new Map}monitor(q){if(!this._platform.isBrowser)return Ce.E;const pe=(0,c.fI)(q),Te=this._monitoredElements.get(pe);if(Te)return Te.subject;const Ne=new De.x,ve="cdk-text-field-autofilled",Me=xe=>{"cdk-text-field-autofill-start"!==xe.animationName||pe.classList.contains(ve)?"cdk-text-field-autofill-end"===xe.animationName&&pe.classList.contains(ve)&&(pe.classList.remove(ve),this._ngZone.run(()=>Ne.next({target:xe.target,isAutofilled:!1}))):(pe.classList.add(ve),this._ngZone.run(()=>Ne.next({target:xe.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{pe.addEventListener("animationstart",Me,ue),pe.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(pe,{subject:Ne,unlisten:()=>{pe.removeEventListener("animationstart",Me,ue)}}),Ne}stopMonitoring(q){const pe=(0,c.fI)(q),Te=this._monitoredElements.get(pe);Te&&(Te.unlisten(),Te.subject.complete(),pe.classList.remove("cdk-text-field-autofill-monitored"),pe.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(pe))}ngOnDestroy(){this._monitoredElements.forEach((q,pe)=>this.stopMonitoring(pe))}}return me.\u0275fac=function(q){return new(q||me)(g.LFG(o.t4),g.LFG(g.R0b))},me.\u0275prov=g.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})(),J=(()=>{class me{}return me.\u0275fac=function(q){return new(q||me)},me.\u0275mod=g.oAB({type:me}),me.\u0275inj=g.cJS({}),me})();const ke=new g.OlP("MAT_INPUT_VALUE_ACCESSOR"),Be=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Z=0;const et=(0,ce.FD)(class{constructor(me,z,q,pe){this._defaultErrorStateMatcher=me,this._parentForm=z,this._parentFormGroup=q,this.ngControl=pe}});let Ye=(()=>{class me extends et{constructor(q,pe,Te,Ne,ve,Me,xe,Ae,tt,Fe){super(Me,Ne,ve,Te),this._elementRef=q,this._platform=pe,this._autofillMonitor=Ae,this._formField=Fe,this._uid="mat-input-"+Z++,this.focused=!1,this.stateChanges=new De.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Jt=>(0,o.qK)().has(Jt));const Ct=this._elementRef.nativeElement,mt=Ct.nodeName.toLowerCase();this._inputValueAccessor=xe||Ct,this._previousNativeValue=this.value,this.id=this.id,pe.IOS&&tt.runOutsideAngular(()=>{q.nativeElement.addEventListener("keyup",Jt=>{const yt=Jt.target;!yt.value&&0===yt.selectionStart&&0===yt.selectionEnd&&(yt.setSelectionRange(1,1),yt.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===mt,this._isTextarea="textarea"===mt,this._isInFormField=!!Fe,this._isNativeSelect&&(this.controlType=Ct.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(q){this._disabled=(0,c.Ig)(q),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(q){this._id=q||this._uid}get required(){var q,pe,Te,Ne;return null!==(Ne=null!==(q=this._required)&&void 0!==q?q:null===(Te=null===(pe=this.ngControl)||void 0===pe?void 0:pe.control)||void 0===Te?void 0:Te.hasValidator(Y.kI.required))&&void 0!==Ne&&Ne}set required(q){this._required=(0,c.Ig)(q)}get type(){return this._type}set type(q){this._type=q||"text",this._validateType(),!this._isTextarea&&(0,o.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(q){q!==this.value&&(this._inputValueAccessor.value=q,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(q){this._readonly=(0,c.Ig)(q)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(q=>{this.autofilled=q.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(q){this._elementRef.nativeElement.focus(q)}_focusChanged(q){q!==this.focused&&(this.focused=q,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var q,pe;const Te=(null===(pe=null===(q=this._formField)||void 0===q?void 0:q._hideControlPlaceholder)||void 0===pe?void 0:pe.call(q))?null:this.placeholder;if(Te!==this._previousPlaceholder){const Ne=this._elementRef.nativeElement;this._previousPlaceholder=Te,Te?Ne.setAttribute("placeholder",Te):Ne.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const q=this._elementRef.nativeElement.value;this._previousNativeValue!==q&&(this._previousNativeValue=q,this.stateChanges.next())}_validateType(){Be.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let q=this._elementRef.nativeElement.validity;return q&&q.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const q=this._elementRef.nativeElement,pe=q.options[0];return this.focused||q.multiple||!this.empty||!!(q.selectedIndex>-1&&pe&&pe.label)}return this.focused||!this.empty}setDescribedByIds(q){q.length?this._elementRef.nativeElement.setAttribute("aria-describedby",q.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const q=this._elementRef.nativeElement;return this._isNativeSelect&&(q.multiple||q.size>1)}}return me.\u0275fac=function(q){return new(q||me)(g.Y36(g.SBq),g.Y36(o.t4),g.Y36(Y.a5,10),g.Y36(Y.F,8),g.Y36(Y.sg,8),g.Y36(ce.rD),g.Y36(ke,10),g.Y36(ee),g.Y36(g.R0b),g.Y36(ie.G_,8))},me.\u0275dir=g.lG2({type:me,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(q,pe){1&q&&g.NdJ("focus",function(){return pe._focusChanged(!0)})("blur",function(){return pe._focusChanged(!1)})("input",function(){return pe._onInput()}),2&q&&(g.Ikx("disabled",pe.disabled)("required",pe.required),g.uIk("id",pe.id)("data-placeholder",pe.placeholder)("name",pe.name||null)("readonly",pe.readonly&&!pe._isNativeSelect||null)("aria-invalid",pe.empty&&pe.required?null:pe.errorState)("aria-required",pe.required),g.ekj("mat-input-server",pe._isServer)("mat-native-select-inline",pe._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:[g._Bn([{provide:ie.Eo,useExisting:me}]),g.qOj,g.TTD]}),me})(),Qe=(()=>{class me{}return me.\u0275fac=function(q){return new(q||me)},me.\u0275mod=g.oAB({type:me}),me.\u0275inj=g.cJS({providers:[ce.rD],imports:[[J,ie.lN,ce.BQ],J,ie.lN]}),me})()},4107:(qe,ye,C)=>{C.d(ye,{gD:()=>bt,LD:()=>Nt});var c=C(9776),o=C(9808),g=C(4893),Y=C(508),ce=C(7322),ie=C(495),De=C(9950),Ce=C(3191),ue=C(449),ee=C(1159),se=C(2382),de=C(7579),J=C(9770),le=C(6451),ke=C(8675),Be=C(3900),Z=C(5698),et=C(9300),Ye=C(4004),Qe=C(1884),me=C(2722),z=C(1777),q=C(226);const pe=["trigger"],Te=["panel"];function Ne(at,Pe){if(1&at&&(g.TgZ(0,"span",8),g._uU(1),g.qZA()),2&at){const E=g.oxw();g.xp6(1),g.Oqu(E.placeholder)}}function ve(at,Pe){if(1&at&&(g.TgZ(0,"span",12),g._uU(1),g.qZA()),2&at){const E=g.oxw(2);g.xp6(1),g.Oqu(E.triggerValue)}}function Me(at,Pe){1&at&&g.Hsn(0,0,["*ngSwitchCase","true"])}function xe(at,Pe){if(1&at&&(g.TgZ(0,"span",9),g.YNc(1,ve,2,1,"span",10),g.YNc(2,Me,1,0,"ng-content",11),g.qZA()),2&at){const E=g.oxw();g.Q6J("ngSwitch",!!E.customTrigger),g.xp6(2),g.Q6J("ngSwitchCase",!0)}}function Ae(at,Pe){if(1&at){const E=g.EpF();g.TgZ(0,"div",13)(1,"div",14,15),g.NdJ("@transformPanel.done",function(D){return g.CHM(E),g.oxw()._panelDoneAnimatingStream.next(D.toState)})("keydown",function(D){return g.CHM(E),g.oxw()._handleKeydown(D)}),g.Hsn(3,1),g.qZA()()}if(2&at){const E=g.oxw();g.Q6J("@transformPanelWrap",void 0),g.xp6(1),g.Gre("mat-select-panel ",E._getPanelTheme(),""),g.Udp("transform-origin",E._transformOrigin)("font-size",E._triggerFontSize,"px"),g.Q6J("ngClass",E.panelClass)("@transformPanel",E.multiple?"showing-multiple":"showing"),g.uIk("id",E.id+"-panel")("aria-multiselectable",E.multiple)("aria-label",E.ariaLabel||null)("aria-labelledby",E._getPanelAriaLabelledby())}}const tt=[[["mat-select-trigger"]],"*"],Fe=["mat-select-trigger","*"],Ct={transformPanelWrap:(0,z.X$)("transformPanelWrap",[(0,z.eR)("* => void",(0,z.IO)("@transformPanel",[(0,z.pV)()],{optional:!0}))]),transformPanel:(0,z.X$)("transformPanel",[(0,z.SB)("void",(0,z.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,z.SB)("showing",(0,z.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,z.SB)("showing-multiple",(0,z.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,z.eR)("void => *",(0,z.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,z.eR)("* => void",(0,z.jt)("100ms 25ms linear",(0,z.oB)({opacity:0})))])};let Rt=0;const Xe=new g.OlP("mat-select-scroll-strategy"),Q=new g.OlP("MAT_SELECT_CONFIG"),K={provide:Xe,deps:[c.aV],useFactory:function je(at){return()=>at.scrollStrategies.reposition()}};class He{constructor(Pe,E){this.source=Pe,this.value=E}}const Ge=(0,Y.Kr)((0,Y.sb)((0,Y.Id)((0,Y.FD)(class{constructor(at,Pe,E,S,D){this._elementRef=at,this._defaultErrorStateMatcher=Pe,this._parentForm=E,this._parentFormGroup=S,this.ngControl=D}})))),lt=new g.OlP("MatSelectTrigger");let Ht=(()=>{class at extends Ge{constructor(E,S,D,P,L,re,be,Ue,ze,_t,ct,Ot,nn,Yt){var dn,dt,vt;super(L,P,be,Ue,_t),this._viewportRuler=E,this._changeDetectorRef=S,this._ngZone=D,this._dir=re,this._parentFormField=ze,this._liveAnnouncer=nn,this._defaultOptions=Yt,this._panelOpen=!1,this._compareWith=(Le,we)=>Le===we,this._uid="mat-select-"+Rt++,this._triggerAriaLabelledBy=null,this._destroy=new de.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Rt++,this._panelDoneAnimatingStream=new de.x,this._overlayPanelClass=(null===(dn=this._defaultOptions)||void 0===dn?void 0:dn.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(vt=null===(dt=this._defaultOptions)||void 0===dt?void 0:dt.disableOptionCentering)&&void 0!==vt&&vt,this.ariaLabel="",this.optionSelectionChanges=(0,J.P)(()=>{const Le=this.options;return Le?Le.changes.pipe((0,ke.O)(Le),(0,Be.w)(()=>(0,le.T)(...Le.map(we=>we.onSelectionChange)))):this._ngZone.onStable.pipe((0,Z.q)(1),(0,Be.w)(()=>this.optionSelectionChanges))}),this.openedChange=new g.vpe,this._openedStream=this.openedChange.pipe((0,et.h)(Le=>Le),(0,Ye.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,et.h)(Le=>!Le),(0,Ye.U)(()=>{})),this.selectionChange=new g.vpe,this.valueChange=new g.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Yt?void 0:Yt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Yt.typeaheadDebounceInterval),this._scrollStrategyFactory=Ot,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(ct)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(E){this._placeholder=E,this.stateChanges.next()}get required(){var E,S,D,P;return null!==(P=null!==(E=this._required)&&void 0!==E?E:null===(D=null===(S=this.ngControl)||void 0===S?void 0:S.control)||void 0===D?void 0:D.hasValidator(se.kI.required))&&void 0!==P&&P}set required(E){this._required=(0,Ce.Ig)(E),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(E){this._multiple=(0,Ce.Ig)(E)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(E){this._disableOptionCentering=(0,Ce.Ig)(E)}get compareWith(){return this._compareWith}set compareWith(E){this._compareWith=E,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(E){(E!==this._value||this._multiple&&Array.isArray(E))&&(this.options&&this._setSelectionByValue(E),this._value=E)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(E){this._typeaheadDebounceInterval=(0,Ce.su)(E)}get id(){return this._id}set id(E){this._id=E||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ue.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Qe.x)(),(0,me.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,me.R)(this._destroy)).subscribe(E=>{E.added.forEach(S=>S.select()),E.removed.forEach(S=>S.deselect())}),this.options.changes.pipe((0,ke.O)(null),(0,me.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const E=this._getTriggerAriaLabelledby();if(E!==this._triggerAriaLabelledBy){const S=this._elementRef.nativeElement;this._triggerAriaLabelledBy=E,E?S.setAttribute("aria-labelledby",E):S.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(E){E.disabled&&this.stateChanges.next(),E.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(E){this.value=E}registerOnChange(E){this._onChange=E}registerOnTouched(E){this._onTouched=E}setDisabledState(E){this.disabled=E,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var E,S;return this.multiple?(null===(E=this._selectionModel)||void 0===E?void 0:E.selected)||[]:null===(S=this._selectionModel)||void 0===S?void 0:S.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const E=this._selectionModel.selected.map(S=>S.viewValue);return this._isRtl()&&E.reverse(),E.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(E){this.disabled||(this.panelOpen?this._handleOpenKeydown(E):this._handleClosedKeydown(E))}_handleClosedKeydown(E){const S=E.keyCode,D=S===ee.JH||S===ee.LH||S===ee.oh||S===ee.SV,P=S===ee.K5||S===ee.L_,L=this._keyManager;if(!L.isTyping()&&P&&!(0,ee.Vb)(E)||(this.multiple||E.altKey)&&D)E.preventDefault(),this.open();else if(!this.multiple){const re=this.selected;L.onKeydown(E);const be=this.selected;be&&re!==be&&this._liveAnnouncer.announce(be.viewValue,1e4)}}_handleOpenKeydown(E){const S=this._keyManager,D=E.keyCode,P=D===ee.JH||D===ee.LH,L=S.isTyping();if(P&&E.altKey)E.preventDefault(),this.close();else if(L||D!==ee.K5&&D!==ee.L_||!S.activeItem||(0,ee.Vb)(E))if(!L&&this._multiple&&D===ee.A&&E.ctrlKey){E.preventDefault();const re=this.options.some(be=>!be.disabled&&!be.selected);this.options.forEach(be=>{be.disabled||(re?be.select():be.deselect())})}else{const re=S.activeItemIndex;S.onKeydown(E),this._multiple&&P&&E.shiftKey&&S.activeItem&&S.activeItemIndex!==re&&S.activeItem._selectViaInteraction()}else E.preventDefault(),S.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Z.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(E){if(this._selectionModel.selected.forEach(S=>S.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&E)Array.isArray(E),E.forEach(S=>this._selectValue(S)),this._sortValues();else{const S=this._selectValue(E);S?this._keyManager.updateActiveItem(S):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(E){const S=this.options.find(D=>{if(this._selectionModel.isSelected(D))return!1;try{return null!=D.value&&this._compareWith(D.value,E)}catch(P){return!1}});return S&&this._selectionModel.select(S),S}_initKeyManager(){this._keyManager=new De.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,me.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,me.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const E=(0,le.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,me.R)(E)).subscribe(S=>{this._onSelect(S.source,S.isUserInput),S.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,le.T)(...this.options.map(S=>S._stateChanges)).pipe((0,me.R)(E)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(E,S){const D=this._selectionModel.isSelected(E);null!=E.value||this._multiple?(D!==E.selected&&(E.selected?this._selectionModel.select(E):this._selectionModel.deselect(E)),S&&this._keyManager.setActiveItem(E),this.multiple&&(this._sortValues(),S&&this.focus())):(E.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(E.value)),D!==this._selectionModel.isSelected(E)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const E=this.options.toArray();this._selectionModel.sort((S,D)=>this.sortComparator?this.sortComparator(S,D,E):E.indexOf(S)-E.indexOf(D)),this.stateChanges.next()}}_propagateChanges(E){let S=null;S=this.multiple?this.selected.map(D=>D.value):this.selected?this.selected.value:E,this._value=S,this.valueChange.emit(S),this._onChange(S),this.selectionChange.emit(this._getChangeEvent(S)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var E;return!this._panelOpen&&!this.disabled&&(null===(E=this.options)||void 0===E?void 0:E.length)>0}focus(E){this._elementRef.nativeElement.focus(E)}_getPanelAriaLabelledby(){var E;if(this.ariaLabel)return null;const S=null===(E=this._parentFormField)||void 0===E?void 0:E.getLabelId();return this.ariaLabelledby?(S?S+" ":"")+this.ariaLabelledby:S}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var E;if(this.ariaLabel)return null;const S=null===(E=this._parentFormField)||void 0===E?void 0:E.getLabelId();let D=(S?S+" ":"")+this._valueId;return this.ariaLabelledby&&(D+=" "+this.ariaLabelledby),D}_panelDoneAnimating(E){this.openedChange.emit(E)}setDescribedByIds(E){this._ariaDescribedby=E.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return at.\u0275fac=function(E){return new(E||at)(g.Y36(ie.rL),g.Y36(g.sBO),g.Y36(g.R0b),g.Y36(Y.rD),g.Y36(g.SBq),g.Y36(q.Is,8),g.Y36(se.F,8),g.Y36(se.sg,8),g.Y36(ce.G_,8),g.Y36(se.a5,10),g.$8M("tabindex"),g.Y36(Xe),g.Y36(De.Kd),g.Y36(Q,8))},at.\u0275dir=g.lG2({type:at,viewQuery:function(E,S){if(1&E&&(g.Gf(pe,5),g.Gf(Te,5),g.Gf(c.pI,5)),2&E){let D;g.iGM(D=g.CRH())&&(S.trigger=D.first),g.iGM(D=g.CRH())&&(S.panel=D.first),g.iGM(D=g.CRH())&&(S._overlayDir=D.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:[g.qOj,g.TTD]}),at})(),bt=(()=>{class at extends Ht{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(E,S,D){const P=this._getItemHeight();return Math.min(Math.max(0,P*E-S+P/2),D)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,me.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Z.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(E){const S=(0,Y.CB)(E,this.options,this.optionGroups),D=this._getItemHeight();this.panel.nativeElement.scrollTop=0===E&&1===S?0:(0,Y.jH)((E+S)*D,D,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(E){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(E)}_getChangeEvent(E){return new He(this,E)}_calculateOverlayOffsetX(){const E=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),S=this._viewportRuler.getViewportSize(),D=this._isRtl(),P=this.multiple?56:32;let L;if(this.multiple)L=40;else if(this.disableOptionCentering)L=16;else{let Ue=this._selectionModel.selected[0]||this.options.first;L=Ue&&Ue.group?32:16}D||(L*=-1);const re=0-(E.left+L-(D?P:0)),be=E.right+L-S.width+(D?0:P);re>0?L+=re+8:be>0&&(L-=be+8),this._overlayDir.offsetX=Math.round(L),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(E,S,D){const P=this._getItemHeight(),L=(P-this._triggerRect.height)/2,re=Math.floor(256/P);let be;return this.disableOptionCentering?0:(be=0===this._scrollTop?E*P:this._scrollTop===D?(E-(this._getItemCount()-re))*P+(P-(this._getItemCount()*P-256)%P):S-P/2,Math.round(-1*be-L))}_checkOverlayWithinViewport(E){const S=this._getItemHeight(),D=this._viewportRuler.getViewportSize(),P=this._triggerRect.top-8,L=D.height-this._triggerRect.bottom-8,re=Math.abs(this._offsetY),Ue=Math.min(this._getItemCount()*S,256)-re-this._triggerRect.height;Ue>L?this._adjustPanelUp(Ue,L):re>P?this._adjustPanelDown(re,P,E):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(E,S){const D=Math.round(E-S);this._scrollTop-=D,this._offsetY-=D,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(E,S,D){const P=Math.round(E-S);if(this._scrollTop+=P,this._offsetY+=P,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=D)return this._scrollTop=D,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const E=this._getItemHeight(),S=this._getItemCount(),D=Math.min(S*E,256),L=S*E-D;let re;re=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),re+=(0,Y.CB)(re,this.options,this.optionGroups);const be=D/2;this._scrollTop=this._calculateOverlayScroll(re,be,L),this._offsetY=this._calculateOverlayOffsetY(re,be,L),this._checkOverlayWithinViewport(L)}_getOriginBasedOnOption(){const E=this._getItemHeight(),S=(E-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-S+E/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return at.\u0275fac=function(){let Pe;return function(S){return(Pe||(Pe=g.n5z(at)))(S||at)}}(),at.\u0275cmp=g.Xpm({type:at,selectors:[["mat-select"]],contentQueries:function(E,S,D){if(1&E&&(g.Suo(D,lt,5),g.Suo(D,Y.ey,5),g.Suo(D,Y.K7,5)),2&E){let P;g.iGM(P=g.CRH())&&(S.customTrigger=P.first),g.iGM(P=g.CRH())&&(S.options=P),g.iGM(P=g.CRH())&&(S.optionGroups=P)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(E,S){1&E&&g.NdJ("keydown",function(P){return S._handleKeydown(P)})("focus",function(){return S._onFocus()})("blur",function(){return S._onBlur()}),2&E&&(g.uIk("id",S.id)("tabindex",S.tabIndex)("aria-controls",S.panelOpen?S.id+"-panel":null)("aria-expanded",S.panelOpen)("aria-label",S.ariaLabel||null)("aria-required",S.required.toString())("aria-disabled",S.disabled.toString())("aria-invalid",S.errorState)("aria-describedby",S._ariaDescribedby||null)("aria-activedescendant",S._getAriaActiveDescendant()),g.ekj("mat-select-disabled",S.disabled)("mat-select-invalid",S.errorState)("mat-select-required",S.required)("mat-select-empty",S.empty)("mat-select-multiple",S.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[g._Bn([{provide:ce.Eo,useExisting:at},{provide:Y.HF,useExisting:at}]),g.qOj],ngContentSelectors:Fe,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(E,S){if(1&E&&(g.F$t(tt),g.TgZ(0,"div",0,1),g.NdJ("click",function(){return S.toggle()}),g.TgZ(3,"div",2),g.YNc(4,Ne,2,1,"span",3),g.YNc(5,xe,3,2,"span",4),g.qZA(),g.TgZ(6,"div",5),g._UZ(7,"div",6),g.qZA()(),g.YNc(8,Ae,4,14,"ng-template",7),g.NdJ("backdropClick",function(){return S.close()})("attach",function(){return S._onAttached()})("detach",function(){return S.close()})),2&E){const D=g.MAs(1);g.uIk("aria-owns",S.panelOpen?S.id+"-panel":null),g.xp6(3),g.Q6J("ngSwitch",S.empty),g.uIk("id",S._valueId),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1),g.xp6(3),g.Q6J("cdkConnectedOverlayPanelClass",S._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",S._scrollStrategy)("cdkConnectedOverlayOrigin",D)("cdkConnectedOverlayOpen",S.panelOpen)("cdkConnectedOverlayPositions",S._positions)("cdkConnectedOverlayMinWidth",null==S._triggerRect?null:S._triggerRect.width)("cdkConnectedOverlayOffsetY",S._offsetY)}},directives:[c.xu,o.RF,o.n9,o.ED,c.pI,o.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-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;opacity:0}\n'],encapsulation:2,data:{animation:[Ct.transformPanelWrap,Ct.transformPanel]},changeDetection:0}),at})(),Nt=(()=>{class at{}return at.\u0275fac=function(E){return new(E||at)},at.\u0275mod=g.oAB({type:at}),at.\u0275inj=g.cJS({providers:[K],imports:[[o.ez,c.U8,Y.Ng,Y.BQ],ie.ZD,ce.lN,Y.Ng,Y.BQ]}),at})()},6360:(qe,ye,C)=>{C.d(ye,{Qb:()=>br,PW:()=>Ee});var c=C(4893),o=C(2313),g=C(1777);const Y=!1;function ie(d){return new c.vHH(3e3,Y)}function xt(){return"undefined"!=typeof window&&void 0!==window.document}function on(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Xe(d){switch(d.length){case 0:return new g.ZN;case 1:return d[0];default:return new g.ZE(d)}}function je(d,a,l,v,R={},G={}){const ne=[],oe=[];let Oe=-1,Ke=null;if(v.forEach(gt=>{const It=gt.offset,Xt=It==Oe,ln=Xt&&Ke||{};Object.keys(gt).forEach(Vt=>{let rn=Vt,Mn=gt[Vt];if("offset"!==Vt)switch(rn=a.normalizePropertyName(rn,ne),Mn){case g.k1:Mn=R[Vt];break;case g.l3:Mn=G[Vt];break;default:Mn=a.normalizeStyleValue(Vt,rn,Mn,ne)}ln[rn]=Mn}),Xt||oe.push(ln),Ke=ln,Oe=It}),ne.length)throw function Ae(d){return new c.vHH(3502,Y)}();return oe}function Q(d,a,l,v){switch(a){case"start":d.onStart(()=>v(l&&K(l,"start",d)));break;case"done":d.onDone(()=>v(l&&K(l,"done",d)));break;case"destroy":d.onDestroy(()=>v(l&&K(l,"destroy",d)))}}function K(d,a,l){const v=l.totalTime,G=He(d.element,d.triggerName,d.fromState,d.toState,a||d.phaseName,null==v?d.totalTime:v,!!l.disabled),ne=d._data;return null!=ne&&(G._data=ne),G}function He(d,a,l,v,R="",G=0,ne){return{element:d,triggerName:a,fromState:l,toState:v,phaseName:R,totalTime:G,disabled:!!ne}}function Ge(d,a,l){let v;return d instanceof Map?(v=d.get(a),v||d.set(a,v=l)):(v=d[a],v||(v=d[a]=l)),v}function lt(d){const a=d.indexOf(":");return[d.substring(1,a),d.substr(a+1)]}let St=(d,a)=>!1,Ht=(d,a,l)=>[],bt=null;function Nt(d){const a=d.parentNode||d.host;return a===bt?null:a}(on()||"undefined"!=typeof Element)&&(xt()?(bt=(()=>document.documentElement)(),St=(d,a)=>{for(;a;){if(a===d)return!0;a=Nt(a)}return!1}):St=(d,a)=>d.contains(a),Ht=(d,a,l)=>{if(l)return Array.from(d.querySelectorAll(a));const v=d.querySelector(a);return v?[v]:[]});let E=null,S=!1;function D(d){E||(E=function P(){return"undefined"!=typeof document?document.body:null}()||{},S=!!E.style&&"WebkitAppearance"in E.style);let a=!0;return E.style&&!function Pe(d){return"ebkit"==d.substring(1,6)}(d)&&(a=d in E.style,!a&&S&&(a="Webkit"+d.charAt(0).toUpperCase()+d.substr(1)in E.style)),a}const L=St,re=Ht;let Ue=(()=>{class d{validateStyleProperty(l){return D(l)}matchesElement(l,v){return!1}containsElement(l,v){return L(l,v)}getParentElement(l){return Nt(l)}query(l,v,R){return re(l,v,R)}computeStyle(l,v,R){return R||""}animate(l,v,R,G,ne,oe=[],Oe){return new g.ZN(R,G)}}return d.\u0275fac=function(l){return new(l||d)},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})(),ze=(()=>{class d{}return d.NOOP=new Ue,d})();const nn="ng-enter",Yt="ng-leave",dn="ng-trigger",dt=".ng-trigger",vt="ng-animating",Le=".ng-animating";function we(d){if("number"==typeof d)return d;const a=d.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:V(parseFloat(a[1]),a[2])}function V(d,a){return"s"===a?1e3*d:d}function j(d,a,l){return d.hasOwnProperty("duration")?d:function $(d,a,l){let R,G=0,ne="";if("string"==typeof d){const oe=d.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===oe)return a.push(ie()),{duration:0,delay:0,easing:""};R=V(parseFloat(oe[1]),oe[2]);const Oe=oe[3];null!=Oe&&(G=V(parseFloat(Oe),oe[4]));const Ke=oe[5];Ke&&(ne=Ke)}else R=d;if(!l){let oe=!1,Oe=a.length;R<0&&(a.push(function De(){return new c.vHH(3100,Y)}()),oe=!0),G<0&&(a.push(function Ce(){return new c.vHH(3101,Y)}()),oe=!0),oe&&a.splice(Oe,0,ie())}return{duration:R,delay:G,easing:ne}}(d,a,l)}function he(d,a={}){return Object.keys(d).forEach(l=>{a[l]=d[l]}),a}function st(d,a,l={}){if(a)for(let v in d)l[v]=d[v];else he(d,l);return l}function At(d,a,l){return l?a+":"+l+";":""}function Zt(d){let a="";for(let l=0;l{const R=$t(v);l&&!l.hasOwnProperty(v)&&(l[v]=d.style[R]),d.style[R]=a[v]}),on()&&Zt(d))}function Dt(d,a){d.style&&(Object.keys(a).forEach(l=>{const v=$t(l);d.style[v]=""}),on()&&Zt(d))}function Rn(d){return Array.isArray(d)?1==d.length?d[0]:(0,g.vP)(d):d}const _e=new RegExp("{{\\s*(.+?)\\s*}}","g");function te(d){let a=[];if("string"==typeof d){let l;for(;l=_e.exec(d);)a.push(l[1]);_e.lastIndex=0}return a}function Ie(d,a,l){const v=d.toString(),R=v.replace(_e,(G,ne)=>{let oe=a[ne];return a.hasOwnProperty(ne)||(l.push(function ee(d){return new c.vHH(3003,Y)}()),oe=""),oe.toString()});return R==v?d:R}function rt(d){const a=[];let l=d.next();for(;!l.done;)a.push(l.value),l=d.next();return a}const kt=/-+([a-z0-9])/g;function $t(d){return d.replace(kt,(...a)=>a[1].toUpperCase())}function bn(d){return d.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Cn(d,a,l){switch(a.type){case 7:return d.visitTrigger(a,l);case 0:return d.visitState(a,l);case 1:return d.visitTransition(a,l);case 2:return d.visitSequence(a,l);case 3:return d.visitGroup(a,l);case 4:return d.visitAnimate(a,l);case 5:return d.visitKeyframes(a,l);case 6:return d.visitStyle(a,l);case 8:return d.visitReference(a,l);case 9:return d.visitAnimateChild(a,l);case 10:return d.visitAnimateRef(a,l);case 11:return d.visitQuery(a,l);case 12:return d.visitStagger(a,l);default:throw function se(d){return new c.vHH(3004,Y)}()}}function jn(d,a){return window.getComputedStyle(d)[a]}function ft(d,a){const l=[];return"string"==typeof d?d.split(/\s*,\s*/).forEach(v=>function Qt(d,a,l){if(":"==d[0]){const Oe=function pn(d,a){switch(d){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,v)=>parseFloat(v)>parseFloat(l);case":decrement":return(l,v)=>parseFloat(v) *"}}(d,l);if("function"==typeof Oe)return void a.push(Oe);d=Oe}const v=d.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==v||v.length<4)return l.push(function Te(d){return new c.vHH(3015,Y)}()),a;const R=v[1],G=v[2],ne=v[3];a.push(An(R,ne));"<"==G[0]&&!("*"==R&&"*"==ne)&&a.push(An(ne,R))}(v,l,a)):l.push(d),l}const Fn=new Set(["true","1"]),ai=new Set(["false","0"]);function An(d,a){const l=Fn.has(d)||ai.has(d),v=Fn.has(a)||ai.has(a);return(R,G)=>{let ne="*"==d||d==R,oe="*"==a||a==G;return!ne&&l&&"boolean"==typeof R&&(ne=R?Fn.has(d):ai.has(d)),!oe&&v&&"boolean"==typeof G&&(oe=G?Fn.has(a):ai.has(a)),ne&&oe}}const tn=new RegExp("s*:selfs*,?","g");function Yn(d,a,l,v){return new jt(d).build(a,l,v)}class jt{constructor(a){this._driver=a}build(a,l,v){const R=new Si(l);this._resetContextStyleTimingState(R);const G=Cn(this,Rn(a),R);return R.unsupportedCSSPropertiesFound.size&&R.unsupportedCSSPropertiesFound.keys(),G}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,l){let v=l.queryCount=0,R=l.depCount=0;const G=[],ne=[];return"@"==a.name.charAt(0)&&l.errors.push(function J(){return new c.vHH(3006,Y)}()),a.definitions.forEach(oe=>{if(this._resetContextStyleTimingState(l),0==oe.type){const Oe=oe,Ke=Oe.name;Ke.toString().split(/\s*,\s*/).forEach(gt=>{Oe.name=gt,G.push(this.visitState(Oe,l))}),Oe.name=Ke}else if(1==oe.type){const Oe=this.visitTransition(oe,l);v+=Oe.queryCount,R+=Oe.depCount,ne.push(Oe)}else l.errors.push(function le(){return new c.vHH(3007,Y)}())}),{type:7,name:a.name,states:G,transitions:ne,queryCount:v,depCount:R,options:null}}visitState(a,l){const v=this.visitStyle(a.styles,l),R=a.options&&a.options.params||null;if(v.containsDynamicStyles){const G=new Set,ne=R||{};v.styles.forEach(oe=>{if(gn(oe)){const Oe=oe;Object.keys(Oe).forEach(Ke=>{te(Oe[Ke]).forEach(gt=>{ne.hasOwnProperty(gt)||G.add(gt)})})}}),G.size&&(rt(G.values()),l.errors.push(function ke(d,a){return new c.vHH(3008,Y)}()))}return{type:0,name:a.name,style:v,options:R?{params:R}:null}}visitTransition(a,l){l.queryCount=0,l.depCount=0;const v=Cn(this,Rn(a.animation),l);return{type:1,matchers:ft(a.expr,l.errors),animation:v,queryCount:l.queryCount,depCount:l.depCount,options:Nn(a.options)}}visitSequence(a,l){return{type:2,steps:a.steps.map(v=>Cn(this,v,l)),options:Nn(a.options)}}visitGroup(a,l){const v=l.currentTime;let R=0;const G=a.steps.map(ne=>{l.currentTime=v;const oe=Cn(this,ne,l);return R=Math.max(R,l.currentTime),oe});return l.currentTime=R,{type:3,steps:G,options:Nn(a.options)}}visitAnimate(a,l){const v=function di(d,a){let l=null;if(d.hasOwnProperty("duration"))l=d;else if("number"==typeof d)return Xn(j(d,a).duration,0,"");const v=d;if(v.split(/\s+/).some(G=>"{"==G.charAt(0)&&"{"==G.charAt(1))){const G=Xn(0,0,"");return G.dynamic=!0,G.strValue=v,G}return l=l||j(v,a),Xn(l.duration,l.delay,l.easing)}(a.timings,l.errors);l.currentAnimateTimings=v;let R,G=a.styles?a.styles:(0,g.oB)({});if(5==G.type)R=this.visitKeyframes(G,l);else{let ne=a.styles,oe=!1;if(!ne){oe=!0;const Ke={};v.easing&&(Ke.easing=v.easing),ne=(0,g.oB)(Ke)}l.currentTime+=v.duration+v.delay;const Oe=this.visitStyle(ne,l);Oe.isEmptyStep=oe,R=Oe}return l.currentAnimateTimings=null,{type:4,timings:v,style:R,options:null}}visitStyle(a,l){const v=this._makeStyleAst(a,l);return this._validateStyleAst(v,l),v}_makeStyleAst(a,l){const v=[];Array.isArray(a.styles)?a.styles.forEach(ne=>{"string"==typeof ne?ne==g.l3?v.push(ne):l.errors.push(function Be(d){return new c.vHH(3002,Y)}()):v.push(ne)}):v.push(a.styles);let R=!1,G=null;return v.forEach(ne=>{if(gn(ne)){const oe=ne,Oe=oe.easing;if(Oe&&(G=Oe,delete oe.easing),!R)for(let Ke in oe)if(oe[Ke].toString().indexOf("{{")>=0){R=!0;break}}}),{type:6,styles:v,easing:G,offset:a.offset,containsDynamicStyles:R,options:null}}_validateStyleAst(a,l){const v=l.currentAnimateTimings;let R=l.currentTime,G=l.currentTime;v&&G>0&&(G-=v.duration+v.delay),a.styles.forEach(ne=>{"string"!=typeof ne&&Object.keys(ne).forEach(oe=>{if(!this._driver.validateStyleProperty(oe))return delete ne[oe],void l.unsupportedCSSPropertiesFound.add(oe);const Oe=l.collectedStyles[l.currentQuerySelector],Ke=Oe[oe];let gt=!0;Ke&&(G!=R&&G>=Ke.startTime&&R<=Ke.endTime&&(l.errors.push(function et(d,a,l,v,R){return new c.vHH(3010,Y)}()),gt=!1),G=Ke.startTime),gt&&(Oe[oe]={startTime:G,endTime:R}),l.options&&function Ve(d,a,l){const v=a.params||{},R=te(d);R.length&&R.forEach(G=>{v.hasOwnProperty(G)||l.push(function ue(d){return new c.vHH(3001,Y)}())})}(ne[oe],l.options,l.errors)})})}visitKeyframes(a,l){const v={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push(function Ye(){return new c.vHH(3011,Y)}()),v;let G=0;const ne=[];let oe=!1,Oe=!1,Ke=0;const gt=a.steps.map($n=>{const li=this._makeStyleAst($n,l);let Ei=null!=li.offset?li.offset:function Gn(d){if("string"==typeof d)return null;let a=null;if(Array.isArray(d))d.forEach(l=>{if(gn(l)&&l.hasOwnProperty("offset")){const v=l;a=parseFloat(v.offset),delete v.offset}});else if(gn(d)&&d.hasOwnProperty("offset")){const l=d;a=parseFloat(l.offset),delete l.offset}return a}(li.styles),ii=0;return null!=Ei&&(G++,ii=li.offset=Ei),Oe=Oe||ii<0||ii>1,oe=oe||ii0&&G{const Ei=Xt>0?li==ln?1:Xt*li:ne[li],ii=Ei*Mn;l.currentTime=Vt+rn.delay+ii,rn.duration=ii,this._validateStyleAst($n,l),$n.offset=Ei,v.styles.push($n)}),v}visitReference(a,l){return{type:8,animation:Cn(this,Rn(a.animation),l),options:Nn(a.options)}}visitAnimateChild(a,l){return l.depCount++,{type:9,options:Nn(a.options)}}visitAnimateRef(a,l){return{type:10,animation:this.visitReference(a.animation,l),options:Nn(a.options)}}visitQuery(a,l){const v=l.currentQuerySelector,R=a.options||{};l.queryCount++,l.currentQuery=a;const[G,ne]=function ui(d){const a=!!d.split(/\s*,\s*/).find(l=>":self"==l);return a&&(d=d.replace(tn,"")),d=d.replace(/@\*/g,dt).replace(/@\w+/g,l=>dt+"-"+l.substr(1)).replace(/:animating/g,Le),[d,a]}(a.selector);l.currentQuerySelector=v.length?v+" "+G:G,Ge(l.collectedStyles,l.currentQuerySelector,{});const oe=Cn(this,Rn(a.animation),l);return l.currentQuery=null,l.currentQuerySelector=v,{type:11,selector:G,limit:R.limit||0,optional:!!R.optional,includeSelf:ne,animation:oe,originalSelector:a.selector,options:Nn(a.options)}}visitStagger(a,l){l.currentQuery||l.errors.push(function q(){return new c.vHH(3013,Y)}());const v="full"===a.timings?{duration:0,delay:0,easing:"full"}:j(a.timings,l.errors,!0);return{type:12,animation:Cn(this,Rn(a.animation),l),timings:v,options:null}}}class Si{constructor(a){this.errors=a,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 gn(d){return!Array.isArray(d)&&"object"==typeof d}function Nn(d){return d?(d=he(d)).params&&(d.params=function Jn(d){return d?he(d):null}(d.params)):d={},d}function Xn(d,a,l){return{duration:d,delay:a,easing:l}}function un(d,a,l,v,R,G,ne=null,oe=!1){return{type:1,element:d,keyframes:a,preStyleProps:l,postStyleProps:v,duration:R,delay:G,totalTime:R+G,easing:ne,subTimeline:oe}}class ir{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,l){let v=this._map.get(a);v||this._map.set(a,v=[]),v.push(...l)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const Ci=new RegExp(":enter","g"),Zi=new RegExp(":leave","g");function On(d,a,l,v,R,G={},ne={},oe,Oe,Ke=[]){return(new ei).buildKeyframes(d,a,l,v,R,G,ne,oe,Oe,Ke)}class ei{buildKeyframes(a,l,v,R,G,ne,oe,Oe,Ke,gt=[]){Ke=Ke||new ir;const It=new hr(a,l,Ke,R,G,gt,[]);It.options=Oe,It.currentTimeline.setStyles([ne],null,It.errors,Oe),Cn(this,v,It);const Xt=It.timelines.filter(ln=>ln.containsAnimation());if(Object.keys(oe).length){let ln;for(let Vt=Xt.length-1;Vt>=0;Vt--){const rn=Xt[Vt];if(rn.element===l){ln=rn;break}}ln&&!ln.allowOnlyTimelineStyles()&&ln.setStyles([oe],null,It.errors,Oe)}return Xt.length?Xt.map(ln=>ln.buildKeyframes()):[un(l,[],[],[],0,0,"",!1)]}visitTrigger(a,l){}visitState(a,l){}visitTransition(a,l){}visitAnimateChild(a,l){const v=l.subInstructions.get(l.element);if(v){const R=l.createSubContext(a.options),G=l.currentTimeline.currentTime,ne=this._visitSubInstructions(v,R,R.options);G!=ne&&l.transformIntoNewTimeline(ne)}l.previousNode=a}visitAnimateRef(a,l){const v=l.createSubContext(a.options);v.transformIntoNewTimeline(),this.visitReference(a.animation,v),l.transformIntoNewTimeline(v.currentTimeline.currentTime),l.previousNode=a}_visitSubInstructions(a,l,v){let G=l.currentTimeline.currentTime;const ne=null!=v.duration?we(v.duration):null,oe=null!=v.delay?we(v.delay):null;return 0!==ne&&a.forEach(Oe=>{const Ke=l.appendInstructionToTimeline(Oe,ne,oe);G=Math.max(G,Ke.duration+Ke.delay)}),G}visitReference(a,l){l.updateOptions(a.options,!0),Cn(this,a.animation,l),l.previousNode=a}visitSequence(a,l){const v=l.subContextCount;let R=l;const G=a.options;if(G&&(G.params||G.delay)&&(R=l.createSubContext(G),R.transformIntoNewTimeline(),null!=G.delay)){6==R.previousNode.type&&(R.currentTimeline.snapshotCurrentStyles(),R.previousNode=Oi);const ne=we(G.delay);R.delayNextStep(ne)}a.steps.length&&(a.steps.forEach(ne=>Cn(this,ne,R)),R.currentTimeline.applyStylesToKeyframe(),R.subContextCount>v&&R.transformIntoNewTimeline()),l.previousNode=a}visitGroup(a,l){const v=[];let R=l.currentTimeline.currentTime;const G=a.options&&a.options.delay?we(a.options.delay):0;a.steps.forEach(ne=>{const oe=l.createSubContext(a.options);G&&oe.delayNextStep(G),Cn(this,ne,oe),R=Math.max(R,oe.currentTimeline.currentTime),v.push(oe.currentTimeline)}),v.forEach(ne=>l.currentTimeline.mergeTimelineCollectedStyles(ne)),l.transformIntoNewTimeline(R),l.previousNode=a}_visitTiming(a,l){if(a.dynamic){const v=a.strValue;return j(l.params?Ie(v,l.params,l.errors):v,l.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,l){const v=l.currentAnimateTimings=this._visitTiming(a.timings,l),R=l.currentTimeline;v.delay&&(l.incrementTime(v.delay),R.snapshotCurrentStyles());const G=a.style;5==G.type?this.visitKeyframes(G,l):(l.incrementTime(v.duration),this.visitStyle(G,l),R.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=a}visitStyle(a,l){const v=l.currentTimeline,R=l.currentAnimateTimings;!R&&v.getCurrentStyleProperties().length&&v.forwardFrame();const G=R&&R.easing||a.easing;a.isEmptyStep?v.applyEmptyStep(G):v.setStyles(a.styles,G,l.errors,l.options),l.previousNode=a}visitKeyframes(a,l){const v=l.currentAnimateTimings,R=l.currentTimeline.duration,G=v.duration,oe=l.createSubContext().currentTimeline;oe.easing=v.easing,a.styles.forEach(Oe=>{oe.forwardTime((Oe.offset||0)*G),oe.setStyles(Oe.styles,Oe.easing,l.errors,l.options),oe.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(oe),l.transformIntoNewTimeline(R+G),l.previousNode=a}visitQuery(a,l){const v=l.currentTimeline.currentTime,R=a.options||{},G=R.delay?we(R.delay):0;G&&(6===l.previousNode.type||0==v&&l.currentTimeline.getCurrentStyleProperties().length)&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=Oi);let ne=v;const oe=l.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!R.optional,l.errors);l.currentQueryTotal=oe.length;let Oe=null;oe.forEach((Ke,gt)=>{l.currentQueryIndex=gt;const It=l.createSubContext(a.options,Ke);G&&It.delayNextStep(G),Ke===l.element&&(Oe=It.currentTimeline),Cn(this,a.animation,It),It.currentTimeline.applyStylesToKeyframe(),ne=Math.max(ne,It.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(ne),Oe&&(l.currentTimeline.mergeTimelineCollectedStyles(Oe),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=a}visitStagger(a,l){const v=l.parentContext,R=l.currentTimeline,G=a.timings,ne=Math.abs(G.duration),oe=ne*(l.currentQueryTotal-1);let Oe=ne*l.currentQueryIndex;switch(G.duration<0?"reverse":G.easing){case"reverse":Oe=oe-Oe;break;case"full":Oe=v.currentStaggerTime}const gt=l.currentTimeline;Oe&>.delayNextStep(Oe);const It=gt.currentTime;Cn(this,a.animation,l),l.previousNode=a,v.currentStaggerTime=R.currentTime-It+(R.startTime-v.currentTimeline.startTime)}}const Oi={};class hr{constructor(a,l,v,R,G,ne,oe,Oe){this._driver=a,this.element=l,this.subInstructions=v,this._enterClassName=R,this._leaveClassName=G,this.errors=ne,this.timelines=oe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Oi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Oe||new rr(this._driver,l,0),oe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,l){if(!a)return;const v=a;let R=this.options;null!=v.duration&&(R.duration=we(v.duration)),null!=v.delay&&(R.delay=we(v.delay));const G=v.params;if(G){let ne=R.params;ne||(ne=this.options.params={}),Object.keys(G).forEach(oe=>{(!l||!ne.hasOwnProperty(oe))&&(ne[oe]=Ie(G[oe],ne,this.errors))})}}_copyOptions(){const a={};if(this.options){const l=this.options.params;if(l){const v=a.params={};Object.keys(l).forEach(R=>{v[R]=l[R]})}}return a}createSubContext(a=null,l,v){const R=l||this.element,G=new hr(this._driver,R,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(R,v||0));return G.previousNode=this.previousNode,G.currentAnimateTimings=this.currentAnimateTimings,G.options=this._copyOptions(),G.updateOptions(a),G.currentQueryIndex=this.currentQueryIndex,G.currentQueryTotal=this.currentQueryTotal,G.parentContext=this,this.subContextCount++,G}transformIntoNewTimeline(a){return this.previousNode=Oi,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,l,v){const R={duration:null!=l?l:a.duration,delay:this.currentTimeline.currentTime+(null!=v?v:0)+a.delay,easing:""},G=new fr(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,R,a.stretchStartingKeyframe);return this.timelines.push(G),R}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,l,v,R,G,ne){let oe=[];if(R&&oe.push(this.element),a.length>0){a=(a=a.replace(Ci,"."+this._enterClassName)).replace(Zi,"."+this._leaveClassName);let Ke=this._driver.query(this.element,a,1!=v);0!==v&&(Ke=v<0?Ke.slice(Ke.length+v,Ke.length):Ke.slice(0,v)),oe.push(...Ke)}return!G&&0==oe.length&&ne.push(function pe(d){return new c.vHH(3014,Y)}()),oe}}class rr{constructor(a,l,v,R){this._driver=a,this.element=l,this.startTime=v,this._elementTimelineStylesLookup=R,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const l=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||l?(this.forwardTime(this.currentTime+a),l&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,l){return this.applyStylesToKeyframe(),new rr(this._driver,a,l||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,l){this._localTimelineStyles[a]=l,this._globalTimelineStyles[a]=l,this._styleSummary[a]={time:this.currentTime,value:l}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(l=>{this._backFill[l]=this._globalTimelineStyles[l]||g.l3,this._currentKeyframe[l]=g.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,l,v,R){l&&(this._previousKeyframe.easing=l);const G=R&&R.params||{},ne=function kr(d,a){const l={};let v;return d.forEach(R=>{"*"===R?(v=v||Object.keys(a),v.forEach(G=>{l[G]=g.l3})):st(R,!1,l)}),l}(a,this._globalTimelineStyles);Object.keys(ne).forEach(oe=>{const Oe=Ie(ne[oe],G,v);this._pendingStyles[oe]=Oe,this._localTimelineStyles.hasOwnProperty(oe)||(this._backFill[oe]=this._globalTimelineStyles.hasOwnProperty(oe)?this._globalTimelineStyles[oe]:g.l3),this._updateStyle(oe,Oe)})}applyStylesToKeyframe(){const a=this._pendingStyles,l=Object.keys(a);0!=l.length&&(this._pendingStyles={},l.forEach(v=>{this._currentKeyframe[v]=a[v]}),Object.keys(this._localTimelineStyles).forEach(v=>{this._currentKeyframe.hasOwnProperty(v)||(this._currentKeyframe[v]=this._localTimelineStyles[v])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const l=this._localTimelineStyles[a];this._pendingStyles[a]=l,this._updateStyle(a,l)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let l in this._currentKeyframe)a.push(l);return a}mergeTimelineCollectedStyles(a){Object.keys(a._styleSummary).forEach(l=>{const v=this._styleSummary[l],R=a._styleSummary[l];(!v||R.time>v.time)&&this._updateStyle(l,R.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,l=new Set,v=1===this._keyframes.size&&0===this.duration;let R=[];this._keyframes.forEach((oe,Oe)=>{const Ke=st(oe,!0);Object.keys(Ke).forEach(gt=>{const It=Ke[gt];It==g.k1?a.add(gt):It==g.l3&&l.add(gt)}),v||(Ke.offset=Oe/this.duration),R.push(Ke)});const G=a.size?rt(a.values()):[],ne=l.size?rt(l.values()):[];if(v){const oe=R[0],Oe=he(oe);oe.offset=0,Oe.offset=1,R=[oe,Oe]}return un(this.element,R,G,ne,this.duration,this.startTime,this.easing,!1)}}class fr extends rr{constructor(a,l,v,R,G,ne,oe=!1){super(a,l,ne.delay),this.keyframes=v,this.preStyleProps=R,this.postStyleProps=G,this._stretchStartingKeyframe=oe,this.timings={duration:ne.duration,delay:ne.delay,easing:ne.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:l,duration:v,easing:R}=this.timings;if(this._stretchStartingKeyframe&&l){const G=[],ne=v+l,oe=l/ne,Oe=st(a[0],!1);Oe.offset=0,G.push(Oe);const Ke=st(a[0],!1);Ke.offset=pr(oe),G.push(Ke);const gt=a.length-1;for(let It=1;It<=gt;It++){let Xt=st(a[It],!1);Xt.offset=pr((l+Xt.offset*v)/ne),G.push(Xt)}v=ne,l=0,R="",a=G}return un(this.element,a,this.preStyleProps,this.postStyleProps,v,l,R,!0)}}function pr(d,a=3){const l=Math.pow(10,a-1);return Math.round(d*l)/l}class mr{}class gr extends mr{normalizePropertyName(a,l){return $t(a)}normalizeStyleValue(a,l,v,R){let G="";const ne=v.toString().trim();if(or[l]&&0!==v&&"0"!==v)if("number"==typeof v)G="px";else{const oe=v.match(/^[+-]?[\d\.]+([a-z]*)$/);oe&&0==oe[1].length&&R.push(function de(d,a){return new c.vHH(3005,Y)}())}return ne+G}}const or=(()=>function xr(d){const a={};return d.forEach(l=>a[l]=!0),a}("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 sr(d,a,l,v,R,G,ne,oe,Oe,Ke,gt,It,Xt){return{type:0,element:d,triggerName:a,isRemovalTransition:R,fromState:l,fromStyles:G,toState:v,toStyles:ne,timelines:oe,queriedElements:Oe,preStyleProps:Ke,postStyleProps:gt,totalTime:It,errors:Xt}}const _r={};class ar{constructor(a,l,v){this._triggerName=a,this.ast=l,this._stateStyles=v}match(a,l,v,R){return function Zr(d,a,l,v,R){return d.some(G=>G(a,l,v,R))}(this.ast.matchers,a,l,v,R)}buildStyles(a,l,v){const R=this._stateStyles["*"],G=this._stateStyles[a],ne=R?R.buildStyles(l,v):{};return G?G.buildStyles(l,v):ne}build(a,l,v,R,G,ne,oe,Oe,Ke,gt){const It=[],Xt=this.ast.options&&this.ast.options.params||_r,Vt=this.buildStyles(v,oe&&oe.params||_r,It),rn=Oe&&Oe.params||_r,Mn=this.buildStyles(R,rn,It),$n=new Set,li=new Map,Ei=new Map,ii="void"===R,Sr={params:Object.assign(Object.assign({},Xt),rn)},Ui=gt?[]:On(a,l,this.ast.animation,G,ne,Vt,Mn,Sr,Ke,It);let Ai=0;if(Ui.forEach(Un=>{Ai=Math.max(Un.duration+Un.delay,Ai)}),It.length)return sr(l,this._triggerName,v,R,ii,Vt,Mn,[],[],li,Ei,Ai,It);Ui.forEach(Un=>{const _i=Un.element,Hn=Ge(li,_i,{});Un.preStyleProps.forEach(ri=>Hn[ri]=!0);const eo=Ge(Ei,_i,{});Un.postStyleProps.forEach(ri=>eo[ri]=!0),_i!==l&&$n.add(_i)});const Cr=rt($n.values());return sr(l,this._triggerName,v,R,ii,Vt,Mn,Ui,Cr,li,Ei,Ai)}}class vr{constructor(a,l,v){this.styles=a,this.defaultParams=l,this.normalizer=v}buildStyles(a,l){const v={},R=he(this.defaultParams);return Object.keys(a).forEach(G=>{const ne=a[G];null!=ne&&(R[G]=ne)}),this.styles.styles.forEach(G=>{if("string"!=typeof G){const ne=G;Object.keys(ne).forEach(oe=>{let Oe=ne[oe];Oe.length>1&&(Oe=Ie(Oe,R,l));const Ke=this.normalizer.normalizePropertyName(oe,l);Oe=this.normalizer.normalizeStyleValue(oe,Ke,Oe,l),v[Ke]=Oe})}}),v}}class qi{constructor(a,l,v){this.name=a,this.ast=l,this._normalizer=v,this.transitionFactories=[],this.states={},l.states.forEach(R=>{this.states[R.name]=new vr(R.style,R.options&&R.options.params||{},v)}),yr(this.states,"true","1"),yr(this.states,"false","0"),l.transitions.forEach(R=>{this.transitionFactories.push(new ar(a,R,this.states))}),this.fallbackTransition=function mi(d,a,l){return new ar(d,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ne,oe)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,l,v,R){return this.transitionFactories.find(ne=>ne.match(a,l,v,R))||null}matchStyles(a,l,v){return this.fallbackTransition.buildStyles(a,l,v)}}function yr(d,a,l){d.hasOwnProperty(a)?d.hasOwnProperty(l)||(d[l]=d[a]):d.hasOwnProperty(l)&&(d[a]=d[l])}const Di=new ir;class qr{constructor(a,l,v){this.bodyNode=a,this._driver=l,this._normalizer=v,this._animations={},this._playersById={},this.players=[]}register(a,l){const v=[],G=Yn(this._driver,l,v,[]);if(v.length)throw function tt(d){return new c.vHH(3503,Y)}();this._animations[a]=G}_buildPlayer(a,l,v){const R=a.element,G=je(0,this._normalizer,0,a.keyframes,l,v);return this._driver.animate(R,G,a.duration,a.delay,a.easing,[],!0)}create(a,l,v={}){const R=[],G=this._animations[a];let ne;const oe=new Map;if(G?(ne=On(this._driver,l,G,nn,Yt,{},{},v,Di,R),ne.forEach(gt=>{const It=Ge(oe,gt.element,{});gt.postStyleProps.forEach(Xt=>It[Xt]=null)})):(R.push(function Fe(){return new c.vHH(3300,Y)}()),ne=[]),R.length)throw function Ct(d){return new c.vHH(3504,Y)}();oe.forEach((gt,It)=>{Object.keys(gt).forEach(Xt=>{gt[Xt]=this._driver.computeStyle(It,Xt,g.l3)})});const Ke=Xe(ne.map(gt=>{const It=oe.get(gt.element);return this._buildPlayer(gt,{},It)}));return this._playersById[a]=Ke,Ke.onDestroy(()=>this.destroy(a)),this.players.push(Ke),Ke}destroy(a){const l=this._getPlayer(a);l.destroy(),delete this._playersById[a];const v=this.players.indexOf(l);v>=0&&this.players.splice(v,1)}_getPlayer(a){const l=this._playersById[a];if(!l)throw function mt(d){return new c.vHH(3301,Y)}();return l}listen(a,l,v,R){const G=He(l,"","","");return Q(this._getPlayer(a),v,G,R),()=>{}}command(a,l,v,R){if("register"==v)return void this.register(a,R[0]);if("create"==v)return void this.create(a,l,R[0]||{});const G=this._getPlayer(a);switch(v){case"play":G.play();break;case"pause":G.pause();break;case"reset":G.reset();break;case"restart":G.restart();break;case"finish":G.finish();break;case"init":G.init();break;case"setPosition":G.setPosition(parseFloat(R[0]));break;case"destroy":this.destroy(a)}}}const Mi="ng-animate-queued",zi="ng-animate-disabled",Ii=[],lr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Br={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ti="__ng_removed";class cr{constructor(a,l=""){this.namespaceId=l;const v=a&&a.hasOwnProperty("value");if(this.value=function A(d){return null!=d?d:null}(v?a.value:a),v){const G=he(a);delete G.value,this.options=G}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const l=a.params;if(l){const v=this.options.params;Object.keys(l).forEach(R=>{null==v[R]&&(v[R]=l[R])})}}}const Tn="void",Ji=new cr(Tn);class Xi{constructor(a,l,v){this.id=a,this.hostElement=l,this._engine=v,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,nt(l,this._hostClassName)}listen(a,l,v,R){if(!this._triggers.hasOwnProperty(l))throw function Jt(d,a){return new c.vHH(3302,Y)}();if(null==v||0==v.length)throw function yt(d){return new c.vHH(3303,Y)}();if(!function T(d){return"start"==d||"done"==d}(v))throw function Rt(d,a){return new c.vHH(3400,Y)}();const G=Ge(this._elementListeners,a,[]),ne={name:l,phase:v,callback:R};G.push(ne);const oe=Ge(this._engine.statesByElement,a,{});return oe.hasOwnProperty(l)||(nt(a,dn),nt(a,dn+"-"+l),oe[l]=Ji),()=>{this._engine.afterFlush(()=>{const Oe=G.indexOf(ne);Oe>=0&&G.splice(Oe,1),this._triggers[l]||delete oe[l]})}}register(a,l){return!this._triggers[a]&&(this._triggers[a]=l,!0)}_getTrigger(a){const l=this._triggers[a];if(!l)throw function Wt(d){return new c.vHH(3401,Y)}();return l}trigger(a,l,v,R=!0){const G=this._getTrigger(l),ne=new ur(this.id,l,a);let oe=this._engine.statesByElement.get(a);oe||(nt(a,dn),nt(a,dn+"-"+l),this._engine.statesByElement.set(a,oe={}));let Oe=oe[l];const Ke=new cr(v,this.id);if(!(v&&v.hasOwnProperty("value"))&&Oe&&Ke.absorbOptions(Oe.options),oe[l]=Ke,Oe||(Oe=Ji),Ke.value!==Tn&&Oe.value===Ke.value){if(!function zt(d,a){const l=Object.keys(d),v=Object.keys(a);if(l.length!=v.length)return!1;for(let R=0;R{Dt(a,Mn),Kt(a,$n)})}return}const Xt=Ge(this._engine.playersByElement,a,[]);Xt.forEach(rn=>{rn.namespaceId==this.id&&rn.triggerName==l&&rn.queued&&rn.destroy()});let ln=G.matchTransition(Oe.value,Ke.value,a,Ke.params),Vt=!1;if(!ln){if(!R)return;ln=G.fallbackTransition,Vt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:l,transition:ln,fromState:Oe,toState:Ke,player:ne,isFallbackTransition:Vt}),Vt||(nt(a,Mi),ne.onStart(()=>{ht(a,Mi)})),ne.onDone(()=>{let rn=this.players.indexOf(ne);rn>=0&&this.players.splice(rn,1);const Mn=this._engine.playersByElement.get(a);if(Mn){let $n=Mn.indexOf(ne);$n>=0&&Mn.splice($n,1)}}),this.players.push(ne),Xt.push(ne),ne}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((l,v)=>{delete l[a]}),this._elementListeners.forEach((l,v)=>{this._elementListeners.set(v,l.filter(R=>R.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const l=this._engine.playersByElement.get(a);l&&(l.forEach(v=>v.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,l){const v=this._engine.driver.query(a,dt,!0);v.forEach(R=>{if(R[ti])return;const G=this._engine.fetchNamespacesByElement(R);G.size?G.forEach(ne=>ne.triggerLeaveAnimation(R,l,!1,!0)):this.clearElementCache(R)}),this._engine.afterFlushAnimationsDone(()=>v.forEach(R=>this.clearElementCache(R)))}triggerLeaveAnimation(a,l,v,R){const G=this._engine.statesByElement.get(a),ne=new Map;if(G){const oe=[];if(Object.keys(G).forEach(Oe=>{if(ne.set(Oe,G[Oe].value),this._triggers[Oe]){const Ke=this.trigger(a,Oe,Tn,R);Ke&&oe.push(Ke)}}),oe.length)return this._engine.markElementAsRemoved(this.id,a,!0,l,ne),v&&Xe(oe).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const l=this._elementListeners.get(a),v=this._engine.statesByElement.get(a);if(l&&v){const R=new Set;l.forEach(G=>{const ne=G.name;if(R.has(ne))return;R.add(ne);const Oe=this._triggers[ne].fallbackTransition,Ke=v[ne]||Ji,gt=new cr(Tn),It=new ur(this.id,ne,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:ne,transition:Oe,fromState:Ke,toState:gt,player:It,isFallbackTransition:!0})})}}removeNode(a,l){const v=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,l),this.triggerLeaveAnimation(a,l,!0))return;let R=!1;if(v.totalAnimations){const G=v.players.length?v.playersByQueriedElement.get(a):[];if(G&&G.length)R=!0;else{let ne=a;for(;ne=ne.parentNode;)if(v.statesByElement.get(ne)){R=!0;break}}}if(this.prepareLeaveAnimationListeners(a),R)v.markElementAsRemoved(this.id,a,!1,l);else{const G=a[ti];(!G||G===lr)&&(v.afterFlush(()=>this.clearElementCache(a)),v.destroyInnerAnimations(a),v._onRemovalComplete(a,l))}}insertNode(a,l){nt(a,this._hostClassName)}drainQueuedTransitions(a){const l=[];return this._queue.forEach(v=>{const R=v.player;if(R.destroyed)return;const G=v.element,ne=this._elementListeners.get(G);ne&&ne.forEach(oe=>{if(oe.name==v.triggerName){const Oe=He(G,v.triggerName,v.fromState.value,v.toState.value);Oe._data=a,Q(v.player,oe.phase,Oe,oe.callback)}}),R.markedForDestroy?this._engine.afterFlush(()=>{R.destroy()}):l.push(v)}),this._queue=[],l.sort((v,R)=>{const G=v.transition.ast.depCount,ne=R.transition.ast.depCount;return 0==G||0==ne?G-ne:this._engine.driver.containsElement(v.element,R.element)?1:-1})}destroy(a){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let l=!1;return this._elementListeners.has(a)&&(l=!0),l=!!this._queue.find(v=>v.element===a)||l,l}}class ni{constructor(a,l,v){this.bodyNode=a,this.driver=l,this._normalizer=v,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=(R,G)=>{}}_onRemovalComplete(a,l){this.onRemovalComplete(a,l)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(l=>{l.players.forEach(v=>{v.queued&&a.push(v)})}),a}createNamespace(a,l){const v=new Xi(a,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(v,l):(this.newHostElements.set(l,v),this.collectEnterElement(l)),this._namespaceLookup[a]=v}_balanceNamespaceList(a,l){const v=this._namespaceList,R=this.namespacesByHostElement,G=v.length-1;if(G>=0){let ne=!1;if(void 0!==this.driver.getParentElement){let oe=this.driver.getParentElement(l);for(;oe;){const Oe=R.get(oe);if(Oe){const Ke=v.indexOf(Oe);v.splice(Ke+1,0,a),ne=!0;break}oe=this.driver.getParentElement(oe)}}else for(let oe=G;oe>=0;oe--)if(this.driver.containsElement(v[oe].hostElement,l)){v.splice(oe+1,0,a),ne=!0;break}ne||v.unshift(a)}else v.push(a);return R.set(l,a),a}register(a,l){let v=this._namespaceLookup[a];return v||(v=this.createNamespace(a,l)),v}registerTrigger(a,l,v){let R=this._namespaceLookup[a];R&&R.register(l,v)&&this.totalAnimations++}destroy(a,l){if(!a)return;const v=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(v.hostElement),delete this._namespaceLookup[a];const R=this._namespaceList.indexOf(v);R>=0&&this._namespaceList.splice(R,1)}),this.afterFlushAnimationsDone(()=>v.destroy(l))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const l=new Set,v=this.statesByElement.get(a);if(v){const R=Object.keys(v);for(let G=0;G=0&&this.collectedLeaveElements.splice(ne,1)}if(a){const ne=this._fetchNamespace(a);ne&&ne.insertNode(l,v)}R&&this.collectEnterElement(l)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,l){l?this.disabledNodes.has(a)||(this.disabledNodes.add(a),nt(a,zi)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),ht(a,zi))}removeNode(a,l,v,R){if(N(l)){const G=a?this._fetchNamespace(a):null;if(G?G.removeNode(l,R):this.markElementAsRemoved(a,l,!1,R),v){const ne=this.namespacesByHostElement.get(l);ne&&ne.id!==a&&ne.removeNode(l,R)}}else this._onRemovalComplete(l,R)}markElementAsRemoved(a,l,v,R,G){this.collectedLeaveElements.push(l),l[ti]={namespaceId:a,setForRemoval:R,hasAnimation:v,removedBeforeQueried:!1,previousTriggersValues:G}}listen(a,l,v,R,G){return N(l)?this._fetchNamespace(a).listen(l,v,R,G):()=>{}}_buildInstruction(a,l,v,R,G){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,v,R,a.fromState.options,a.toState.options,l,G)}destroyInnerAnimations(a){let l=this.driver.query(a,dt,!0);l.forEach(v=>this.destroyActiveAnimationsForElement(v)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(a,Le,!0),l.forEach(v=>this.finishActiveQueriedAnimationOnElement(v)))}destroyActiveAnimationsForElement(a){const l=this.playersByElement.get(a);l&&l.forEach(v=>{v.queued?v.markedForDestroy=!0:v.destroy()})}finishActiveQueriedAnimationOnElement(a){const l=this.playersByQueriedElement.get(a);l&&l.forEach(v=>v.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Xe(this.players).onDone(()=>a());a()})}processLeaveNode(a){var l;const v=a[ti];if(v&&v.setForRemoval){if(a[ti]=lr,v.namespaceId){this.destroyInnerAnimations(a);const R=this._fetchNamespace(v.namespaceId);R&&R.clearElementCache(a)}this._onRemovalComplete(a,v.setForRemoval)}(null===(l=a.classList)||void 0===l?void 0:l.contains(zi))&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(R=>{this.markElementAsDisabled(R,!1)})}flush(a=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((v,R)=>this._balanceNamespaceList(v,R)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let v=0;vv()),this._flushFns=[],this._whenQuietFns.length){const v=this._whenQuietFns;this._whenQuietFns=[],l.length?Xe(l).onDone(()=>{v.forEach(R=>R())}):v.forEach(R=>R())}}reportError(a){throw function Pt(d){return new c.vHH(3402,Y)}()}_flushAnimations(a,l){const v=new ir,R=[],G=new Map,ne=[],oe=new Map,Oe=new Map,Ke=new Map,gt=new Set;this.disabledNodes.forEach(Tt=>{gt.add(Tt);const Ft=this.driver.query(Tt,".ng-animate-queued",!0);for(let Lt=0;Lt{const Lt=nn+rn++;Vt.set(Ft,Lt),Tt.forEach(fn=>nt(fn,Lt))});const Mn=[],$n=new Set,li=new Set;for(let Tt=0;Tt$n.add(fn)):li.add(Ft))}const Ei=new Map,ii=$e(Xt,Array.from($n));ii.forEach((Tt,Ft)=>{const Lt=Yt+rn++;Ei.set(Ft,Lt),Tt.forEach(fn=>nt(fn,Lt))}),a.push(()=>{ln.forEach((Tt,Ft)=>{const Lt=Vt.get(Ft);Tt.forEach(fn=>ht(fn,Lt))}),ii.forEach((Tt,Ft)=>{const Lt=Ei.get(Ft);Tt.forEach(fn=>ht(fn,Lt))}),Mn.forEach(Tt=>{this.processLeaveNode(Tt)})});const Sr=[],Ui=[];for(let Tt=this._namespaceList.length-1;Tt>=0;Tt--)this._namespaceList[Tt].drainQueuedTransitions(l).forEach(Lt=>{const fn=Lt.player,qn=Lt.element;if(Sr.push(fn),this.collectedEnterElements.length){const Qn=qn[ti];if(Qn&&Qn.setForMove){if(Qn.previousTriggersValues&&Qn.previousTriggersValues.has(Lt.triggerName)){const $i=Qn.previousTriggersValues.get(Lt.triggerName),dr=this.statesByElement.get(Lt.element);dr&&dr[Lt.triggerName]&&(dr[Lt.triggerName].value=$i)}return void fn.destroy()}}const Hi=!It||!this.driver.containsElement(It,qn),Li=Ei.get(qn),Er=Vt.get(qn),wn=this._buildInstruction(Lt,v,Er,Li,Hi);if(wn.errors&&wn.errors.length)return void Ui.push(wn);if(Hi)return fn.onStart(()=>Dt(qn,wn.fromStyles)),fn.onDestroy(()=>Kt(qn,wn.toStyles)),void R.push(fn);if(Lt.isFallbackTransition)return fn.onStart(()=>Dt(qn,wn.fromStyles)),fn.onDestroy(()=>Kt(qn,wn.toStyles)),void R.push(fn);const Or=[];wn.timelines.forEach(Qn=>{Qn.stretchStartingKeyframe=!0,this.disabledNodes.has(Qn.element)||Or.push(Qn)}),wn.timelines=Or,v.append(qn,wn.timelines),ne.push({instruction:wn,player:fn,element:qn}),wn.queriedElements.forEach(Qn=>Ge(oe,Qn,[]).push(fn)),wn.preStyleProps.forEach((Qn,$i)=>{const dr=Object.keys(Qn);if(dr.length){let Vr=Oe.get($i);Vr||Oe.set($i,Vr=new Set),dr.forEach(wo=>Vr.add(wo))}}),wn.postStyleProps.forEach((Qn,$i)=>{const dr=Object.keys(Qn);let Vr=Ke.get($i);Vr||Ke.set($i,Vr=new Set),dr.forEach(wo=>Vr.add(wo))})});if(Ui.length){const Tt=[];Ui.forEach(Ft=>{Tt.push(function Ut(d,a){return new c.vHH(3505,Y)}())}),Sr.forEach(Ft=>Ft.destroy()),this.reportError(Tt)}const Ai=new Map,Cr=new Map;ne.forEach(Tt=>{const Ft=Tt.element;v.has(Ft)&&(Cr.set(Ft,Ft),this._beforeAnimationBuild(Tt.player.namespaceId,Tt.instruction,Ai))}),R.forEach(Tt=>{const Ft=Tt.element;this._getPreviousPlayers(Ft,!1,Tt.namespaceId,Tt.triggerName,null).forEach(fn=>{Ge(Ai,Ft,[]).push(fn),fn.destroy()})});const Un=Mn.filter(Tt=>Bn(Tt,Oe,Ke)),_i=new Map;ae(_i,this.driver,li,Ke,g.l3).forEach(Tt=>{Bn(Tt,Oe,Ke)&&Un.push(Tt)});const eo=new Map;ln.forEach((Tt,Ft)=>{ae(eo,this.driver,new Set(Tt),Oe,g.k1)}),Un.forEach(Tt=>{const Ft=_i.get(Tt),Lt=eo.get(Tt);_i.set(Tt,Object.assign(Object.assign({},Ft),Lt))});const ri=[],Mo=[],ho={};ne.forEach(Tt=>{const{element:Ft,player:Lt,instruction:fn}=Tt;if(v.has(Ft)){if(gt.has(Ft))return Lt.onDestroy(()=>Kt(Ft,fn.toStyles)),Lt.disabled=!0,Lt.overrideTotalTime(fn.totalTime),void R.push(Lt);let qn=ho;if(Cr.size>1){let Li=Ft;const Er=[];for(;Li=Li.parentNode;){const wn=Cr.get(Li);if(wn){qn=wn;break}Er.push(Li)}Er.forEach(wn=>Cr.set(wn,qn))}const Hi=this._buildAnimation(Lt.namespaceId,fn,Ai,G,eo,_i);if(Lt.setRealPlayer(Hi),qn===ho)ri.push(Lt);else{const Li=this.playersByElement.get(qn);Li&&Li.length&&(Lt.parentPlayer=Xe(Li)),R.push(Lt)}}else Dt(Ft,fn.fromStyles),Lt.onDestroy(()=>Kt(Ft,fn.toStyles)),Mo.push(Lt),gt.has(Ft)&&R.push(Lt)}),Mo.forEach(Tt=>{const Ft=G.get(Tt.element);if(Ft&&Ft.length){const Lt=Xe(Ft);Tt.setRealPlayer(Lt)}}),R.forEach(Tt=>{Tt.parentPlayer?Tt.syncPlayerEvents(Tt.parentPlayer):Tt.destroy()});for(let Tt=0;Tt!Hi.destroyed);qn.length?En(this,Ft,qn):this.processLeaveNode(Ft)}return Mn.length=0,ri.forEach(Tt=>{this.players.push(Tt),Tt.onDone(()=>{Tt.destroy();const Ft=this.players.indexOf(Tt);this.players.splice(Ft,1)}),Tt.play()}),ri}elementContainsData(a,l){let v=!1;const R=l[ti];return R&&R.setForRemoval&&(v=!0),this.playersByElement.has(l)&&(v=!0),this.playersByQueriedElement.has(l)&&(v=!0),this.statesByElement.has(l)&&(v=!0),this._fetchNamespace(a).elementContainsData(l)||v}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,l,v,R,G){let ne=[];if(l){const oe=this.playersByQueriedElement.get(a);oe&&(ne=oe)}else{const oe=this.playersByElement.get(a);if(oe){const Oe=!G||G==Tn;oe.forEach(Ke=>{Ke.queued||!Oe&&Ke.triggerName!=R||ne.push(Ke)})}}return(v||R)&&(ne=ne.filter(oe=>!(v&&v!=oe.namespaceId||R&&R!=oe.triggerName))),ne}_beforeAnimationBuild(a,l,v){const G=l.element,ne=l.isRemovalTransition?void 0:a,oe=l.isRemovalTransition?void 0:l.triggerName;for(const Oe of l.timelines){const Ke=Oe.element,gt=Ke!==G,It=Ge(v,Ke,[]);this._getPreviousPlayers(Ke,gt,ne,oe,l.toState).forEach(ln=>{const Vt=ln.getRealPlayer();Vt.beforeDestroy&&Vt.beforeDestroy(),ln.destroy(),It.push(ln)})}Dt(G,l.fromStyles)}_buildAnimation(a,l,v,R,G,ne){const oe=l.triggerName,Oe=l.element,Ke=[],gt=new Set,It=new Set,Xt=l.timelines.map(Vt=>{const rn=Vt.element;gt.add(rn);const Mn=rn[ti];if(Mn&&Mn.removedBeforeQueried)return new g.ZN(Vt.duration,Vt.delay);const $n=rn!==Oe,li=function _n(d){const a=[];return hn(d,a),a}((v.get(rn)||Ii).map(Ai=>Ai.getRealPlayer())).filter(Ai=>!!Ai.element&&Ai.element===rn),Ei=G.get(rn),ii=ne.get(rn),Sr=je(0,this._normalizer,0,Vt.keyframes,Ei,ii),Ui=this._buildPlayer(Vt,Sr,li);if(Vt.subTimeline&&R&&It.add(rn),$n){const Ai=new ur(a,oe,rn);Ai.setRealPlayer(Ui),Ke.push(Ai)}return Ui});Ke.forEach(Vt=>{Ge(this.playersByQueriedElement,Vt.element,[]).push(Vt),Vt.onDone(()=>function Pi(d,a,l){let v;if(d instanceof Map){if(v=d.get(a),v){if(v.length){const R=v.indexOf(l);v.splice(R,1)}0==v.length&&d.delete(a)}}else if(v=d[a],v){if(v.length){const R=v.indexOf(l);v.splice(R,1)}0==v.length&&delete d[a]}return v}(this.playersByQueriedElement,Vt.element,Vt))}),gt.forEach(Vt=>nt(Vt,vt));const ln=Xe(Xt);return ln.onDestroy(()=>{gt.forEach(Vt=>ht(Vt,vt)),Kt(Oe,l.toStyles)}),It.forEach(Vt=>{Ge(R,Vt,[]).push(ln)}),ln}_buildPlayer(a,l,v){return l.length>0?this.driver.animate(a.element,l,a.duration,a.delay,a.easing,v):new g.ZN(a.duration,a.delay)}}class ur{constructor(a,l,v){this.namespaceId=a,this.triggerName=l,this.element=v,this._player=new g.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(l=>{this._queuedCallbacks[l].forEach(v=>Q(a,l,void 0,v))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const l=this._player;l.triggerCallback&&a.onStart(()=>l.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,l){Ge(this._queuedCallbacks,a,[]).push(l)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const l=this._player;l.triggerCallback&&l.triggerCallback(a)}}function N(d){return d&&1===d.nodeType}function H(d,a){const l=d.style.display;return d.style.display=null!=a?a:"none",l}function ae(d,a,l,v,R){const G=[];l.forEach(Oe=>G.push(H(Oe)));const ne=[];v.forEach((Oe,Ke)=>{const gt={};Oe.forEach(It=>{const Xt=gt[It]=a.computeStyle(Ke,It,R);(!Xt||0==Xt.length)&&(Ke[ti]=Br,ne.push(Ke))}),d.set(Ke,gt)});let oe=0;return l.forEach(Oe=>H(Oe,G[oe++])),ne}function $e(d,a){const l=new Map;if(d.forEach(oe=>l.set(oe,[])),0==a.length)return l;const R=new Set(a),G=new Map;function ne(oe){if(!oe)return 1;let Oe=G.get(oe);if(Oe)return Oe;const Ke=oe.parentNode;return Oe=l.has(Ke)?Ke:R.has(Ke)?1:ne(Ke),G.set(oe,Oe),Oe}return a.forEach(oe=>{const Oe=ne(oe);1!==Oe&&l.get(Oe).push(oe)}),l}function nt(d,a){var l;null===(l=d.classList)||void 0===l||l.add(a)}function ht(d,a){var l;null===(l=d.classList)||void 0===l||l.remove(a)}function En(d,a,l){Xe(l).onDone(()=>d.processLeaveNode(a))}function hn(d,a){for(let l=0;lR.add(G)):a.set(d,v),l.delete(d),!0}class vn{constructor(a,l,v){this.bodyNode=a,this._driver=l,this._normalizer=v,this._triggerCache={},this.onRemovalComplete=(R,G)=>{},this._transitionEngine=new ni(a,l,v),this._timelineEngine=new qr(a,l,v),this._transitionEngine.onRemovalComplete=(R,G)=>this.onRemovalComplete(R,G)}registerTrigger(a,l,v,R,G){const ne=a+"-"+R;let oe=this._triggerCache[ne];if(!oe){const Oe=[],gt=Yn(this._driver,G,Oe,[]);if(Oe.length)throw function xe(d,a){return new c.vHH(3404,Y)}();oe=function Lr(d,a,l){return new qi(d,a,l)}(R,gt,this._normalizer),this._triggerCache[ne]=oe}this._transitionEngine.registerTrigger(l,R,oe)}register(a,l){this._transitionEngine.register(a,l)}destroy(a,l){this._transitionEngine.destroy(a,l)}onInsert(a,l,v,R){this._transitionEngine.insertNode(a,l,v,R)}onRemove(a,l,v,R){this._transitionEngine.removeNode(a,l,R||!1,v)}disableAnimations(a,l){this._transitionEngine.markElementAsDisabled(a,l)}process(a,l,v,R){if("@"==v.charAt(0)){const[G,ne]=lt(v);this._timelineEngine.command(G,l,ne,R)}else this._transitionEngine.trigger(a,l,v,R)}listen(a,l,v,R,G){if("@"==v.charAt(0)){const[ne,oe]=lt(v);return this._timelineEngine.listen(ne,l,oe,G)}return this._transitionEngine.listen(a,l,v,R,G)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Vn=(()=>{class d{constructor(l,v,R){this._element=l,this._startStyles=v,this._endStyles=R,this._state=0;let G=d.initialStylesByElement.get(l);G||d.initialStylesByElement.set(l,G={}),this._initialStyles=G}start(){this._state<1&&(this._startStyles&&Kt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Kt(this._element,this._initialStyles),this._endStyles&&(Kt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(d.initialStylesByElement.delete(this._element),this._startStyles&&(Dt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Dt(this._element,this._endStyles),this._endStyles=null),Kt(this._element,this._initialStyles),this._state=3)}}return d.initialStylesByElement=new WeakMap,d})();function wi(d){let a=null;const l=Object.keys(d);for(let v=0;va()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,l,v){return a.animate(l,v)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const l=this._finalKeyframe;Object.keys(l).forEach(v=>{"offset"!=v&&(a[v]=this._finished?l[v]:jn(this.element,v))})}this.currentSnapshot=a}triggerCallback(a){const l="start"==a?this._onStartFns:this._onDoneFns;l.forEach(v=>v()),l.length=0}}class ki{validateStyleProperty(a){return D(a)}matchesElement(a,l){return!1}containsElement(a,l){return L(a,l)}getParentElement(a){return Nt(a)}query(a,l,v){return re(a,l,v)}computeStyle(a,l,v){return window.getComputedStyle(a)[l]}animate(a,l,v,R,G,ne=[]){const Oe={duration:v,delay:R,fill:0==R?"both":"forwards"};G&&(Oe.easing=G);const Ke={},gt=ne.filter(Xt=>Xt instanceof Ri);(function en(d,a){return 0===d||0===a})(v,R)&>.forEach(Xt=>{let ln=Xt.currentSnapshot;Object.keys(ln).forEach(Vt=>Ke[Vt]=ln[Vt])}),l=function kn(d,a,l){const v=Object.keys(l);if(v.length&&a.length){let G=a[0],ne=[];if(v.forEach(oe=>{G.hasOwnProperty(oe)||ne.push(oe),G[oe]=l[oe]}),ne.length)for(var R=1;Rst(Xt,!1)),Ke);const It=function Sn(d,a){let l=null,v=null;return Array.isArray(a)&&a.length?(l=wi(a[0]),a.length>1&&(v=wi(a[a.length-1]))):a&&(l=wi(a)),l||v?new Vn(d,l,v):null}(a,l);return new Ri(a,l,Oe,It)}}var x=C(9808);let M=(()=>{class d extends g._j{constructor(l,v){super(),this._nextAnimationId=0,this._renderer=l.createRenderer(v.body,{id:"0",encapsulation:c.ifc.None,styles:[],data:{animation:[]}})}build(l){const v=this._nextAnimationId.toString();this._nextAnimationId++;const R=Array.isArray(l)?(0,g.vP)(l):l;return We(this._renderer,null,v,"register",[R]),new y(v,this._renderer)}}return d.\u0275fac=function(l){return new(l||d)(c.LFG(c.FYo),c.LFG(x.K0))},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})();class y extends g.LC{constructor(a,l){super(),this._id=a,this._renderer=l}create(a,l){return new U(this._id,a,l||{},this._renderer)}}class U{constructor(a,l,v,R){this.id=a,this.element=l,this._renderer=R,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",v)}_listen(a,l){return this._renderer.listen(this.element,`@@${this.id}:${a}`,l)}_command(a,...l){return We(this._renderer,this.element,this.id,a,l)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,l;return null!==(l=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==l?l:0}}function We(d,a,l,v,R){return d.setProperty(a,`@@${l}:${v}`,R)}const Dn="@.disabled";let gi=(()=>{class d{constructor(l,v,R){this.delegate=l,this.engine=v,this._zone=R,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),v.onRemovalComplete=(G,ne)=>{const oe=null==ne?void 0:ne.parentNode(G);oe&&ne.removeChild(oe,G)}}createRenderer(l,v){const G=this.delegate.createRenderer(l,v);if(!(l&&v&&v.data&&v.data.animation)){let gt=this._rendererCache.get(G);return gt||(gt=new Gi("",G,this.engine),this._rendererCache.set(G,gt)),gt}const ne=v.id,oe=v.id+"-"+this._currentId;this._currentId++,this.engine.register(oe,l);const Oe=gt=>{Array.isArray(gt)?gt.forEach(Oe):this.engine.registerTrigger(ne,oe,l,gt.name,gt)};return v.data.animation.forEach(Oe),new Fi(this,oe,G,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(l,v,R){l>=0&&lv(R)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(G=>{const[ne,oe]=G;ne(oe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([v,R]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return d.\u0275fac=function(l){return new(l||d)(c.LFG(c.FYo),c.LFG(vn),c.LFG(c.R0b))},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})();class Gi{constructor(a,l,v){this.namespaceId=a,this.delegate=l,this.engine=v,this.destroyNode=this.delegate.destroyNode?R=>l.destroyNode(R):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,l){return this.delegate.createElement(a,l)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,l){this.delegate.appendChild(a,l),this.engine.onInsert(this.namespaceId,l,a,!1)}insertBefore(a,l,v,R=!0){this.delegate.insertBefore(a,l,v),this.engine.onInsert(this.namespaceId,l,a,R)}removeChild(a,l,v){this.engine.onRemove(this.namespaceId,l,this.delegate,v)}selectRootElement(a,l){return this.delegate.selectRootElement(a,l)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,l,v,R){this.delegate.setAttribute(a,l,v,R)}removeAttribute(a,l,v){this.delegate.removeAttribute(a,l,v)}addClass(a,l){this.delegate.addClass(a,l)}removeClass(a,l){this.delegate.removeClass(a,l)}setStyle(a,l,v,R){this.delegate.setStyle(a,l,v,R)}removeStyle(a,l,v){this.delegate.removeStyle(a,l,v)}setProperty(a,l,v){"@"==l.charAt(0)&&l==Dn?this.disableAnimations(a,!!v):this.delegate.setProperty(a,l,v)}setValue(a,l){this.delegate.setValue(a,l)}listen(a,l,v){return this.delegate.listen(a,l,v)}disableAnimations(a,l){this.engine.disableAnimations(a,l)}}class Fi extends Gi{constructor(a,l,v,R){super(l,v,R),this.factory=a,this.namespaceId=l}setProperty(a,l,v){"@"==l.charAt(0)?"."==l.charAt(1)&&l==Dn?this.disableAnimations(a,v=void 0===v||!!v):this.engine.process(this.namespaceId,a,l.substr(1),v):this.delegate.setProperty(a,l,v)}listen(a,l,v){if("@"==l.charAt(0)){const R=function ot(d){switch(d){case"body":return document.body;case"document":return document;case"window":return window;default:return d}}(a);let G=l.substr(1),ne="";return"@"!=G.charAt(0)&&([G,ne]=function sn(d){const a=d.indexOf(".");return[d.substring(0,a),d.substr(a+1)]}(G)),this.engine.listen(this.namespaceId,R,G,ne,oe=>{this.factory.scheduleListenerCallback(oe._data||-1,v,oe)})}return this.delegate.listen(a,l,v)}}let Jr=(()=>{class d extends vn{constructor(l,v,R){super(l.body,v,R)}ngOnDestroy(){this.flush()}}return d.\u0275fac=function(l){return new(l||d)(c.LFG(x.K0),c.LFG(ze),c.LFG(mr))},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})();const br=new c.OlP("AnimationModuleType"),Vi=[{provide:g._j,useClass:M},{provide:mr,useFactory:function Zn(){return new gr}},{provide:vn,useClass:Jr},{provide:c.FYo,useFactory:function bo(d,a,l){return new gi(d,a,l)},deps:[o.se,vn,c.R0b]}],Xr=[{provide:ze,useFactory:()=>new ki},{provide:br,useValue:"BrowserAnimations"},...Vi],k=[{provide:ze,useClass:Ue},{provide:br,useValue:"NoopAnimations"},...Vi];let Ee=(()=>{class d{static withConfig(l){return{ngModule:d,providers:l.disableAnimations?k:Xr}}}return d.\u0275fac=function(l){return new(l||d)},d.\u0275mod=c.oAB({type:d}),d.\u0275inj=c.cJS({providers:Xr,imports:[o.b2]}),d})()},2313:(qe,ye,C)=>{C.d(ye,{b2:()=>St,H7:()=>Zt,q6:()=>Ge,se:()=>tt});var c=C(9808),o=C(4893);class g extends c.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Y extends g{static makeCurrent(){(0,c.HT)(new Y)}onAndCancel(_e,te,Ie){return _e.addEventListener(te,Ie,!1),()=>{_e.removeEventListener(te,Ie,!1)}}dispatchEvent(_e,te){_e.dispatchEvent(te)}remove(_e){_e.parentNode&&_e.parentNode.removeChild(_e)}createElement(_e,te){return(te=te||this.getDefaultDocument()).createElement(_e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(_e){return _e.nodeType===Node.ELEMENT_NODE}isShadowRoot(_e){return _e instanceof DocumentFragment}getGlobalEventTarget(_e,te){return"window"===te?window:"document"===te?_e:"body"===te?_e.body:null}getBaseHref(_e){const te=function ie(){return ce=ce||document.querySelector("base"),ce?ce.getAttribute("href"):null}();return null==te?null:function Ce(Ve){De=De||document.createElement("a"),De.setAttribute("href",Ve);const _e=De.pathname;return"/"===_e.charAt(0)?_e:`/${_e}`}(te)}resetBaseElement(){ce=null}getUserAgent(){return window.navigator.userAgent}getCookie(_e){return(0,c.Mx)(document.cookie,_e)}}let De,ce=null;const ue=new o.OlP("TRANSITION_ID"),se=[{provide:o.ip1,useFactory:function ee(Ve,_e,te){return()=>{te.get(o.CZH).donePromise.then(()=>{const Ie=(0,c.q)(),rt=_e.querySelectorAll(`style[ng-transition="${Ve}"]`);for(let kt=0;kt{const kt=_e.findTestabilityInTree(Ie,rt);if(null==kt)throw new Error("Could not find testability for element.");return kt},o.dqk.getAllAngularTestabilities=()=>_e.getAllTestabilities(),o.dqk.getAllAngularRootElements=()=>_e.getAllRootElements(),o.dqk.frameworkStabilizers||(o.dqk.frameworkStabilizers=[]),o.dqk.frameworkStabilizers.push(Ie=>{const rt=o.dqk.getAllAngularTestabilities();let kt=rt.length,$t=!1;const bn=function(en){$t=$t||en,kt--,0==kt&&Ie($t)};rt.forEach(function(en){en.whenStable(bn)})})}findTestabilityInTree(_e,te,Ie){if(null==te)return null;const rt=_e.getTestability(te);return null!=rt?rt:Ie?(0,c.q)().isShadowRoot(te)?this.findTestabilityInTree(_e,te.host,!0):this.findTestabilityInTree(_e,te.parentElement,!0):null}}let J=(()=>{class Ve{build(){return new XMLHttpRequest}}return Ve.\u0275fac=function(te){return new(te||Ve)},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const le=new o.OlP("EventManagerPlugins");let ke=(()=>{class Ve{constructor(te,Ie){this._zone=Ie,this._eventNameToPlugin=new Map,te.forEach(rt=>rt.manager=this),this._plugins=te.slice().reverse()}addEventListener(te,Ie,rt){return this._findPluginFor(Ie).addEventListener(te,Ie,rt)}addGlobalEventListener(te,Ie,rt){return this._findPluginFor(Ie).addGlobalEventListener(te,Ie,rt)}getZone(){return this._zone}_findPluginFor(te){const Ie=this._eventNameToPlugin.get(te);if(Ie)return Ie;const rt=this._plugins;for(let kt=0;kt{class Ve{constructor(){this._stylesSet=new Set}addStyles(te){const Ie=new Set;te.forEach(rt=>{this._stylesSet.has(rt)||(this._stylesSet.add(rt),Ie.add(rt))}),this.onStylesAdded(Ie)}onStylesAdded(te){}getAllStyles(){return Array.from(this._stylesSet)}}return Ve.\u0275fac=function(te){return new(te||Ve)},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})(),et=(()=>{class Ve extends Z{constructor(te){super(),this._doc=te,this._hostNodes=new Map,this._hostNodes.set(te.head,[])}_addStylesToHost(te,Ie,rt){te.forEach(kt=>{const $t=this._doc.createElement("style");$t.textContent=kt,rt.push(Ie.appendChild($t))})}addHost(te){const Ie=[];this._addStylesToHost(this._stylesSet,te,Ie),this._hostNodes.set(te,Ie)}removeHost(te){const Ie=this._hostNodes.get(te);Ie&&Ie.forEach(Ye),this._hostNodes.delete(te)}onStylesAdded(te){this._hostNodes.forEach((Ie,rt)=>{this._addStylesToHost(te,rt,Ie)})}ngOnDestroy(){this._hostNodes.forEach(te=>te.forEach(Ye))}}return Ve.\u0275fac=function(te){return new(te||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();function Ye(Ve){(0,c.q)().remove(Ve)}const Qe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},me=/%COMP%/g,q="%COMP%",pe=`_nghost-${q}`,Te=`_ngcontent-${q}`;function Me(Ve,_e,te){for(let Ie=0;Ie<_e.length;Ie++){let rt=_e[Ie];Array.isArray(rt)?Me(Ve,rt,te):(rt=rt.replace(me,Ve),te.push(rt))}return te}function xe(Ve){return _e=>{if("__ngUnwrap__"===_e)return Ve;!1===Ve(_e)&&(_e.preventDefault(),_e.returnValue=!1)}}let tt=(()=>{class Ve{constructor(te,Ie,rt){this.eventManager=te,this.sharedStylesHost=Ie,this.appId=rt,this.rendererByCompId=new Map,this.defaultRenderer=new Fe(te)}createRenderer(te,Ie){if(!te||!Ie)return this.defaultRenderer;switch(Ie.encapsulation){case o.ifc.Emulated:{let rt=this.rendererByCompId.get(Ie.id);return rt||(rt=new Jt(this.eventManager,this.sharedStylesHost,Ie,this.appId),this.rendererByCompId.set(Ie.id,rt)),rt.applyToHost(te),rt}case 1:case o.ifc.ShadowDom:return new yt(this.eventManager,this.sharedStylesHost,te,Ie);default:if(!this.rendererByCompId.has(Ie.id)){const rt=Me(Ie.id,Ie.styles,[]);this.sharedStylesHost.addStyles(rt),this.rendererByCompId.set(Ie.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Ve.\u0275fac=function(te){return new(te||Ve)(o.LFG(ke),o.LFG(et),o.LFG(o.AFp))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();class Fe{constructor(_e){this.eventManager=_e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(_e,te){return te?document.createElementNS(Qe[te]||te,_e):document.createElement(_e)}createComment(_e){return document.createComment(_e)}createText(_e){return document.createTextNode(_e)}appendChild(_e,te){_e.appendChild(te)}insertBefore(_e,te,Ie){_e&&_e.insertBefore(te,Ie)}removeChild(_e,te){_e&&_e.removeChild(te)}selectRootElement(_e,te){let Ie="string"==typeof _e?document.querySelector(_e):_e;if(!Ie)throw new Error(`The selector "${_e}" did not match any elements`);return te||(Ie.textContent=""),Ie}parentNode(_e){return _e.parentNode}nextSibling(_e){return _e.nextSibling}setAttribute(_e,te,Ie,rt){if(rt){te=rt+":"+te;const kt=Qe[rt];kt?_e.setAttributeNS(kt,te,Ie):_e.setAttribute(te,Ie)}else _e.setAttribute(te,Ie)}removeAttribute(_e,te,Ie){if(Ie){const rt=Qe[Ie];rt?_e.removeAttributeNS(rt,te):_e.removeAttribute(`${Ie}:${te}`)}else _e.removeAttribute(te)}addClass(_e,te){_e.classList.add(te)}removeClass(_e,te){_e.classList.remove(te)}setStyle(_e,te,Ie,rt){rt&(o.JOm.DashCase|o.JOm.Important)?_e.style.setProperty(te,Ie,rt&o.JOm.Important?"important":""):_e.style[te]=Ie}removeStyle(_e,te,Ie){Ie&o.JOm.DashCase?_e.style.removeProperty(te):_e.style[te]=""}setProperty(_e,te,Ie){_e[te]=Ie}setValue(_e,te){_e.nodeValue=te}listen(_e,te,Ie){return"string"==typeof _e?this.eventManager.addGlobalEventListener(_e,te,xe(Ie)):this.eventManager.addEventListener(_e,te,xe(Ie))}}class Jt extends Fe{constructor(_e,te,Ie,rt){super(_e),this.component=Ie;const kt=Me(rt+"-"+Ie.id,Ie.styles,[]);te.addStyles(kt),this.contentAttr=function Ne(Ve){return Te.replace(me,Ve)}(rt+"-"+Ie.id),this.hostAttr=function ve(Ve){return pe.replace(me,Ve)}(rt+"-"+Ie.id)}applyToHost(_e){super.setAttribute(_e,this.hostAttr,"")}createElement(_e,te){const Ie=super.createElement(_e,te);return super.setAttribute(Ie,this.contentAttr,""),Ie}}class yt extends Fe{constructor(_e,te,Ie,rt){super(_e),this.sharedStylesHost=te,this.hostEl=Ie,this.shadowRoot=Ie.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const kt=Me(rt.id,rt.styles,[]);for(let $t=0;$t{class Ve extends Be{constructor(te){super(te)}supports(te){return!0}addEventListener(te,Ie,rt){return te.addEventListener(Ie,rt,!1),()=>this.removeEventListener(te,Ie,rt)}removeEventListener(te,Ie,rt){return te.removeEventListener(Ie,rt)}}return Ve.\u0275fac=function(te){return new(te||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const Wt=["alt","control","meta","shift"],mn={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ut={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},xt={alt:Ve=>Ve.altKey,control:Ve=>Ve.ctrlKey,meta:Ve=>Ve.metaKey,shift:Ve=>Ve.shiftKey};let on=(()=>{class Ve extends Be{constructor(te){super(te)}supports(te){return null!=Ve.parseEventName(te)}addEventListener(te,Ie,rt){const kt=Ve.parseEventName(Ie),$t=Ve.eventCallback(kt.fullKey,rt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.q)().onAndCancel(te,kt.domEventName,$t))}static parseEventName(te){const Ie=te.toLowerCase().split("."),rt=Ie.shift();if(0===Ie.length||"keydown"!==rt&&"keyup"!==rt)return null;const kt=Ve._normalizeKey(Ie.pop());let $t="";if(Wt.forEach(en=>{const kn=Ie.indexOf(en);kn>-1&&(Ie.splice(kn,1),$t+=en+".")}),$t+=kt,0!=Ie.length||0===kt.length)return null;const bn={};return bn.domEventName=rt,bn.fullKey=$t,bn}static getEventFullKey(te){let Ie="",rt=function Xe(Ve){let _e=Ve.key;if(null==_e){if(_e=Ve.keyIdentifier,null==_e)return"Unidentified";_e.startsWith("U+")&&(_e=String.fromCharCode(parseInt(_e.substring(2),16)),3===Ve.location&&Ut.hasOwnProperty(_e)&&(_e=Ut[_e]))}return mn[_e]||_e}(te);return rt=rt.toLowerCase()," "===rt?rt="space":"."===rt&&(rt="dot"),Wt.forEach(kt=>{kt!=rt&&xt[kt](te)&&(Ie+=kt+".")}),Ie+=rt,Ie}static eventCallback(te,Ie,rt){return kt=>{Ve.getEventFullKey(kt)===te&&rt.runGuarded(()=>Ie(kt))}}static _normalizeKey(te){return"esc"===te?"escape":te}}return Ve.\u0275fac=function(te){return new(te||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const Ge=(0,o.eFA)(o._c5,"browser",[{provide:o.Lbi,useValue:c.bD},{provide:o.g9A,useValue:function je(){Y.makeCurrent(),de.init()},multi:!0},{provide:c.K0,useFactory:function K(){return(0,o.RDi)(document),document},deps:[]}]),lt=[{provide:o.zSh,useValue:"root"},{provide:o.qLn,useFactory:function Q(){return new o.qLn},deps:[]},{provide:le,useClass:Rt,multi:!0,deps:[c.K0,o.R0b,o.Lbi]},{provide:le,useClass:on,multi:!0,deps:[c.K0]},{provide:tt,useClass:tt,deps:[ke,et,o.AFp]},{provide:o.FYo,useExisting:tt},{provide:Z,useExisting:et},{provide:et,useClass:et,deps:[c.K0]},{provide:o.dDg,useClass:o.dDg,deps:[o.R0b]},{provide:ke,useClass:ke,deps:[le,o.R0b]},{provide:c.JF,useClass:J,deps:[]}];let St=(()=>{class Ve{constructor(te){if(te)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(te){return{ngModule:Ve,providers:[{provide:o.AFp,useValue:te.appId},{provide:ue,useExisting:o.AFp},se]}}}return Ve.\u0275fac=function(te){return new(te||Ve)(o.LFG(Ve,12))},Ve.\u0275mod=o.oAB({type:Ve}),Ve.\u0275inj=o.cJS({providers:lt,imports:[c.ez,o.hGG]}),Ve})();"undefined"!=typeof window&&window;let Zt=(()=>{class Ve{}return Ve.\u0275fac=function(te){return new(te||Ve)},Ve.\u0275prov=o.Yz7({token:Ve,factory:function(te){let Ie=null;return Ie=te?new(te||Ve):o.LFG(Dt),Ie},providedIn:"root"}),Ve})(),Dt=(()=>{class Ve extends Zt{constructor(te){super(),this._doc=te}sanitize(te,Ie){if(null==Ie)return null;switch(te){case o.q3G.NONE:return Ie;case o.q3G.HTML:return(0,o.qzn)(Ie,"HTML")?(0,o.z3N)(Ie):(0,o.EiD)(this._doc,String(Ie)).toString();case o.q3G.STYLE:return(0,o.qzn)(Ie,"Style")?(0,o.z3N)(Ie):Ie;case o.q3G.SCRIPT:if((0,o.qzn)(Ie,"Script"))return(0,o.z3N)(Ie);throw new Error("unsafe value used in a script context");case o.q3G.URL:return(0,o.yhl)(Ie),(0,o.qzn)(Ie,"URL")?(0,o.z3N)(Ie):(0,o.mCW)(String(Ie));case o.q3G.RESOURCE_URL:if((0,o.qzn)(Ie,"ResourceURL"))return(0,o.z3N)(Ie);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${te} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(te){return(0,o.JVY)(te)}bypassSecurityTrustStyle(te){return(0,o.L6k)(te)}bypassSecurityTrustScript(te){return(0,o.eBb)(te)}bypassSecurityTrustUrl(te){return(0,o.LAX)(te)}bypassSecurityTrustResourceUrl(te){return(0,o.pB0)(te)}}return Ve.\u0275fac=function(te){return new(te||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:function(te){let Ie=null;return Ie=te?new te:function Kt(Ve){return new Dt(Ve.get(c.K0))}(o.LFG(o.zs3)),Ie},providedIn:"root"}),Ve})()},9525:(qe,ye,C)=>{C.d(ye,{gz:()=>Jn,F0:()=>ri,rH:()=>Tt,yS:()=>Ft,Bz:()=>wo,lC:()=>lr});var c=C(4893),o=C(8306),g=C(576);function Y(_,f){const h=(0,g.m)(_)?_:()=>_,w=O=>O.error(h());return new o.y(f?O=>f.schedule(w,0,O):w)}const ie=(0,C(3888).d)(_=>function(){_(this),this.name="EmptyError",this.message="no elements in sequence"});var De=C(727),Ce=C(4482),ue=C(5403);function ee(){return(0,Ce.e)((_,f)=>{let h=null;_._refCount++;const w=(0,ue.x)(f,void 0,void 0,void 0,()=>{if(!_||_._refCount<=0||0<--_._refCount)return void(h=null);const O=_._connection,B=h;h=null,O&&(!B||O===B)&&O.unsubscribe(),f.unsubscribe()});_.subscribe(w),w.closed||(h=_.connect())})}class se extends o.y{constructor(f,h){super(),this.source=f,this.subjectFactory=h,this._subject=null,this._refCount=0,this._connection=null,(0,Ce.A)(f)&&(this.lift=f.lift)}_subscribe(f){return this.getSubject().subscribe(f)}getSubject(){const f=this._subject;return(!f||f.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:f}=this;this._subject=this._connection=null,null==f||f.unsubscribe()}connect(){let f=this._connection;if(!f){f=this._connection=new De.w0;const h=this.getSubject();f.add(this.source.subscribe((0,ue.x)(h,void 0,()=>{this._teardown(),h.complete()},w=>{this._teardown(),h.error(w)},()=>this._teardown()))),f.closed&&(this._connection=null,f=De.w0.EMPTY)}return f}refCount(){return ee()(this)}}var de=C(2076),J=C(9646),le=C(1135),ke=C(9841),Be=C(7272),Z=C(9770),et=C(515),Ye=C(7579);function Qe(_,f,h,w,O){return(B,X)=>{let ge=h,Ze=f,Mt=0;B.subscribe((0,ue.x)(X,cn=>{const Bt=Mt++;Ze=ge?_(Ze,cn,Bt):(ge=!0,cn),w&&X.next(Ze)},O&&(()=>{ge&&X.next(Ze),X.complete()})))}}function me(_,f){return(0,Ce.e)(Qe(_,f,arguments.length>=2,!0))}var z=C(8421);function q(_){return(0,Ce.e)((f,h)=>{let B,w=null,O=!1;w=f.subscribe((0,ue.x)(h,void 0,void 0,X=>{B=(0,z.Xf)(_(X,q(_)(f))),w?(w.unsubscribe(),w=null,B.subscribe(h)):O=!0})),O&&(w.unsubscribe(),w=null,B.subscribe(h))})}var pe=C(9300);function Te(_){return _<=0?()=>et.E:(0,Ce.e)((f,h)=>{let w=[];f.subscribe((0,ue.x)(h,O=>{w.push(O),_{for(const O of w)h.next(O);h.complete()},void 0,()=>{w=null}))})}function Ne(_=ve){return(0,Ce.e)((f,h)=>{let w=!1;f.subscribe((0,ue.x)(h,O=>{w=!0,h.next(O)},()=>w?h.complete():h.error(_())))})}function ve(){return new ie}function Me(_){return(0,Ce.e)((f,h)=>{let w=!1;f.subscribe((0,ue.x)(h,O=>{w=!0,h.next(O)},()=>{w||h.next(_),h.complete()}))})}var xe=C(4671),tt=C(5698);function Fe(_,f){const h=arguments.length>=2;return w=>w.pipe(_?(0,pe.h)((O,B)=>_(O,B,w)):xe.y,(0,tt.q)(1),h?Me(f):Ne(()=>new ie))}var mt=C(4004),Jt=C(3900),yt=C(8675),Rt=C(4351),Wt=C(5577),Pt=C(8505),mn=C(8189),Ut=C(9808);class xt{constructor(f,h){this.id=f,this.url=h}}class on extends xt{constructor(f,h,w="imperative",O=null){super(f,h),this.navigationTrigger=w,this.restoredState=O}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Xe extends xt{constructor(f,h,w){super(f,h),this.urlAfterRedirects=w}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class je extends xt{constructor(f,h,w){super(f,h),this.reason=w}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Q extends xt{constructor(f,h,w){super(f,h),this.error=w}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class K extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class He extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ge extends xt{constructor(f,h,w,O,B){super(f,h),this.urlAfterRedirects=w,this.state=O,this.shouldActivate=B}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class lt extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class St extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ht{constructor(f){this.route=f}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class bt{constructor(f){this.route=f}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Nt{constructor(f){this.snapshot=f}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{constructor(f){this.snapshot=f}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pe{constructor(f){this.snapshot=f}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class E{constructor(f){this.snapshot=f}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class S{constructor(f,h,w){this.routerEvent=f,this.position=h,this.anchor=w}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const D="primary";class P{constructor(f){this.params=f||{}}has(f){return Object.prototype.hasOwnProperty.call(this.params,f)}get(f){if(this.has(f)){const h=this.params[f];return Array.isArray(h)?h[0]:h}return null}getAll(f){if(this.has(f)){const h=this.params[f];return Array.isArray(h)?h:[h]}return[]}get keys(){return Object.keys(this.params)}}function L(_){return new P(_)}const re="ngNavigationCancelingError";function be(_){const f=Error("NavigationCancelingError: "+_);return f[re]=!0,f}function ze(_,f,h){const w=h.path.split("/");if(w.length>_.length||"full"===h.pathMatch&&(f.hasChildren()||w.length<_.length))return null;const O={};for(let B=0;Bw[B]===O)}return _===f}function nn(_){return Array.prototype.concat.apply([],_)}function Yt(_){return _.length>0?_[_.length-1]:null}function dt(_,f){for(const h in _)_.hasOwnProperty(h)&&f(_[h],h)}function vt(_){return(0,c.CqO)(_)?_:(0,c.QGY)(_)?(0,de.D)(Promise.resolve(_)):(0,J.of)(_)}const we={exact:function he(_,f,h){if(!_e(_.segments,f.segments)||!Zt(_.segments,f.segments,h)||_.numberOfChildren!==f.numberOfChildren)return!1;for(const w in f.children)if(!_.children[w]||!he(_.children[w],f.children[w],h))return!1;return!0},subset:st},V={exact:function $(_,f){return ct(_,f)},subset:function Se(_,f){return Object.keys(f).length<=Object.keys(_).length&&Object.keys(f).every(h=>Ot(_[h],f[h]))},ignored:()=>!0};function j(_,f,h){return we[h.paths](_.root,f.root,h.matrixParams)&&V[h.queryParams](_.queryParams,f.queryParams)&&!("exact"===h.fragment&&_.fragment!==f.fragment)}function st(_,f,h){return At(_,f,f.segments,h)}function At(_,f,h,w){if(_.segments.length>h.length){const O=_.segments.slice(0,h.length);return!(!_e(O,h)||f.hasChildren()||!Zt(O,h,w))}if(_.segments.length===h.length){if(!_e(_.segments,h)||!Zt(_.segments,h,w))return!1;for(const O in f.children)if(!_.children[O]||!st(_.children[O],f.children[O],w))return!1;return!0}{const O=h.slice(0,_.segments.length),B=h.slice(_.segments.length);return!!(_e(_.segments,O)&&Zt(_.segments,O,w)&&_.children[D])&&At(_.children[D],f,B,w)}}function Zt(_,f,h){return f.every((w,O)=>V[h](_[O].parameters,w.parameters))}class Kt{constructor(f,h,w){this.root=f,this.queryParams=h,this.fragment=w}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=L(this.queryParams)),this._queryParamMap}toString(){return kt.serialize(this)}}class Dt{constructor(f,h){this.segments=f,this.children=h,this.parent=null,dt(h,(w,O)=>w.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return $t(this)}}class Rn{constructor(f,h){this.path=f,this.parameters=h}get parameterMap(){return this._parameterMap||(this._parameterMap=L(this.parameters)),this._parameterMap}toString(){return bi(this)}}function _e(_,f){return _.length===f.length&&_.every((h,w)=>h.path===f[w].path)}class Ie{}class rt{parse(f){const h=new Fn(f);return new Kt(h.parseRootSegment(),h.parseQueryParams(),h.parseFragment())}serialize(f){const h=`/${bn(f.root,!0)}`,w=function fi(_){const f=Object.keys(_).map(h=>{const w=_[h];return Array.isArray(w)?w.map(O=>`${kn(h)}=${kn(O)}`).join("&"):`${kn(h)}=${kn(w)}`}).filter(h=>!!h);return f.length?`?${f.join("&")}`:""}(f.queryParams);return`${h}${w}${"string"==typeof f.fragment?`#${function Cn(_){return encodeURI(_)}(f.fragment)}`:""}`}}const kt=new rt;function $t(_){return _.segments.map(f=>bi(f)).join("/")}function bn(_,f){if(!_.hasChildren())return $t(_);if(f){const h=_.children[D]?bn(_.children[D],!1):"",w=[];return dt(_.children,(O,B)=>{B!==D&&w.push(`${B}:${bn(O,!1)}`)}),w.length>0?`${h}(${w.join("//")})`:h}{const h=function te(_,f){let h=[];return dt(_.children,(w,O)=>{O===D&&(h=h.concat(f(w,O)))}),dt(_.children,(w,O)=>{O!==D&&(h=h.concat(f(w,O)))}),h}(_,(w,O)=>O===D?[bn(_.children[D],!1)]:[`${O}:${bn(w,!1)}`]);return 1===Object.keys(_.children).length&&null!=_.children[D]?`${$t(_)}/${h[0]}`:`${$t(_)}/(${h.join("//")})`}}function en(_){return encodeURIComponent(_).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kn(_){return en(_).replace(/%3B/gi,";")}function jn(_){return en(_).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function oi(_){return decodeURIComponent(_)}function Wn(_){return oi(_.replace(/\+/g,"%20"))}function bi(_){return`${jn(_.path)}${function si(_){return Object.keys(_).map(f=>`;${jn(f)}=${jn(_[f])}`).join("")}(_.parameters)}`}const Ln=/^[^\/()?;=#]+/;function ji(_){const f=_.match(Ln);return f?f[0]:""}const zn=/^[^=?&#]+/,Qt=/^[^&#]+/;class Fn{constructor(f){this.url=f,this.remaining=f}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Dt([],{}):new Dt([],this.parseChildren())}parseQueryParams(){const f={};if(this.consumeOptional("?"))do{this.parseQueryParam(f)}while(this.consumeOptional("&"));return f}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const f=[];for(this.peekStartsWith("(")||f.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),f.push(this.parseSegment());let h={};this.peekStartsWith("/(")&&(this.capture("/"),h=this.parseParens(!0));let w={};return this.peekStartsWith("(")&&(w=this.parseParens(!1)),(f.length>0||Object.keys(h).length>0)&&(w[D]=new Dt(f,h)),w}parseSegment(){const f=ji(this.remaining);if(""===f&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(f),new Rn(oi(f),this.parseMatrixParams())}parseMatrixParams(){const f={};for(;this.consumeOptional(";");)this.parseParam(f);return f}parseParam(f){const h=ji(this.remaining);if(!h)return;this.capture(h);let w="";if(this.consumeOptional("=")){const O=ji(this.remaining);O&&(w=O,this.capture(w))}f[oi(h)]=oi(w)}parseQueryParam(f){const h=function ft(_){const f=_.match(zn);return f?f[0]:""}(this.remaining);if(!h)return;this.capture(h);let w="";if(this.consumeOptional("=")){const X=function pn(_){const f=_.match(Qt);return f?f[0]:""}(this.remaining);X&&(w=X,this.capture(w))}const O=Wn(h),B=Wn(w);if(f.hasOwnProperty(O)){let X=f[O];Array.isArray(X)||(X=[X],f[O]=X),X.push(B)}else f[O]=B}parseParens(f){const h={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const w=ji(this.remaining),O=this.remaining[w.length];if("/"!==O&&")"!==O&&";"!==O)throw new Error(`Cannot parse url '${this.url}'`);let B;w.indexOf(":")>-1?(B=w.substr(0,w.indexOf(":")),this.capture(B),this.capture(":")):f&&(B=D);const X=this.parseChildren();h[B]=1===Object.keys(X).length?X[D]:new Dt([],X),this.consumeOptional("//")}return h}peekStartsWith(f){return this.remaining.startsWith(f)}consumeOptional(f){return!!this.peekStartsWith(f)&&(this.remaining=this.remaining.substring(f.length),!0)}capture(f){if(!this.consumeOptional(f))throw new Error(`Expected "${f}".`)}}class ai{constructor(f){this._root=f}get root(){return this._root.value}parent(f){const h=this.pathFromRoot(f);return h.length>1?h[h.length-2]:null}children(f){const h=An(f,this._root);return h?h.children.map(w=>w.value):[]}firstChild(f){const h=An(f,this._root);return h&&h.children.length>0?h.children[0].value:null}siblings(f){const h=ci(f,this._root);return h.length<2?[]:h[h.length-2].children.map(O=>O.value).filter(O=>O!==f)}pathFromRoot(f){return ci(f,this._root).map(h=>h.value)}}function An(_,f){if(_===f.value)return f;for(const h of f.children){const w=An(_,h);if(w)return w}return null}function ci(_,f){if(_===f.value)return[f];for(const h of f.children){const w=ci(_,h);if(w.length)return w.unshift(f),w}return[]}class tn{constructor(f,h){this.value=f,this.children=h}toString(){return`TreeNode(${this.value})`}}function Yn(_){const f={};return _&&_.children.forEach(h=>f[h.value.outlet]=h),f}class pi extends ai{constructor(f,h){super(f),this.snapshot=h,Nn(this,f)}toString(){return this.snapshot.toString()}}function jt(_,f){const h=function ui(_,f){const X=new gn([],{},{},"",{},D,f,null,_.root,-1,{});return new di("",new tn(X,[]))}(_,f),w=new le.X([new Rn("",{})]),O=new le.X({}),B=new le.X({}),X=new le.X({}),ge=new le.X(""),Ze=new Jn(w,O,X,ge,B,D,f,h.root);return Ze.snapshot=h.root,new pi(new tn(Ze,[]),h)}class Jn{constructor(f,h,w,O,B,X,ge,Ze){this.url=f,this.params=h,this.queryParams=w,this.fragment=O,this.data=B,this.outlet=X,this.component=ge,this._futureSnapshot=Ze}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,mt.U)(f=>L(f)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,mt.U)(f=>L(f)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Si(_,f="emptyOnly"){const h=_.pathFromRoot;let w=0;if("always"!==f)for(w=h.length-1;w>=1;){const O=h[w],B=h[w-1];if(O.routeConfig&&""===O.routeConfig.path)w--;else{if(B.component)break;w--}}return function Gn(_){return _.reduce((f,h)=>({params:Object.assign(Object.assign({},f.params),h.params),data:Object.assign(Object.assign({},f.data),h.data),resolve:Object.assign(Object.assign({},f.resolve),h._resolvedData)}),{params:{},data:{},resolve:{}})}(h.slice(w))}class gn{constructor(f,h,w,O,B,X,ge,Ze,Mt,cn,Bt){this.url=f,this.params=h,this.queryParams=w,this.fragment=O,this.data=B,this.outlet=X,this.component=ge,this.routeConfig=Ze,this._urlSegment=Mt,this._lastPathIndex=cn,this._resolve=Bt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=L(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=L(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(w=>w.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class di extends ai{constructor(f,h){super(h),this.url=f,Nn(this,h)}toString(){return Xn(this._root)}}function Nn(_,f){f.value._routerState=_,f.children.forEach(h=>Nn(_,h))}function Xn(_){const f=_.children.length>0?` { ${_.children.map(Xn).join(", ")} } `:"";return`${_.value}${f}`}function un(_){if(_.snapshot){const f=_.snapshot,h=_._futureSnapshot;_.snapshot=h,ct(f.queryParams,h.queryParams)||_.queryParams.next(h.queryParams),f.fragment!==h.fragment&&_.fragment.next(h.fragment),ct(f.params,h.params)||_.params.next(h.params),function _t(_,f){if(_.length!==f.length)return!1;for(let h=0;h<_.length;++h)if(!ct(_[h],f[h]))return!1;return!0}(f.url,h.url)||_.url.next(h.url),ct(f.data,h.data)||_.data.next(h.data)}else _.snapshot=_._futureSnapshot,_.data.next(_._futureSnapshot.data)}function ir(_,f){const h=ct(_.params,f.params)&&function Ve(_,f){return _e(_,f)&&_.every((h,w)=>ct(h.parameters,f[w].parameters))}(_.url,f.url);return h&&!(!_.parent!=!f.parent)&&(!_.parent||ir(_.parent,f.parent))}function Kn(_,f,h){if(h&&_.shouldReuseRoute(f.value,h.value.snapshot)){const w=h.value;w._futureSnapshot=f.value;const O=function Ci(_,f,h){return f.children.map(w=>{for(const O of h.children)if(_.shouldReuseRoute(w.value,O.value.snapshot))return Kn(_,w,O);return Kn(_,w)})}(_,f,h);return new tn(w,O)}{if(_.shouldAttach(f.value)){const B=_.retrieve(f.value);if(null!==B){const X=B.route;return X.value._futureSnapshot=f.value,X.children=f.children.map(ge=>Kn(_,ge)),X}}const w=function Ki(_){return new Jn(new le.X(_.url),new le.X(_.params),new le.X(_.queryParams),new le.X(_.fragment),new le.X(_.data),_.outlet,_.component,_)}(f.value),O=f.children.map(B=>Kn(_,B));return new tn(w,O)}}function On(_){return"object"==typeof _&&null!=_&&!_.outlets&&!_.segmentPath}function ei(_){return"object"==typeof _&&null!=_&&_.outlets}function Oi(_,f,h,w,O){let B={};return w&&dt(w,(X,ge)=>{B[ge]=Array.isArray(X)?X.map(Ze=>`${Ze}`):`${X}`}),new Kt(h.root===_?f:hr(h.root,_,f),B,O)}function hr(_,f,h){const w={};return dt(_.children,(O,B)=>{w[B]=O===f?h:hr(O,f,h)}),new Dt(_.segments,w)}class rr{constructor(f,h,w){if(this.isAbsolute=f,this.numberOfDoubleDots=h,this.commands=w,f&&w.length>0&&On(w[0]))throw new Error("Root segment cannot have matrix parameters");const O=w.find(ei);if(O&&O!==Yt(w))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class pr{constructor(f,h,w){this.segmentGroup=f,this.processChildren=h,this.index=w}}function Fr(_,f,h){if(_||(_=new Dt([],{})),0===_.segments.length&&_.hasChildren())return gr(_,f,h);const w=function or(_,f,h){let w=0,O=f;const B={match:!1,pathIndex:0,commandIndex:0};for(;O<_.segments.length;){if(w>=h.length)return B;const X=_.segments[O],ge=h[w];if(ei(ge))break;const Ze=`${ge}`,Mt=w0&&void 0===Ze)break;if(Ze&&Mt&&"object"==typeof Mt&&void 0===Mt.outlets){if(!ar(Ze,Mt,X))return B;w+=2}else{if(!ar(Ze,{},X))return B;w++}O++}return{match:!0,pathIndex:O,commandIndex:w}}(_,f,h),O=h.slice(w.commandIndex);if(w.match&&w.pathIndex<_.segments.length){const B=new Dt(_.segments.slice(0,w.pathIndex),{});return B.children[D]=new Dt(_.segments.slice(w.pathIndex),_.children),gr(B,0,O)}return w.match&&0===O.length?new Dt(_.segments,{}):w.match&&!_.hasChildren()?xr(_,f,h):w.match?gr(_,0,O):xr(_,f,h)}function gr(_,f,h){if(0===h.length)return new Dt(_.segments,{});{const w=function mr(_){return ei(_[0])?_[0].outlets:{[D]:_}}(h),O={};return dt(w,(B,X)=>{"string"==typeof B&&(B=[B]),null!==B&&(O[X]=Fr(_.children[X],f,B))}),dt(_.children,(B,X)=>{void 0===w[X]&&(O[X]=B)}),new Dt(_.segments,O)}}function xr(_,f,h){const w=_.segments.slice(0,f);let O=0;for(;O{"string"==typeof h&&(h=[h]),null!==h&&(f[w]=xr(new Dt([],{}),0,h))}),f}function _r(_){const f={};return dt(_,(h,w)=>f[w]=`${h}`),f}function ar(_,f,h){return _==h.path&&ct(f,h.parameters)}class vr{constructor(f,h,w,O){this.routeReuseStrategy=f,this.futureState=h,this.currState=w,this.forwardEvent=O}activate(f){const h=this.futureState._root,w=this.currState?this.currState._root:null;this.deactivateChildRoutes(h,w,f),un(this.futureState.root),this.activateChildRoutes(h,w,f)}deactivateChildRoutes(f,h,w){const O=Yn(h);f.children.forEach(B=>{const X=B.value.outlet;this.deactivateRoutes(B,O[X],w),delete O[X]}),dt(O,(B,X)=>{this.deactivateRouteAndItsChildren(B,w)})}deactivateRoutes(f,h,w){const O=f.value,B=h?h.value:null;if(O===B)if(O.component){const X=w.getContext(O.outlet);X&&this.deactivateChildRoutes(f,h,X.children)}else this.deactivateChildRoutes(f,h,w);else B&&this.deactivateRouteAndItsChildren(h,w)}deactivateRouteAndItsChildren(f,h){f.value.component&&this.routeReuseStrategy.shouldDetach(f.value.snapshot)?this.detachAndStoreRouteSubtree(f,h):this.deactivateRouteAndOutlet(f,h)}detachAndStoreRouteSubtree(f,h){const w=h.getContext(f.value.outlet),O=w&&f.value.component?w.children:h,B=Yn(f);for(const X of Object.keys(B))this.deactivateRouteAndItsChildren(B[X],O);if(w&&w.outlet){const X=w.outlet.detach(),ge=w.children.onOutletDeactivated();this.routeReuseStrategy.store(f.value.snapshot,{componentRef:X,route:f,contexts:ge})}}deactivateRouteAndOutlet(f,h){const w=h.getContext(f.value.outlet),O=w&&f.value.component?w.children:h,B=Yn(f);for(const X of Object.keys(B))this.deactivateRouteAndItsChildren(B[X],O);w&&w.outlet&&(w.outlet.deactivate(),w.children.onOutletDeactivated(),w.attachRef=null,w.resolver=null,w.route=null)}activateChildRoutes(f,h,w){const O=Yn(h);f.children.forEach(B=>{this.activateRoutes(B,O[B.value.outlet],w),this.forwardEvent(new E(B.value.snapshot))}),f.children.length&&this.forwardEvent(new at(f.value.snapshot))}activateRoutes(f,h,w){const O=f.value,B=h?h.value:null;if(un(O),O===B)if(O.component){const X=w.getOrCreateContext(O.outlet);this.activateChildRoutes(f,h,X.children)}else this.activateChildRoutes(f,h,w);else if(O.component){const X=w.getOrCreateContext(O.outlet);if(this.routeReuseStrategy.shouldAttach(O.snapshot)){const ge=this.routeReuseStrategy.retrieve(O.snapshot);this.routeReuseStrategy.store(O.snapshot,null),X.children.onOutletReAttached(ge.contexts),X.attachRef=ge.componentRef,X.route=ge.route.value,X.outlet&&X.outlet.attach(ge.componentRef,ge.route.value),un(ge.route.value),this.activateChildRoutes(f,null,X.children)}else{const ge=function Lr(_){for(let f=_.parent;f;f=f.parent){const h=f.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig;if(h&&h.component)return null}return null}(O.snapshot),Ze=ge?ge.module.componentFactoryResolver:null;X.attachRef=null,X.route=O,X.resolver=Ze,X.outlet&&X.outlet.activateWith(O,Ze),this.activateChildRoutes(f,null,X.children)}}else this.activateChildRoutes(f,null,w)}}class qi{constructor(f,h){this.routes=f,this.module=h}}function mi(_){return"function"==typeof _}function Di(_){return _ instanceof Kt}const Bi=Symbol("INITIAL_VALUE");function Qi(){return(0,Jt.w)(_=>(0,ke.a)(_.map(f=>f.pipe((0,tt.q)(1),(0,yt.O)(Bi)))).pipe(me((f,h)=>{let w=!1;return h.reduce((O,B,X)=>O!==Bi?O:(B===Bi&&(w=!0),w||!1!==B&&X!==h.length-1&&!Di(B)?O:B),f)},Bi),(0,pe.h)(f=>f!==Bi),(0,mt.U)(f=>Di(f)?f:!0===f),(0,tt.q)(1)))}class Qr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ii,this.attachRef=null}}class Ii{constructor(){this.contexts=new Map}onChildOutletCreated(f,h){const w=this.getOrCreateContext(f);w.outlet=h,this.contexts.set(f,w)}onChildOutletDestroyed(f){const h=this.getContext(f);h&&(h.outlet=null,h.attachRef=null)}onOutletDeactivated(){const f=this.contexts;return this.contexts=new Map,f}onOutletReAttached(f){this.contexts=f}getOrCreateContext(f){let h=this.getContext(f);return h||(h=new Qr,this.contexts.set(f,h)),h}getContext(f){return this.contexts.get(f)||null}}let lr=(()=>{class _{constructor(h,w,O,B,X){this.parentContexts=h,this.location=w,this.resolver=O,this.changeDetector=X,this.activated=null,this._activatedRoute=null,this.activateEvents=new c.vpe,this.deactivateEvents=new c.vpe,this.attachEvents=new c.vpe,this.detachEvents=new c.vpe,this.name=B||D,h.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const h=this.parentContexts.getContext(this.name);h&&h.route&&(h.attachRef?this.attach(h.attachRef,h.route):this.activateWith(h.route,h.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const h=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(h.instance),h}attach(h,w){this.activated=h,this._activatedRoute=w,this.location.insert(h.hostView),this.attachEvents.emit(h.instance)}deactivate(){if(this.activated){const h=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(h)}}activateWith(h,w){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=h;const X=(w=w||this.resolver).resolveComponentFactory(h._futureSnapshot.routeConfig.component),ge=this.parentContexts.getOrCreateContext(this.name).children,Ze=new Br(h,ge,this.location.injector);this.activated=this.location.createComponent(X,this.location.length,Ze),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return _.\u0275fac=function(h){return new(h||_)(c.Y36(Ii),c.Y36(c.s_b),c.Y36(c._Vd),c.$8M("name"),c.Y36(c.sBO))},_.\u0275dir=c.lG2({type:_,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),_})();class Br{constructor(f,h,w){this.route=f,this.childContexts=h,this.parent=w}get(f,h){return f===Jn?this.route:f===Ii?this.childContexts:this.parent.get(f,h)}}let ti=(()=>{class _{}return _.\u0275fac=function(h){return new(h||_)},_.\u0275cmp=c.Xpm({type:_,selectors:[["ng-component"]],decls:1,vars:0,template:function(h,w){1&h&&c._UZ(0,"router-outlet")},directives:[lr],encapsulation:2}),_})();function cr(_,f=""){for(let h=0;h<_.length;h++){const w=_[h];Tn(w,Ji(f,w))}}function Tn(_,f){_.children&&cr(_.children,f)}function Ji(_,f){return f?_||f.path?_&&!f.path?`${_}/`:!_&&f.path?f.path:`${_}/${f.path}`:"":_}function Xi(_){const f=_.children&&_.children.map(Xi),h=f?Object.assign(Object.assign({},_),{children:f}):Object.assign({},_);return!h.component&&(f||h.loadChildren)&&h.outlet&&h.outlet!==D&&(h.component=ti),h}function ni(_){return _.outlet||D}function ur(_,f){const h=_.filter(w=>ni(w)===f);return h.push(..._.filter(w=>ni(w)!==f)),h}const Pi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function A(_,f,h){var w;if(""===f.path)return"full"===f.pathMatch&&(_.hasChildren()||h.length>0)?Object.assign({},Pi):{matched:!0,consumedSegments:[],remainingSegments:h,parameters:{},positionalParamSegments:{}};const B=(f.matcher||ze)(h,_,f);if(!B)return Object.assign({},Pi);const X={};dt(B.posParams,(Ze,Mt)=>{X[Mt]=Ze.path});const ge=B.consumed.length>0?Object.assign(Object.assign({},X),B.consumed[B.consumed.length-1].parameters):X;return{matched:!0,consumedSegments:B.consumed,remainingSegments:h.slice(B.consumed.length),parameters:ge,positionalParamSegments:null!==(w=B.posParams)&&void 0!==w?w:{}}}function N(_,f,h,w,O="corrected"){if(h.length>0&&function ae(_,f,h){return h.some(w=>nt(_,f,w)&&ni(w)!==D)}(_,h,w)){const X=new Dt(f,function H(_,f,h,w){const O={};O[D]=w,w._sourceSegment=_,w._segmentIndexShift=f.length;for(const B of h)if(""===B.path&&ni(B)!==D){const X=new Dt([],{});X._sourceSegment=_,X._segmentIndexShift=f.length,O[ni(B)]=X}return O}(_,f,w,new Dt(h,_.children)));return X._sourceSegment=_,X._segmentIndexShift=f.length,{segmentGroup:X,slicedSegments:[]}}if(0===h.length&&function $e(_,f,h){return h.some(w=>nt(_,f,w))}(_,h,w)){const X=new Dt(_.segments,function T(_,f,h,w,O,B){const X={};for(const ge of w)if(nt(_,h,ge)&&!O[ni(ge)]){const Ze=new Dt([],{});Ze._sourceSegment=_,Ze._segmentIndexShift="legacy"===B?_.segments.length:f.length,X[ni(ge)]=Ze}return Object.assign(Object.assign({},O),X)}(_,f,h,w,_.children,O));return X._sourceSegment=_,X._segmentIndexShift=f.length,{segmentGroup:X,slicedSegments:h}}const B=new Dt(_.segments,_.children);return B._sourceSegment=_,B._segmentIndexShift=f.length,{segmentGroup:B,slicedSegments:h}}function nt(_,f,h){return(!(_.hasChildren()||f.length>0)||"full"!==h.pathMatch)&&""===h.path}function ht(_,f,h,w){return!!(ni(_)===w||w!==D&&nt(f,h,_))&&("**"===_.path||A(f,_,h).matched)}function En(_,f,h){return 0===f.length&&!_.children[h]}class _n{constructor(f){this.segmentGroup=f||null}}class hn{constructor(f){this.urlTree=f}}function zt(_){return Y(new _n(_))}function Bn(_){return Y(new hn(_))}class wi{constructor(f,h,w,O,B){this.configLoader=h,this.urlSerializer=w,this.urlTree=O,this.config=B,this.allowRedirects=!0,this.ngModule=f.get(c.h0i)}apply(){const f=N(this.urlTree.root,[],[],this.config).segmentGroup,h=new Dt(f.segments,f.children);return this.expandSegmentGroup(this.ngModule,this.config,h,D).pipe((0,mt.U)(B=>this.createUrlTree(Ri(B),this.urlTree.queryParams,this.urlTree.fragment))).pipe(q(B=>{if(B instanceof hn)return this.allowRedirects=!1,this.match(B.urlTree);throw B instanceof _n?this.noMatchError(B):B}))}match(f){return this.expandSegmentGroup(this.ngModule,this.config,f.root,D).pipe((0,mt.U)(O=>this.createUrlTree(Ri(O),f.queryParams,f.fragment))).pipe(q(O=>{throw O instanceof _n?this.noMatchError(O):O}))}noMatchError(f){return new Error(`Cannot match any routes. URL Segment: '${f.segmentGroup}'`)}createUrlTree(f,h,w){const O=f.segments.length>0?new Dt([],{[D]:f}):f;return new Kt(O,h,w)}expandSegmentGroup(f,h,w,O){return 0===w.segments.length&&w.hasChildren()?this.expandChildren(f,h,w).pipe((0,mt.U)(B=>new Dt([],B))):this.expandSegment(f,w,h,w.segments,O,!0)}expandChildren(f,h,w){const O=[];for(const B of Object.keys(w.children))"primary"===B?O.unshift(B):O.push(B);return(0,de.D)(O).pipe((0,Rt.b)(B=>{const X=w.children[B],ge=ur(h,B);return this.expandSegmentGroup(f,ge,X,B).pipe((0,mt.U)(Ze=>({segment:Ze,outlet:B})))}),me((B,X)=>(B[X.outlet]=X.segment,B),{}),function Ae(_,f){const h=arguments.length>=2;return w=>w.pipe(_?(0,pe.h)((O,B)=>_(O,B,w)):xe.y,Te(1),h?Me(f):Ne(()=>new ie))}())}expandSegment(f,h,w,O,B,X){return(0,de.D)(w).pipe((0,Rt.b)(ge=>this.expandSegmentAgainstRoute(f,h,w,ge,O,B,X).pipe(q(Mt=>{if(Mt instanceof _n)return(0,J.of)(null);throw Mt}))),Fe(ge=>!!ge),q((ge,Ze)=>{if(ge instanceof ie||"EmptyError"===ge.name){if(En(h,O,B))return(0,J.of)(new Dt([],{}));throw new _n(h)}throw ge}))}expandSegmentAgainstRoute(f,h,w,O,B,X,ge){return ht(O,h,B,X)?void 0===O.redirectTo?this.matchSegmentAgainstRoute(f,h,O,B,X):ge&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(f,h,w,O,B,X):zt(h):zt(h)}expandSegmentAgainstRouteUsingRedirect(f,h,w,O,B,X){return"**"===O.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(f,w,O,X):this.expandRegularSegmentAgainstRouteUsingRedirect(f,h,w,O,B,X)}expandWildCardWithParamsAgainstRouteUsingRedirect(f,h,w,O){const B=this.applyRedirectCommands([],w.redirectTo,{});return w.redirectTo.startsWith("/")?Bn(B):this.lineralizeSegments(w,B).pipe((0,Wt.z)(X=>{const ge=new Dt(X,{});return this.expandSegment(f,ge,h,X,O,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(f,h,w,O,B,X){const{matched:ge,consumedSegments:Ze,remainingSegments:Mt,positionalParamSegments:cn}=A(h,O,B);if(!ge)return zt(h);const Bt=this.applyRedirectCommands(Ze,O.redirectTo,cn);return O.redirectTo.startsWith("/")?Bn(Bt):this.lineralizeSegments(O,Bt).pipe((0,Wt.z)(xn=>this.expandSegment(f,h,w,xn.concat(Mt),X,!1)))}matchSegmentAgainstRoute(f,h,w,O,B){if("**"===w.path)return w.loadChildren?(w._loadedConfig?(0,J.of)(w._loadedConfig):this.configLoader.load(f.injector,w)).pipe((0,mt.U)(Bt=>(w._loadedConfig=Bt,new Dt(O,{})))):(0,J.of)(new Dt(O,{}));const{matched:X,consumedSegments:ge,remainingSegments:Ze}=A(h,w,O);return X?this.getChildConfig(f,w,O).pipe((0,Wt.z)(cn=>{const Bt=cn.module,xn=cn.routes,{segmentGroup:Pn,slicedSegments:po}=N(h,ge,Ze,xn),Ur=new Dt(Pn.segments,Pn.children);if(0===po.length&&Ur.hasChildren())return this.expandChildren(Bt,xn,Ur).pipe((0,mt.U)(go=>new Dt(ge,go)));if(0===xn.length&&0===po.length)return(0,J.of)(new Dt(ge,{}));const mo=ni(w)===B;return this.expandSegment(Bt,Ur,xn,po,mo?D:B,!0).pipe((0,mt.U)(Dr=>new Dt(ge.concat(Dr.segments),Dr.children)))})):zt(h)}getChildConfig(f,h,w){return h.children?(0,J.of)(new qi(h.children,f)):h.loadChildren?void 0!==h._loadedConfig?(0,J.of)(h._loadedConfig):this.runCanLoadGuards(f.injector,h,w).pipe((0,Wt.z)(O=>O?this.configLoader.load(f.injector,h).pipe((0,mt.U)(B=>(h._loadedConfig=B,B))):function Sn(_){return Y(be(`Cannot load children because the guard of the route "path: '${_.path}'" returned false`))}(h))):(0,J.of)(new qi([],f))}runCanLoadGuards(f,h,w){const O=h.canLoad;if(!O||0===O.length)return(0,J.of)(!0);const B=O.map(X=>{const ge=f.get(X);let Ze;if(function qr(_){return _&&mi(_.canLoad)}(ge))Ze=ge.canLoad(h,w);else{if(!mi(ge))throw new Error("Invalid CanLoad guard");Ze=ge(h,w)}return vt(Ze)});return(0,J.of)(B).pipe(Qi(),(0,Pt.b)(X=>{if(!Di(X))return;const ge=be(`Redirecting to "${this.urlSerializer.serialize(X)}"`);throw ge.url=X,ge}),(0,mt.U)(X=>!0===X))}lineralizeSegments(f,h){let w=[],O=h.root;for(;;){if(w=w.concat(O.segments),0===O.numberOfChildren)return(0,J.of)(w);if(O.numberOfChildren>1||!O.children[D])return Y(new Error(`Only absolute redirects can have named outlets. redirectTo: '${f.redirectTo}'`));O=O.children[D]}}applyRedirectCommands(f,h,w){return this.applyRedirectCreatreUrlTree(h,this.urlSerializer.parse(h),f,w)}applyRedirectCreatreUrlTree(f,h,w,O){const B=this.createSegmentGroup(f,h.root,w,O);return new Kt(B,this.createQueryParams(h.queryParams,this.urlTree.queryParams),h.fragment)}createQueryParams(f,h){const w={};return dt(f,(O,B)=>{if("string"==typeof O&&O.startsWith(":")){const ge=O.substring(1);w[B]=h[ge]}else w[B]=O}),w}createSegmentGroup(f,h,w,O){const B=this.createSegments(f,h.segments,w,O);let X={};return dt(h.children,(ge,Ze)=>{X[Ze]=this.createSegmentGroup(f,ge,w,O)}),new Dt(B,X)}createSegments(f,h,w,O){return h.map(B=>B.path.startsWith(":")?this.findPosParam(f,B,O):this.findOrReturn(B,w))}findPosParam(f,h,w){const O=w[h.path.substring(1)];if(!O)throw new Error(`Cannot redirect to '${f}'. Cannot find '${h.path}'.`);return O}findOrReturn(f,h){let w=0;for(const O of h){if(O.path===f.path)return h.splice(w),O;w++}return f}}function Ri(_){const f={};for(const w of Object.keys(_.children)){const B=Ri(_.children[w]);(B.segments.length>0||B.hasChildren())&&(f[w]=B)}return function er(_){if(1===_.numberOfChildren&&_.children[D]){const f=_.children[D];return new Dt(_.segments.concat(f.segments),f.children)}return _}(new Dt(_.segments,f))}class x{constructor(f){this.path=f,this.route=this.path[this.path.length-1]}}class M{constructor(f,h){this.component=f,this.route=h}}function y(_,f,h){const w=_._root;return Dn(w,f?f._root:null,h,[w.value])}function We(_,f,h){const w=function Et(_){if(!_)return null;for(let f=_.parent;f;f=f.parent){const h=f.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig}return null}(f);return(w?w.module.injector:h).get(_)}function Dn(_,f,h,w,O={canDeactivateChecks:[],canActivateChecks:[]}){const B=Yn(f);return _.children.forEach(X=>{(function gi(_,f,h,w,O={canDeactivateChecks:[],canActivateChecks:[]}){const B=_.value,X=f?f.value:null,ge=h?h.getContext(_.value.outlet):null;if(X&&B.routeConfig===X.routeConfig){const Ze=function Gi(_,f,h){if("function"==typeof h)return h(_,f);switch(h){case"pathParamsChange":return!_e(_.url,f.url);case"pathParamsOrQueryParamsChange":return!_e(_.url,f.url)||!ct(_.queryParams,f.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ir(_,f)||!ct(_.queryParams,f.queryParams);default:return!ir(_,f)}}(X,B,B.routeConfig.runGuardsAndResolvers);Ze?O.canActivateChecks.push(new x(w)):(B.data=X.data,B._resolvedData=X._resolvedData),Dn(_,f,B.component?ge?ge.children:null:h,w,O),Ze&&ge&&ge.outlet&&ge.outlet.isActivated&&O.canDeactivateChecks.push(new M(ge.outlet.component,X))}else X&&Fi(f,ge,O),O.canActivateChecks.push(new x(w)),Dn(_,null,B.component?ge?ge.children:null:h,w,O)})(X,B[X.value.outlet],h,w.concat([X.value]),O),delete B[X.value.outlet]}),dt(B,(X,ge)=>Fi(X,h.getContext(ge),O)),O}function Fi(_,f,h){const w=Yn(_),O=_.value;dt(w,(B,X)=>{Fi(B,O.component?f?f.children.getContext(X):null:f,h)}),h.canDeactivateChecks.push(new M(O.component&&f&&f.outlet&&f.outlet.isActivated?f.outlet.component:null,O))}class k{}function Ee(_){return new o.y(f=>f.error(_))}class d{constructor(f,h,w,O,B,X){this.rootComponentType=f,this.config=h,this.urlTree=w,this.url=O,this.paramsInheritanceStrategy=B,this.relativeLinkResolution=X}recognize(){const f=N(this.urlTree.root,[],[],this.config.filter(X=>void 0===X.redirectTo),this.relativeLinkResolution).segmentGroup,h=this.processSegmentGroup(this.config,f,D);if(null===h)return null;const w=new gn([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},D,this.rootComponentType,null,this.urlTree.root,-1,{}),O=new tn(w,h),B=new di(this.url,O);return this.inheritParamsAndData(B._root),B}inheritParamsAndData(f){const h=f.value,w=Si(h,this.paramsInheritanceStrategy);h.params=Object.freeze(w.params),h.data=Object.freeze(w.data),f.children.forEach(O=>this.inheritParamsAndData(O))}processSegmentGroup(f,h,w){return 0===h.segments.length&&h.hasChildren()?this.processChildren(f,h):this.processSegment(f,h,h.segments,w)}processChildren(f,h){const w=[];for(const B of Object.keys(h.children)){const X=h.children[B],ge=ur(f,B),Ze=this.processSegmentGroup(ge,X,B);if(null===Ze)return null;w.push(...Ze)}const O=R(w);return function a(_){_.sort((f,h)=>f.value.outlet===D?-1:h.value.outlet===D?1:f.value.outlet.localeCompare(h.value.outlet))}(O),O}processSegment(f,h,w,O){for(const B of f){const X=this.processSegmentAgainstRoute(B,h,w,O);if(null!==X)return X}return En(h,w,O)?[]:null}processSegmentAgainstRoute(f,h,w,O){if(f.redirectTo||!ht(f,h,w,O))return null;let B,X=[],ge=[];if("**"===f.path){const Pn=w.length>0?Yt(w).parameters:{};B=new gn(w,Pn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Oe(f),ni(f),f.component,f,ne(h),oe(h)+w.length,Ke(f))}else{const Pn=A(h,f,w);if(!Pn.matched)return null;X=Pn.consumedSegments,ge=Pn.remainingSegments,B=new gn(X,Pn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Oe(f),ni(f),f.component,f,ne(h),oe(h)+X.length,Ke(f))}const Ze=function l(_){return _.children?_.children:_.loadChildren?_._loadedConfig.routes:[]}(f),{segmentGroup:Mt,slicedSegments:cn}=N(h,X,ge,Ze.filter(Pn=>void 0===Pn.redirectTo),this.relativeLinkResolution);if(0===cn.length&&Mt.hasChildren()){const Pn=this.processChildren(Ze,Mt);return null===Pn?null:[new tn(B,Pn)]}if(0===Ze.length&&0===cn.length)return[new tn(B,[])];const Bt=ni(f)===O,xn=this.processSegment(Ze,Mt,cn,Bt?D:O);return null===xn?null:[new tn(B,xn)]}}function v(_){const f=_.value.routeConfig;return f&&""===f.path&&void 0===f.redirectTo}function R(_){const f=[],h=new Set;for(const w of _){if(!v(w)){f.push(w);continue}const O=f.find(B=>w.value.routeConfig===B.value.routeConfig);void 0!==O?(O.children.push(...w.children),h.add(O)):f.push(w)}for(const w of h){const O=R(w.children);f.push(new tn(w.value,O))}return f.filter(w=>!h.has(w))}function ne(_){let f=_;for(;f._sourceSegment;)f=f._sourceSegment;return f}function oe(_){let f=_,h=f._segmentIndexShift?f._segmentIndexShift:0;for(;f._sourceSegment;)f=f._sourceSegment,h+=f._segmentIndexShift?f._segmentIndexShift:0;return h-1}function Oe(_){return _.data||{}}function Ke(_){return _.resolve||{}}function Vt(_){return[...Object.keys(_),...Object.getOwnPropertySymbols(_)]}function Mn(_){return(0,Jt.w)(f=>{const h=_(f);return h?(0,de.D)(h).pipe((0,mt.U)(()=>f)):(0,J.of)(f)})}class Ei extends class li{shouldDetach(f){return!1}store(f,h){}shouldAttach(f){return!1}retrieve(f){return null}shouldReuseRoute(f,h){return f.routeConfig===h.routeConfig}}{}const ii=new c.OlP("ROUTES");class Sr{constructor(f,h,w,O){this.injector=f,this.compiler=h,this.onLoadStartListener=w,this.onLoadEndListener=O}load(f,h){if(h._loader$)return h._loader$;this.onLoadStartListener&&this.onLoadStartListener(h);const O=this.loadModuleFactory(h.loadChildren).pipe((0,mt.U)(B=>{this.onLoadEndListener&&this.onLoadEndListener(h);const X=B.create(f);return new qi(nn(X.injector.get(ii,void 0,c.XFs.Self|c.XFs.Optional)).map(Xi),X)}),q(B=>{throw h._loader$=void 0,B}));return h._loader$=new se(O,()=>new Ye.x).pipe(ee()),h._loader$}loadModuleFactory(f){return vt(f()).pipe((0,Wt.z)(h=>h instanceof c.YKP?(0,J.of)(h):(0,de.D)(this.compiler.compileModuleAsync(h))))}}class Ai{shouldProcessUrl(f){return!0}extract(f){return f}merge(f,h){return f}}function Cr(_){throw _}function Un(_,f,h){return f.parse("/")}function _i(_,f){return(0,J.of)(null)}const Hn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ri=(()=>{class _{constructor(h,w,O,B,X,ge,Ze){this.rootComponentType=h,this.urlSerializer=w,this.rootContexts=O,this.location=B,this.config=Ze,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ye.x,this.errorHandler=Cr,this.malformedUriErrorHandler=Un,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:_i,afterPreactivation:_i},this.urlHandlingStrategy=new Ai,this.routeReuseStrategy=new Ei,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=X.get(c.h0i),this.console=X.get(c.c2e);const Bt=X.get(c.R0b);this.isNgZoneEnabled=Bt instanceof c.R0b&&c.R0b.isInAngularZone(),this.resetConfig(Ze),this.currentUrlTree=function Le(){return new Kt(new Dt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Sr(X,ge,xn=>this.triggerEvent(new Ht(xn)),xn=>this.triggerEvent(new bt(xn))),this.routerState=jt(this.currentUrlTree,this.rootComponentType),this.transitions=new le.X({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()}get browserPageId(){var h;return null===(h=this.location.getState())||void 0===h?void 0:h.\u0275routerPageId}setupNavigations(h){const w=this.events;return h.pipe((0,pe.h)(O=>0!==O.id),(0,mt.U)(O=>Object.assign(Object.assign({},O),{extractedUrl:this.urlHandlingStrategy.extract(O.rawUrl)})),(0,Jt.w)(O=>{let B=!1,X=!1;return(0,J.of)(O).pipe((0,Pt.b)(ge=>{this.currentNavigation={id:ge.id,initialUrl:ge.currentRawUrl,extractedUrl:ge.extractedUrl,trigger:ge.source,extras:ge.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Jt.w)(ge=>{const Ze=this.browserUrlTree.toString(),Mt=!this.navigated||ge.extractedUrl.toString()!==Ze||Ze!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Mt)&&this.urlHandlingStrategy.shouldProcessUrl(ge.rawUrl))return ho(ge.source)&&(this.browserUrlTree=ge.extractedUrl),(0,J.of)(ge).pipe((0,Jt.w)(Bt=>{const xn=this.transitions.getValue();return w.next(new on(Bt.id,this.serializeUrl(Bt.extractedUrl),Bt.source,Bt.restoredState)),xn!==this.transitions.getValue()?et.E:Promise.resolve(Bt)}),function ki(_,f,h,w){return(0,Jt.w)(O=>function Vn(_,f,h,w,O){return new wi(_,f,h,w,O).apply()}(_,f,h,O.extractedUrl,w).pipe((0,mt.U)(B=>Object.assign(Object.assign({},O),{urlAfterRedirects:B}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Pt.b)(Bt=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Bt.urlAfterRedirects})}),function gt(_,f,h,w,O){return(0,Wt.z)(B=>function m(_,f,h,w,O="emptyOnly",B="legacy"){try{const X=new d(_,f,h,w,O,B).recognize();return null===X?Ee(new k):(0,J.of)(X)}catch(X){return Ee(X)}}(_,f,B.urlAfterRedirects,h(B.urlAfterRedirects),w,O).pipe((0,mt.U)(X=>Object.assign(Object.assign({},B),{targetSnapshot:X}))))}(this.rootComponentType,this.config,Bt=>this.serializeUrl(Bt),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Pt.b)(Bt=>{if("eager"===this.urlUpdateStrategy){if(!Bt.extras.skipLocationChange){const Pn=this.urlHandlingStrategy.merge(Bt.urlAfterRedirects,Bt.rawUrl);this.setBrowserUrl(Pn,Bt)}this.browserUrlTree=Bt.urlAfterRedirects}const xn=new K(Bt.id,this.serializeUrl(Bt.extractedUrl),this.serializeUrl(Bt.urlAfterRedirects),Bt.targetSnapshot);w.next(xn)}));if(Mt&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:xn,extractedUrl:Pn,source:po,restoredState:Ur,extras:mo}=ge,Ir=new on(xn,this.serializeUrl(Pn),po,Ur);w.next(Ir);const Dr=jt(Pn,this.rootComponentType).snapshot;return(0,J.of)(Object.assign(Object.assign({},ge),{targetSnapshot:Dr,urlAfterRedirects:Pn,extras:Object.assign(Object.assign({},mo),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ge.rawUrl,ge.resolve(null),et.E}),Mn(ge=>{const{targetSnapshot:Ze,id:Mt,extractedUrl:cn,rawUrl:Bt,extras:{skipLocationChange:xn,replaceUrl:Pn}}=ge;return this.hooks.beforePreactivation(Ze,{navigationId:Mt,appliedUrlTree:cn,rawUrlTree:Bt,skipLocationChange:!!xn,replaceUrl:!!Pn})}),(0,Pt.b)(ge=>{const Ze=new He(ge.id,this.serializeUrl(ge.extractedUrl),this.serializeUrl(ge.urlAfterRedirects),ge.targetSnapshot);this.triggerEvent(Ze)}),(0,mt.U)(ge=>Object.assign(Object.assign({},ge),{guards:y(ge.targetSnapshot,ge.currentSnapshot,this.rootContexts)})),function ot(_,f){return(0,Wt.z)(h=>{const{targetSnapshot:w,currentSnapshot:O,guards:{canActivateChecks:B,canDeactivateChecks:X}}=h;return 0===X.length&&0===B.length?(0,J.of)(Object.assign(Object.assign({},h),{guardsResult:!0})):function sn(_,f,h,w){return(0,de.D)(_).pipe((0,Wt.z)(O=>function Xr(_,f,h,w,O){const B=f&&f.routeConfig?f.routeConfig.canDeactivate:null;if(!B||0===B.length)return(0,J.of)(!0);const X=B.map(ge=>{const Ze=We(ge,f,O);let Mt;if(function zi(_){return _&&mi(_.canDeactivate)}(Ze))Mt=vt(Ze.canDeactivate(_,f,h,w));else{if(!mi(Ze))throw new Error("Invalid CanDeactivate guard");Mt=vt(Ze(_,f,h,w))}return Mt.pipe(Fe())});return(0,J.of)(X).pipe(Qi())}(O.component,O.route,h,f,w)),Fe(O=>!0!==O,!0))}(X,w,O,_).pipe((0,Wt.z)(ge=>ge&&function yr(_){return"boolean"==typeof _}(ge)?function Jr(_,f,h,w){return(0,de.D)(f).pipe((0,Rt.b)(O=>(0,Be.z)(function bo(_,f){return null!==_&&f&&f(new Nt(_)),(0,J.of)(!0)}(O.route.parent,w),function Zn(_,f){return null!==_&&f&&f(new Pe(_)),(0,J.of)(!0)}(O.route,w),function Vi(_,f,h){const w=f[f.length-1],B=f.slice(0,f.length-1).reverse().map(X=>function U(_){const f=_.routeConfig?_.routeConfig.canActivateChild:null;return f&&0!==f.length?{node:_,guards:f}:null}(X)).filter(X=>null!==X).map(X=>(0,Z.P)(()=>{const ge=X.guards.map(Ze=>{const Mt=We(Ze,X.node,h);let cn;if(function Nr(_){return _&&mi(_.canActivateChild)}(Mt))cn=vt(Mt.canActivateChild(w,_));else{if(!mi(Mt))throw new Error("Invalid CanActivateChild guard");cn=vt(Mt(w,_))}return cn.pipe(Fe())});return(0,J.of)(ge).pipe(Qi())}));return(0,J.of)(B).pipe(Qi())}(_,O.path,h),function br(_,f,h){const w=f.routeConfig?f.routeConfig.canActivate:null;if(!w||0===w.length)return(0,J.of)(!0);const O=w.map(B=>(0,Z.P)(()=>{const X=We(B,f,h);let ge;if(function Mi(_){return _&&mi(_.canActivate)}(X))ge=vt(X.canActivate(f,_));else{if(!mi(X))throw new Error("Invalid CanActivate guard");ge=vt(X(f,_))}return ge.pipe(Fe())}));return(0,J.of)(O).pipe(Qi())}(_,O.route,h))),Fe(O=>!0!==O,!0))}(w,B,_,f):(0,J.of)(ge)),(0,mt.U)(ge=>Object.assign(Object.assign({},h),{guardsResult:ge})))})}(this.ngModule.injector,ge=>this.triggerEvent(ge)),(0,Pt.b)(ge=>{if(Di(ge.guardsResult)){const Mt=be(`Redirecting to "${this.serializeUrl(ge.guardsResult)}"`);throw Mt.url=ge.guardsResult,Mt}const Ze=new Ge(ge.id,this.serializeUrl(ge.extractedUrl),this.serializeUrl(ge.urlAfterRedirects),ge.targetSnapshot,!!ge.guardsResult);this.triggerEvent(Ze)}),(0,pe.h)(ge=>!!ge.guardsResult||(this.restoreHistory(ge),this.cancelNavigationTransition(ge,""),!1)),Mn(ge=>{if(ge.guards.canActivateChecks.length)return(0,J.of)(ge).pipe((0,Pt.b)(Ze=>{const Mt=new lt(Ze.id,this.serializeUrl(Ze.extractedUrl),this.serializeUrl(Ze.urlAfterRedirects),Ze.targetSnapshot);this.triggerEvent(Mt)}),(0,Jt.w)(Ze=>{let Mt=!1;return(0,J.of)(Ze).pipe(function It(_,f){return(0,Wt.z)(h=>{const{targetSnapshot:w,guards:{canActivateChecks:O}}=h;if(!O.length)return(0,J.of)(h);let B=0;return(0,de.D)(O).pipe((0,Rt.b)(X=>function Xt(_,f,h,w){return function ln(_,f,h,w){const O=Vt(_);if(0===O.length)return(0,J.of)({});const B={};return(0,de.D)(O).pipe((0,Wt.z)(X=>function rn(_,f,h,w){const O=We(_,f,w);return vt(O.resolve?O.resolve(f,h):O(f,h))}(_[X],f,h,w).pipe((0,Pt.b)(ge=>{B[X]=ge}))),Te(1),(0,Wt.z)(()=>Vt(B).length===O.length?(0,J.of)(B):et.E))}(_._resolve,_,f,w).pipe((0,mt.U)(B=>(_._resolvedData=B,_.data=Object.assign(Object.assign({},_.data),Si(_,h).resolve),null)))}(X.route,w,_,f)),(0,Pt.b)(()=>B++),Te(1),(0,Wt.z)(X=>B===O.length?(0,J.of)(h):et.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Pt.b)({next:()=>Mt=!0,complete:()=>{Mt||(this.restoreHistory(Ze),this.cancelNavigationTransition(Ze,"At least one route resolver didn't emit any value."))}}))}),(0,Pt.b)(Ze=>{const Mt=new St(Ze.id,this.serializeUrl(Ze.extractedUrl),this.serializeUrl(Ze.urlAfterRedirects),Ze.targetSnapshot);this.triggerEvent(Mt)}))}),Mn(ge=>{const{targetSnapshot:Ze,id:Mt,extractedUrl:cn,rawUrl:Bt,extras:{skipLocationChange:xn,replaceUrl:Pn}}=ge;return this.hooks.afterPreactivation(Ze,{navigationId:Mt,appliedUrlTree:cn,rawUrlTree:Bt,skipLocationChange:!!xn,replaceUrl:!!Pn})}),(0,mt.U)(ge=>{const Ze=function Tr(_,f,h){const w=Kn(_,f._root,h?h._root:void 0);return new pi(w,f)}(this.routeReuseStrategy,ge.targetSnapshot,ge.currentRouterState);return Object.assign(Object.assign({},ge),{targetRouterState:Ze})}),(0,Pt.b)(ge=>{this.currentUrlTree=ge.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ge.urlAfterRedirects,ge.rawUrl),this.routerState=ge.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ge.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ge),this.browserUrlTree=ge.urlAfterRedirects)}),((_,f,h)=>(0,mt.U)(w=>(new vr(f,w.targetRouterState,w.currentRouterState,h).activate(_),w)))(this.rootContexts,this.routeReuseStrategy,ge=>this.triggerEvent(ge)),(0,Pt.b)({next(){B=!0},complete(){B=!0}}),function Ct(_){return(0,Ce.e)((f,h)=>{try{f.subscribe(h)}finally{h.add(_)}})}(()=>{var ge;B||X||this.cancelNavigationTransition(O,`Navigation ID ${O.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ge=this.currentNavigation)||void 0===ge?void 0:ge.id)===O.id&&(this.currentNavigation=null)}),q(ge=>{if(X=!0,function Ue(_){return _&&_[re]}(ge)){const Ze=Di(ge.url);Ze||(this.navigated=!0,this.restoreHistory(O,!0));const Mt=new je(O.id,this.serializeUrl(O.extractedUrl),ge.message);w.next(Mt),Ze?setTimeout(()=>{const cn=this.urlHandlingStrategy.merge(ge.url,this.rawUrlTree),Bt={skipLocationChange:O.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ho(O.source)};this.scheduleNavigation(cn,"imperative",null,Bt,{resolve:O.resolve,reject:O.reject,promise:O.promise})},0):O.resolve(!1)}else{this.restoreHistory(O,!0);const Ze=new Q(O.id,this.serializeUrl(O.extractedUrl),ge);w.next(Ze);try{O.resolve(this.errorHandler(ge))}catch(Mt){O.reject(Mt)}}return et.E}))}))}resetRootComponentType(h){this.rootComponentType=h,this.routerState.root.component=this.rootComponentType}setTransition(h){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),h))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(h=>{const w="popstate"===h.type?"popstate":"hashchange";"popstate"===w&&setTimeout(()=>{var O;const B={replaceUrl:!0},X=(null===(O=h.state)||void 0===O?void 0:O.navigationId)?h.state:null;if(X){const Ze=Object.assign({},X);delete Ze.navigationId,delete Ze.\u0275routerPageId,0!==Object.keys(Ze).length&&(B.state=Ze)}const ge=this.parseUrl(h.url);this.scheduleNavigation(ge,w,X,B)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(h){this.events.next(h)}resetConfig(h){cr(h),this.config=h.map(Xi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(h,w={}){const{relativeTo:O,queryParams:B,fragment:X,queryParamsHandling:ge,preserveFragment:Ze}=w,Mt=O||this.routerState.root,cn=Ze?this.currentUrlTree.fragment:X;let Bt=null;switch(ge){case"merge":Bt=Object.assign(Object.assign({},this.currentUrlTree.queryParams),B);break;case"preserve":Bt=this.currentUrlTree.queryParams;break;default:Bt=B||null}return null!==Bt&&(Bt=this.removeEmptyProps(Bt)),function Zi(_,f,h,w,O){if(0===h.length)return Oi(f.root,f.root,f,w,O);const B=function fr(_){if("string"==typeof _[0]&&1===_.length&&"/"===_[0])return new rr(!0,0,_);let f=0,h=!1;const w=_.reduce((O,B,X)=>{if("object"==typeof B&&null!=B){if(B.outlets){const ge={};return dt(B.outlets,(Ze,Mt)=>{ge[Mt]="string"==typeof Ze?Ze.split("/"):Ze}),[...O,{outlets:ge}]}if(B.segmentPath)return[...O,B.segmentPath]}return"string"!=typeof B?[...O,B]:0===X?(B.split("/").forEach((ge,Ze)=>{0==Ze&&"."===ge||(0==Ze&&""===ge?h=!0:".."===ge?f++:""!=ge&&O.push(ge))}),O):[...O,B]},[]);return new rr(h,f,w)}(h);if(B.toRoot())return Oi(f.root,new Dt([],{}),f,w,O);const X=function kr(_,f,h){if(_.isAbsolute)return new pr(f.root,!0,0);if(-1===h.snapshot._lastPathIndex){const B=h.snapshot._urlSegment;return new pr(B,B===f.root,0)}const w=On(_.commands[0])?0:1;return function uo(_,f,h){let w=_,O=f,B=h;for(;B>O;){if(B-=O,w=w.parent,!w)throw new Error("Invalid number of '../'");O=w.segments.length}return new pr(w,!1,O-B)}(h.snapshot._urlSegment,h.snapshot._lastPathIndex+w,_.numberOfDoubleDots)}(B,f,_),ge=X.processChildren?gr(X.segmentGroup,X.index,B.commands):Fr(X.segmentGroup,X.index,B.commands);return Oi(X.segmentGroup,ge,f,w,O)}(Mt,this.currentUrlTree,h,Bt,null!=cn?cn:null)}navigateByUrl(h,w={skipLocationChange:!1}){const O=Di(h)?h:this.parseUrl(h),B=this.urlHandlingStrategy.merge(O,this.rawUrlTree);return this.scheduleNavigation(B,"imperative",null,w)}navigate(h,w={skipLocationChange:!1}){return function Mo(_){for(let f=0;f<_.length;f++){const h=_[f];if(null==h)throw new Error(`The requested path contains ${h} segment at index ${f}`)}}(h),this.navigateByUrl(this.createUrlTree(h,w),w)}serializeUrl(h){return this.urlSerializer.serialize(h)}parseUrl(h){let w;try{w=this.urlSerializer.parse(h)}catch(O){w=this.malformedUriErrorHandler(O,this.urlSerializer,h)}return w}isActive(h,w){let O;if(O=!0===w?Object.assign({},Hn):!1===w?Object.assign({},eo):w,Di(h))return j(this.currentUrlTree,h,O);const B=this.parseUrl(h);return j(this.currentUrlTree,B,O)}removeEmptyProps(h){return Object.keys(h).reduce((w,O)=>{const B=h[O];return null!=B&&(w[O]=B),w},{})}processNavigations(){this.navigations.subscribe(h=>{this.navigated=!0,this.lastSuccessfulId=h.id,this.currentPageId=h.targetPageId,this.events.next(new Xe(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,h.resolve(!0)},h=>{this.console.warn(`Unhandled Navigation Error: ${h}`)})}scheduleNavigation(h,w,O,B,X){var ge,Ze,Mt;if(this.disposed)return Promise.resolve(!1);const cn=this.transitions.value,Bt=ho(w)&&cn&&!ho(cn.source),xn=cn.rawUrl.toString()===h.toString(),Pn=cn.id===(null===(ge=this.currentNavigation)||void 0===ge?void 0:ge.id);if(Bt&&xn&&Pn)return Promise.resolve(!0);let Ur,mo,Ir;X?(Ur=X.resolve,mo=X.reject,Ir=X.promise):Ir=new Promise((Ao,ea)=>{Ur=Ao,mo=ea});const Dr=++this.navigationId;let go;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(O=this.location.getState()),go=O&&O.\u0275routerPageId?O.\u0275routerPageId:B.replaceUrl||B.skipLocationChange?null!==(Ze=this.browserPageId)&&void 0!==Ze?Ze:0:(null!==(Mt=this.browserPageId)&&void 0!==Mt?Mt:0)+1):go=0,this.setTransition({id:Dr,targetPageId:go,source:w,restoredState:O,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:h,extras:B,resolve:Ur,reject:mo,promise:Ir,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ir.catch(Ao=>Promise.reject(Ao))}setBrowserUrl(h,w){const O=this.urlSerializer.serialize(h),B=Object.assign(Object.assign({},w.extras.state),this.generateNgRouterState(w.id,w.targetPageId));this.location.isCurrentPathEqualTo(O)||w.extras.replaceUrl?this.location.replaceState(O,"",B):this.location.go(O,"",B)}restoreHistory(h,w=!1){var O,B;if("computed"===this.canceledNavigationResolution){const X=this.currentPageId-h.targetPageId;"popstate"!==h.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(O=this.currentNavigation)||void 0===O?void 0:O.finalUrl)||0===X?this.currentUrlTree===(null===(B=this.currentNavigation)||void 0===B?void 0:B.finalUrl)&&0===X&&(this.resetState(h),this.browserUrlTree=h.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(X)}else"replace"===this.canceledNavigationResolution&&(w&&this.resetState(h),this.resetUrlToCurrentUrlTree())}resetState(h){this.routerState=h.currentRouterState,this.currentUrlTree=h.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,h.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(h,w){const O=new je(h.id,this.serializeUrl(h.extractedUrl),w);this.triggerEvent(O),h.resolve(!1)}generateNgRouterState(h,w){return"computed"===this.canceledNavigationResolution?{navigationId:h,\u0275routerPageId:w}:{navigationId:h}}}return _.\u0275fac=function(h){c.$Z()},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();function ho(_){return"imperative"!==_}let Tt=(()=>{class _{constructor(h,w,O,B,X){this.router=h,this.route=w,this.tabIndexAttribute=O,this.renderer=B,this.el=X,this.commands=null,this.onChanges=new Ye.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(h){if(null!=this.tabIndexAttribute)return;const w=this.renderer,O=this.el.nativeElement;null!==h?w.setAttribute(O,"tabindex",h):w.removeAttribute(O,"tabindex")}ngOnChanges(h){this.onChanges.next(this)}set routerLink(h){null!=h?(this.commands=Array.isArray(h)?h:[h],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const h={skipLocationChange:Lt(this.skipLocationChange),replaceUrl:Lt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,h),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Lt(this.preserveFragment)})}}return _.\u0275fac=function(h){return new(h||_)(c.Y36(ri),c.Y36(Jn),c.$8M("tabindex"),c.Y36(c.Qsj),c.Y36(c.SBq))},_.\u0275dir=c.lG2({type:_,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(h,w){1&h&&c.NdJ("click",function(){return w.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),_})(),Ft=(()=>{class _{constructor(h,w,O){this.router=h,this.route=w,this.locationStrategy=O,this.commands=null,this.href=null,this.onChanges=new Ye.x,this.subscription=h.events.subscribe(B=>{B instanceof Xe&&this.updateTargetUrlAndHref()})}set routerLink(h){this.commands=null!=h?Array.isArray(h)?h:[h]:null}ngOnChanges(h){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(h,w,O,B,X){if(0!==h||w||O||B||X||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ge={skipLocationChange:Lt(this.skipLocationChange),replaceUrl:Lt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ge),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Lt(this.preserveFragment)})}}return _.\u0275fac=function(h){return new(h||_)(c.Y36(ri),c.Y36(Jn),c.Y36(Ut.S$))},_.\u0275dir=c.lG2({type:_,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(h,w){1&h&&c.NdJ("click",function(B){return w.onClick(B.button,B.ctrlKey,B.shiftKey,B.altKey,B.metaKey)}),2&h&&c.uIk("target",w.target)("href",w.href,c.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),_})();function Lt(_){return""===_||!!_}class Hi{}class Er{preload(f,h){return(0,J.of)(null)}}let wn=(()=>{class _{constructor(h,w,O,B){this.router=h,this.injector=O,this.preloadingStrategy=B,this.loader=new Sr(O,w,Ze=>h.triggerEvent(new Ht(Ze)),Ze=>h.triggerEvent(new bt(Ze)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,pe.h)(h=>h instanceof Xe),(0,Rt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const h=this.injector.get(c.h0i);return this.processRoutes(h,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(h,w){const O=[];for(const B of w)if(B.loadChildren&&!B.canLoad&&B._loadedConfig){const X=B._loadedConfig;O.push(this.processRoutes(X.module,X.routes))}else B.loadChildren&&!B.canLoad?O.push(this.preloadConfig(h,B)):B.children&&O.push(this.processRoutes(h,B.children));return(0,de.D)(O).pipe((0,mn.J)(),(0,mt.U)(B=>{}))}preloadConfig(h,w){return this.preloadingStrategy.preload(w,()=>(w._loadedConfig?(0,J.of)(w._loadedConfig):this.loader.load(h.injector,w)).pipe((0,Wt.z)(B=>(w._loadedConfig=B,this.processRoutes(B.module,B.routes)))))}}return _.\u0275fac=function(h){return new(h||_)(c.LFG(ri),c.LFG(c.Sil),c.LFG(c.zs3),c.LFG(Hi))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})(),Or=(()=>{class _{constructor(h,w,O={}){this.router=h,this.viewportScroller=w,this.options=O,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},O.scrollPositionRestoration=O.scrollPositionRestoration||"disabled",O.anchorScrolling=O.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(h=>{h instanceof on?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=h.navigationTrigger,this.restoredId=h.restoredState?h.restoredState.navigationId:0):h instanceof Xe&&(this.lastId=h.id,this.scheduleScrollEvent(h,this.router.parseUrl(h.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(h=>{h instanceof S&&(h.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(h.position):h.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(h.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(h,w){this.router.triggerEvent(new S(h,"popstate"===this.lastSource?this.store[this.restoredId]:null,w))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return _.\u0275fac=function(h){c.$Z()},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();const Qn=new c.OlP("ROUTER_CONFIGURATION"),$i=new c.OlP("ROUTER_FORROOT_GUARD"),dr=[Ut.Ye,{provide:Ie,useClass:rt},{provide:ri,useFactory:function _s(_,f,h,w,O,B,X={},ge,Ze){const Mt=new ri(null,_,f,h,w,O,nn(B));return ge&&(Mt.urlHandlingStrategy=ge),Ze&&(Mt.routeReuseStrategy=Ze),function ko(_,f){_.errorHandler&&(f.errorHandler=_.errorHandler),_.malformedUriErrorHandler&&(f.malformedUriErrorHandler=_.malformedUriErrorHandler),_.onSameUrlNavigation&&(f.onSameUrlNavigation=_.onSameUrlNavigation),_.paramsInheritanceStrategy&&(f.paramsInheritanceStrategy=_.paramsInheritanceStrategy),_.relativeLinkResolution&&(f.relativeLinkResolution=_.relativeLinkResolution),_.urlUpdateStrategy&&(f.urlUpdateStrategy=_.urlUpdateStrategy),_.canceledNavigationResolution&&(f.canceledNavigationResolution=_.canceledNavigationResolution)}(X,Mt),X.enableTracing&&Mt.events.subscribe(cn=>{var Bt,xn;null===(Bt=console.group)||void 0===Bt||Bt.call(console,`Router Event: ${cn.constructor.name}`),console.log(cn.toString()),console.log(cn),null===(xn=console.groupEnd)||void 0===xn||xn.call(console)}),Mt},deps:[Ie,Ii,Ut.Ye,c.zs3,c.Sil,ii,Qn,[class Ui{},new c.FiY],[class $n{},new c.FiY]]},Ii,{provide:Jn,useFactory:function Xs(_){return _.routerState.root},deps:[ri]},wn,Er,class Li{preload(f,h){return h().pipe(q(()=>(0,J.of)(null)))}},{provide:Qn,useValue:{enableTracing:!1}}];function Vr(){return new c.PXZ("Router",ri)}let wo=(()=>{class _{constructor(h,w){}static forRoot(h,w){return{ngModule:_,providers:[dr,gs(h),{provide:$i,useFactory:Ro,deps:[[ri,new c.FiY,new c.tp0]]},{provide:Qn,useValue:w||{}},{provide:Ut.S$,useFactory:fu,deps:[Ut.lw,[new c.tBr(Ut.mr),new c.FiY],Qn]},{provide:Or,useFactory:hu,deps:[ri,Ut.EM,Qn]},{provide:Hi,useExisting:w&&w.preloadingStrategy?w.preloadingStrategy:Er},{provide:c.PXZ,multi:!0,useFactory:Vr},[Fo,{provide:c.ip1,multi:!0,useFactory:Co,deps:[Fo]},{provide:fo,useFactory:za,deps:[Fo]},{provide:c.tb,multi:!0,useExisting:fo}]]}}static forChild(h){return{ngModule:_,providers:[gs(h)]}}}return _.\u0275fac=function(h){return new(h||_)(c.LFG($i,8),c.LFG(ri,8))},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({}),_})();function hu(_,f,h){return h.scrollOffset&&f.setOffset(h.scrollOffset),new Or(_,f,h)}function fu(_,f,h={}){return h.useHash?new Ut.Do(_,f):new Ut.b0(_,f)}function Ro(_){return"guarded"}function gs(_){return[{provide:c.deG,multi:!0,useValue:_},{provide:ii,multi:!0,useValue:_}]}let Fo=(()=>{class _{constructor(h){this.injector=h,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ye.x}appInitializer(){return this.injector.get(Ut.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let w=null;const O=new Promise(ge=>w=ge),B=this.injector.get(ri),X=this.injector.get(Qn);return"disabled"===X.initialNavigation?(B.setUpLocationChangeListener(),w(!0)):"enabled"===X.initialNavigation||"enabledBlocking"===X.initialNavigation?(B.hooks.afterPreactivation=()=>this.initNavigation?(0,J.of)(null):(this.initNavigation=!0,w(!0),this.resultOfPreactivationDone),B.initialNavigation()):w(!0),O})}bootstrapListener(h){const w=this.injector.get(Qn),O=this.injector.get(wn),B=this.injector.get(Or),X=this.injector.get(ri),ge=this.injector.get(c.z2F);h===ge.components[0]&&(("enabledNonBlocking"===w.initialNavigation||void 0===w.initialNavigation)&&X.initialNavigation(),O.setUpPreloading(),B.init(),X.resetRootComponentType(ge.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return _.\u0275fac=function(h){return new(h||_)(c.LFG(c.zs3))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();function Co(_){return _.appInitializer.bind(_)}function za(_){return _.bootstrapListener.bind(_)}const fo=new c.OlP("Router Initializer")}},qe=>{qe(qe.s=5664)}]); \ No newline at end of file +"use strict";(self.webpackChunkuds=self.webpackChunkuds||[]).push([[179],{6498:(qe,ye,C)=>{C.d(ye,{z:()=>g});var c=C(4893),o=C(2313);let g=(()=>{class Y{constructor(q){this.sanitizer=q}transform(q,De){return q=(q=(q=q.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(q)}}return Y.\u0275fac=function(q){return new(q||Y)(c.Y36(o.H7,16))},Y.\u0275pipe=c.Yjl({name:"safeHtml",type:Y,pure:!0}),Y})()},5928:(qe,ye,C)=>{C.d(ye,{h:()=>Be});var c=C(8966),o=C(8306),g=C(4986),Y=C(5963),q=C(4893),De=C(9808),Ce=C(7423),ue=C(7918),te=C(6498);function se(Z,et){if(1&Z){const Ye=q.EpF();q.TgZ(0,"button",3),q.NdJ("click",function(){return q.CHM(Ye),q.oxw().close()}),q.TgZ(1,"uds-translate"),q._uU(2,"Close"),q.qZA(),q._uU(3),q.qZA()}if(2&Z){const Ye=q.oxw();q.xp6(3),q.Oqu(Ye.extra)}}function de(Z,et){if(1&Z){const Ye=q.EpF();q.TgZ(0,"button",3),q.NdJ("click",function(){return q.CHM(Ye),q.oxw().yes()}),q.TgZ(1,"uds-translate"),q._uU(2,"Yes"),q.qZA()()}}function X(Z,et){if(1&Z){const Ye=q.EpF();q.TgZ(0,"button",3),q.NdJ("click",function(){return q.CHM(Ye),q.oxw().no()}),q.TgZ(1,"uds-translate"),q._uU(2,"No"),q.qZA()()}}var le=(()=>{return(Z=le||(le={}))[Z.alert=0]="alert",Z[Z.yesno=1]="yesno",le;var Z})();let ke=(()=>{class Z{constructor(Ye,Qe){this.dialogRef=Ye,this.data=Qe,this.subscription=null,this.resetCallbacks(),this.yesno=new o.y(me=>{this.yes=()=>{me.next(!0),me.complete()},this.no=()=>{me.next(!1),me.complete()},this.close=()=>{this.doClose(),me.next(!1),me.complete()};const z=this;return{unsubscribe:()=>z.resetCallbacks()}})}resetCallbacks(){this.yes=this.no=()=>this.close(),this.close=()=>this.doClose()}closed(){null!==this.subscription&&this.subscription.unsubscribe()}doClose(){this.dialogRef.close()}setExtra(Ye){this.extra=" ("+Math.floor(Ye/1e3)+" "+django.gettext("seconds")+") "}initAlert(){this.data.autoclose>0?(this.dialogRef.afterClosed().subscribe(Ye=>{this.closed()}),this.setExtra(this.data.autoclose),this.subscription=function ce(Z=0,et=g.z){return Z<0&&(Z=0),(0,Y.H)(Z,Z,et)}(1e3).subscribe(Ye=>{const Qe=this.data.autoclose-1e3*(Ye+1);this.setExtra(Qe),Qe<=0&&this.close()})):this.data.checkClose&&(this.dialogRef.afterClosed().subscribe(Ye=>{this.closed()}),this.subscription=this.data.checkClose.subscribe(Ye=>{window.setTimeout(()=>{this.doClose()})}))}initYesNo(){}ngOnInit(){this.data.type===le.yesno?this.initYesNo():this.initAlert()}}return Z.\u0275fac=function(Ye){return new(Ye||Z)(q.Y36(c.so),q.Y36(c.WI))},Z.\u0275cmp=q.Xpm({type:Z,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,"click"]],template:function(Ye,Qe){1&Ye&&(q._UZ(0,"h4",0),q.ALo(1,"safeHtml"),q._UZ(2,"mat-dialog-content",1),q.ALo(3,"safeHtml"),q.TgZ(4,"mat-dialog-actions"),q.YNc(5,se,4,1,"button",2),q.YNc(6,de,3,0,"button",2),q.YNc(7,X,3,0,"button",2),q.qZA()),2&Ye&&(q.Q6J("innerHtml",q.lcZ(1,5,Qe.data.title),q.oJD),q.xp6(2),q.Q6J("innerHTML",q.lcZ(3,7,Qe.data.body),q.oJD),q.xp6(3),q.Q6J("ngIf",0===Qe.data.type),q.xp6(1),q.Q6J("ngIf",1===Qe.data.type),q.xp6(1),q.Q6J("ngIf",1===Qe.data.type))},directives:[c.uh,c.xY,c.H8,De.O5,Ce.lW,c.ZT,ue.P],pipes:[te.z],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),Z})(),Be=(()=>{class Z{constructor(Ye){this.dialog=Ye}alert(Ye,Qe,me=0,z=null){const Q=window.innerWidth<800?"80%":"40%";return this.dialog.open(ke,{width:Q,data:{title:Ye,body:Qe,autoclose:me,checkClose:z,type:le.alert},disableClose:!0})}yesno(Ye,Qe){const me=window.innerWidth<800?"80%":"40%";return this.dialog.open(ke,{width:me,data:{title:Ye,body:Qe,type:le.yesno},disableClose:!0}).componentInstance.yesno}}return Z.\u0275fac=function(Ye){return new(Ye||Z)(q.LFG(c.uw))},Z.\u0275prov=q.Yz7({token:Z,factory:Z.\u0275fac}),Z})()},2870:(qe,ye,C)=>{C.d(ye,{S:()=>o});var c=C(8306);let o=(()=>{class g{constructor(ce){this.api=ce,this.delay=ce.config.launcher_wait_time}launchURL(ce){let q="init";const De=Ce=>{let ue=django.gettext("Error communicating with your service. Please, retry again.");"string"==typeof Ce?ue=Ce:403===Ce.status&&(ue=django.gettext("Your session has expired. Please, login again")),window.setTimeout(()=>{this.showAlert(django.gettext("Error"),ue,5e3),403===Ce.status&&window.setTimeout(()=>{this.api.logout()},5e3)})};if("udsa://"===ce.substring(0,7)){const Ce=ce.split("//")[1].split("/"),ue=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Remember that you will need the UDS client on your platform to access the service."),0,new c.y(te=>{let se=0;const de=()=>{ue.componentInstance&&this.api.status(Ce[0],Ce[1]).subscribe(le=>{"ready"===le.status?(se?Date.now()-se>5*this.delay&&(ue.componentInstance.data.title=django.gettext("Service ready")+" - "+django.gettext("UDS Client not launching"),ue.componentInstance.data.body=''+django.gettext("It seems that you don't have UDS Client installed. Please, install it from here:")+' '+django.gettext("UDS Client Download")+""):(se=Date.now(),ue.componentInstance.data.title=django.gettext("Service ready"),ue.componentInstance.data.body=django.gettext("Launching UDS Client, almost done.")),window.setTimeout(de,this.delay)):"accessed"===le.status?(ue.componentInstance.data.body=django.gettext("Machine ready, waiting for UDS Client"),te.next(!0),te.complete()):"running"===le.status?window.setTimeout(de,this.delay):(te.next(!0),te.complete(),De())},le=>{te.next(!0),te.complete(),De(le)})},X=()=>{if("init"===q)window.setTimeout(X,this.delay);else{if("error"===q||"stop"===q)return;window.setTimeout(de)}};window.setTimeout(X)}));this.api.enabler(Ce[0],Ce[1]).subscribe(te=>{if(te.error)q="error",this.api.gui.alert(django.gettext("Error launching service"),te.error);else{if(te.url.startsWith("/"))return ue.componentInstance&&ue.componentInstance.close(),q="stop",void this.launchURL(te.url);"https:"===window.location.protocol&&(te.url=te.url.replace("uds://","udss://")),q="enabled",this.doLaunch(te.url)}},te=>{this.api.logout()})}else{const Ce=this.showAlert(django.gettext("Please wait until the service is launched."),django.gettext("Your connection is being prepared. It will open on a new window when ready."),0,new c.y(ue=>{const te=()=>{Ce.componentInstance&&this.api.transportUrl(ce).subscribe(se=>{if(se.url)if(ue.next(!0),ue.complete(),-1!==se.url.indexOf("o_s_w=")){const de=/(.*)&o_s_w=.*/.exec(se.url);window.location.href=de[1]}else{let de="global";if(-1!==se.url.indexOf("o_n_w=")){const X=/(.*)&o_n_w=([a-zA-Z0-9._-]*)/.exec(se.url);X&&(de=X[2],se.url=X[1])}g.transportsWindow[de]&&g.transportsWindow[de].close(),g.transportsWindow[de]=window.open(se.url,"uds_trans_"+de)}else se.running?window.setTimeout(te,this.delay):(ue.next(!0),ue.complete(),De(se.error))},se=>{ue.next(!0),ue.complete(),De(se)})};window.setTimeout(te)}))}}showAlert(ce,q,De,Ce=null){return this.api.gui.alert(django.gettext("Launching service"),'

'+ce+'

'+q+"

",De,Ce)}doLaunch(ce){let q=document.getElementById("hiddenUdsLauncherIFrame");if(null===q){const De=document.createElement("div");De.id="testID",De.innerHTML='',document.body.appendChild(De),q=document.getElementById("hiddenUdsLauncherIFrame")}q.contentWindow.location.href=ce}}return g.transportsWindow={},g})()},4902:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{G:()=>LoginComponent});var _uds_api_service__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7540),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4893),_angular_forms__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2382),_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7322),_translate_directive__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7918),_angular_material_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7531),_angular_common__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9808),_angular_material_select__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4107),_angular_material_core__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(508),_angular_material_button__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(7423),_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6498);function LoginComponent_div_22_mat_option_6_Template(qe,ye){if(1&qe&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"mat-option",20),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()),2&qe){const C=ye.$implicit;_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",C.id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",C.name," ")}}function LoginComponent_div_22_Template(qe,ye){if(1&qe){const C=_angular_core__WEBPACK_IMPORTED_MODULE_1__.EpF();_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"div",9)(1,"mat-form-field",17)(2,"mat-label")(3,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(4,"Authenticator"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(5,"mat-select",18),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("selectionChange",function(o){return _angular_core__WEBPACK_IMPORTED_MODULE_1__.CHM(C),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw().changeAuth(o.value)}),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(6,LoginComponent_div_22_mat_option_6_Template,2,2,"mat-option",19),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()()}if(2&qe){const C=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oxw();_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("value",C.auths[0].id),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngForOf",C.auths)}}let LoginComponent=(()=>{class LoginComponent{constructor(qe){this.api=qe,this.title="UDS Enterprise",this.title=qe.config.site_name,this.auths=qe.config.authenticators.slice(0),this.auths.sort((ye,C)=>ye.priority-C.priority)}ngOnInit(){document.getElementById("loginform").action=this.api.config.urls.login;const ye=document.getElementById("token");ye.name=this.api.config.csrf_field,ye.value=this.api.config.csrf,this.auth=document.getElementById("authenticator"),this.auths.length>0&&(this.auth.value=this.auths[0].id,this.changeAuth(this.auth.value)),this.api.errors.length>0&&this.api.gui.alert(django.gettext("Errors found"),"
"+this.api.errors.join("
")+"
")}changeAuth(auth){this.auth.value=auth;const doCustomAuth=data=>{eval(data)};for(const qe of this.auths)qe.id===auth&&qe.is_custom&&(document.getElementsByClassName("login-form")[0].setAttribute("style","display: none;"),this.api.getAuthCustomHtml(qe.id).subscribe(ye=>doCustomAuth(ye)))}launch(){return document.getElementById("loginform").submit(),!0}}return LoginComponent.\u0275fac=function qe(ye){return new(ye||LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.Y36(_uds_api_service__WEBPACK_IMPORTED_MODULE_0__.n))},LoginComponent.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Xpm({type:LoginComponent,selectors:[["uds-login"]],decls:29,vars:6,consts:[["id","loginform","method","post",3,"ngSubmit"],["name","","id","token","value","","type","hidden"],["name","logouturl","id","id_logouturl","value","","type","hidden"],["name","authenticator","id","authenticator","value","","type","hidden"],[1,"login-container"],[1,"login-brand"],[3,"src"],[1,"login-info"],[1,"login-form"],[1,"login-field"],["appearance","standard"],["matInput","","id","id_user","name","user","value","","required","","autofocus",""],["matInput","","id","id_password","type","password","name","password","data-eye","",1,"form-control"],["class","login-field",4,"ngIf"],[1,"login-button"],["mat-stroked-button","","color","primary","type","submit"],[1,"site-info",3,"innerHTML"],["appaerance","standard"],[3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function qe(ye,C){1&ye&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(0,"form",0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.NdJ("ngSubmit",function(){return C.launch()}),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(1,"input",1)(2,"input",2)(3,"input",3),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(4,"div",4)(5,"div",5),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(6,"img",6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(7,"div",7),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(9,"div",8)(10,"div",9)(11,"mat-form-field",10)(12,"mat-label")(13,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(14,"Username"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(15,"input",11),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(16,"div",9)(17,"mat-form-field",10)(18,"mat-label")(19,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(20,"Password"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(21,"input",12),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__.YNc(22,LoginComponent_div_22_Template,7,2,"div",13),_angular_core__WEBPACK_IMPORTED_MODULE_1__.TgZ(23,"div",14)(24,"button",15)(25,"uds-translate"),_angular_core__WEBPACK_IMPORTED_MODULE_1__._uU(26,"Login"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()()(),_angular_core__WEBPACK_IMPORTED_MODULE_1__._UZ(27,"div",16),_angular_core__WEBPACK_IMPORTED_MODULE_1__.ALo(28,"safeHtml"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.qZA()()),2&ye&&(_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(6),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("src",C.api.staticURL("modern/img/login-img.png"),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LSH),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_1__.hij(" ",C.title," "),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(14),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("ngIf",C.auths.length>1),_angular_core__WEBPACK_IMPORTED_MODULE_1__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_1__.Q6J("innerHTML",_angular_core__WEBPACK_IMPORTED_MODULE_1__.lcZ(28,4,C.api.config.site_information),_angular_core__WEBPACK_IMPORTED_MODULE_1__.oJD))},directives:[_angular_forms__WEBPACK_IMPORTED_MODULE_2__._Y,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.JL,_angular_forms__WEBPACK_IMPORTED_MODULE_2__.F,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.KE,_angular_material_form_field__WEBPACK_IMPORTED_MODULE_3__.hX,_translate_directive__WEBPACK_IMPORTED_MODULE_4__.P,_angular_material_input__WEBPACK_IMPORTED_MODULE_5__.Nt,_angular_common__WEBPACK_IMPORTED_MODULE_6__.O5,_angular_material_select__WEBPACK_IMPORTED_MODULE_7__.gD,_angular_common__WEBPACK_IMPORTED_MODULE_6__.sg,_angular_material_core__WEBPACK_IMPORTED_MODULE_8__.ey,_angular_material_button__WEBPACK_IMPORTED_MODULE_9__.lW],pipes:[_gui_safe_html_pipe__WEBPACK_IMPORTED_MODULE_10__.z],styles:[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:32em;padding:1rem;box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0000001f,0 1px 5px #0003;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width: 744px){.login-form[_ngcontent-%COMP%]{min-width:80%}}"]}),LoginComponent})()},7918:(qe,ye,C)=>{C.d(ye,{P:()=>o});var c=C(4893);let o=(()=>{class g{constructor(ce){this.el=ce}ngOnInit(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())}}return g.\u0275fac=function(ce){return new(ce||g)(c.Y36(c.SBq))},g.\u0275dir=c.lG2({type:g,selectors:[["uds-translate"]]}),g})()},3513:(qe,ye,C)=>{C.d(ye,{n:()=>c});class c{constructor(g){this.user=g.user,this.role=g.role,this.admin=g.admin}get isStaff(){return"staff"===this.role||"admin"===this.role}get isAdmin(){return"admin"===this.role}get isLogged(){return null!=this.user}get isRestricted(){return"restricted"===this.role}}},7540:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{n:()=>UDSApiService});var _types_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3513),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2870),_environments_environment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2340),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4893),_angular_common_http__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(520),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5928),_angular_router__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9525);const DARK_THEME="dark-theme",LIGHT_THEME="light-theme";let UDSApiService=(()=>{class UDSApiService{constructor(qe,ye,C){this.http=qe,this.gui=ye,this.router=C,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_1__.n(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.S(this)}get config(){return udsData.config}get staffInfo(){return udsData.info}get plugins(){return udsData.plugins}get actors(){return udsData.actors}get errors(){return udsData.errors}enabler(qe,ye){const C=this.config.urls.enabler.replace("param1",qe).replace("param2",ye);return this.http.get(C)}status(qe,ye){const C=this.config.urls.status.replace("param1",qe).replace("param2",ye);return this.http.get(C)}action(qe,ye){const C=this.config.urls.action.replace("param1",ye).replace("param2",qe);return this.http.get(C)}transportUrl(qe){return this.http.get(qe)}galleryImageURL(qe){return this.config.urls.galleryImage.replace("param1",qe)}transportIconURL(qe){return this.config.urls.transportIcon.replace("param1",qe)}staticURL(qe){return _environments_environment__WEBPACK_IMPORTED_MODULE_0__.N.production?this.config.urls.static+qe:"/static/"+qe}getServicesInformation(){return this.http.get(this.config.urls.services)}executeCustomJSForServiceLaunch(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)}gotoAdmin(){window.location.href=this.config.urls.admin}logout(){window.location.href=this.config.urls.logout}launchURL(qe){this.plugin.launchURL(qe)}getAuthCustomHtml(qe){return this.http.get(this.config.urls.customAuth+qe,{responseType:"text"})}switchTheme(qe){const ye=document.getElementsByTagName("html")[0];[DARK_THEME,LIGHT_THEME].forEach(C=>{ye.classList.contains(C)&&ye.classList.remove(C)}),ye.classList.add(qe?DARK_THEME:LIGHT_THEME)}}return UDSApiService.\u0275fac=function qe(ye){return new(ye||UDSApiService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_4__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_5__.h),_angular_core__WEBPACK_IMPORTED_MODULE_3__.LFG(_angular_router__WEBPACK_IMPORTED_MODULE_6__.F0))},UDSApiService.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Yz7({token:UDSApiService,factory:UDSApiService.\u0275fac}),UDSApiService})()},2340:(qe,ye,C)=>{C.d(ye,{N:()=>c});const c={production:!0}},5664:(qe,ye,C)=>{var c=C(2313),o=C(4893),g=C(3191),Y=C(7579),ce=C(9841),q=C(7272),De=C(8306),Ce=C(5698),ue=C(5684),te=C(8372),se=C(4004),de=C(8675),X=C(2722),le=C(925);let ke=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({}),k})();const Be=new Set;let Z,et=(()=>{class k{constructor(m){this._platform=m,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Qe}matchMedia(m){return(this._platform.WEBKIT||this._platform.BLINK)&&function Ye(k){if(!Be.has(k))try{Z||(Z=document.createElement("style"),Z.setAttribute("type","text/css"),document.head.appendChild(Z)),Z.sheet&&(Z.sheet.insertRule(`@media ${k} {body{ }}`,0),Be.add(k))}catch(Ee){console.error(Ee)}}(m),this._matchMedia(m)}}return k.\u0275fac=function(m){return new(m||k)(o.LFG(le.t4))},k.\u0275prov=o.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();function Qe(k){return{matches:"all"===k||""===k,media:k,addListener:()=>{},removeListener:()=>{}}}let me=(()=>{class k{constructor(m,d){this._mediaMatcher=m,this._zone=d,this._queries=new Map,this._destroySubject=new Y.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(m){return z((0,g.Eq)(m)).some(a=>this._registerQuery(a).mql.matches)}observe(m){const a=z((0,g.Eq)(m)).map(v=>this._registerQuery(v).observable);let l=(0,ce.a)(a);return l=(0,q.z)(l.pipe((0,Ce.q)(1)),l.pipe((0,ue.T)(1),(0,te.b)(0))),l.pipe((0,se.U)(v=>{const R={matches:!1,breakpoints:{}};return v.forEach(({matches:G,query:ie})=>{R.matches=R.matches||G,R.breakpoints[ie]=G}),R}))}_registerQuery(m){if(this._queries.has(m))return this._queries.get(m);const d=this._mediaMatcher.matchMedia(m),l={observable:new De.y(v=>{const R=G=>this._zone.run(()=>v.next(G));return d.addListener(R),()=>{d.removeListener(R)}}).pipe((0,de.O)(d),(0,se.U)(({matches:v})=>({query:m,matches:v})),(0,X.R)(this._destroySubject)),mql:d};return this._queries.set(m,l),l}}return k.\u0275fac=function(m){return new(m||k)(o.LFG(et),o.LFG(o.R0b))},k.\u0275prov=o.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();function z(k){return k.map(Ee=>Ee.split(",")).reduce((Ee,m)=>Ee.concat(m)).map(Ee=>Ee.trim())}var pe=C(520),Te=C(9525),Ne=C(7540);let ve=(()=>{class k{constructor(m){this.api=m}canActivate(m,d){return!!this.api.user.isLogged||(this.api.router.navigate(["login"]),!1)}}return k.\u0275fac=function(m){return new(m||k)(o.LFG(Ne.n))},k.\u0275prov=o.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();var Me=C(4902),xe=C(7918),Ae=C(9808);function tt(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"div",6),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw().download(l.url)}),o.TgZ(1,"div",7),o._UZ(2,"img",8),o.qZA(),o.TgZ(3,"div",9),o._uU(4),o.qZA(),o.TgZ(5,"div",10),o._uU(6),o.qZA()()}if(2&k){const m=Ee.$implicit,d=o.oxw();o.Tol(d.css(m)),o.xp6(2),o.Q6J("src",d.img(m.name),o.LSH),o.xp6(2),o.lnq(" ",d.legacy(m)," ",m.name," (",m.url.split(".").pop(),") "),o.xp6(2),o.hij(" ",m.description," ")}}let Fe=(()=>{class k{constructor(m){this.api=m}ngOnInit(){}download(m){window.location.href=m}img(m){return this.api.staticURL("modern/img/"+m+".png")}css(m){const d=["plugin"];return m.legacy&&d.push("legacy"),d}legacy(m){return m.legacy?"Legacy":""}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-client-download"]],decls:13,vars:1,consts:[[1,"plugins-container"],[1,"banner"],[1,"banner-text"],[1,"plugins"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"platform"],[1,"description"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1")(4,"uds-translate"),o._uU(5,"UDS Client"),o.qZA()()()(),o.TgZ(6,"div",3),o.YNc(7,tt,7,7,"div",4),o.qZA(),o.TgZ(8,"div",5)(9,"ul")(10,"li")(11,"uds-translate"),o._uU(12,"Download UDS client for your platform"),o.qZA()()()()()),2&m&&(o.xp6(7),o.Q6J("ngForOf",d.api.plugins))},directives:[xe.P,Ae.sg],styles:[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 15%}.plugin.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;flex:1 0 19%;max-width:20%}.plugin.legacy[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:5rem}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem #00000040,0 10px 10px #00000038;background-color:#0000001a}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center;margin-top:.5rem} .dark-theme uds-client-download{color:#fff!important} .dark-theme .plugin.legacy{background-color:#a9a9a9} .dark-theme .plugin:hover{background-color:#ffffff1a}"]}),k})();var Ct=C(6498);function mt(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"div",6),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw().download(l.url)}),o.TgZ(1,"div",7),o._UZ(2,"img",8),o.qZA(),o._UZ(3,"div",9),o.ALo(4,"safeHtml"),o._UZ(5,"div",10),o.ALo(6,"safeHtml"),o.qZA()}if(2&k){const m=Ee.$implicit,d=o.oxw();o.Tol(d.css(m.name)),o.xp6(2),o.Q6J("src",d.img(m.name),o.LSH),o.xp6(1),o.Q6J("innerHTML",o.lcZ(4,5,m.name),o.oJD),o.xp6(2),o.Q6J("innerHTML",o.lcZ(6,7,m.description),o.oJD)}}let Jt=(()=>{class k{constructor(m){this.api=m}ngOnInit(){this.actors=[];const m=[];this.api.actors.forEach(d=>{d.name.includes("legacy")?m.push(d):this.actors.push(d)}),m.forEach(d=>{this.actors.push(d)})}download(m){window.location.href=m}img(m){const d=m.split(".").pop().toLowerCase();let a="Linux";return"exe"===d?a="Windows":"pkg"===d&&(a="MacOS"),this.api.staticURL("modern/img/"+a+".png")}css(m){const d=["actor"];return m.toLowerCase().includes("legacy")&&d.push("legacy"),d}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-downloads"]],decls:16,vars:1,consts:[[1,"actors-container"],[1,"banner"],[1,"banner-text"],[1,"actors"],[3,"class","click",4,"ngFor","ngForOf"],[1,"info"],[3,"click"],[1,"image"],[3,"src"],[1,"name",3,"innerHTML"],[1,"description",3,"innerHTML"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1")(4,"uds-translate"),o._uU(5,"Downloads"),o.qZA()()()(),o.TgZ(6,"div",3),o.YNc(7,mt,7,9,"div",4),o.qZA(),o.TgZ(8,"div",5)(9,"ul")(10,"li")(11,"uds-translate"),o._uU(12,"Always download the UDS actor matching your platform"),o.qZA()(),o.TgZ(13,"li")(14,"uds-translate"),o._uU(15,"Legacy actors are only provided for old operating system support. Try to avoid them."),o.qZA()()()()()),2&m&&(o.xp6(7),o.Q6J("ngForOf",d.actors))},directives:[xe.P,Ae.sg],pipes:[Ct.z],styles:[".actors-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2em;text-align:center}.actors[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:space-around;align-content:center;margin:auto}.actor[_ngcontent-%COMP%]{border:1px solid;margin-top:1rem;padding:1em;border-radius:1rem;box-shadow:0 1rem 2rem #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);flex:1 0 34%;margin-right:1em}.actor.legacy[_ngcontent-%COMP%]{background-color:#d3d3d3;max-width:50%}.actor[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem #00000040,0 10px 10px #00000038;background-color:#0000001a}.image[_ngcontent-%COMP%]{display:block;float:left;padding-right:1rem;height:100%}.image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:4rem}.name[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:1em;font-weight:700;overflow:hidden} .dark-theme uds-downloads{color:#fff!important} .dark-theme .actor.legacy{background-color:#464646}"]}),k})();var yt=C(4968),Rt=C(9300),Wt=C(1884),Pt=C(8505),mn=C(7322),Ut=C(7531);const xt=["input"];let on=(()=>{class k{constructor(){this.updateEvent=new o.vpe}ngAfterViewInit(){(0,yt.R)(this.input.nativeElement,"keyup").pipe((0,Rt.h)(Boolean),(0,te.b)(600),(0,Wt.x)(),(0,Pt.b)(()=>this.update(this.input.nativeElement.value))).subscribe()}update(m){this.updateEvent.emit(m.toLowerCase())}}return k.\u0275fac=function(m){return new(m||k)},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-filter"]],viewQuery:function(m,d){if(1&m&&o.Gf(xt,7),2&m){let a;o.iGM(a=o.CRH())&&(d.input=a.first)}},outputs:{updateEvent:"updateEvent"},decls:9,vars:0,consts:[[1,"filter"],["floatLabel","auto",1,"nav-input-field"],["matInput","","type","text"],["input",""],["matSuffix","",1,"material-icons"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-label")(3,"uds-translate"),o._uU(4,"Filter"),o.qZA()(),o._UZ(5,"input",2,3),o.TgZ(7,"i",4),o._uU(8,"search"),o.qZA()()())},directives:[mn.KE,mn.hX,xe.P,Ut.Nt,mn.R9],styles:[".filter[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;justify-content:flex-end;font-size:.8rem}"]}),k})();var Xe=C(727),je=C(449);let J=0;const K=new o.OlP("CdkAccordion");let He=(()=>{class k{constructor(){this._stateChanges=new Y.x,this._openCloseAllActions=new Y.x,this.id="cdk-accordion-"+J++,this._multi=!1}get multi(){return this._multi}set multi(m){this._multi=(0,g.Ig)(m)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(m){this._stateChanges.next(m)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return k.\u0275fac=function(m){return new(m||k)},k.\u0275dir=o.lG2({type:k,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[o._Bn([{provide:K,useExisting:k}]),o.TTD]}),k})(),Ge=0,lt=(()=>{class k{constructor(m,d,a){this.accordion=m,this._changeDetectorRef=d,this._expansionDispatcher=a,this._openCloseAllSubscription=Xe.w0.EMPTY,this.closed=new o.vpe,this.opened=new o.vpe,this.destroyed=new o.vpe,this.expandedChange=new o.vpe,this.id="cdk-accordion-child-"+Ge++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=a.listen((l,v)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===v&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(m){m=(0,g.Ig)(m),this._expanded!==m&&(this._expanded=m,this.expandedChange.emit(m),m?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(m){this._disabled=(0,g.Ig)(m)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(m=>{this.disabled||(this.expanded=m)})}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(K,12),o.Y36(o.sBO),o.Y36(je.A8))},k.\u0275dir=o.lG2({type:k,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[o._Bn([{provide:K,useValue:void 0}])]}),k})(),St=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({}),k})();var Ht=C(7429),bt=C(508),Nt=C(9950),at=C(1159),Pe=C(6360),E=C(515),S=C(6451),D=C(1777);const P=["body"];function L(k,Ee){}const re=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],be=["mat-expansion-panel-header","*","mat-action-row"];function Ue(k,Ee){if(1&k&&o._UZ(0,"span",2),2&k){const m=o.oxw();o.Q6J("@indicatorRotate",m._getExpandedState())}}const ze=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],_t=["mat-panel-title","mat-panel-description","*"],ct=new o.OlP("MAT_ACCORDION"),Ot="225ms cubic-bezier(0.4,0.0,0.2,1)",nn={indicatorRotate:(0,D.X$)("indicatorRotate",[(0,D.SB)("collapsed, void",(0,D.oB)({transform:"rotate(0deg)"})),(0,D.SB)("expanded",(0,D.oB)({transform:"rotate(180deg)"})),(0,D.eR)("expanded <=> collapsed, void => collapsed",(0,D.jt)(Ot))]),bodyExpansion:(0,D.X$)("bodyExpansion",[(0,D.SB)("collapsed, void",(0,D.oB)({height:"0px",visibility:"hidden"})),(0,D.SB)("expanded",(0,D.oB)({height:"*",visibility:"visible"})),(0,D.eR)("expanded <=> collapsed, void => collapsed",(0,D.jt)(Ot))])};let Yt=(()=>{class k{constructor(m){this._template=m}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.Rgc))},k.\u0275dir=o.lG2({type:k,selectors:[["ng-template","matExpansionPanelContent",""]]}),k})(),dn=0;const dt=new o.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let vt=(()=>{class k extends lt{constructor(m,d,a,l,v,R,G){super(m,d,a),this._viewContainerRef=l,this._animationMode=R,this._hideToggle=!1,this.afterExpand=new o.vpe,this.afterCollapse=new o.vpe,this._inputChanges=new Y.x,this._headerId="mat-expansion-panel-header-"+dn++,this._bodyAnimationDone=new Y.x,this.accordion=m,this._document=v,this._bodyAnimationDone.pipe((0,Wt.x)((ie,oe)=>ie.fromState===oe.fromState&&ie.toState===oe.toState)).subscribe(ie=>{"void"!==ie.fromState&&("expanded"===ie.toState?this.afterExpand.emit():"collapsed"===ie.toState&&this.afterCollapse.emit())}),G&&(this.hideToggle=G.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(m){this._hideToggle=(0,g.Ig)(m)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(m){this._togglePosition=m}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,de.O)(null),(0,Rt.h)(()=>this.expanded&&!this._portal),(0,Ce.q)(1)).subscribe(()=>{this._portal=new Ht.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(m){this._inputChanges.next(m)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const m=this._document.activeElement,d=this._body.nativeElement;return m===d||d.contains(m)}return!1}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(ct,12),o.Y36(o.sBO),o.Y36(je.A8),o.Y36(o.s_b),o.Y36(Ae.K0),o.Y36(Pe.Qb,8),o.Y36(dt,8))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-expansion-panel"]],contentQueries:function(m,d,a){if(1&m&&o.Suo(a,Yt,5),2&m){let l;o.iGM(l=o.CRH())&&(d._lazyContent=l.first)}},viewQuery:function(m,d){if(1&m&&o.Gf(P,5),2&m){let a;o.iGM(a=o.CRH())&&(d._body=a.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(m,d){2&m&&o.ekj("mat-expanded",d.expanded)("_mat-animation-noopable","NoopAnimations"===d._animationMode)("mat-expansion-panel-spacing",d._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[o._Bn([{provide:ct,useValue:void 0}]),o.qOj,o.TTD],ngContentSelectors:be,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(m,d){1&m&&(o.F$t(re),o.Hsn(0),o.TgZ(1,"div",0,1),o.NdJ("@bodyExpansion.done",function(l){return d._bodyAnimationDone.next(l)}),o.TgZ(3,"div",2),o.Hsn(4,1),o.YNc(5,L,0,0,"ng-template",3),o.qZA(),o.Hsn(6,2),o.qZA()),2&m&&(o.xp6(1),o.Q6J("@bodyExpansion",d._getExpandedState())("id",d.id),o.uIk("aria-labelledby",d._headerId),o.xp6(4),o.Q6J("cdkPortalOutlet",d._portal))},directives:[Ht.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[nn.bodyExpansion]},changeDetection:0}),k})();class we{}const V=(0,bt.sb)(we);let j=(()=>{class k extends V{constructor(m,d,a,l,v,R,G){super(),this.panel=m,this._element=d,this._focusMonitor=a,this._changeDetectorRef=l,this._animationMode=R,this._parentChangeSubscription=Xe.w0.EMPTY;const ie=m.accordion?m.accordion._stateChanges.pipe((0,Rt.h)(oe=>!(!oe.hideToggle&&!oe.togglePosition))):E.E;this.tabIndex=parseInt(G||"")||0,this._parentChangeSubscription=(0,S.T)(m.opened,m.closed,ie,m._inputChanges.pipe((0,Rt.h)(oe=>!!(oe.hideToggle||oe.disabled||oe.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),m.closed.pipe((0,Rt.h)(()=>m._containsFocus())).subscribe(()=>a.focusVia(d,"program")),v&&(this.expandedHeight=v.expandedHeight,this.collapsedHeight=v.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const m=this._isExpanded();return m&&this.expandedHeight?this.expandedHeight:!m&&this.collapsedHeight?this.collapsedHeight:null}_keydown(m){switch(m.keyCode){case at.L_:case at.K5:(0,at.Vb)(m)||(m.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(m))}}focus(m,d){m?this._focusMonitor.focusVia(this._element,m,d):this._element.nativeElement.focus(d)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(m=>{m&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(vt,1),o.Y36(o.SBq),o.Y36(Nt.tE),o.Y36(o.sBO),o.Y36(dt,8),o.Y36(Pe.Qb,8),o.$8M("tabindex"))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(m,d){1&m&&o.NdJ("click",function(){return d._toggle()})("keydown",function(l){return d._keydown(l)}),2&m&&(o.uIk("id",d.panel._headerId)("tabindex",d.tabIndex)("aria-controls",d._getPanelId())("aria-expanded",d._isExpanded())("aria-disabled",d.panel.disabled),o.Udp("height",d._getHeaderHeight()),o.ekj("mat-expanded",d._isExpanded())("mat-expansion-toggle-indicator-after","after"===d._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===d._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===d._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[o.qOj],ngContentSelectors:_t,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(m,d){1&m&&(o.F$t(ze),o.TgZ(0,"span",0),o.Hsn(1),o.Hsn(2,1),o.Hsn(3,2),o.qZA(),o.YNc(4,Ue,1,1,"span",1)),2&m&&(o.xp6(4),o.Q6J("ngIf",d._showToggle()))},directives:[Ae.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[nn.indicatorRotate]},changeDetection:0}),k})(),$=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275dir=o.lG2({type:k,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),k})(),he=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275dir=o.lG2({type:k,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),k})(),Se=(()=>{class k extends He{constructor(){super(...arguments),this._ownHeaders=new o.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(m){this._hideToggle=(0,g.Ig)(m)}ngAfterContentInit(){this._headers.changes.pipe((0,de.O)(this._headers)).subscribe(m=>{this._ownHeaders.reset(m.filter(d=>d.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Nt.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(m){this._keyManager.onKeydown(m)}_handleHeaderFocus(m){this._keyManager.updateActiveItem(m)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return k.\u0275fac=function(){let Ee;return function(d){return(Ee||(Ee=o.n5z(k)))(d||k)}}(),k.\u0275dir=o.lG2({type:k,selectors:[["mat-accordion"]],contentQueries:function(m,d,a){if(1&m&&o.Suo(a,j,5),2&m){let l;o.iGM(l=o.CRH())&&(d._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(m,d){2&m&&o.ekj("mat-accordion-multi",d.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[o._Bn([{provide:ct,useExisting:k}]),o.qOj]}),k})(),st=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[Ae.ez,bt.BQ,St,Ht.eL]]}),k})();var At=C(9646),Zt=C(3101),Kt=C(3900),Dt=C(4986),Rn=C(4482),Ve=C(5403),_e=C(5032),rt=C(5577);function kt(k,Ee){return Ee?m=>(0,q.z)(Ee.pipe((0,Ce.q)(1),function ne(){return(0,Rn.e)((k,Ee)=>{k.subscribe((0,Ve.x)(Ee,_e.Z))})}()),m.pipe(kt(k))):(0,rt.z)((m,d)=>k(m,d).pipe((0,Ce.q)(1),function Ie(k){return(0,se.U)(()=>k)}(m)))}var $t=C(5963);function bn(k,Ee=Dt.z){const m=(0,$t.H)(k,Ee);return kt(()=>m)}var en=C(9776),kn=C(226),Cn=C(495);const jn=["mat-menu-item",""];function oi(k,Ee){1&k&&(o.O4$(),o.TgZ(0,"svg",2),o._UZ(1,"polygon",3),o.qZA())}const Wn=["*"];function bi(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"div",0),o.NdJ("keydown",function(a){return o.CHM(m),o.oxw()._handleKeydown(a)})("click",function(){return o.CHM(m),o.oxw().closed.emit("click")})("@transformMenu.start",function(a){return o.CHM(m),o.oxw()._onAnimationStart(a)})("@transformMenu.done",function(a){return o.CHM(m),o.oxw()._onAnimationDone(a)}),o.TgZ(1,"div",1),o.Hsn(2),o.qZA()()}if(2&k){const m=o.oxw();o.Q6J("id",m.panelId)("ngClass",m._classList)("@transformMenu",m._panelAnimationState),o.uIk("aria-label",m.ariaLabel||null)("aria-labelledby",m.ariaLabelledby||null)("aria-describedby",m.ariaDescribedby||null)}}const si={transformMenu:(0,D.X$)("transformMenu",[(0,D.SB)("void",(0,D.oB)({opacity:0,transform:"scale(0.8)"})),(0,D.eR)("void => enter",(0,D.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,D.oB)({opacity:1,transform:"scale(1)"}))),(0,D.eR)("* => void",(0,D.jt)("100ms 25ms linear",(0,D.oB)({opacity:0})))]),fadeInItems:(0,D.X$)("fadeInItems",[(0,D.SB)("showing",(0,D.oB)({opacity:1})),(0,D.eR)("void => *",[(0,D.oB)({opacity:0}),(0,D.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},ji=new o.OlP("MatMenuContent"),An=new o.OlP("MAT_MENU_PANEL"),ci=(0,bt.Kr)((0,bt.Id)(class{}));let tn=(()=>{class k extends ci{constructor(m,d,a,l,v){var R;super(),this._elementRef=m,this._document=d,this._focusMonitor=a,this._parentMenu=l,this._changeDetectorRef=v,this.role="menuitem",this._hovered=new Y.x,this._focused=new Y.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(R=null==l?void 0:l.addItem)||void 0===R||R.call(l,this)}focus(m,d){this._focusMonitor&&m?this._focusMonitor.focusVia(this._getHostElement(),m,d):this._getHostElement().focus(d),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(m){this.disabled&&(m.preventDefault(),m.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var m;const d=this._elementRef.nativeElement.cloneNode(!0),a=d.querySelectorAll("mat-icon, .material-icons");for(let l=0;l{class k{constructor(m,d,a,l){this._elementRef=m,this._ngZone=d,this._defaultOptions=a,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new o.n_E,this._tabSubscription=Xe.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Y.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new o.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+jt++}get xPosition(){return this._xPosition}set xPosition(m){this._xPosition=m,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(m){this._yPosition=m,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(m){this._overlapTrigger=(0,g.Ig)(m)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(m){this._hasBackdrop=(0,g.Ig)(m)}set panelClass(m){const d=this._previousPanelClass;d&&d.length&&d.split(" ").forEach(a=>{this._classList[a]=!1}),this._previousPanelClass=m,m&&m.length&&(m.split(" ").forEach(a=>{this._classList[a]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(m){this.panelClass=m}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Nt.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,de.O)(this._directDescendantItems),(0,Kt.w)(m=>(0,S.T)(...m.map(d=>d._focused)))).subscribe(m=>this._keyManager.updateActiveItem(m)),this._directDescendantItems.changes.subscribe(m=>{var d;const a=this._keyManager;if("enter"===this._panelAnimationState&&(null===(d=a.activeItem)||void 0===d?void 0:d._hasFocus())){const l=m.toArray(),v=Math.max(0,Math.min(l.length-1,a.activeItemIndex||0));l[v]&&!l[v].disabled?a.setActiveItem(v):a.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,de.O)(this._directDescendantItems),(0,Kt.w)(d=>(0,S.T)(...d.map(a=>a._hovered))))}addItem(m){}removeItem(m){}_handleKeydown(m){const d=m.keyCode,a=this._keyManager;switch(d){case at.hY:(0,at.Vb)(m)||(m.preventDefault(),this.closed.emit("keydown"));break;case at.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case at.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(d===at.LH||d===at.JH)&&a.setFocusOrigin("keyboard"),void a.onKeydown(m)}m.stopPropagation()}focusFirstItem(m="program"){this.lazyContent?this._ngZone.onStable.pipe((0,Ce.q)(1)).subscribe(()=>this._focusFirstItem(m)):this._focusFirstItem(m)}_focusFirstItem(m){const d=this._keyManager;if(d.setFocusOrigin(m).setFirstItemActive(),!d.activeItem&&this._directDescendantItems.length){let a=this._directDescendantItems.first._getHostElement().parentElement;for(;a;){if("menu"===a.getAttribute("role")){a.focus();break}a=a.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(m){const d=Math.min(this._baseElevation+m,24),a=`${this._elevationPrefix}${d}`,l=Object.keys(this._classList).find(v=>v.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}setPositionClasses(m=this.xPosition,d=this.yPosition){var a;const l=this._classList;l["mat-menu-before"]="before"===m,l["mat-menu-after"]="after"===m,l["mat-menu-above"]="above"===d,l["mat-menu-below"]="below"===d,null===(a=this._changeDetectorRef)||void 0===a||a.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(m){this._animationDone.next(m),this._isAnimating=!1}_onAnimationStart(m){this._isAnimating=!0,"enter"===m.toState&&0===this._keyManager.activeItemIndex&&(m.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,de.O)(this._allItems)).subscribe(m=>{this._directDescendantItems.reset(m.filter(d=>d._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(Yn),o.Y36(o.sBO))},k.\u0275dir=o.lG2({type:k,contentQueries:function(m,d,a){if(1&m&&(o.Suo(a,ji,5),o.Suo(a,tn,5),o.Suo(a,tn,4)),2&m){let l;o.iGM(l=o.CRH())&&(d.lazyContent=l.first),o.iGM(l=o.CRH())&&(d._allItems=l),o.iGM(l=o.CRH())&&(d.items=l)}},viewQuery:function(m,d){if(1&m&&o.Gf(o.Rgc,5),2&m){let a;o.iGM(a=o.CRH())&&(d.templateRef=a.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"}}),k})(),Jn=(()=>{class k extends ui{constructor(m,d,a,l){super(m,d,a,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(Yn),o.Y36(o.sBO))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(m,d){2&m&&o.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[o._Bn([{provide:An,useExisting:k}]),o.qOj],ngContentSelectors:Wn,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(m,d){1&m&&(o.F$t(),o.YNc(0,bi,3,6,"ng-template"))},directives:[Ae.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[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:[si.transformMenu,si.fadeInItems]},changeDetection:0}),k})();const Si=new o.OlP("mat-menu-scroll-strategy"),gn={provide:Si,deps:[en.aV],useFactory:function Gn(k){return()=>k.scrollStrategies.reposition()}},Nn=(0,le.i$)({passive:!0});let Xn=(()=>{class k{constructor(m,d,a,l,v,R,G,ie,oe){this._overlay=m,this._element=d,this._viewContainerRef=a,this._menuItemInstance=R,this._dir=G,this._focusMonitor=ie,this._ngZone=oe,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Xe.w0.EMPTY,this._hoverSubscription=Xe.w0.EMPTY,this._menuCloseSubscription=Xe.w0.EMPTY,this._handleTouchStart=Oe=>{(0,Nt.yG)(Oe)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new o.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new o.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=v instanceof ui?v:void 0,d.nativeElement.addEventListener("touchstart",this._handleTouchStart,Nn),R&&(R._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(m){this.menu=m}get menu(){return this._menu}set menu(m){m!==this._menu&&(this._menu=m,this._menuCloseSubscription.unsubscribe(),m&&(this._menuCloseSubscription=m.close.subscribe(d=>{this._destroyMenu(d),("click"===d||"tab"===d)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(d)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Nn),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const m=this._createOverlay(),d=m.getConfig(),a=d.positionStrategy;this._setPosition(a),d.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,m.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof ui&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,X.R)(this.menu.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(m,d){this._focusMonitor&&m?this._focusMonitor.focusVia(this._element,m,d):this._element.nativeElement.focus(d)}updatePosition(){var m;null===(m=this._overlayRef)||void 0===m||m.updatePosition()}_destroyMenu(m){if(!this._overlayRef||!this.menuOpen)return;const d=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===m||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,d instanceof ui?(d._resetAnimation(),d.lazyContent?d._animationDone.pipe((0,Rt.h)(a=>"void"===a.toState),(0,Ce.q)(1),(0,X.R)(d.lazyContent._attached)).subscribe({next:()=>d.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),d.lazyContent&&d.lazyContent.detach())}_initMenu(){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)}_setMenuElevation(){if(this.menu.setElevation){let m=0,d=this.menu.parentMenu;for(;d;)m++,d=d.parentMenu;this.menu.setElevation(m)}}_setIsMenuOpen(m){this._menuOpen=m,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(m)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const m=this._getOverlayConfig();this._subscribeToPositions(m.positionStrategy),this._overlayRef=this._overlay.create(m),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new en.X_({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})}_subscribeToPositions(m){this.menu.setPositionClasses&&m.positionChanges.subscribe(d=>{const a="start"===d.connectionPair.overlayX?"after":"before",l="top"===d.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(a,l)):this.menu.setPositionClasses(a,l)})}_setPosition(m){let[d,a]="before"===this.menu.xPosition?["end","start"]:["start","end"],[l,v]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[R,G]=[l,v],[ie,oe]=[d,a],Oe=0;this.triggersSubmenu()?(oe=d="before"===this.menu.xPosition?"start":"end",a=ie="end"===d?"start":"end",Oe="bottom"===l?8:-8):this.menu.overlapTrigger||(R="top"===l?"bottom":"top",G="top"===v?"bottom":"top"),m.withPositions([{originX:d,originY:R,overlayX:ie,overlayY:l,offsetY:Oe},{originX:a,originY:R,overlayX:oe,overlayY:l,offsetY:Oe},{originX:d,originY:G,overlayX:ie,overlayY:v,offsetY:-Oe},{originX:a,originY:G,overlayX:oe,overlayY:v,offsetY:-Oe}])}_menuClosingActions(){const m=this._overlayRef.backdropClick(),d=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,At.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Rt.h)(v=>v!==this._menuItemInstance),(0,Rt.h)(()=>this._menuOpen)):(0,At.of)();return(0,S.T)(m,a,l,d)}_handleMousedown(m){(0,Nt.X6)(m)||(this._openedBy=0===m.button?"mouse":void 0,this.triggersSubmenu()&&m.preventDefault())}_handleKeydown(m){const d=m.keyCode;(d===at.K5||d===at.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(d===at.SV&&"ltr"===this.dir||d===at.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(m){this.triggersSubmenu()?(m.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Rt.h)(m=>m===this._menuItemInstance&&!m.disabled),bn(0,Zt.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ui&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Ce.q)(1),bn(0,Zt.E),(0,X.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Ht.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(en.aV),o.Y36(o.SBq),o.Y36(o.s_b),o.Y36(Si),o.Y36(An,8),o.Y36(tn,10),o.Y36(kn.Is,8),o.Y36(Nt.tE),o.Y36(o.R0b))},k.\u0275dir=o.lG2({type:k,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(m,d){1&m&&o.NdJ("click",function(l){return d._handleClick(l)})("mousedown",function(l){return d._handleMousedown(l)})("keydown",function(l){return d._handleKeydown(l)}),2&m&&o.uIk("aria-expanded",d.menuOpen||null)("aria-controls",d.menuOpen?d.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"}}),k})(),un=(()=>{class k extends Xn{}return k.\u0275fac=function(){let Ee;return function(d){return(Ee||(Ee=o.n5z(k)))(d||k)}}(),k.\u0275dir=o.lG2({type:k,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[o.qOj]}),k})(),ir=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({providers:[gn],imports:[[Ae.ez,bt.BQ,bt.si,en.U8],Cn.ZD,bt.BQ]}),k})();const Tr={tooltipState:(0,D.X$)("state",[(0,D.SB)("initial, void, hidden",(0,D.oB)({opacity:0,transform:"scale(0)"})),(0,D.SB)("visible",(0,D.oB)({transform:"scale(1)"})),(0,D.eR)("* => visible",(0,D.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,D.F4)([(0,D.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,D.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,D.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,D.eR)("* => hidden",(0,D.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,D.oB)({opacity:0})))])},Ki="tooltip-panel",Zi=(0,le.i$)({passive:!0}),Oi=new o.OlP("mat-tooltip-scroll-strategy"),rr={provide:Oi,deps:[en.aV],useFactory:function hr(k){return()=>k.scrollStrategies.reposition({scrollThrottle:20})}},fr=new o.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function pr(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let kr=(()=>{class k{constructor(m,d,a,l,v,R,G,ie,oe,Oe,Ke,gt){this._overlay=m,this._elementRef=d,this._scrollDispatcher=a,this._viewContainerRef=l,this._ngZone=v,this._platform=R,this._ariaDescriber=G,this._focusMonitor=ie,this._dir=Oe,this._defaultOptions=Ke,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 Y.x,this._scrollStrategy=oe,this._document=gt,Ke&&(Ke.position&&(this.position=Ke.position),Ke.touchGestures&&(this.touchGestures=Ke.touchGestures)),Oe.change.pipe((0,X.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(m){var d;m!==this._position&&(this._position=m,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(d=this._tooltipInstance)||void 0===d||d.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(m){this._disabled=(0,g.Ig)(m),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(m){this._showDelay=(0,g.su)(m)}get hideDelay(){return this._hideDelay}set hideDelay(m){this._hideDelay=(0,g.su)(m),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(m){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=m?String(m).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(m){this._tooltipClass=m,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,X.R)(this._destroyed)).subscribe(m=>{m?"keyboard"===m&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const m=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([d,a])=>{m.removeEventListener(d,a,Zi)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(m,this.message,"tooltip"),this._focusMonitor.stopMonitoring(m)}show(m=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const d=this._createOverlay();this._detach(),this._portal=this._portal||new Ht.C5(this._tooltipComponent,this._viewContainerRef);const a=this._tooltipInstance=d.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe((0,X.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(m)}hide(m=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(m)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var m;if(this._overlayRef)return this._overlayRef;const d=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),a=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(d);return a.positionChanges.pipe((0,X.R)(this._destroyed)).subscribe(l=>{this._updateCurrentPositionClass(l.connectionPair),this._tooltipInstance&&l.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:a,panelClass:`${this._cssClassPrefix}-${Ki}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,X.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,X.R)(this._destroyed)).subscribe(()=>{var l;return null===(l=this._tooltipInstance)||void 0===l?void 0:l._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,X.R)(this._destroyed)).subscribe(l=>{this._isTooltipVisible()&&l.keyCode===at.hY&&!(0,at.Vb)(l)&&(l.preventDefault(),l.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(m=this._defaultOptions)||void 0===m?void 0:m.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(m){const d=m.getConfig().positionStrategy,a=this._getOrigin(),l=this._getOverlayPosition();d.withPositions([this._addOffset(Object.assign(Object.assign({},a.main),l.main)),this._addOffset(Object.assign(Object.assign({},a.fallback),l.fallback))])}_addOffset(m){return m}_getOrigin(){const m=!this._dir||"ltr"==this._dir.value,d=this.position;let a;"above"==d||"below"==d?a={originX:"center",originY:"above"==d?"top":"bottom"}:"before"==d||"left"==d&&m||"right"==d&&!m?a={originX:"start",originY:"center"}:("after"==d||"right"==d&&m||"left"==d&&!m)&&(a={originX:"end",originY:"center"});const{x:l,y:v}=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:l,originY:v}}}_getOverlayPosition(){const m=!this._dir||"ltr"==this._dir.value,d=this.position;let a;"above"==d?a={overlayX:"center",overlayY:"bottom"}:"below"==d?a={overlayX:"center",overlayY:"top"}:"before"==d||"left"==d&&m||"right"==d&&!m?a={overlayX:"end",overlayY:"center"}:("after"==d||"right"==d&&m||"left"==d&&!m)&&(a={overlayX:"start",overlayY:"center"});const{x:l,y:v}=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:l,overlayY:v}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ce.q)(1),(0,X.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(m){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=m,this._tooltipInstance._markForCheck())}_invertPosition(m,d){return"above"===this.position||"below"===this.position?"top"===d?d="bottom":"bottom"===d&&(d="top"):"end"===m?m="start":"start"===m&&(m="end"),{x:m,y:d}}_updateCurrentPositionClass(m){const{overlayY:d,originX:a,originY:l}=m;let v;if(v="center"===d?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===d&&"top"===l?"above":"below",v!==this._currentPosition){const R=this._overlayRef;if(R){const G=`${this._cssClassPrefix}-${Ki}-`;R.removePanelClass(G+this._currentPosition),R.addPanelClass(G+v)}this._currentPosition=v}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const m=[];if(this._platformSupportsMouseEvents())m.push(["mouseleave",d=>{var a;const l=d.relatedTarget;(!l||!(null===(a=this._overlayRef)||void 0===a?void 0:a.overlayElement.contains(l)))&&this.hide()}],["wheel",d=>this._wheelListener(d)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const d=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};m.push(["touchend",d],["touchcancel",d])}this._addListeners(m),this._passiveListeners.push(...m)}_addListeners(m){m.forEach(([d,a])=>{this._elementRef.nativeElement.addEventListener(d,a,Zi)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(m){if(this._isTooltipVisible()){const d=this._document.elementFromPoint(m.clientX,m.clientY),a=this._elementRef.nativeElement;d!==a&&!a.contains(d)&&this.hide()}}_disableNativeGesturesIfNecessary(){const m=this.touchGestures;if("off"!==m){const d=this._elementRef.nativeElement,a=d.style;("on"===m||"INPUT"!==d.nodeName&&"TEXTAREA"!==d.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===m||!d.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}return k.\u0275fac=function(m){o.$Z()},k.\u0275dir=o.lG2({type:k,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),k})(),uo=(()=>{class k extends kr{constructor(m,d,a,l,v,R,G,ie,oe,Oe,Ke,gt){super(m,d,a,l,v,R,G,ie,oe,Oe,Ke,gt),this._tooltipComponent=Fr}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(en.aV),o.Y36(o.SBq),o.Y36(Cn.mF),o.Y36(o.s_b),o.Y36(o.R0b),o.Y36(le.t4),o.Y36(Nt.$s),o.Y36(Nt.tE),o.Y36(Oi),o.Y36(kn.Is,8),o.Y36(fr,8),o.Y36(Ae.K0))},k.\u0275dir=o.lG2({type:k,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[o.qOj]}),k})(),mr=(()=>{class k{constructor(m){this._changeDetectorRef=m,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Y.x}show(m){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},m)}hide(m){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},m)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_animationStart(){this._closeOnInteraction=!1}_animationDone(m){const d=m.toState;"hidden"===d&&!this.isVisible()&&this._onHide.next(),("visible"===d||"hidden"===d)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:m}){(!m||!this._triggerElement.contains(m))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.sBO))},k.\u0275dir=o.lG2({type:k}),k})(),Fr=(()=>{class k extends mr{constructor(m,d){super(m),this._breakpointObserver=d,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.sBO),o.Y36(me))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(m,d){1&m&&o.NdJ("mouseleave",function(l){return d._handleMouseLeave(l)}),2&m&&o.Udp("zoom","visible"===d._visibility?1:null)},features:[o.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(m,d){if(1&m&&(o.TgZ(0,"div",0),o.NdJ("@state.start",function(){return d._animationStart()})("@state.done",function(l){return d._animationDone(l)}),o.ALo(1,"async"),o._uU(2),o.qZA()),2&m){let a;o.ekj("mat-tooltip-handset",null==(a=o.lcZ(1,5,d._isHandset))?null:a.matches),o.Q6J("ngClass",d.tooltipClass)("@state",d._visibility),o.xp6(2),o.Oqu(d.message)}},directives:[Ae.mk],pipes:[Ae.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}\n"],encapsulation:2,data:{animation:[Tr.tooltipState]},changeDetection:0}),k})(),gr=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({providers:[rr],imports:[[Nt.rt,Ae.ez,en.U8,bt.BQ],bt.BQ,Cn.ZD]}),k})();var or=C(7423);function xr(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"button",14),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw(2).launch(l)}),o.TgZ(1,"div",15),o._UZ(2,"img",9),o._uU(3),o.qZA()()}if(2&k){const m=Ee.$implicit,d=o.oxw(2);o.xp6(2),o.Q6J("src",d.getTransportIcon(m.id),o.LSH),o.xp6(1),o.hij(" ",m.name," ")}}function sr(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"button",14),o.NdJ("click",function(){return o.CHM(m),o.oxw(2).action("release")}),o.TgZ(1,"i",16),o._uU(2,"delete"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4," Release service"),o.qZA()()}}function _r(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"button",14),o.NdJ("click",function(){return o.CHM(m),o.oxw(2).action("reset")}),o.TgZ(1,"i",16),o._uU(2,"refresh"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4," Reset service"),o.qZA()()}}function ar(k,Ee){if(1&k&&(o.TgZ(0,"button",17)(1,"uds-translate"),o._uU(2,"Connections"),o.qZA()()),2&k){o.oxw();const m=o.MAs(2);o.Q6J("matMenuTriggerFor",m)}}function Zr(k,Ee){if(1&k&&(o.TgZ(0,"button",17)(1,"uds-translate"),o._uU(2,"Actions"),o.qZA()()),2&k){o.oxw();const m=o.MAs(5);o.Q6J("matMenuTriggerFor",m)}}function vr(k,Ee){if(1&k&&(o.TgZ(0,"button",18)(1,"i",16),o._uU(2,"menu"),o.qZA()()),2&k){o.oxw();const m=o.MAs(9);o.Q6J("matMenuTriggerFor",m)}}function Lr(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"div")(1,"mat-menu",null,1),o.YNc(3,xr,4,2,"button",2),o.qZA(),o.TgZ(4,"mat-menu",null,3),o.YNc(6,sr,5,0,"button",4),o.YNc(7,_r,5,0,"button",4),o.qZA(),o.TgZ(8,"mat-menu",null,5),o.YNc(10,ar,3,1,"button",6),o.YNc(11,Zr,3,1,"button",6),o.qZA(),o.TgZ(12,"div",7)(13,"div",8),o.NdJ("click",function(){return o.CHM(m),o.oxw().launch(null)}),o._UZ(14,"img",9),o.qZA(),o.TgZ(15,"div",10)(16,"span",11),o._uU(17),o.qZA()(),o.TgZ(18,"div",12),o.YNc(19,vr,3,1,"button",13),o.qZA()()()}if(2&k){const m=o.oxw();o.xp6(3),o.Q6J("ngForOf",m.service.transports),o.xp6(3),o.Q6J("ngIf",m.service.allow_users_remove),o.xp6(1),o.Q6J("ngIf",m.service.allow_users_reset),o.xp6(3),o.Q6J("ngIf",m.showTransportsMenu()),o.xp6(1),o.Q6J("ngIf",m.hasActions()),o.xp6(1),o.Q6J("ngClass",m.serviceClass)("matTooltipDisabled",""===m.serviceTooltip)("matTooltip",m.serviceTooltip),o.xp6(2),o.Q6J("src",m.serviceImage,o.LSH),o.xp6(2),o.Q6J("ngClass",m.serviceNameClass),o.xp6(1),o.Oqu(m.serviceName),o.xp6(2),o.Q6J("ngIf",m.hasMenu())}}let mi=(()=>{class k{constructor(m){this.api=m}get serviceImage(){return this.api.galleryImageURL(this.service.imageId)}get serviceName(){let m=this.service.visual_name;return m.length>32&&(m=m.substring(0,29)+"..."),m}get serviceTooltip(){return null!==this.service.to_be_replaced?this.service.to_be_replaced_text:this.service.maintenance?django.gettext("Service is in maintenance"):this.service.not_accesible?this.service.custom_calendar_text:this.serviceName!==this.service.name?this.service.name:""}get serviceClass(){const m=["service"];return null!=this.service.to_be_replaced?m.push("tobereplaced"):this.service.maintenance?m.push("maintenance"):this.service.not_accesible?m.push("forbidden"):this.service.in_use&&m.push("inuse"),m.length>1&&m.push("alert"),m}get serviceNameClass(){const m=[],d=Math.min(4*Math.floor((this.service.visual_name.length-1)/4),28);return d>=16&&m.push("small-"+d.toString()),m}ngOnInit(){}getTransportIcon(m){return this.api.transportIconURL(m)}hasActions(){return this.service.allow_users_remove||this.service.allow_users_reset}showTransportsMenu(){return this.service.transports.length>1&&this.service.show_transports}hasMenu(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.showTransportsMenu())}notifyNotLaunching(m){this.api.gui.alert('

'+django.gettext("Launcher")+"

",m)}launch(m){if(this.service.maintenance)this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched"));else if(this.service.not_accesible){const d=this.service.custom_calendar_text||this.api.config.messages.calendarDenied;this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+d+'

')}else(null===m||!1===this.service.show_transports)&&(m=this.service.transports[0]),this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(m.link)}action(m){const d=("release"===m?django.gettext("Release service: "):django.gettext("Reset service: "))+" "+this.serviceName,a="release"===m?django.gettext("Service released"):django.gettext("Service reseted");this.api.gui.yesno(d,django.gettext("Are you sure?")).subscribe(l=>{l&&this.api.action(m,this.service.id).subscribe(v=>{v&&this.api.gui.alert(d,a)})})}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-service"]],inputs:{service:"service"},decls:1,vars:1,consts:[[4,"ngIf"],["transports",""],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["actions",""],["mat-menu-item","",3,"click",4,"ngIf"],["menu",""],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["matTooltipShowDelay","1000","matTooltipPosition","above",3,"ngClass","matTooltipDisabled","matTooltip"],[1,"icon",3,"click"],[3,"src"],[1,"name"],[3,"ngClass"],[1,"menu"],["mat-icon-button","","class","service-menu",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"transport-item"],[1,"material-icons"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-icon-button","",1,"service-menu",3,"matMenuTriggerFor"]],template:function(m,d){1&m&&o.YNc(0,Lr,20,12,"div",0),2&m&&o.Q6J("ngIf",d.service.transports.length>0)},directives:[Ae.O5,Jn,Ae.sg,tn,xe.P,un,Ae.mk,uo,or.lW],styles:['.service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;border-radius:1rem;box-shadow:0 12px 18px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-color:#00000038;display:flex;flex:1;align-items:center;justify-content:flex-start;flex-flow:column wrap;position:relative}.service-menu[_ngcontent-%COMP%]{border-radius:.6rem!important}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px #00000040,0 10px 10px #00000038}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:all .3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:all .3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.tobereplaced[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.7;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.05rem;width:calc(100% - 1em);display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;padding:0 .5em;overflow:hidden;height:2.4em;text-align:center}.small-16[_ngcontent-%COMP%]{font-size:1.05rem}.small-20[_ngcontent-%COMP%]{font-size:1rem}.small-24[_ngcontent-%COMP%]{font-size:.95rem}.small-28[_ngcontent-%COMP%]{font-size:.9rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;background-color:#fffc}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.alert[_ngcontent-%COMP%]:before{position:absolute;top:1rem;left:1rem;font-size:8rem;font-weight:500;font-family:Material Icons;font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:"liga";text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;content:"update"}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;content:"build"}.tobereplaced[_ngcontent-%COMP%]:before{color:#fc0000;content:"delete_forever"} .dark-theme .menu .mat-icon-button{background-color:#0003!important}']}),k})();function yr(k,Ee){1&k&&o._UZ(0,"uds-service",8),2&k&&o.Q6J("service",Ee.$implicit)}function Di(k,Ee){if(1&k&&(o.TgZ(0,"mat-expansion-panel",1)(1,"mat-expansion-panel-header",2)(2,"mat-panel-title")(3,"div",3),o._UZ(4,"img",4),o._uU(5),o.qZA()(),o.TgZ(6,"mat-panel-description",5),o._uU(7),o.qZA()(),o.TgZ(8,"div",6),o.YNc(9,yr,1,1,"uds-service",7),o.qZA()()),2&k){const m=o.oxw();o.Q6J("expanded",m.expanded),o.xp6(1),o.Q6J("collapsedHeight","3rem")("expandedHeight","5rem"),o.xp6(3),o.Q6J("src",m.groupImage,o.LSH),o.xp6(1),o.hij(" ",m.group.name,""),o.xp6(2),o.hij(" ",m.group.comments," "),o.xp6(2),o.Q6J("ngForOf",m.sortedServices)}}let qr=(()=>{class k{constructor(m){this.api=m,this.expanded=!1}ngOnInit(){}get groupImage(){return this.api.galleryImageURL(this.group.imageUuid)}get hasVisibleServices(){return this.services.length>0}get sortedServices(){return this.services.sort((m,d)=>m.name>d.name?1:m.name{class k{constructor(m){this.api=m}ngOnInit(){}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-staff-info"]],decls:1,vars:1,consts:[["class","staff-info",4,"ngIf"],[1,"staff-info"],[1,"staff-panel"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(m,d){1&m&&o.YNc(0,Bi,38,4,"div",0),2&m&&o.Q6J("ngIf",d.api.staffInfo)},directives:[Ae.O5,xe.P,Se,vt,j,he,$,Ae.sg],styles:[".staff-info[_ngcontent-%COMP%]{margin-top:1rem;padding:1rem;background-color:#ebebeb}.staff-info[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center}.staff-panel[_ngcontent-%COMP%]{background-color:#d4d4d4} .dark-theme .staff-info{margin-top:1rem;padding:1rem;background-color:#0f0f0f} .dark-theme .staff-panel{background-color:#2b2b2b}"]}),k})();function Qr(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"uds-filter",3),o.NdJ("updateEvent",function(a){return o.CHM(m),o.oxw().update(a)}),o.qZA()}}function Ii(k,Ee){if(1&k&&o._UZ(0,"uds-services-group",4),2&k){const m=Ee.$implicit,d=Ee.index;o.Q6J("services",m.services)("group",m.group)("expanded",0===d)}}function lr(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"uds-filter",3),o.NdJ("updateEvent",function(a){return o.CHM(m),o.oxw().update(a)}),o.qZA()}}class Br{constructor(Ee){this.group=Ee,this.services=[]}}function cr(k,Ee){1&k&&o._UZ(0,"span",10),2&k&&o.Q6J("innerHTML",Ee.$implicit,o.oJD)}const ni=[{path:"",redirectTo:"services",pathMatch:"full"},{path:"services",component:(()=>{class k{constructor(m){this.api=m,this.servicesInformation={autorun:!1,ip:"",nets:"",services:[],transports:""}}update(m){this.updateServices(m)}ngOnInit(){this.api.config.urls.launch?this.api.logout():this.loadServices()}autorun(){if(this.servicesInformation.autorun&&1===this.servicesInformation.services.length){if(!this.servicesInformation.services[0].maintenance)return this.api.executeCustomJSForServiceLaunch(),this.api.launchURL(this.servicesInformation.services[0].transports[0].link),!0;this.api.gui.alert(django.gettext("Warning"),django.gettext("Service is in maintenance and cannot be executed"))}return!1}loadServices(){this.api.user.isRestricted&&this.api.logout(),this.api.getServicesInformation().subscribe(m=>{this.servicesInformation=m,this.autorun(),this.updateServices()})}updateServices(m=""){this.group=[];let d=null;this.servicesInformation.services.filter(a=>!m||a.visual_name.toLowerCase().includes(m)||a.group.name.toLowerCase().includes(m)).sort((a,l)=>a.group.priority!==l.group.priority?a.group.priority-l.group.priority:a.group.id>l.group.id?1:a.group.id{(null===d||a.group.id!==d.group.id)&&(null!==d&&this.group.push(d),d=new Br(a.group)),d.services.push(a)}),null!==d&&this.group.push(d)}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-services-page"]],decls:6,vars:3,consts:[[3,"updateEvent",4,"ngIf"],[1,"services-groups"],[3,"services","group","expanded",4,"ngFor","ngForOf"],[3,"updateEvent"],[3,"services","group","expanded"]],template:function(m,d){1&m&&(o.YNc(0,Qr,1,0,"uds-filter",0),o.TgZ(1,"div",1)(2,"mat-accordion"),o.YNc(3,Ii,1,3,"uds-services-group",2),o.qZA()(),o.YNc(4,lr,1,0,"uds-filter",0),o._UZ(5,"uds-staff-info")),2&m&&(o.Q6J("ngIf",d.servicesInformation.services.length>=d.api.config.min_for_filter&&d.api.config.site_filter_on_top),o.xp6(3),o.Q6J("ngForOf",d.group),o.xp6(1),o.Q6J("ngIf",d.servicesInformation.services.length>=d.api.config.min_for_filter&&!d.api.config.site_filter_on_top))},directives:[Ae.O5,on,Se,Ae.sg,qr,Qi],styles:[".services-groups[_ngcontent-%COMP%]{padding-top:1rem}"]}),k})(),canActivate:[ve]},{path:"login",component:Me.G},{path:"login/:id",component:Me.G},{path:"client-download",component:Fe},{path:"downloads",component:Jt,canActivate:[ve]},{path:"error/:id",component:(()=>{class k{constructor(m){this.route=m,this.error=[""]}ngOnInit(){this.getError()}getError(){const m=this.route.snapshot.paramMap.get("id");try{const d=(new TextDecoder).decode(Uint8Array.from(window.atob(m),a=>a.charCodeAt(a))).replace("<","<").replace(">",">");this.error=d.split("\n"),console.log(this.error),udsData.error=this.error}catch(d){console.log(d),this.error=[django.gettext("Invalid error string")]}}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Te.gz))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-error"]],decls:14,vars:1,consts:[[1,"error-container"],[1,"graph"],["viewBox","0 0 55 41","xmlns","http://www.w3.org/2000/svg",1,"bird"],["d","M35.5 5L54.7.6H32.3L35.5 5zM12.4 40.8l10.3-10.1-6.2-6.7-4.1 16.8zM33.8 5.3L30.5.8l-5.4 4 8.7.5zM20.8 4.6L8.8 0l1.9 4.1 10.1.5zM0 5l15.2 15.4 7.5-14.2L0 5zM34.2 6.8l-9.9-.5-8 15.2 7.4 8.1 8-7.9 2.5-14.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 32 32",1,"gears"],["d","M29.18 19.07c-1.678-2.908-.668-6.634 2.256-8.328L28.29 5.295c-.897.527-1.942.83-3.057.83-3.36 0-6.085-2.743-6.085-6.126h-6.29c.01 1.043-.25 2.102-.81 3.07-1.68 2.907-5.41 3.896-8.34 2.21L.566 10.727c.905.515 1.69 1.268 2.246 2.234 1.677 2.904.673 6.624-2.24 8.32l3.145 5.447c.895-.522 1.935-.82 3.044-.82 3.35 0 6.066 2.725 6.083 6.092h6.29c-.004-1.035.258-2.08.81-3.04 1.676-2.902 5.4-3.893 8.325-2.218l3.145-5.447c-.9-.515-1.678-1.266-2.232-2.226zM16 22.48c-3.578 0-6.48-2.902-6.48-6.48S12.423 9.52 16 9.52c3.578 0 6.48 2.902 6.48 6.48s-2.902 6.48-6.48 6.48z"],[1,"title"],[1,"description"],[3,"innerHTML",4,"ngFor","ngForOf"],["mat-raised-button","","color","warn","routerLink","/"],[3,"innerHTML"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1),o.O4$(),o.TgZ(2,"svg",2),o._UZ(3,"path",3),o.qZA(),o.TgZ(4,"svg",4),o._UZ(5,"path",5),o.qZA()(),o.kcU(),o.TgZ(6,"h1",6)(7,"uds-translate"),o._uU(8,"An error has occurred"),o.qZA()(),o.TgZ(9,"p",7),o.YNc(10,cr,1,1,"span",8),o.qZA(),o.TgZ(11,"a",9)(12,"uds-translate"),o._uU(13,"Return"),o.qZA()()()),2&m&&(o.xp6(10),o.Q6J("ngForOf",d.error))},directives:[xe.P,Ae.sg,or.zs,Te.yS],styles:[".error-container[_ngcontent-%COMP%]{margin-top:3rem;text-align:center;position:relative}.title[_ngcontent-%COMP%]{display:block;font-size:2rem;font-weight:lighter;text-align:center}.description[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:lighter}.graph[_ngcontent-%COMP%]{position:relative}.gears[_ngcontent-%COMP%]{width:10rem;height:10rem;fill:#6aafe6;transition:easeInOutQuint();-webkit-animation:CogAnimation 5s infinite;animation:CogAnimation 5s infinite}.bird[_ngcontent-%COMP%]{position:absolute;width:3rem;height:3rem;fill:#30a9de;left:50%;top:50%;transform:translate(-50%,-50%)}@-webkit-keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes CogAnimation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),k})()},{path:"about",component:(()=>{class k{constructor(m){this.api=m,this.year=(new Date).getFullYear()}ngOnInit(){this.year<2021&&(this.year=2021)}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-about"]],decls:46,vars:3,consts:[[1,"about"],["href","http://www.udsenterprise.com","target","_blank"],["href","https://github.com/dkmstr/openuds","target","_blank"],[1,"components"],["href","https://www.python.org/"],["href","https://www.typescriptlang.org/","target","_blank"],["href","https://www.djangoproject.com/","target","_blank"],["href","https://angular.io","target","_blank"],["href","https://guac-dev.org/","target","_blank"],["href","https://weasyprint.org/","target","_blank"],["href","https://kde-look.org/content/show.php/Crystal+Project?content=60475)","target","_blank"],["href","https://github.com/NitruxSA/flattr-icons","target","_blank"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"h1"),o._uU(2),o.qZA(),o.TgZ(3,"h3")(4,"a",1),o._uU(5),o.qZA()(),o.TgZ(6,"h4")(7,"uds-translate"),o._uU(8,"You can access UDS Open Source code at"),o.qZA(),o._uU(9,"\xa0"),o.TgZ(10,"a",2),o._uU(11,"OpenUDS github repository"),o.qZA()(),o.TgZ(12,"div",3)(13,"h2")(14,"uds-translate"),o._uU(15,"UDS has been developed using these components:"),o.qZA()(),o.TgZ(16,"ul")(17,"li")(18,"a",4),o._uU(19,"Python"),o.qZA()(),o.TgZ(20,"li")(21,"a",5),o._uU(22,"TypeScript"),o.qZA()(),o.TgZ(23,"li")(24,"a",6),o._uU(25,"Django"),o.qZA()(),o.TgZ(26,"li")(27,"a",7),o._uU(28,"Angular"),o.qZA()(),o.TgZ(29,"li")(30,"a",8),o._uU(31,"Guacamole"),o.qZA()(),o.TgZ(32,"li")(33,"a",9),o._uU(34,"weasyprint"),o.qZA()(),o.TgZ(35,"li")(36,"a",10),o._uU(37,"Crystal project icons"),o.qZA()(),o.TgZ(38,"li")(39,"a",11),o._uU(40,"Flattr Icons"),o.qZA()()(),o.TgZ(41,"p")(42,"small"),o._uU(43,"* "),o.TgZ(44,"uds-translate"),o._uU(45,"If you find that we missed any component, please let us know"),o.qZA()()()()()),2&m&&(o.xp6(2),o.AsE("Universal Desktop Services ",d.api.config.version," build ",d.api.config.version_stamp,""),o.xp6(3),o.hij(" \xa9 2012-",d.year," Virtual Cable S.L.U."))},directives:[xe.P],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;justify-content:center;align-items:center}.about[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center}.about[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{text-align:center;font-size:1em;font-weight:400}.about[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{text-align:center}ul[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;text-decoration:none;color:#000;background-color:#fff;line-height:30px;border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#ccc;padding-left:10px;cursor:pointer}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#3e6b2d}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin-right:10px} .dark-theme .about{color:#fff!important} .dark-theme ul li a{color:#fff!important;background-color:inherit!important} .dark-theme ul li a:hover{color:#3e6b2d!important}"]}),k})()},{path:"ticket/launcher",component:(()=>{class k{constructor(m){this.api=m}ngOnInit(){""!==this.api.config.urls.launch&&this.api.launchURL(this.api.config.urls.launch)}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-launcher"]],decls:24,vars:0,consts:[[1,"launcher"],[1,"launcher-box"],["routerLink","/client-download"]],template:function(m,d){1&m&&(o.TgZ(0,"div",0)(1,"div",1)(2,"h1")(3,"uds-translate"),o._uU(4,"UDS Service launcher"),o.qZA()(),o.TgZ(5,"h4")(6,"uds-translate"),o._uU(7,"The service you have requested is being launched."),o.qZA()(),o.TgZ(8,"h5")(9,"uds-translate"),o._uU(10,"Please, note that reloading this page will not work."),o.qZA()(),o.TgZ(11,"h5")(12,"uds-translate"),o._uU(13,"To relaunch service, you will have to do it from origin."),o.qZA()(),o.TgZ(14,"h6")(15,"uds-translate"),o._uU(16,"If the service does not launchs automatically, probably you dont have the UDS Client installed"),o.qZA()(),o.TgZ(17,"h6")(18,"uds-translate"),o._uU(19,"You can obtain it from the"),o.qZA(),o._uU(20,"\xa0"),o.TgZ(21,"a",2)(22,"uds-translate"),o._uU(23,"UDS Client download page"),o.qZA()()()()())},directives:[xe.P,Te.yS],styles:[".launcher[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-top:1rem;font-size:larger}.launcher-box[_ngcontent-%COMP%]{box-shadow:0 12px 18px #00000040,0 10px 10px #00000038;transition:all .3s cubic-bezier(.25,.8,.25,1);border:1px;border-style:solid;border-radius:.5rem;border-color:#00000038;padding:1rem}.launcher-box[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{text-align:center}.launcher-box[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin-top:.6rem;margin-bottom:.6rem;font-weight:400}"]}),k})()},{path:"**",redirectTo:"services"}];let ur=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[Te.Bz.forRoot(ni,{relativeLinkResolution:"legacy"})],Te.Bz]}),k})();var Pi=C(2382),A=C(7144);let Sn=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({}),k})(),Vn=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[bt.si,bt.BQ,A.Q8,Sn],bt.BQ,Sn]}),k})();var wi=C(8966),er=C(4107);const Ri=["*",[["mat-toolbar-row"]]],ki=["*","mat-toolbar-row"],x=(0,bt.pj)(class{constructor(k){this._elementRef=k}});let M=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275dir=o.lG2({type:k,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),k})(),y=(()=>{class k extends x{constructor(m,d,a){super(m),this._platform=d,this._document=a}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(o.SBq),o.Y36(le.t4),o.Y36(Ae.K0))},k.\u0275cmp=o.Xpm({type:k,selectors:[["mat-toolbar"]],contentQueries:function(m,d,a){if(1&m&&o.Suo(a,M,5),2&m){let l;o.iGM(l=o.CRH())&&(d._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(m,d){2&m&&o.ekj("mat-toolbar-multiple-rows",d._toolbarRows.length>0)("mat-toolbar-single-row",0===d._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[o.qOj],ngContentSelectors:ki,decls:2,vars:0,template:function(m,d){1&m&&(o.F$t(Ri),o.Hsn(0),o.Hsn(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}),k})(),We=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({imports:[[bt.BQ],bt.BQ]}),k})(),Et=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k}),k.\u0275inj=o.cJS({providers:[{provide:mn.o2,useValue:{floatLabel:"always"}}],imports:[Pi.u5,We,or.ot,ir,gr,st,wi.Is,mn.lN,Ut.c,er.LD,Vn]}),k})();function Dn(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){const l=o.CHM(m).$implicit;return o.oxw(2).changeLang(l)}),o._uU(1),o.qZA()}if(2&k){const m=Ee.$implicit;o.xp6(1),o.Oqu(m.name)}}function gi(k,Ee){if(1&k){const m=o.EpF();o.TgZ(0,"button",9),o.NdJ("click",function(){return o.CHM(m),o.oxw(2).admin()}),o.TgZ(1,"i",23),o._uU(2,"dashboard"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4,"Dashboard"),o.qZA()()}}function Gi(k,Ee){1&k&&(o.TgZ(0,"button",28)(1,"i",23),o._uU(2,"file_download"),o.qZA(),o.TgZ(3,"uds-translate"),o._uU(4,"Downloads"),o.qZA()())}function Fi(k,Ee){if(1&k&&(o.TgZ(0,"button",14),o._uU(1),o.qZA()),2&k){o.oxw();const m=o.MAs(8),d=o.oxw();o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.Oqu(d.api.user.user)}}function ot(k,Ee){if(1&k&&(o.TgZ(0,"button",25),o._uU(1),o.TgZ(2,"i",23),o._uU(3,"arrow_drop_down"),o.qZA()()),2&k){o.oxw();const m=o.MAs(8),d=o.oxw();o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.hij("",d.api.user.user," ")}}function sn(k,Ee){if(1&k){const m=o.EpF();o.ynx(0),o.TgZ(1,"form",1),o._UZ(2,"input",2)(3,"input",3),o.qZA(),o.TgZ(4,"mat-menu",null,4),o.YNc(6,Dn,2,1,"button",5),o.qZA(),o.TgZ(7,"mat-menu",null,6),o.YNc(9,gi,5,0,"button",7),o.YNc(10,Gi,5,0,"button",8),o.TgZ(11,"button",9),o.NdJ("click",function(){return o.CHM(m),o.oxw().logout()}),o.TgZ(12,"i",10),o._uU(13,"exit_to_app"),o.qZA(),o.TgZ(14,"uds-translate"),o._uU(15,"Logout"),o.qZA()()(),o.TgZ(16,"mat-menu",11,12),o.YNc(18,Fi,2,2,"button",13),o.TgZ(19,"button",14),o._uU(20),o.qZA(),o.TgZ(21,"button",15)(22,"uds-translate"),o._uU(23,"UDS Client"),o.qZA()(),o.TgZ(24,"button",16)(25,"uds-translate"),o._uU(26,"About"),o.qZA()()(),o.TgZ(27,"mat-toolbar",17)(28,"button",18),o._UZ(29,"img",19),o._uU(30),o.qZA(),o._UZ(31,"span",20),o.TgZ(32,"div",21)(33,"button",22)(34,"i",23),o._uU(35,"file_download"),o.qZA(),o.TgZ(36,"uds-translate"),o._uU(37,"UDS Client"),o.qZA()(),o.TgZ(38,"button",24)(39,"i",23),o._uU(40,"info"),o.qZA(),o.TgZ(41,"uds-translate"),o._uU(42,"About"),o.qZA()(),o.TgZ(43,"button",25),o._uU(44),o.TgZ(45,"i",23),o._uU(46,"arrow_drop_down"),o.qZA()(),o.YNc(47,ot,4,2,"button",26),o.qZA(),o.TgZ(48,"div",27)(49,"button",25)(50,"i",23),o._uU(51,"menu"),o.qZA()()()(),o.BQk()}if(2&k){const m=o.MAs(5),d=o.MAs(17),a=o.oxw();o.xp6(1),o.s9C("action",a.api.config.urls.changeLang,o.LSH),o.xp6(1),o.s9C("name",a.api.config.csrf_field),o.s9C("value",a.api.config.csrf),o.xp6(1),o.s9C("value",a.lang.id),o.xp6(3),o.Q6J("ngForOf",a.langs),o.xp6(3),o.Q6J("ngIf",a.api.user.isStaff),o.xp6(1),o.Q6J("ngIf",a.api.user.isStaff),o.xp6(8),o.Q6J("ngIf",a.api.user.isLogged),o.xp6(1),o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.hij("",a.lang.name," "),o.xp6(9),o.Q6J("src",a.api.staticURL("modern/img/udsicon.png"),o.LSH),o.xp6(1),o.hij(" ",a.api.config.site_logo_name," "),o.xp6(13),o.Q6J("matMenuTriggerFor",m),o.xp6(1),o.hij("",a.lang.name," "),o.xp6(3),o.Q6J("ngIf",a.api.user.isLogged),o.xp6(2),o.Q6J("matMenuTriggerFor",d)}}let Jr=(()=>{class k{constructor(m){this.api=m,this.style="";const d=m.config.language;this.langs=[];for(const a of m.config.available_languages)a.id===d?this.lang=a:this.langs.push(a)}ngOnInit(){}changeLang(m){return this.lang=m,document.getElementById("id_language").attributes.value.value=m.id,document.getElementById("form_language").submit(),!1}admin(){this.api.gotoAdmin()}logout(){this.api.logout()}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-navbar"]],decls:1,vars:1,consts:[[4,"ngIf"],["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",4,"ngIf"],["mat-menu-item","","routerLink","/downloads",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/client-download"],["mat-menu-item","","routerLink","/about"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","","routerLink","/client-download"],[1,"material-icons"],["mat-button","","routerLink","/about"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-menu-item","","routerLink","/downloads"]],template:function(m,d){1&m&&o.YNc(0,sn,52,16,"ng-container",0),2&m&&o.Q6J("ngIf",""==d.api.config.urls.launch)},directives:[Ae.O5,Pi._Y,Pi.JL,Pi.F,Jn,Ae.sg,tn,xe.P,Te.rH,un,y,or.lW],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}@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}}"]}),k})(),Zn=(()=>{class k{constructor(m){this.api=m}ngOnInit(){}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-footer"]],decls:3,vars:2,consts:[[3,"href"]],template:function(m,d){1&m&&(o.TgZ(0,"div")(1,"a",0),o._uU(2),o.qZA()()),2&m&&(o.xp6(1),o.Q6J("href",d.api.config.site_copyright_link,o.LSH),o.xp6(1),o.Oqu(d.api.config.site_copyright_info))},styles:[""]}),k})(),bo=(()=>{class k{constructor(m){this.api=m,this.title="UDS",this.blackTheme=!1}handleKeyboardEvent(m){m.altKey&&m.ctrlKey&&"b"===m.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}ngOnInit(){cookieconsent.initialise({palette:{popup:{background:"#343c66",text:"#cfcfe8"},button:{background:"#f71559"}},content:{message:django.gettext("We use cookies to track usage and preferences"),dismiss:django.gettext("I Understand"),link:django.gettext("Learn more")}})}}return k.\u0275fac=function(m){return new(m||k)(o.Y36(Ne.n))},k.\u0275cmp=o.Xpm({type:k,selectors:[["uds-root"]],hostBindings:function(m,d){1&m&&o.NdJ("keydown",function(l){return d.handleKeyboardEvent(l)},!1,o.evT)},decls:6,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(m,d){1&m&&(o._UZ(0,"uds-navbar"),o.TgZ(1,"div",0)(2,"div",1),o._UZ(3,"router-outlet"),o.qZA(),o.TgZ(4,"div",2),o._UZ(5,"uds-footer"),o.qZA()())},directives:[Jr,Te.lC,Zn],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:80%;margin:64px auto 0}@media only screen and (max-width: 744px){.content[_ngcontent-%COMP%]{width:100%}}"]}),k})();var br=C(5928);let Vi=(()=>{class k{}return k.\u0275fac=function(m){return new(m||k)},k.\u0275mod=o.oAB({type:k,bootstrap:[bo]}),k.\u0275inj=o.cJS({providers:[Ne.n,br.h],imports:[[c.b2,ke,pe.JF,ur,Pe.PW,Et]]}),k})();C(2340).N.production&&(0,o.G48)(),c.q6().bootstrapModule(Vi).catch(k=>console.log(k))},1135:(qe,ye,C)=>{C.d(ye,{X:()=>o});var c=C(7579);class o extends c.x{constructor(Y){super(),this._value=Y}get value(){return this.getValue()}_subscribe(Y){const ce=super._subscribe(Y);return!ce.closed&&Y.next(this._value),ce}getValue(){const{hasError:Y,thrownError:ce,_value:q}=this;if(Y)throw ce;return this._throwIfClosed(),q}next(Y){super.next(this._value=Y)}}},8306:(qe,ye,C)=>{C.d(ye,{y:()=>te});var c=C(930),o=C(727),g=C(8822),Y=C(4671);var De=C(2416),Ce=C(576),ue=C(2806);let te=(()=>{class le{constructor(Be){Be&&(this._subscribe=Be)}lift(Be){const Z=new le;return Z.source=this,Z.operator=Be,Z}subscribe(Be,Z,et){const Ye=function X(le){return le&&le instanceof c.Lv||function de(le){return le&&(0,Ce.m)(le.next)&&(0,Ce.m)(le.error)&&(0,Ce.m)(le.complete)}(le)&&(0,o.Nn)(le)}(Be)?Be:new c.Hp(Be,Z,et);return(0,ue.x)(()=>{const{operator:Qe,source:me}=this;Ye.add(Qe?Qe.call(Ye,me):me?this._subscribe(Ye):this._trySubscribe(Ye))}),Ye}_trySubscribe(Be){try{return this._subscribe(Be)}catch(Z){Be.error(Z)}}forEach(Be,Z){return new(Z=se(Z))((et,Ye)=>{const Qe=new c.Hp({next:me=>{try{Be(me)}catch(z){Ye(z),Qe.unsubscribe()}},error:Ye,complete:et});this.subscribe(Qe)})}_subscribe(Be){var Z;return null===(Z=this.source)||void 0===Z?void 0:Z.subscribe(Be)}[g.L](){return this}pipe(...Be){return function q(le){return 0===le.length?Y.y:1===le.length?le[0]:function(Be){return le.reduce((Z,et)=>et(Z),Be)}}(Be)(this)}toPromise(Be){return new(Be=se(Be))((Z,et)=>{let Ye;this.subscribe(Qe=>Ye=Qe,Qe=>et(Qe),()=>Z(Ye))})}}return le.create=ke=>new le(ke),le})();function se(le){var ke;return null!==(ke=null!=le?le:De.v.Promise)&&void 0!==ke?ke:Promise}},7579:(qe,ye,C)=>{C.d(ye,{x:()=>De});var c=C(8306),o=C(727);const Y=(0,C(3888).d)(ue=>function(){ue(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ce=C(8737),q=C(2806);let De=(()=>{class ue extends c.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(se){const de=new Ce(this,this);return de.operator=se,de}_throwIfClosed(){if(this.closed)throw new Y}next(se){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const de=this.observers.slice();for(const X of de)X.next(se)}})}error(se){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=se;const{observers:de}=this;for(;de.length;)de.shift().error(se)}})}complete(){(0,q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:se}=this;for(;se.length;)se.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var se;return(null===(se=this.observers)||void 0===se?void 0:se.length)>0}_trySubscribe(se){return this._throwIfClosed(),super._trySubscribe(se)}_subscribe(se){return this._throwIfClosed(),this._checkFinalizedStatuses(se),this._innerSubscribe(se)}_innerSubscribe(se){const{hasError:de,isStopped:X,observers:le}=this;return de||X?o.Lc:(le.push(se),new o.w0(()=>(0,ce.P)(le,se)))}_checkFinalizedStatuses(se){const{hasError:de,thrownError:X,isStopped:le}=this;de?se.error(X):le&&se.complete()}asObservable(){const se=new c.y;return se.source=this,se}}return ue.create=(te,se)=>new Ce(te,se),ue})();class Ce extends De{constructor(te,se){super(),this.destination=te,this.source=se}next(te){var se,de;null===(de=null===(se=this.destination)||void 0===se?void 0:se.next)||void 0===de||de.call(se,te)}error(te){var se,de;null===(de=null===(se=this.destination)||void 0===se?void 0:se.error)||void 0===de||de.call(se,te)}complete(){var te,se;null===(se=null===(te=this.destination)||void 0===te?void 0:te.complete)||void 0===se||se.call(te)}_subscribe(te){var se,de;return null!==(de=null===(se=this.source)||void 0===se?void 0:se.subscribe(te))&&void 0!==de?de:o.Lc}}},930:(qe,ye,C)=>{C.d(ye,{Hp:()=>Be,Lv:()=>de});var c=C(576),o=C(727),g=C(2416),Y=C(7849),ce=C(5032);const q=ue("C",void 0,void 0);function ue(me,z,Q){return{kind:me,value:z,error:Q}}var te=C(3410),se=C(2806);class de extends o.w0{constructor(z){super(),this.isStopped=!1,z?(this.destination=z,(0,o.Nn)(z)&&z.add(this)):this.destination=Qe}static create(z,Q,pe){return new Be(z,Q,pe)}next(z){this.isStopped?Ye(function Ce(me){return ue("N",me,void 0)}(z),this):this._next(z)}error(z){this.isStopped?Ye(function De(me){return ue("E",void 0,me)}(z),this):(this.isStopped=!0,this._error(z))}complete(){this.isStopped?Ye(q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(z){this.destination.next(z)}_error(z){try{this.destination.error(z)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const X=Function.prototype.bind;function le(me,z){return X.call(me,z)}class ke{constructor(z){this.partialObserver=z}next(z){const{partialObserver:Q}=this;if(Q.next)try{Q.next(z)}catch(pe){Z(pe)}}error(z){const{partialObserver:Q}=this;if(Q.error)try{Q.error(z)}catch(pe){Z(pe)}else Z(z)}complete(){const{partialObserver:z}=this;if(z.complete)try{z.complete()}catch(Q){Z(Q)}}}class Be extends de{constructor(z,Q,pe){let Te;if(super(),(0,c.m)(z)||!z)Te={next:null!=z?z:void 0,error:null!=Q?Q:void 0,complete:null!=pe?pe:void 0};else{let Ne;this&&g.v.useDeprecatedNextContext?(Ne=Object.create(z),Ne.unsubscribe=()=>this.unsubscribe(),Te={next:z.next&&le(z.next,Ne),error:z.error&&le(z.error,Ne),complete:z.complete&&le(z.complete,Ne)}):Te=z}this.destination=new ke(Te)}}function Z(me){g.v.useDeprecatedSynchronousErrorHandling?(0,se.O)(me):(0,Y.h)(me)}function Ye(me,z){const{onStoppedNotification:Q}=g.v;Q&&te.z.setTimeout(()=>Q(me,z))}const Qe={closed:!0,next:ce.Z,error:function et(me){throw me},complete:ce.Z}},727:(qe,ye,C)=>{C.d(ye,{Lc:()=>q,w0:()=>ce,Nn:()=>De});var c=C(576);const g=(0,C(3888).d)(ue=>function(se){ue(this),this.message=se?`${se.length} errors occurred during unsubscription:\n${se.map((de,X)=>`${X+1}) ${de.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=se});var Y=C(8737);class ce{constructor(te){this.initialTeardown=te,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let te;if(!this.closed){this.closed=!0;const{_parentage:se}=this;if(se)if(this._parentage=null,Array.isArray(se))for(const le of se)le.remove(this);else se.remove(this);const{initialTeardown:de}=this;if((0,c.m)(de))try{de()}catch(le){te=le instanceof g?le.errors:[le]}const{_teardowns:X}=this;if(X){this._teardowns=null;for(const le of X)try{Ce(le)}catch(ke){te=null!=te?te:[],ke instanceof g?te=[...te,...ke.errors]:te.push(ke)}}if(te)throw new g(te)}}add(te){var se;if(te&&te!==this)if(this.closed)Ce(te);else{if(te instanceof ce){if(te.closed||te._hasParent(this))return;te._addParent(this)}(this._teardowns=null!==(se=this._teardowns)&&void 0!==se?se:[]).push(te)}}_hasParent(te){const{_parentage:se}=this;return se===te||Array.isArray(se)&&se.includes(te)}_addParent(te){const{_parentage:se}=this;this._parentage=Array.isArray(se)?(se.push(te),se):se?[se,te]:te}_removeParent(te){const{_parentage:se}=this;se===te?this._parentage=null:Array.isArray(se)&&(0,Y.P)(se,te)}remove(te){const{_teardowns:se}=this;se&&(0,Y.P)(se,te),te instanceof ce&&te._removeParent(this)}}ce.EMPTY=(()=>{const ue=new ce;return ue.closed=!0,ue})();const q=ce.EMPTY;function De(ue){return ue instanceof ce||ue&&"closed"in ue&&(0,c.m)(ue.remove)&&(0,c.m)(ue.add)&&(0,c.m)(ue.unsubscribe)}function Ce(ue){(0,c.m)(ue)?ue():ue.unsubscribe()}},2416:(qe,ye,C)=>{C.d(ye,{v:()=>c});const c={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(qe,ye,C)=>{C.d(ye,{a:()=>te});var c=C(8306),o=C(4742),g=C(2076),Y=C(4671),ce=C(3268),q=C(3269),De=C(1810),Ce=C(5403),ue=C(9672);function te(...X){const le=(0,q.yG)(X),ke=(0,q.jO)(X),{args:Be,keys:Z}=(0,o.D)(X);if(0===Be.length)return(0,g.D)([],le);const et=new c.y(function se(X,le,ke=Y.y){return Be=>{de(le,()=>{const{length:Z}=X,et=new Array(Z);let Ye=Z,Qe=Z;for(let me=0;me{const z=(0,g.D)(X[me],le);let Q=!1;z.subscribe((0,Ce.x)(Be,pe=>{et[me]=pe,Q||(Q=!0,Qe--),Qe||Be.next(ke(et.slice()))},()=>{--Ye||Be.complete()}))},Be)},Be)}}(Be,le,Z?Ye=>(0,De.n)(Z,Ye):Y.y));return ke?et.pipe((0,ce.Z)(ke)):et}function de(X,le,ke){X?(0,ue.f)(ke,X,le):le()}},7272:(qe,ye,C)=>{C.d(ye,{z:()=>ce});var c=C(8189),g=C(3269),Y=C(2076);function ce(...q){return function o(){return(0,c.J)(1)}()((0,Y.D)(q,(0,g.yG)(q)))}},9770:(qe,ye,C)=>{C.d(ye,{P:()=>g});var c=C(8306),o=C(8421);function g(Y){return new c.y(ce=>{(0,o.Xf)(Y()).subscribe(ce)})}},515:(qe,ye,C)=>{C.d(ye,{E:()=>o});const o=new(C(8306).y)(ce=>ce.complete())},2076:(qe,ye,C)=>{C.d(ye,{D:()=>pe});var c=C(8421),o=C(9672),g=C(4482),Y=C(5403);function ce(Te,Ne=0){return(0,g.e)((ve,Me)=>{ve.subscribe((0,Y.x)(Me,xe=>(0,o.f)(Me,Te,()=>Me.next(xe),Ne),()=>(0,o.f)(Me,Te,()=>Me.complete(),Ne),xe=>(0,o.f)(Me,Te,()=>Me.error(xe),Ne)))})}function q(Te,Ne=0){return(0,g.e)((ve,Me)=>{Me.add(Te.schedule(()=>ve.subscribe(Me),Ne))})}var ue=C(8306),se=C(2202),de=C(576);function le(Te,Ne){if(!Te)throw new Error("Iterable cannot be null");return new ue.y(ve=>{(0,o.f)(ve,Ne,()=>{const Me=Te[Symbol.asyncIterator]();(0,o.f)(ve,Ne,()=>{Me.next().then(xe=>{xe.done?ve.complete():ve.next(xe.value)})},0,!0)})})}var ke=C(3670),Be=C(8239),Z=C(1144),et=C(6495),Ye=C(2206),Qe=C(4532),me=C(3260);function pe(Te,Ne){return Ne?function Q(Te,Ne){if(null!=Te){if((0,ke.c)(Te))return function De(Te,Ne){return(0,c.Xf)(Te).pipe(q(Ne),ce(Ne))}(Te,Ne);if((0,Z.z)(Te))return function te(Te,Ne){return new ue.y(ve=>{let Me=0;return Ne.schedule(function(){Me===Te.length?ve.complete():(ve.next(Te[Me++]),ve.closed||this.schedule())})})}(Te,Ne);if((0,Be.t)(Te))return function Ce(Te,Ne){return(0,c.Xf)(Te).pipe(q(Ne),ce(Ne))}(Te,Ne);if((0,Ye.D)(Te))return le(Te,Ne);if((0,et.T)(Te))return function X(Te,Ne){return new ue.y(ve=>{let Me;return(0,o.f)(ve,Ne,()=>{Me=Te[se.h](),(0,o.f)(ve,Ne,()=>{let xe,Ae;try{({value:xe,done:Ae}=Me.next())}catch(tt){return void ve.error(tt)}Ae?ve.complete():ve.next(xe)},0,!0)}),()=>(0,de.m)(null==Me?void 0:Me.return)&&Me.return()})}(Te,Ne);if((0,me.L)(Te))return function z(Te,Ne){return le((0,me.Q)(Te),Ne)}(Te,Ne)}throw(0,Qe.z)(Te)}(Te,Ne):(0,c.Xf)(Te)}},4968:(qe,ye,C)=>{C.d(ye,{R:()=>te});var c=C(8421),o=C(8306),g=C(5577),Y=C(1144),ce=C(576),q=C(3268);const De=["addListener","removeListener"],Ce=["addEventListener","removeEventListener"],ue=["on","off"];function te(ke,Be,Z,et){if((0,ce.m)(Z)&&(et=Z,Z=void 0),et)return te(ke,Be,Z).pipe((0,q.Z)(et));const[Ye,Qe]=function le(ke){return(0,ce.m)(ke.addEventListener)&&(0,ce.m)(ke.removeEventListener)}(ke)?Ce.map(me=>z=>ke[me](Be,z,Z)):function de(ke){return(0,ce.m)(ke.addListener)&&(0,ce.m)(ke.removeListener)}(ke)?De.map(se(ke,Be)):function X(ke){return(0,ce.m)(ke.on)&&(0,ce.m)(ke.off)}(ke)?ue.map(se(ke,Be)):[];if(!Ye&&(0,Y.z)(ke))return(0,g.z)(me=>te(me,Be,Z))((0,c.Xf)(ke));if(!Ye)throw new TypeError("Invalid event target");return new o.y(me=>{const z=(...Q)=>me.next(1Qe(z)})}function se(ke,Be){return Z=>et=>ke[Z](Be,et)}},8421:(qe,ye,C)=>{C.d(ye,{Xf:()=>X});var c=C(655),o=C(1144),g=C(8239),Y=C(8306),ce=C(3670),q=C(2206),De=C(4532),Ce=C(6495),ue=C(3260),te=C(576),se=C(7849),de=C(8822);function X(me){if(me instanceof Y.y)return me;if(null!=me){if((0,ce.c)(me))return function le(me){return new Y.y(z=>{const Q=me[de.L]();if((0,te.m)(Q.subscribe))return Q.subscribe(z);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(me);if((0,o.z)(me))return function ke(me){return new Y.y(z=>{for(let Q=0;Q{me.then(Q=>{z.closed||(z.next(Q),z.complete())},Q=>z.error(Q)).then(null,se.h)})}(me);if((0,q.D)(me))return et(me);if((0,Ce.T)(me))return function Z(me){return new Y.y(z=>{for(const Q of me)if(z.next(Q),z.closed)return;z.complete()})}(me);if((0,ue.L)(me))return function Ye(me){return et((0,ue.Q)(me))}(me)}throw(0,De.z)(me)}function et(me){return new Y.y(z=>{(function Qe(me,z){var Q,pe,Te,Ne;return(0,c.mG)(this,void 0,void 0,function*(){try{for(Q=(0,c.KL)(me);!(pe=yield Q.next()).done;)if(z.next(pe.value),z.closed)return}catch(ve){Te={error:ve}}finally{try{pe&&!pe.done&&(Ne=Q.return)&&(yield Ne.call(Q))}finally{if(Te)throw Te.error}}z.complete()})})(me,z).catch(Q=>z.error(Q))})}},6451:(qe,ye,C)=>{C.d(ye,{T:()=>q});var c=C(8189),o=C(8421),g=C(515),Y=C(3269),ce=C(2076);function q(...De){const Ce=(0,Y.yG)(De),ue=(0,Y._6)(De,1/0),te=De;return te.length?1===te.length?(0,o.Xf)(te[0]):(0,c.J)(ue)((0,ce.D)(te,Ce)):g.E}},9646:(qe,ye,C)=>{C.d(ye,{of:()=>g});var c=C(3269),o=C(2076);function g(...Y){const ce=(0,c.yG)(Y);return(0,o.D)(Y,ce)}},5963:(qe,ye,C)=>{C.d(ye,{H:()=>ce});var c=C(8306),o=C(4986),g=C(3532);function ce(q=0,De,Ce=o.P){let ue=-1;return null!=De&&((0,g.K)(De)?Ce=De:ue=De),new c.y(te=>{let se=function Y(q){return q instanceof Date&&!isNaN(q)}(q)?+q-Ce.now():q;se<0&&(se=0);let de=0;return Ce.schedule(function(){te.closed||(te.next(de++),0<=ue?this.schedule(void 0,ue):te.complete())},se)})}},5403:(qe,ye,C)=>{C.d(ye,{x:()=>o});var c=C(930);function o(Y,ce,q,De,Ce){return new g(Y,ce,q,De,Ce)}class g extends c.Lv{constructor(ce,q,De,Ce,ue,te){super(ce),this.onFinalize=ue,this.shouldUnsubscribe=te,this._next=q?function(se){try{q(se)}catch(de){ce.error(de)}}:super._next,this._error=Ce?function(se){try{Ce(se)}catch(de){ce.error(de)}finally{this.unsubscribe()}}:super._error,this._complete=De?function(){try{De()}catch(se){ce.error(se)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var ce;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:q}=this;super.unsubscribe(),!q&&(null===(ce=this.onFinalize)||void 0===ce||ce.call(this))}}}},4351:(qe,ye,C)=>{C.d(ye,{b:()=>g});var c=C(5577),o=C(576);function g(Y,ce){return(0,o.m)(ce)?(0,c.z)(Y,ce,1):(0,c.z)(Y,1)}},8372:(qe,ye,C)=>{C.d(ye,{b:()=>Y});var c=C(4986),o=C(4482),g=C(5403);function Y(ce,q=c.z){return(0,o.e)((De,Ce)=>{let ue=null,te=null,se=null;const de=()=>{if(ue){ue.unsubscribe(),ue=null;const le=te;te=null,Ce.next(le)}};function X(){const le=se+ce,ke=q.now();if(ke{te=le,se=q.now(),ue||(ue=q.schedule(X,ce),Ce.add(ue))},()=>{de(),Ce.complete()},void 0,()=>{te=ue=null}))})}},1884:(qe,ye,C)=>{C.d(ye,{x:()=>Y});var c=C(4671),o=C(4482),g=C(5403);function Y(q,De=c.y){return q=null!=q?q:ce,(0,o.e)((Ce,ue)=>{let te,se=!0;Ce.subscribe((0,g.x)(ue,de=>{const X=De(de);(se||!q(te,X))&&(se=!1,te=X,ue.next(de))}))})}function ce(q,De){return q===De}},9300:(qe,ye,C)=>{C.d(ye,{h:()=>g});var c=C(4482),o=C(5403);function g(Y,ce){return(0,c.e)((q,De)=>{let Ce=0;q.subscribe((0,o.x)(De,ue=>Y.call(ce,ue,Ce++)&&De.next(ue)))})}},4004:(qe,ye,C)=>{C.d(ye,{U:()=>g});var c=C(4482),o=C(5403);function g(Y,ce){return(0,c.e)((q,De)=>{let Ce=0;q.subscribe((0,o.x)(De,ue=>{De.next(Y.call(ce,ue,Ce++))}))})}},8189:(qe,ye,C)=>{C.d(ye,{J:()=>g});var c=C(5577),o=C(4671);function g(Y=1/0){return(0,c.z)(o.y,Y)}},5577:(qe,ye,C)=>{C.d(ye,{z:()=>Ce});var c=C(4004),o=C(8421),g=C(4482),Y=C(9672),ce=C(5403),De=C(576);function Ce(ue,te,se=1/0){return(0,De.m)(te)?Ce((de,X)=>(0,c.U)((le,ke)=>te(de,le,X,ke))((0,o.Xf)(ue(de,X))),se):("number"==typeof te&&(se=te),(0,g.e)((de,X)=>function q(ue,te,se,de,X,le,ke,Be){const Z=[];let et=0,Ye=0,Qe=!1;const me=()=>{Qe&&!Z.length&&!et&&te.complete()},z=pe=>et{le&&te.next(pe),et++;let Te=!1;(0,o.Xf)(se(pe,Ye++)).subscribe((0,ce.x)(te,Ne=>{null==X||X(Ne),le?z(Ne):te.next(Ne)},()=>{Te=!0},void 0,()=>{if(Te)try{for(et--;Z.length&&etQ(Ne)):Q(Ne)}me()}catch(Ne){te.error(Ne)}}))};return ue.subscribe((0,ce.x)(te,z,()=>{Qe=!0,me()})),()=>{null==Be||Be()}}(de,X,ue,se)))}},5684:(qe,ye,C)=>{C.d(ye,{T:()=>o});var c=C(9300);function o(g){return(0,c.h)((Y,ce)=>g<=ce)}},8675:(qe,ye,C)=>{C.d(ye,{O:()=>Y});var c=C(7272),o=C(3269),g=C(4482);function Y(...ce){const q=(0,o.yG)(ce);return(0,g.e)((De,Ce)=>{(q?(0,c.z)(ce,De,q):(0,c.z)(ce,De)).subscribe(Ce)})}},3900:(qe,ye,C)=>{C.d(ye,{w:()=>Y});var c=C(8421),o=C(4482),g=C(5403);function Y(ce,q){return(0,o.e)((De,Ce)=>{let ue=null,te=0,se=!1;const de=()=>se&&!ue&&Ce.complete();De.subscribe((0,g.x)(Ce,X=>{null==ue||ue.unsubscribe();let le=0;const ke=te++;(0,c.Xf)(ce(X,ke)).subscribe(ue=(0,g.x)(Ce,Be=>Ce.next(q?q(X,Be,ke,le++):Be),()=>{ue=null,de()}))},()=>{se=!0,de()}))})}},5698:(qe,ye,C)=>{C.d(ye,{q:()=>Y});var c=C(515),o=C(4482),g=C(5403);function Y(ce){return ce<=0?()=>c.E:(0,o.e)((q,De)=>{let Ce=0;q.subscribe((0,g.x)(De,ue=>{++Ce<=ce&&(De.next(ue),ce<=Ce&&De.complete())}))})}},2722:(qe,ye,C)=>{C.d(ye,{R:()=>ce});var c=C(4482),o=C(5403),g=C(8421),Y=C(5032);function ce(q){return(0,c.e)((De,Ce)=>{(0,g.Xf)(q).subscribe((0,o.x)(Ce,()=>Ce.complete(),Y.Z)),!Ce.closed&&De.subscribe(Ce)})}},8505:(qe,ye,C)=>{C.d(ye,{b:()=>ce});var c=C(576),o=C(4482),g=C(5403),Y=C(4671);function ce(q,De,Ce){const ue=(0,c.m)(q)||De||Ce?{next:q,error:De,complete:Ce}:q;return ue?(0,o.e)((te,se)=>{var de;null===(de=ue.subscribe)||void 0===de||de.call(ue);let X=!0;te.subscribe((0,g.x)(se,le=>{var ke;null===(ke=ue.next)||void 0===ke||ke.call(ue,le),se.next(le)},()=>{var le;X=!1,null===(le=ue.complete)||void 0===le||le.call(ue),se.complete()},le=>{var ke;X=!1,null===(ke=ue.error)||void 0===ke||ke.call(ue,le),se.error(le)},()=>{var le,ke;X&&(null===(le=ue.unsubscribe)||void 0===le||le.call(ue)),null===(ke=ue.finalize)||void 0===ke||ke.call(ue)}))}):Y.y}},4408:(qe,ye,C)=>{C.d(ye,{o:()=>ce});var c=C(727);class o extends c.w0{constructor(De,Ce){super()}schedule(De,Ce=0){return this}}const g={setInterval(...q){const{delegate:De}=g;return((null==De?void 0:De.setInterval)||setInterval)(...q)},clearInterval(q){const{delegate:De}=g;return((null==De?void 0:De.clearInterval)||clearInterval)(q)},delegate:void 0};var Y=C(8737);class ce extends o{constructor(De,Ce){super(De,Ce),this.scheduler=De,this.work=Ce,this.pending=!1}schedule(De,Ce=0){if(this.closed)return this;this.state=De;const ue=this.id,te=this.scheduler;return null!=ue&&(this.id=this.recycleAsyncId(te,ue,Ce)),this.pending=!0,this.delay=Ce,this.id=this.id||this.requestAsyncId(te,this.id,Ce),this}requestAsyncId(De,Ce,ue=0){return g.setInterval(De.flush.bind(De,this),ue)}recycleAsyncId(De,Ce,ue=0){if(null!=ue&&this.delay===ue&&!1===this.pending)return Ce;g.clearInterval(Ce)}execute(De,Ce){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ue=this._execute(De,Ce);if(ue)return ue;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(De,Ce){let te,ue=!1;try{this.work(De)}catch(se){ue=!0,te=se||new Error("Scheduled action threw falsy error")}if(ue)return this.unsubscribe(),te}unsubscribe(){if(!this.closed){const{id:De,scheduler:Ce}=this,{actions:ue}=Ce;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Y.P)(ue,this),null!=De&&(this.id=this.recycleAsyncId(Ce,De,null)),this.delay=null,super.unsubscribe()}}}},640:(qe,ye,C)=>{C.d(ye,{v:()=>g});const c={now:()=>(c.delegate||Date).now(),delegate:void 0};class o{constructor(ce,q=o.now){this.schedulerActionCtor=ce,this.now=q}schedule(ce,q=0,De){return new this.schedulerActionCtor(this,ce).schedule(De,q)}}o.now=c.now;class g extends o{constructor(ce,q=o.now){super(ce,q),this.actions=[],this._active=!1,this._scheduled=void 0}flush(ce){const{actions:q}=this;if(this._active)return void q.push(ce);let De;this._active=!0;do{if(De=ce.execute(ce.state,ce.delay))break}while(ce=q.shift());if(this._active=!1,De){for(;ce=q.shift();)ce.unsubscribe();throw De}}}},3101:(qe,ye,C)=>{C.d(ye,{E:()=>le});var c=C(4408);let g,o=1;const Y={};function ce(Be){return Be in Y&&(delete Y[Be],!0)}const q={setImmediate(Be){const Z=o++;return Y[Z]=!0,g||(g=Promise.resolve()),g.then(()=>ce(Z)&&Be()),Z},clearImmediate(Be){ce(Be)}},{setImmediate:Ce,clearImmediate:ue}=q,te={setImmediate(...Be){const{delegate:Z}=te;return((null==Z?void 0:Z.setImmediate)||Ce)(...Be)},clearImmediate(Be){const{delegate:Z}=te;return((null==Z?void 0:Z.clearImmediate)||ue)(Be)},delegate:void 0};var de=C(640);const le=new class X extends de.v{flush(Z){this._active=!0;const et=this._scheduled;this._scheduled=void 0;const{actions:Ye}=this;let Qe;Z=Z||Ye.shift();do{if(Qe=Z.execute(Z.state,Z.delay))break}while((Z=Ye[0])&&Z.id===et&&Ye.shift());if(this._active=!1,Qe){for(;(Z=Ye[0])&&Z.id===et&&Ye.shift();)Z.unsubscribe();throw Qe}}}(class se extends c.o{constructor(Z,et){super(Z,et),this.scheduler=Z,this.work=et}requestAsyncId(Z,et,Ye=0){return null!==Ye&&Ye>0?super.requestAsyncId(Z,et,Ye):(Z.actions.push(this),Z._scheduled||(Z._scheduled=te.setImmediate(Z.flush.bind(Z,void 0))))}recycleAsyncId(Z,et,Ye=0){if(null!=Ye&&Ye>0||null==Ye&&this.delay>0)return super.recycleAsyncId(Z,et,Ye);Z.actions.some(Qe=>Qe.id===et)||(te.clearImmediate(et),Z._scheduled=void 0)}})},4986:(qe,ye,C)=>{C.d(ye,{z:()=>g,P:()=>Y});var c=C(4408);const g=new(C(640).v)(c.o),Y=g},3410:(qe,ye,C)=>{C.d(ye,{z:()=>c});const c={setTimeout(...o){const{delegate:g}=c;return((null==g?void 0:g.setTimeout)||setTimeout)(...o)},clearTimeout(o){const{delegate:g}=c;return((null==g?void 0:g.clearTimeout)||clearTimeout)(o)},delegate:void 0}},2202:(qe,ye,C)=>{C.d(ye,{h:()=>o});const o=function c(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(qe,ye,C)=>{C.d(ye,{L:()=>c});const c="function"==typeof Symbol&&Symbol.observable||"@@observable"},3269:(qe,ye,C)=>{C.d(ye,{jO:()=>Y,yG:()=>ce,_6:()=>q});var c=C(576),o=C(3532);function g(De){return De[De.length-1]}function Y(De){return(0,c.m)(g(De))?De.pop():void 0}function ce(De){return(0,o.K)(g(De))?De.pop():void 0}function q(De,Ce){return"number"==typeof g(De)?De.pop():Ce}},4742:(qe,ye,C)=>{C.d(ye,{D:()=>ce});const{isArray:c}=Array,{getPrototypeOf:o,prototype:g,keys:Y}=Object;function ce(De){if(1===De.length){const Ce=De[0];if(c(Ce))return{args:Ce,keys:null};if(function q(De){return De&&"object"==typeof De&&o(De)===g}(Ce)){const ue=Y(Ce);return{args:ue.map(te=>Ce[te]),keys:ue}}}return{args:De,keys:null}}},8737:(qe,ye,C)=>{function c(o,g){if(o){const Y=o.indexOf(g);0<=Y&&o.splice(Y,1)}}C.d(ye,{P:()=>c})},3888:(qe,ye,C)=>{function c(o){const Y=o(ce=>{Error.call(ce),ce.stack=(new Error).stack});return Y.prototype=Object.create(Error.prototype),Y.prototype.constructor=Y,Y}C.d(ye,{d:()=>c})},1810:(qe,ye,C)=>{function c(o,g){return o.reduce((Y,ce,q)=>(Y[ce]=g[q],Y),{})}C.d(ye,{n:()=>c})},2806:(qe,ye,C)=>{C.d(ye,{x:()=>g,O:()=>Y});var c=C(2416);let o=null;function g(ce){if(c.v.useDeprecatedSynchronousErrorHandling){const q=!o;if(q&&(o={errorThrown:!1,error:null}),ce(),q){const{errorThrown:De,error:Ce}=o;if(o=null,De)throw Ce}}else ce()}function Y(ce){c.v.useDeprecatedSynchronousErrorHandling&&o&&(o.errorThrown=!0,o.error=ce)}},9672:(qe,ye,C)=>{function c(o,g,Y,ce=0,q=!1){const De=g.schedule(function(){Y(),q?o.add(this.schedule(null,ce)):this.unsubscribe()},ce);if(o.add(De),!q)return De}C.d(ye,{f:()=>c})},4671:(qe,ye,C)=>{function c(o){return o}C.d(ye,{y:()=>c})},1144:(qe,ye,C)=>{C.d(ye,{z:()=>c});const c=o=>o&&"number"==typeof o.length&&"function"!=typeof o},2206:(qe,ye,C)=>{C.d(ye,{D:()=>o});var c=C(576);function o(g){return Symbol.asyncIterator&&(0,c.m)(null==g?void 0:g[Symbol.asyncIterator])}},576:(qe,ye,C)=>{function c(o){return"function"==typeof o}C.d(ye,{m:()=>c})},3670:(qe,ye,C)=>{C.d(ye,{c:()=>g});var c=C(8822),o=C(576);function g(Y){return(0,o.m)(Y[c.L])}},6495:(qe,ye,C)=>{C.d(ye,{T:()=>g});var c=C(2202),o=C(576);function g(Y){return(0,o.m)(null==Y?void 0:Y[c.h])}},8239:(qe,ye,C)=>{C.d(ye,{t:()=>o});var c=C(576);function o(g){return(0,c.m)(null==g?void 0:g.then)}},3260:(qe,ye,C)=>{C.d(ye,{Q:()=>g,L:()=>Y});var c=C(655),o=C(576);function g(ce){return(0,c.FC)(this,arguments,function*(){const De=ce.getReader();try{for(;;){const{value:Ce,done:ue}=yield(0,c.qq)(De.read());if(ue)return yield(0,c.qq)(void 0);yield yield(0,c.qq)(Ce)}}finally{De.releaseLock()}})}function Y(ce){return(0,o.m)(null==ce?void 0:ce.getReader)}},3532:(qe,ye,C)=>{C.d(ye,{K:()=>o});var c=C(576);function o(g){return g&&(0,c.m)(g.schedule)}},4482:(qe,ye,C)=>{C.d(ye,{A:()=>o,e:()=>g});var c=C(576);function o(Y){return(0,c.m)(null==Y?void 0:Y.lift)}function g(Y){return ce=>{if(o(ce))return ce.lift(function(q){try{return Y(q,this)}catch(De){this.error(De)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(qe,ye,C)=>{C.d(ye,{Z:()=>Y});var c=C(4004);const{isArray:o}=Array;function Y(ce){return(0,c.U)(q=>function g(ce,q){return o(q)?ce(...q):ce(q)}(ce,q))}},5032:(qe,ye,C)=>{function c(){}C.d(ye,{Z:()=>c})},7849:(qe,ye,C)=>{C.d(ye,{h:()=>g});var c=C(2416),o=C(3410);function g(Y){o.z.setTimeout(()=>{const{onUnhandledError:ce}=c.v;if(!ce)throw Y;ce(Y)})}},4532:(qe,ye,C)=>{function c(o){return new TypeError(`You provided ${null!==o&&"object"==typeof o?"an invalid object":`'${o}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(ye,{z:()=>c})},655:(qe,ye,C)=>{function Ce(ve,Me,xe,Ae){return new(xe||(xe=Promise))(function(Fe,Ct){function mt(Rt){try{yt(Ae.next(Rt))}catch(Wt){Ct(Wt)}}function Jt(Rt){try{yt(Ae.throw(Rt))}catch(Wt){Ct(Wt)}}function yt(Rt){Rt.done?Fe(Rt.value):function tt(Fe){return Fe instanceof xe?Fe:new xe(function(Ct){Ct(Fe)})}(Rt.value).then(mt,Jt)}yt((Ae=Ae.apply(ve,Me||[])).next())})}function Z(ve){return this instanceof Z?(this.v=ve,this):new Z(ve)}function et(ve,Me,xe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var tt,Ae=xe.apply(ve,Me||[]),Fe=[];return tt={},Ct("next"),Ct("throw"),Ct("return"),tt[Symbol.asyncIterator]=function(){return this},tt;function Ct(Pt){Ae[Pt]&&(tt[Pt]=function(mn){return new Promise(function(Ut,xt){Fe.push([Pt,mn,Ut,xt])>1||mt(Pt,mn)})})}function mt(Pt,mn){try{!function Jt(Pt){Pt.value instanceof Z?Promise.resolve(Pt.value.v).then(yt,Rt):Wt(Fe[0][2],Pt)}(Ae[Pt](mn))}catch(Ut){Wt(Fe[0][3],Ut)}}function yt(Pt){mt("next",Pt)}function Rt(Pt){mt("throw",Pt)}function Wt(Pt,mn){Pt(mn),Fe.shift(),Fe.length&&mt(Fe[0][0],Fe[0][1])}}function Qe(ve){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var xe,Me=ve[Symbol.asyncIterator];return Me?Me.call(ve):(ve=function de(ve){var Me="function"==typeof Symbol&&Symbol.iterator,xe=Me&&ve[Me],Ae=0;if(xe)return xe.call(ve);if(ve&&"number"==typeof ve.length)return{next:function(){return ve&&Ae>=ve.length&&(ve=void 0),{value:ve&&ve[Ae++],done:!ve}}};throw new TypeError(Me?"Object is not iterable.":"Symbol.iterator is not defined.")}(ve),xe={},Ae("next"),Ae("throw"),Ae("return"),xe[Symbol.asyncIterator]=function(){return this},xe);function Ae(Fe){xe[Fe]=ve[Fe]&&function(Ct){return new Promise(function(mt,Jt){!function tt(Fe,Ct,mt,Jt){Promise.resolve(Jt).then(function(yt){Fe({value:yt,done:mt})},Ct)}(mt,Jt,(Ct=ve[Fe](Ct)).done,Ct.value)})}}}C.d(ye,{mG:()=>Ce,qq:()=>Z,FC:()=>et,KL:()=>Qe})},1777:(qe,ye,C)=>{C.d(ye,{l3:()=>g,_j:()=>c,LC:()=>o,ZN:()=>et,jt:()=>ce,pV:()=>X,F4:()=>te,IO:()=>ke,vP:()=>De,SB:()=>ue,oB:()=>Ce,eR:()=>se,X$:()=>Y,ZE:()=>Ye,k1:()=>Qe});class c{}class o{}const g="*";function Y(me,z){return{type:7,name:me,definitions:z,options:{}}}function ce(me,z=null){return{type:4,styles:z,timings:me}}function De(me,z=null){return{type:2,steps:me,options:z}}function Ce(me){return{type:6,styles:me,offset:null}}function ue(me,z,Q){return{type:0,name:me,styles:z,options:Q}}function te(me){return{type:5,steps:me}}function se(me,z,Q=null){return{type:1,expr:me,animation:z,options:Q}}function X(me=null){return{type:9,options:me}}function ke(me,z,Q=null){return{type:11,selector:me,animation:z,options:Q}}function Z(me){Promise.resolve(null).then(me)}class et{constructor(z=0,Q=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=z+Q}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(z=>z()),this._onDoneFns=[])}onStart(z){this._onStartFns.push(z)}onDone(z){this._onDoneFns.push(z)}onDestroy(z){this._onDestroyFns.push(z)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Z(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(z=>z()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(z=>z()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(z){this._position=this.totalTime?z*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(z){const Q="start"==z?this._onStartFns:this._onDoneFns;Q.forEach(pe=>pe()),Q.length=0}}class Ye{constructor(z){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=z;let Q=0,pe=0,Te=0;const Ne=this.players.length;0==Ne?Z(()=>this._onFinish()):this.players.forEach(ve=>{ve.onDone(()=>{++Q==Ne&&this._onFinish()}),ve.onDestroy(()=>{++pe==Ne&&this._onDestroy()}),ve.onStart(()=>{++Te==Ne&&this._onStart()})}),this.totalTime=this.players.reduce((ve,Me)=>Math.max(ve,Me.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(z=>z()),this._onDoneFns=[])}init(){this.players.forEach(z=>z.init())}onStart(z){this._onStartFns.push(z)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(z=>z()),this._onStartFns=[])}onDone(z){this._onDoneFns.push(z)}onDestroy(z){this._onDestroyFns.push(z)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(z=>z.play())}pause(){this.players.forEach(z=>z.pause())}restart(){this.players.forEach(z=>z.restart())}finish(){this._onFinish(),this.players.forEach(z=>z.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(z=>z.destroy()),this._onDestroyFns.forEach(z=>z()),this._onDestroyFns=[])}reset(){this.players.forEach(z=>z.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(z){const Q=z*this.totalTime;this.players.forEach(pe=>{const Te=pe.totalTime?Math.min(1,Q/pe.totalTime):1;pe.setPosition(Te)})}getPosition(){const z=this.players.reduce((Q,pe)=>null===Q||pe.totalTime>Q.totalTime?pe:Q,null);return null!=z?z.getPosition():0}beforeDestroy(){this.players.forEach(z=>{z.beforeDestroy&&z.beforeDestroy()})}triggerCallback(z){const Q="start"==z?this._onStartFns:this._onDoneFns;Q.forEach(pe=>pe()),Q.length=0}}const Qe="!"},9950:(qe,ye,C)=>{C.d(ye,{rt:()=>we,s1:()=>tt,$s:()=>ve,Em:()=>Fe,tE:()=>nn,qV:()=>He,qm:()=>Le,ic:()=>mt,Kd:()=>ze,X6:()=>at,yG:()=>Pe});var c=C(9808),o=C(4893),g=C(925),Y=C(7579),ce=C(727),q=C(1135),De=C(9646),Ce=C(1159),ue=C(8505),te=C(8372),se=C(9300),de=C(4004),X=C(5698),le=C(5684),ke=C(1884),Be=C(2722),Z=C(3191),et=C(7144);function z(V,j){return(V.getAttribute(j)||"").match(/\S+/g)||[]}const pe="cdk-describedby-message",Te="cdk-describedby-host";let Ne=0,ve=(()=>{class V{constructor($,he){this._platform=he,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ne++,this._document=$}describe($,he,Se){if(!this._canBeDescribed($,he))return;const st=Me(he,Se);"string"!=typeof he?(xe(he),this._messageRegistry.set(st,{messageElement:he,referenceCount:0})):this._messageRegistry.has(st)||this._createMessageElement(he,Se),this._isElementDescribedByMessage($,st)||this._addMessageReference($,st)}removeDescription($,he,Se){var st;if(!he||!this._isElementNode($))return;const At=Me(he,Se);if(this._isElementDescribedByMessage($,At)&&this._removeMessageReference($,At),"string"==typeof he){const Zt=this._messageRegistry.get(At);Zt&&0===Zt.referenceCount&&this._deleteMessageElement(At)}0===(null===(st=this._messagesContainer)||void 0===st?void 0:st.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var $;const he=this._document.querySelectorAll(`[${Te}="${this._id}"]`);for(let Se=0;Se0!=Se.indexOf(pe));$.setAttribute("aria-describedby",he.join(" "))}_addMessageReference($,he){const Se=this._messageRegistry.get(he);(function Qe(V,j,$){const he=z(V,j);he.some(Se=>Se.trim()==$.trim())||(he.push($.trim()),V.setAttribute(j,he.join(" ")))})($,"aria-describedby",Se.messageElement.id),$.setAttribute(Te,this._id),Se.referenceCount++}_removeMessageReference($,he){const Se=this._messageRegistry.get(he);Se.referenceCount--,function me(V,j,$){const Se=z(V,j).filter(st=>st!=$.trim());Se.length?V.setAttribute(j,Se.join(" ")):V.removeAttribute(j)}($,"aria-describedby",Se.messageElement.id),$.removeAttribute(Te)}_isElementDescribedByMessage($,he){const Se=z($,"aria-describedby"),st=this._messageRegistry.get(he),At=st&&st.messageElement.id;return!!At&&-1!=Se.indexOf(At)}_canBeDescribed($,he){if(!this._isElementNode($))return!1;if(he&&"object"==typeof he)return!0;const Se=null==he?"":`${he}`.trim(),st=$.getAttribute("aria-label");return!(!Se||st&&st.trim()===Se)}_isElementNode($){return $.nodeType===this._document.ELEMENT_NODE}}return V.\u0275fac=function($){return new($||V)(o.LFG(c.K0),o.LFG(g.t4))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function Me(V,j){return"string"==typeof V?`${j||""}/${V}`:V}function xe(V){V.id||(V.id=`${pe}-${Ne++}`)}class Ae{constructor(j){this._items=j,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Y.x,this._typeaheadSubscription=ce.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=$=>$.disabled,this._pressedLetters=[],this.tabOut=new Y.x,this.change=new Y.x,j instanceof o.n_E&&j.changes.subscribe($=>{if(this._activeItem){const Se=$.toArray().indexOf(this._activeItem);Se>-1&&Se!==this._activeItemIndex&&(this._activeItemIndex=Se)}})}skipPredicate(j){return this._skipPredicateFn=j,this}withWrap(j=!0){return this._wrap=j,this}withVerticalOrientation(j=!0){return this._vertical=j,this}withHorizontalOrientation(j){return this._horizontal=j,this}withAllowedModifierKeys(j){return this._allowedModifierKeys=j,this}withTypeAhead(j=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ue.b)($=>this._pressedLetters.push($)),(0,te.b)(j),(0,se.h)(()=>this._pressedLetters.length>0),(0,de.U)(()=>this._pressedLetters.join(""))).subscribe($=>{const he=this._getItemsArray();for(let Se=1;Se!j[st]||this._allowedModifierKeys.indexOf(st)>-1);switch($){case Ce.Mf:return void this.tabOut.next();case Ce.JH:if(this._vertical&&Se){this.setNextItemActive();break}return;case Ce.LH:if(this._vertical&&Se){this.setPreviousItemActive();break}return;case Ce.SV:if(this._horizontal&&Se){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Ce.oh:if(this._horizontal&&Se){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case Ce.Sd:if(this._homeAndEnd&&Se){this.setFirstItemActive();break}return;case Ce.uR:if(this._homeAndEnd&&Se){this.setLastItemActive();break}return;default:return void((Se||(0,Ce.Vb)(j,"shiftKey"))&&(j.key&&1===j.key.length?this._letterKeyStream.next(j.key.toLocaleUpperCase()):($>=Ce.A&&$<=Ce.Z||$>=Ce.xE&&$<=Ce.aO)&&this._letterKeyStream.next(String.fromCharCode($))))}this._pressedLetters=[],j.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(j){const $=this._getItemsArray(),he="number"==typeof j?j:$.indexOf(j),Se=$[he];this._activeItem=null==Se?null:Se,this._activeItemIndex=he}_setActiveItemByDelta(j){this._wrap?this._setActiveInWrapMode(j):this._setActiveInDefaultMode(j)}_setActiveInWrapMode(j){const $=this._getItemsArray();for(let he=1;he<=$.length;he++){const Se=(this._activeItemIndex+j*he+$.length)%$.length;if(!this._skipPredicateFn($[Se]))return void this.setActiveItem(Se)}}_setActiveInDefaultMode(j){this._setActiveItemByIndex(this._activeItemIndex+j,j)}_setActiveItemByIndex(j,$){const he=this._getItemsArray();if(he[j]){for(;this._skipPredicateFn(he[j]);)if(!he[j+=$])return;this.setActiveItem(j)}}_getItemsArray(){return this._items instanceof o.n_E?this._items.toArray():this._items}}class tt extends Ae{setActiveItem(j){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(j),this.activeItem&&this.activeItem.setActiveStyles()}}class Fe extends Ae{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(j){return this._origin=j,this}setActiveItem(j){super.setActiveItem(j),this.activeItem&&this.activeItem.focus(this._origin)}}let mt=(()=>{class V{constructor($){this._platform=$}isDisabled($){return $.hasAttribute("disabled")}isVisible($){return function yt(V){return!!(V.offsetWidth||V.offsetHeight||"function"==typeof V.getClientRects&&V.getClientRects().length)}($)&&"visible"===getComputedStyle($).visibility}isTabbable($){if(!this._platform.isBrowser)return!1;const he=function Jt(V){try{return V.frameElement}catch(j){return null}}(function J(V){return V.ownerDocument&&V.ownerDocument.defaultView||window}($));if(he&&(-1===on(he)||!this.isVisible(he)))return!1;let Se=$.nodeName.toLowerCase(),st=on($);return $.hasAttribute("contenteditable")?-1!==st:!("iframe"===Se||"object"===Se||this._platform.WEBKIT&&this._platform.IOS&&!function Xe(V){let j=V.nodeName.toLowerCase(),$="input"===j&&V.type;return"text"===$||"password"===$||"select"===j||"textarea"===j}($))&&("audio"===Se?!!$.hasAttribute("controls")&&-1!==st:"video"===Se?-1!==st&&(null!==st||this._platform.FIREFOX||$.hasAttribute("controls")):$.tabIndex>=0)}isFocusable($,he){return function je(V){return!function Wt(V){return function mn(V){return"input"==V.nodeName.toLowerCase()}(V)&&"hidden"==V.type}(V)&&(function Rt(V){let j=V.nodeName.toLowerCase();return"input"===j||"select"===j||"button"===j||"textarea"===j}(V)||function Pt(V){return function Ut(V){return"a"==V.nodeName.toLowerCase()}(V)&&V.hasAttribute("href")}(V)||V.hasAttribute("contenteditable")||xt(V))}($)&&!this.isDisabled($)&&((null==he?void 0:he.ignoreVisibility)||this.isVisible($))}}return V.\u0275fac=function($){return new($||V)(o.LFG(g.t4))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function xt(V){if(!V.hasAttribute("tabindex")||void 0===V.tabIndex)return!1;let j=V.getAttribute("tabindex");return!(!j||isNaN(parseInt(j,10)))}function on(V){if(!xt(V))return null;const j=parseInt(V.getAttribute("tabindex")||"",10);return isNaN(j)?-1:j}class K{constructor(j,$,he,Se,st=!1){this._element=j,this._checker=$,this._ngZone=he,this._document=Se,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,st||this.attachAnchors()}get enabled(){return this._enabled}set enabled(j){this._enabled=j,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(j,this._startAnchor),this._toggleAnchorTabIndex(j,this._endAnchor))}destroy(){const j=this._startAnchor,$=this._endAnchor;j&&(j.removeEventListener("focus",this.startAnchorListener),j.remove()),$&&($.removeEventListener("focus",this.endAnchorListener),$.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.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)}focusInitialElementWhenReady(j){return new Promise($=>{this._executeOnStable(()=>$(this.focusInitialElement(j)))})}focusFirstTabbableElementWhenReady(j){return new Promise($=>{this._executeOnStable(()=>$(this.focusFirstTabbableElement(j)))})}focusLastTabbableElementWhenReady(j){return new Promise($=>{this._executeOnStable(()=>$(this.focusLastTabbableElement(j)))})}_getRegionBoundary(j){const $=this._element.querySelectorAll(`[cdk-focus-region-${j}], [cdkFocusRegion${j}], [cdk-focus-${j}]`);return"start"==j?$.length?$[0]:this._getFirstTabbableElement(this._element):$.length?$[$.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(j){const $=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if($){if(!this._checker.isFocusable($)){const he=this._getFirstTabbableElement($);return null==he||he.focus(j),!!he}return $.focus(j),!0}return this.focusFirstTabbableElement(j)}focusFirstTabbableElement(j){const $=this._getRegionBoundary("start");return $&&$.focus(j),!!$}focusLastTabbableElement(j){const $=this._getRegionBoundary("end");return $&&$.focus(j),!!$}hasAttached(){return this._hasAttached}_getFirstTabbableElement(j){if(this._checker.isFocusable(j)&&this._checker.isTabbable(j))return j;const $=j.children;for(let he=0;he<$.length;he++){const Se=$[he].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement($[he]):null;if(Se)return Se}return null}_getLastTabbableElement(j){if(this._checker.isFocusable(j)&&this._checker.isTabbable(j))return j;const $=j.children;for(let he=$.length-1;he>=0;he--){const Se=$[he].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement($[he]):null;if(Se)return Se}return null}_createAnchor(){const j=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,j),j.classList.add("cdk-visually-hidden"),j.classList.add("cdk-focus-trap-anchor"),j.setAttribute("aria-hidden","true"),j}_toggleAnchorTabIndex(j,$){j?$.setAttribute("tabindex","0"):$.removeAttribute("tabindex")}toggleAnchors(j){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(j,this._startAnchor),this._toggleAnchorTabIndex(j,this._endAnchor))}_executeOnStable(j){this._ngZone.isStable?j():this._ngZone.onStable.pipe((0,X.q)(1)).subscribe(j)}}let He=(()=>{class V{constructor($,he,Se){this._checker=$,this._ngZone=he,this._document=Se}create($,he=!1){return new K($,this._checker,this._ngZone,this._document,he)}}return V.\u0275fac=function($){return new($||V)(o.LFG(mt),o.LFG(o.R0b),o.LFG(c.K0))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function at(V){return 0===V.buttons||0===V.offsetX&&0===V.offsetY}function Pe(V){const j=V.touches&&V.touches[0]||V.changedTouches&&V.changedTouches[0];return!(!j||-1!==j.identifier||null!=j.radiusX&&1!==j.radiusX||null!=j.radiusY&&1!==j.radiusY)}const E=new o.OlP("cdk-input-modality-detector-options"),S={ignoreKeys:[Ce.zL,Ce.jx,Ce.b2,Ce.MW,Ce.JU]},P=(0,g.i$)({passive:!0,capture:!0});let L=(()=>{class V{constructor($,he,Se,st){this._platform=$,this._mostRecentTarget=null,this._modality=new q.X(null),this._lastTouchMs=0,this._onKeydown=At=>{var Zt,Kt;(null===(Kt=null===(Zt=this._options)||void 0===Zt?void 0:Zt.ignoreKeys)||void 0===Kt?void 0:Kt.some(Dt=>Dt===At.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,g.sA)(At))},this._onMousedown=At=>{Date.now()-this._lastTouchMs<650||(this._modality.next(at(At)?"keyboard":"mouse"),this._mostRecentTarget=(0,g.sA)(At))},this._onTouchstart=At=>{Pe(At)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,g.sA)(At))},this._options=Object.assign(Object.assign({},S),st),this.modalityDetected=this._modality.pipe((0,le.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ke.x)()),$.isBrowser&&he.runOutsideAngular(()=>{Se.addEventListener("keydown",this._onKeydown,P),Se.addEventListener("mousedown",this._onMousedown,P),Se.addEventListener("touchstart",this._onTouchstart,P)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,P),document.removeEventListener("mousedown",this._onMousedown,P),document.removeEventListener("touchstart",this._onTouchstart,P))}}return V.\u0275fac=function($){return new($||V)(o.LFG(g.t4),o.LFG(o.R0b),o.LFG(c.K0),o.LFG(E,8))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const re=new o.OlP("liveAnnouncerElement",{providedIn:"root",factory:function be(){return null}}),Ue=new o.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ze=(()=>{class V{constructor($,he,Se,st){this._ngZone=he,this._defaultOptions=st,this._document=Se,this._liveElement=$||this._createLiveElement()}announce($,...he){const Se=this._defaultOptions;let st,At;return 1===he.length&&"number"==typeof he[0]?At=he[0]:[st,At]=he,this.clear(),clearTimeout(this._previousTimeout),st||(st=Se&&Se.politeness?Se.politeness:"polite"),null==At&&Se&&(At=Se.duration),this._liveElement.setAttribute("aria-live",st),this._ngZone.runOutsideAngular(()=>new Promise(Zt=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=$,Zt(),"number"==typeof At&&(this._previousTimeout=setTimeout(()=>this.clear(),At))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var $;clearTimeout(this._previousTimeout),null===($=this._liveElement)||void 0===$||$.remove(),this._liveElement=null}_createLiveElement(){const $="cdk-live-announcer-element",he=this._document.getElementsByClassName($),Se=this._document.createElement("div");for(let st=0;st{class V{constructor($,he,Se,st,At){this._ngZone=$,this._platform=he,this._inputModalityDetector=Se,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Y.x,this._rootNodeFocusAndBlurListener=Zt=>{const Kt=(0,g.sA)(Zt),Dt="focus"===Zt.type?this._onFocus:this._onBlur;for(let Rn=Kt;Rn;Rn=Rn.parentElement)Dt.call(this,Zt,Rn)},this._document=st,this._detectionMode=(null==At?void 0:At.detectionMode)||0}monitor($,he=!1){const Se=(0,Z.fI)($);if(!this._platform.isBrowser||1!==Se.nodeType)return(0,De.of)(null);const st=(0,g.kV)(Se)||this._getDocument(),At=this._elementInfo.get(Se);if(At)return he&&(At.checkChildren=!0),At.subject;const Zt={checkChildren:he,subject:new Y.x,rootNode:st};return this._elementInfo.set(Se,Zt),this._registerGlobalListeners(Zt),Zt.subject}stopMonitoring($){const he=(0,Z.fI)($),Se=this._elementInfo.get(he);Se&&(Se.subject.complete(),this._setClasses(he),this._elementInfo.delete(he),this._removeGlobalListeners(Se))}focusVia($,he,Se){const st=(0,Z.fI)($);st===this._getDocument().activeElement?this._getClosestElementsInfo(st).forEach(([Zt,Kt])=>this._originChanged(Zt,he,Kt)):(this._setOrigin(he),"function"==typeof st.focus&&st.focus(Se))}ngOnDestroy(){this._elementInfo.forEach(($,he)=>this.stopMonitoring(he))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin($){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch($)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch($){return 1===this._detectionMode||!!(null==$?void 0:$.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses($,he){$.classList.toggle("cdk-focused",!!he),$.classList.toggle("cdk-touch-focused","touch"===he),$.classList.toggle("cdk-keyboard-focused","keyboard"===he),$.classList.toggle("cdk-mouse-focused","mouse"===he),$.classList.toggle("cdk-program-focused","program"===he)}_setOrigin($,he=!1){this._ngZone.runOutsideAngular(()=>{this._origin=$,this._originFromTouchInteraction="touch"===$&&he,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus($,he){const Se=this._elementInfo.get(he),st=(0,g.sA)($);!Se||!Se.checkChildren&&he!==st||this._originChanged(he,this._getFocusOrigin(st),Se)}_onBlur($,he){const Se=this._elementInfo.get(he);!Se||Se.checkChildren&&$.relatedTarget instanceof Node&&he.contains($.relatedTarget)||(this._setClasses(he),this._emitOrigin(Se.subject,null))}_emitOrigin($,he){this._ngZone.run(()=>$.next(he))}_registerGlobalListeners($){if(!this._platform.isBrowser)return;const he=$.rootNode,Se=this._rootNodeFocusListenerCount.get(he)||0;Se||this._ngZone.runOutsideAngular(()=>{he.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ot),he.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ot)}),this._rootNodeFocusListenerCount.set(he,Se+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Be.R)(this._stopInputModalityDetector)).subscribe(st=>{this._setOrigin(st,!0)}))}_removeGlobalListeners($){const he=$.rootNode;if(this._rootNodeFocusListenerCount.has(he)){const Se=this._rootNodeFocusListenerCount.get(he);Se>1?this._rootNodeFocusListenerCount.set(he,Se-1):(he.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ot),he.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ot),this._rootNodeFocusListenerCount.delete(he))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged($,he,Se){this._setClasses($,he),this._emitOrigin(Se.subject,he),this._lastFocusOrigin=he}_getClosestElementsInfo($){const he=[];return this._elementInfo.forEach((Se,st)=>{(st===$||Se.checkChildren&&st.contains($))&&he.push([st,Se])}),he}}return V.\u0275fac=function($){return new($||V)(o.LFG(o.R0b),o.LFG(g.t4),o.LFG(L),o.LFG(c.K0,8),o.LFG(ct,8))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();const dn="cdk-high-contrast-black-on-white",dt="cdk-high-contrast-white-on-black",vt="cdk-high-contrast-active";let Le=(()=>{class V{constructor($,he){this._platform=$,this._document=he}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const $=this._document.createElement("div");$.style.backgroundColor="rgb(1,2,3)",$.style.position="absolute",this._document.body.appendChild($);const he=this._document.defaultView||window,Se=he&&he.getComputedStyle?he.getComputedStyle($):null,st=(Se&&Se.backgroundColor||"").replace(/ /g,"");switch($.remove(),st){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const $=this._document.body.classList;$.remove(vt),$.remove(dn),$.remove(dt),this._hasCheckedHighContrastMode=!0;const he=this.getHighContrastMode();1===he?($.add(vt),$.add(dn)):2===he&&($.add(vt),$.add(dt))}}}return V.\u0275fac=function($){return new($||V)(o.LFG(g.t4),o.LFG(c.K0))},V.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})(),we=(()=>{class V{constructor($){$._applyBodyHighContrastModeCssClasses()}}return V.\u0275fac=function($){return new($||V)(o.LFG(Le))},V.\u0275mod=o.oAB({type:V}),V.\u0275inj=o.cJS({imports:[[et.Q8]]}),V})()},226:(qe,ye,C)=>{C.d(ye,{vT:()=>ue,Is:()=>De});var c=C(4893),o=C(9808);const g=new c.OlP("cdk-dir-doc",{providedIn:"root",factory:function Y(){return(0,c.f3M)(o.K0)}}),ce=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let De=(()=>{class te{constructor(de){if(this.value="ltr",this.change=new c.vpe,de){const le=de.documentElement?de.documentElement.dir:null;this.value=function q(te){const se=(null==te?void 0:te.toLowerCase())||"";return"auto"===se&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?ce.test(navigator.language)?"rtl":"ltr":"rtl"===se?"rtl":"ltr"}((de.body?de.body.dir:null)||le||"ltr")}}ngOnDestroy(){this.change.complete()}}return te.\u0275fac=function(de){return new(de||te)(c.LFG(g,8))},te.\u0275prov=c.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),ue=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275mod=c.oAB({type:te}),te.\u0275inj=c.cJS({}),te})()},3191:(qe,ye,C)=>{C.d(ye,{Eq:()=>ce,Ig:()=>o,HM:()=>q,fI:()=>De,su:()=>g});var c=C(4893);function o(ue){return null!=ue&&"false"!=`${ue}`}function g(ue,te=0){return function Y(ue){return!isNaN(parseFloat(ue))&&!isNaN(Number(ue))}(ue)?Number(ue):te}function ce(ue){return Array.isArray(ue)?ue:[ue]}function q(ue){return null==ue?"":"string"==typeof ue?ue:`${ue}px`}function De(ue){return ue instanceof c.SBq?ue.nativeElement:ue}},449:(qe,ye,C)=>{C.d(ye,{Ov:()=>Ce,A8:()=>te});var c=C(7579),o=C(4893);class Ce{constructor(X=!1,le,ke=!0){this._multiple=X,this._emitChanges=ke,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new c.x,le&&le.length&&(X?le.forEach(Be=>this._markSelected(Be)):this._markSelected(le[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...X){this._verifyValueAssignment(X),X.forEach(le=>this._markSelected(le)),this._emitChangeEvent()}deselect(...X){this._verifyValueAssignment(X),X.forEach(le=>this._unmarkSelected(le)),this._emitChangeEvent()}toggle(X){this.isSelected(X)?this.deselect(X):this.select(X)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(X){return this._selection.has(X)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(X){this._multiple&&this.selected&&this._selected.sort(X)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(X){this.isSelected(X)||(this._multiple||this._unmarkAll(),this._selection.add(X),this._emitChanges&&this._selectedToEmit.push(X))}_unmarkSelected(X){this.isSelected(X)&&(this._selection.delete(X),this._emitChanges&&this._deselectedToEmit.push(X))}_unmarkAll(){this.isEmpty()||this._selection.forEach(X=>this._unmarkSelected(X))}_verifyValueAssignment(X){}}let te=(()=>{class de{constructor(){this._listeners=[]}notify(le,ke){for(let Be of this._listeners)Be(le,ke)}listen(le){return this._listeners.push(le),()=>{this._listeners=this._listeners.filter(ke=>le!==ke)}}ngOnDestroy(){this._listeners=[]}}return de.\u0275fac=function(le){return new(le||de)},de.\u0275prov=o.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})()},1159:(qe,ye,C)=>{C.d(ye,{A:()=>Pt,zL:()=>Ce,jx:()=>De,JH:()=>Qe,uR:()=>ke,K5:()=>ce,hY:()=>se,Sd:()=>Be,oh:()=>Z,b2:()=>Jn,MW:()=>ze,aO:()=>mt,SV:()=>Ye,JU:()=>q,L_:()=>de,Mf:()=>g,LH:()=>et,Z:()=>Ue,xE:()=>Te,Vb:()=>Si});const g=9,ce=13,q=16,De=17,Ce=18,se=27,de=32,ke=35,Be=36,Z=37,et=38,Ye=39,Qe=40,Te=48,mt=57,Pt=65,Ue=90,ze=91,Jn=224;function Si(Gn,...gn){return gn.length?gn.some(di=>Gn[di]):Gn.altKey||Gn.shiftKey||Gn.ctrlKey||Gn.metaKey}},7144:(qe,ye,C)=>{C.d(ye,{wD:()=>Ce,Q8:()=>ue});var c=C(3191),o=C(4893),g=C(8306),Y=C(7579),ce=C(8372);let q=(()=>{class te{create(de){return"undefined"==typeof MutationObserver?null:new MutationObserver(de)}}return te.\u0275fac=function(de){return new(de||te)},te.\u0275prov=o.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),De=(()=>{class te{constructor(de){this._mutationObserverFactory=de,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((de,X)=>this._cleanupObserver(X))}observe(de){const X=(0,c.fI)(de);return new g.y(le=>{const Be=this._observeElement(X).subscribe(le);return()=>{Be.unsubscribe(),this._unobserveElement(X)}})}_observeElement(de){if(this._observedElements.has(de))this._observedElements.get(de).count++;else{const X=new Y.x,le=this._mutationObserverFactory.create(ke=>X.next(ke));le&&le.observe(de,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(de,{observer:le,stream:X,count:1})}return this._observedElements.get(de).stream}_unobserveElement(de){this._observedElements.has(de)&&(this._observedElements.get(de).count--,this._observedElements.get(de).count||this._cleanupObserver(de))}_cleanupObserver(de){if(this._observedElements.has(de)){const{observer:X,stream:le}=this._observedElements.get(de);X&&X.disconnect(),le.complete(),this._observedElements.delete(de)}}}return te.\u0275fac=function(de){return new(de||te)(o.LFG(q))},te.\u0275prov=o.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),Ce=(()=>{class te{constructor(de,X,le){this._contentObserver=de,this._elementRef=X,this._ngZone=le,this.event=new o.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(de){this._disabled=(0,c.Ig)(de),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(de){this._debounce=(0,c.su)(de),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const de=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?de.pipe((0,ce.b)(this.debounce)):de).subscribe(this.event)})}_unsubscribe(){var de;null===(de=this._currentSubscription)||void 0===de||de.unsubscribe()}}return te.\u0275fac=function(de){return new(de||te)(o.Y36(De),o.Y36(o.SBq),o.Y36(o.R0b))},te.\u0275dir=o.lG2({type:te,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),te})(),ue=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275mod=o.oAB({type:te}),te.\u0275inj=o.cJS({providers:[q]}),te})()},9776:(qe,ye,C)=>{C.d(ye,{pI:()=>St,xu:()=>lt,aV:()=>K,X_:()=>Ne,Xj:()=>Ct,U8:()=>Nt});var c=C(495),o=C(9808),g=C(4893),Y=C(3191),ce=C(925),q=C(226),De=C(7429),Ce=C(7579),ue=C(727),te=C(6451),se=C(4482),de=C(5403),le=C(5698),ke=C(2722),Be=C(1159);const Z=(0,ce.Mq)();class et{constructor(E,S){this._viewportRuler=E,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=S}attach(){}enable(){if(this._canBeEnabled()){const E=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=E.style.left||"",this._previousHTMLStyles.top=E.style.top||"",E.style.left=(0,Y.HM)(-this._previousScrollPosition.left),E.style.top=(0,Y.HM)(-this._previousScrollPosition.top),E.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const E=this._document.documentElement,D=E.style,P=this._document.body.style,L=D.scrollBehavior||"",re=P.scrollBehavior||"";this._isEnabled=!1,D.left=this._previousHTMLStyles.left,D.top=this._previousHTMLStyles.top,E.classList.remove("cdk-global-scrollblock"),Z&&(D.scrollBehavior=P.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Z&&(D.scrollBehavior=L,P.scrollBehavior=re)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const S=this._document.body,D=this._viewportRuler.getViewportSize();return S.scrollHeight>D.height||S.scrollWidth>D.width}}class Qe{constructor(E,S,D,P){this._scrollDispatcher=E,this._ngZone=S,this._viewportRuler=D,this._config=P,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(E){this._overlayRef=E}enable(){if(this._scrollSubscription)return;const E=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=E.subscribe(()=>{const S=this._viewportRuler.getViewportScrollPosition().top;Math.abs(S-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=E.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class me{enable(){}disable(){}attach(){}}function z(Pe,E){return E.some(S=>Pe.bottomS.bottom||Pe.rightS.right)}function Q(Pe,E){return E.some(S=>Pe.topS.bottom||Pe.leftS.right)}class pe{constructor(E,S,D,P){this._scrollDispatcher=E,this._viewportRuler=S,this._ngZone=D,this._config=P,this._scrollSubscription=null}attach(E){this._overlayRef=E}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const S=this._overlayRef.overlayElement.getBoundingClientRect(),{width:D,height:P}=this._viewportRuler.getViewportSize();z(S,[{width:D,height:P,bottom:P,right:D,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Te=(()=>{class Pe{constructor(S,D,P,L){this._scrollDispatcher=S,this._viewportRuler=D,this._ngZone=P,this.noop=()=>new me,this.close=re=>new Qe(this._scrollDispatcher,this._ngZone,this._viewportRuler,re),this.block=()=>new et(this._viewportRuler,this._document),this.reposition=re=>new pe(this._scrollDispatcher,this._viewportRuler,this._ngZone,re),this._document=L}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(c.mF),g.LFG(c.rL),g.LFG(g.R0b),g.LFG(o.K0))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})();class Ne{constructor(E){if(this.scrollStrategy=new me,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,E){const S=Object.keys(E);for(const D of S)void 0!==E[D]&&(this[D]=E[D])}}}class xe{constructor(E,S){this.connectionPair=E,this.scrollableViewProperties=S}}class Fe{constructor(E,S,D,P,L,re,be,Ue,ze){this._portalOutlet=E,this._host=S,this._pane=D,this._config=P,this._ngZone=L,this._keyboardDispatcher=re,this._document=be,this._location=Ue,this._outsideClickDispatcher=ze,this._backdropElement=null,this._backdropClick=new Ce.x,this._attachments=new Ce.x,this._detachments=new Ce.x,this._locationChanges=ue.w0.EMPTY,this._backdropClickHandler=_t=>this._backdropClick.next(_t),this._keydownEvents=new Ce.x,this._outsidePointerEvents=new Ce.x,P.scrollStrategy&&(this._scrollStrategy=P.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=P.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(E){let S=this._portalOutlet.attach(E);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,le.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),S}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const E=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),E}dispose(){var E;const S=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(E=this._host)||void 0===E||E.remove(),this._previousHostParent=this._pane=this._host=null,S&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(E){E!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=E,this.hasAttached()&&(E.attach(this),this.updatePosition()))}updateSize(E){this._config=Object.assign(Object.assign({},this._config),E),this._updateElementSize()}setDirection(E){this._config=Object.assign(Object.assign({},this._config),{direction:E}),this._updateElementDirection()}addPanelClass(E){this._pane&&this._toggleClasses(this._pane,E,!0)}removePanelClass(E){this._pane&&this._toggleClasses(this._pane,E,!1)}getDirection(){const E=this._config.direction;return E?"string"==typeof E?E:E.value:"ltr"}updateScrollStrategy(E){E!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=E,this.hasAttached()&&(E.attach(this),E.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const E=this._pane.style;E.width=(0,Y.HM)(this._config.width),E.height=(0,Y.HM)(this._config.height),E.minWidth=(0,Y.HM)(this._config.minWidth),E.minHeight=(0,Y.HM)(this._config.minHeight),E.maxWidth=(0,Y.HM)(this._config.maxWidth),E.maxHeight=(0,Y.HM)(this._config.maxHeight)}_togglePointerEvents(E){this._pane.style.pointerEvents=E?"":"none"}_attachBackdrop(){const E="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(E)})}):this._backdropElement.classList.add(E)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const E=this._backdropElement;if(!E)return;let S;const D=()=>{E&&(E.removeEventListener("click",this._backdropClickHandler),E.removeEventListener("transitionend",D),this._disposeBackdrop(E)),this._config.backdropClass&&this._toggleClasses(E,this._config.backdropClass,!1),clearTimeout(S)};E.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{E.addEventListener("transitionend",D)}),E.style.pointerEvents="none",S=this._ngZone.runOutsideAngular(()=>setTimeout(D,500))}_toggleClasses(E,S,D){const P=(0,Y.Eq)(S||[]).filter(L=>!!L);P.length&&(D?E.classList.add(...P):E.classList.remove(...P))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const E=this._ngZone.onStable.pipe((0,ke.R)((0,te.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),E.unsubscribe())})})}_disposeScrollStrategy(){const E=this._scrollStrategy;E&&(E.disable(),E.detach&&E.detach())}_disposeBackdrop(E){E&&(E.remove(),this._backdropElement===E&&(this._backdropElement=null))}}let Ct=(()=>{class Pe{constructor(S,D){this._platform=D,this._document=S}ngOnDestroy(){var S;null===(S=this._containerElement)||void 0===S||S.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const S="cdk-overlay-container";if(this._platform.isBrowser||(0,ce.Oy)()){const P=this._document.querySelectorAll(`.${S}[platform="server"], .${S}[platform="test"]`);for(let L=0;L{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const E=this._originRect,S=this._overlayRect,D=this._viewportRect,P=this._containerRect,L=[];let re;for(let be of this._preferredPositions){let Ue=this._getOriginPoint(E,P,be),ze=this._getOverlayPoint(Ue,S,be),_t=this._getOverlayFit(ze,S,D,be);if(_t.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(be,Ue);this._canFitWithFlexibleDimensions(_t,ze,D)?L.push({position:be,origin:Ue,overlayRect:S,boundingBoxRect:this._calculateBoundingBoxRect(Ue,be)}):(!re||re.overlayFit.visibleArea<_t.visibleArea)&&(re={overlayFit:_t,overlayPoint:ze,originPoint:Ue,position:be,overlayRect:S})}if(L.length){let be=null,Ue=-1;for(const ze of L){const _t=ze.boundingBoxRect.width*ze.boundingBoxRect.height*(ze.position.weight||1);_t>Ue&&(Ue=_t,be=ze)}return this._isPushed=!1,void this._applyPosition(be.position,be.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(re.position,re.originPoint);this._applyPosition(re.position,re.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Rt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(mt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const E=this._lastPosition;if(E){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const S=this._getOriginPoint(this._originRect,this._containerRect,E);this._applyPosition(E,S)}else this.apply()}withScrollableContainers(E){return this._scrollables=E,this}withPositions(E){return this._preferredPositions=E,-1===E.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(E){return this._viewportMargin=E,this}withFlexibleDimensions(E=!0){return this._hasFlexibleDimensions=E,this}withGrowAfterOpen(E=!0){return this._growAfterOpen=E,this}withPush(E=!0){return this._canPush=E,this}withLockedPosition(E=!0){return this._positionLocked=E,this}setOrigin(E){return this._origin=E,this}withDefaultOffsetX(E){return this._offsetX=E,this}withDefaultOffsetY(E){return this._offsetY=E,this}withTransformOriginOn(E){return this._transformOriginSelector=E,this}_getOriginPoint(E,S,D){let P,L;if("center"==D.originX)P=E.left+E.width/2;else{const re=this._isRtl()?E.right:E.left,be=this._isRtl()?E.left:E.right;P="start"==D.originX?re:be}return S.left<0&&(P-=S.left),L="center"==D.originY?E.top+E.height/2:"top"==D.originY?E.top:E.bottom,S.top<0&&(L-=S.top),{x:P,y:L}}_getOverlayPoint(E,S,D){let P,L;return P="center"==D.overlayX?-S.width/2:"start"===D.overlayX?this._isRtl()?-S.width:0:this._isRtl()?0:-S.width,L="center"==D.overlayY?-S.height/2:"top"==D.overlayY?0:-S.height,{x:E.x+P,y:E.y+L}}_getOverlayFit(E,S,D,P){const L=Pt(S);let{x:re,y:be}=E,Ue=this._getOffset(P,"x"),ze=this._getOffset(P,"y");Ue&&(re+=Ue),ze&&(be+=ze);let Ot=0-be,nn=be+L.height-D.height,Yt=this._subtractOverflows(L.width,0-re,re+L.width-D.width),dn=this._subtractOverflows(L.height,Ot,nn),dt=Yt*dn;return{visibleArea:dt,isCompletelyWithinViewport:L.width*L.height===dt,fitsInViewportVertically:dn===L.height,fitsInViewportHorizontally:Yt==L.width}}_canFitWithFlexibleDimensions(E,S,D){if(this._hasFlexibleDimensions){const P=D.bottom-S.y,L=D.right-S.x,re=Wt(this._overlayRef.getConfig().minHeight),be=Wt(this._overlayRef.getConfig().minWidth),ze=E.fitsInViewportHorizontally||null!=be&&be<=L;return(E.fitsInViewportVertically||null!=re&&re<=P)&&ze}return!1}_pushOverlayOnScreen(E,S,D){if(this._previousPushAmount&&this._positionLocked)return{x:E.x+this._previousPushAmount.x,y:E.y+this._previousPushAmount.y};const P=Pt(S),L=this._viewportRect,re=Math.max(E.x+P.width-L.width,0),be=Math.max(E.y+P.height-L.height,0),Ue=Math.max(L.top-D.top-E.y,0),ze=Math.max(L.left-D.left-E.x,0);let _t=0,ct=0;return _t=P.width<=L.width?ze||-re:E.xYt&&!this._isInitialRender&&!this._growAfterOpen&&(re=E.y-Yt/2)}if("end"===S.overlayX&&!P||"start"===S.overlayX&&P)Ot=D.width-E.x+this._viewportMargin,_t=E.x-this._viewportMargin;else if("start"===S.overlayX&&!P||"end"===S.overlayX&&P)ct=E.x,_t=D.right-E.x;else{const nn=Math.min(D.right-E.x+D.left,E.x),Yt=this._lastBoundingBoxSize.width;_t=2*nn,ct=E.x-nn,_t>Yt&&!this._isInitialRender&&!this._growAfterOpen&&(ct=E.x-Yt/2)}return{top:re,left:ct,bottom:be,right:Ot,width:_t,height:L}}_setBoundingBoxStyles(E,S){const D=this._calculateBoundingBoxRect(E,S);!this._isInitialRender&&!this._growAfterOpen&&(D.height=Math.min(D.height,this._lastBoundingBoxSize.height),D.width=Math.min(D.width,this._lastBoundingBoxSize.width));const P={};if(this._hasExactPosition())P.top=P.left="0",P.bottom=P.right=P.maxHeight=P.maxWidth="",P.width=P.height="100%";else{const L=this._overlayRef.getConfig().maxHeight,re=this._overlayRef.getConfig().maxWidth;P.height=(0,Y.HM)(D.height),P.top=(0,Y.HM)(D.top),P.bottom=(0,Y.HM)(D.bottom),P.width=(0,Y.HM)(D.width),P.left=(0,Y.HM)(D.left),P.right=(0,Y.HM)(D.right),P.alignItems="center"===S.overlayX?"center":"end"===S.overlayX?"flex-end":"flex-start",P.justifyContent="center"===S.overlayY?"center":"bottom"===S.overlayY?"flex-end":"flex-start",L&&(P.maxHeight=(0,Y.HM)(L)),re&&(P.maxWidth=(0,Y.HM)(re))}this._lastBoundingBoxSize=D,Rt(this._boundingBox.style,P)}_resetBoundingBoxStyles(){Rt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Rt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(E,S){const D={},P=this._hasExactPosition(),L=this._hasFlexibleDimensions,re=this._overlayRef.getConfig();if(P){const _t=this._viewportRuler.getViewportScrollPosition();Rt(D,this._getExactOverlayY(S,E,_t)),Rt(D,this._getExactOverlayX(S,E,_t))}else D.position="static";let be="",Ue=this._getOffset(S,"x"),ze=this._getOffset(S,"y");Ue&&(be+=`translateX(${Ue}px) `),ze&&(be+=`translateY(${ze}px)`),D.transform=be.trim(),re.maxHeight&&(P?D.maxHeight=(0,Y.HM)(re.maxHeight):L&&(D.maxHeight="")),re.maxWidth&&(P?D.maxWidth=(0,Y.HM)(re.maxWidth):L&&(D.maxWidth="")),Rt(this._pane.style,D)}_getExactOverlayY(E,S,D){let P={top:"",bottom:""},L=this._getOverlayPoint(S,this._overlayRect,E);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,D)),"bottom"===E.overlayY?P.bottom=this._document.documentElement.clientHeight-(L.y+this._overlayRect.height)+"px":P.top=(0,Y.HM)(L.y),P}_getExactOverlayX(E,S,D){let re,P={left:"",right:""},L=this._getOverlayPoint(S,this._overlayRect,E);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,D)),re=this._isRtl()?"end"===E.overlayX?"left":"right":"end"===E.overlayX?"right":"left","right"===re?P.right=this._document.documentElement.clientWidth-(L.x+this._overlayRect.width)+"px":P.left=(0,Y.HM)(L.x),P}_getScrollVisibility(){const E=this._getOriginRect(),S=this._pane.getBoundingClientRect(),D=this._scrollables.map(P=>P.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Q(E,D),isOriginOutsideView:z(E,D),isOverlayClipped:Q(S,D),isOverlayOutsideView:z(S,D)}}_subtractOverflows(E,...S){return S.reduce((D,P)=>D-Math.max(P,0),E)}_getNarrowedViewportRect(){const E=this._document.documentElement.clientWidth,S=this._document.documentElement.clientHeight,D=this._viewportRuler.getViewportScrollPosition();return{top:D.top+this._viewportMargin,left:D.left+this._viewportMargin,right:D.left+E-this._viewportMargin,bottom:D.top+S-this._viewportMargin,width:E-2*this._viewportMargin,height:S-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(E,S){return"x"===S?null==E.offsetX?this._offsetX:E.offsetX:null==E.offsetY?this._offsetY:E.offsetY}_validatePositions(){}_addPanelClasses(E){this._pane&&(0,Y.Eq)(E).forEach(S=>{""!==S&&-1===this._appliedPanelClasses.indexOf(S)&&(this._appliedPanelClasses.push(S),this._pane.classList.add(S))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(E=>{this._pane.classList.remove(E)}),this._appliedPanelClasses=[])}_getOriginRect(){const E=this._origin;if(E instanceof g.SBq)return E.nativeElement.getBoundingClientRect();if(E instanceof Element)return E.getBoundingClientRect();const S=E.width||0,D=E.height||0;return{top:E.y,bottom:E.y+D,left:E.x,right:E.x+S,height:D,width:S}}}function Rt(Pe,E){for(let S in E)E.hasOwnProperty(S)&&(Pe[S]=E[S]);return Pe}function Wt(Pe){if("number"!=typeof Pe&&null!=Pe){const[E,S]=Pe.split(Jt);return S&&"px"!==S?null:parseFloat(E)}return Pe||null}function Pt(Pe){return{top:Math.floor(Pe.top),right:Math.floor(Pe.right),bottom:Math.floor(Pe.bottom),left:Math.floor(Pe.left),width:Math.floor(Pe.width),height:Math.floor(Pe.height)}}const mn="cdk-global-overlay-wrapper";class Ut{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(E){const S=E.getConfig();this._overlayRef=E,this._width&&!S.width&&E.updateSize({width:this._width}),this._height&&!S.height&&E.updateSize({height:this._height}),E.hostElement.classList.add(mn),this._isDisposed=!1}top(E=""){return this._bottomOffset="",this._topOffset=E,this._alignItems="flex-start",this}left(E=""){return this._rightOffset="",this._leftOffset=E,this._justifyContent="flex-start",this}bottom(E=""){return this._topOffset="",this._bottomOffset=E,this._alignItems="flex-end",this}right(E=""){return this._leftOffset="",this._rightOffset=E,this._justifyContent="flex-end",this}width(E=""){return this._overlayRef?this._overlayRef.updateSize({width:E}):this._width=E,this}height(E=""){return this._overlayRef?this._overlayRef.updateSize({height:E}):this._height=E,this}centerHorizontally(E=""){return this.left(E),this._justifyContent="center",this}centerVertically(E=""){return this.top(E),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const E=this._overlayRef.overlayElement.style,S=this._overlayRef.hostElement.style,D=this._overlayRef.getConfig(),{width:P,height:L,maxWidth:re,maxHeight:be}=D,Ue=!("100%"!==P&&"100vw"!==P||re&&"100%"!==re&&"100vw"!==re),ze=!("100%"!==L&&"100vh"!==L||be&&"100%"!==be&&"100vh"!==be);E.position=this._cssPosition,E.marginLeft=Ue?"0":this._leftOffset,E.marginTop=ze?"0":this._topOffset,E.marginBottom=this._bottomOffset,E.marginRight=this._rightOffset,Ue?S.justifyContent="flex-start":"center"===this._justifyContent?S.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?S.justifyContent="flex-end":"flex-end"===this._justifyContent&&(S.justifyContent="flex-start"):S.justifyContent=this._justifyContent,S.alignItems=ze?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const E=this._overlayRef.overlayElement.style,S=this._overlayRef.hostElement,D=S.style;S.classList.remove(mn),D.justifyContent=D.alignItems=E.marginTop=E.marginBottom=E.marginLeft=E.marginRight=E.position="",this._overlayRef=null,this._isDisposed=!0}}let xt=(()=>{class Pe{constructor(S,D,P,L){this._viewportRuler=S,this._document=D,this._platform=P,this._overlayContainer=L}global(){return new Ut}flexibleConnectedTo(S){return new yt(S,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(c.rL),g.LFG(o.K0),g.LFG(ce.t4),g.LFG(Ct))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),on=(()=>{class Pe{constructor(S){this._attachedOverlays=[],this._document=S}ngOnDestroy(){this.detach()}add(S){this.remove(S),this._attachedOverlays.push(S)}remove(S){const D=this._attachedOverlays.indexOf(S);D>-1&&this._attachedOverlays.splice(D,1),0===this._attachedOverlays.length&&this.detach()}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(o.K0))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),Xe=(()=>{class Pe extends on{constructor(S,D){super(S),this._ngZone=D,this._keydownListener=P=>{const L=this._attachedOverlays;for(let re=L.length-1;re>-1;re--)if(L[re]._keydownEvents.observers.length>0){const be=L[re]._keydownEvents;this._ngZone?this._ngZone.run(()=>be.next(P)):be.next(P);break}}}add(S){super.add(S),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(o.K0),g.LFG(g.R0b,8))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),je=(()=>{class Pe extends on{constructor(S,D,P){super(S),this._platform=D,this._ngZone=P,this._cursorStyleIsSet=!1,this._pointerDownListener=L=>{this._pointerDownEventTarget=(0,ce.sA)(L)},this._clickListener=L=>{const re=(0,ce.sA)(L),be="click"===L.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:re;this._pointerDownEventTarget=null;const Ue=this._attachedOverlays.slice();for(let ze=Ue.length-1;ze>-1;ze--){const _t=Ue[ze];if(_t._outsidePointerEvents.observers.length<1||!_t.hasAttached())continue;if(_t.overlayElement.contains(re)||_t.overlayElement.contains(be))break;const ct=_t._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ct.next(L)):ct.next(L)}}}add(S){if(super.add(S),!this._isAttached){const D=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(D)):this._addEventListeners(D),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=D.style.cursor,D.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const S=this._document.body;S.removeEventListener("pointerdown",this._pointerDownListener,!0),S.removeEventListener("click",this._clickListener,!0),S.removeEventListener("auxclick",this._clickListener,!0),S.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(S.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(S){S.addEventListener("pointerdown",this._pointerDownListener,!0),S.addEventListener("click",this._clickListener,!0),S.addEventListener("auxclick",this._clickListener,!0),S.addEventListener("contextmenu",this._clickListener,!0)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(o.K0),g.LFG(ce.t4),g.LFG(g.R0b,8))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),J=0,K=(()=>{class Pe{constructor(S,D,P,L,re,be,Ue,ze,_t,ct,Ot){this.scrollStrategies=S,this._overlayContainer=D,this._componentFactoryResolver=P,this._positionBuilder=L,this._keyboardDispatcher=re,this._injector=be,this._ngZone=Ue,this._document=ze,this._directionality=_t,this._location=ct,this._outsideClickDispatcher=Ot}create(S){const D=this._createHostElement(),P=this._createPaneElement(D),L=this._createPortalOutlet(P),re=new Ne(S);return re.direction=re.direction||this._directionality.value,new Fe(L,D,P,re,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(S){const D=this._document.createElement("div");return D.id="cdk-overlay-"+J++,D.classList.add("cdk-overlay-pane"),S.appendChild(D),D}_createHostElement(){const S=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(S),S}_createPortalOutlet(S){return this._appRef||(this._appRef=this._injector.get(g.z2F)),new De.u0(S,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.LFG(Te),g.LFG(Ct),g.LFG(g._Vd),g.LFG(xt),g.LFG(Xe),g.LFG(g.zs3),g.LFG(g.R0b),g.LFG(o.K0),g.LFG(q.Is),g.LFG(o.Ye),g.LFG(je))},Pe.\u0275prov=g.Yz7({token:Pe,factory:Pe.\u0275fac}),Pe})();const He=[{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"}],Ge=new g.OlP("cdk-connected-overlay-scroll-strategy");let lt=(()=>{class Pe{constructor(S){this.elementRef=S}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.Y36(g.SBq))},Pe.\u0275dir=g.lG2({type:Pe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Pe})(),St=(()=>{class Pe{constructor(S,D,P,L,re){this._overlay=S,this._dir=re,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=ue.w0.EMPTY,this._attachSubscription=ue.w0.EMPTY,this._detachSubscription=ue.w0.EMPTY,this._positionSubscription=ue.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new g.vpe,this.positionChange=new g.vpe,this.attach=new g.vpe,this.detach=new g.vpe,this.overlayKeydown=new g.vpe,this.overlayOutsideClick=new g.vpe,this._templatePortal=new De.UE(D,P),this._scrollStrategyFactory=L,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(S){this._offsetX=S,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(S){this._offsetY=S,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(S){this._hasBackdrop=(0,Y.Ig)(S)}get lockPosition(){return this._lockPosition}set lockPosition(S){this._lockPosition=(0,Y.Ig)(S)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(S){this._flexibleDimensions=(0,Y.Ig)(S)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(S){this._growAfterOpen=(0,Y.Ig)(S)}get push(){return this._push}set push(S){this._push=(0,Y.Ig)(S)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(S){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),S.origin&&this.open&&this._position.apply()),S.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=He);const S=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=S.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=S.detachments().subscribe(()=>this.detach.emit()),S.keydownEvents().subscribe(D=>{this.overlayKeydown.next(D),D.keyCode===Be.hY&&!this.disableClose&&!(0,Be.Vb)(D)&&(D.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(D=>{this.overlayOutsideClick.next(D)})}_buildConfig(){const S=this._position=this.positionStrategy||this._createPositionStrategy(),D=new Ne({direction:this._dir,positionStrategy:S,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(D.width=this.width),(this.height||0===this.height)&&(D.height=this.height),(this.minWidth||0===this.minWidth)&&(D.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(D.minHeight=this.minHeight),this.backdropClass&&(D.backdropClass=this.backdropClass),this.panelClass&&(D.panelClass=this.panelClass),D}_updatePositionStrategy(S){const D=this.positions.map(P=>({originX:P.originX,originY:P.originY,overlayX:P.overlayX,overlayY:P.overlayY,offsetX:P.offsetX||this.offsetX,offsetY:P.offsetY||this.offsetY,panelClass:P.panelClass||void 0}));return S.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(D).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const S=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(S),S}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof lt?this.origin.elementRef:this.origin}_attachOverlay(){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(S=>{this.backdropClick.emit(S)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function X(Pe,E=!1){return(0,se.e)((S,D)=>{let P=0;S.subscribe((0,de.x)(D,L=>{const re=Pe(L,P++);(re||E)&&D.next(L),!re&&D.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(S=>{this.positionChange.emit(S),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return Pe.\u0275fac=function(S){return new(S||Pe)(g.Y36(K),g.Y36(g.Rgc),g.Y36(g.s_b),g.Y36(Ge),g.Y36(q.Is,8))},Pe.\u0275dir=g.lG2({type:Pe,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:[g.TTD]}),Pe})();const bt={provide:Ge,deps:[K],useFactory:function Ht(Pe){return()=>Pe.scrollStrategies.reposition()}};let Nt=(()=>{class Pe{}return Pe.\u0275fac=function(S){return new(S||Pe)},Pe.\u0275mod=g.oAB({type:Pe}),Pe.\u0275inj=g.cJS({providers:[K,bt],imports:[[q.vT,De.eL,c.Cl],c.Cl]}),Pe})()},925:(qe,ye,C)=>{C.d(ye,{t4:()=>Y,sA:()=>Qe,ht:()=>Ye,kV:()=>et,Oy:()=>me,qK:()=>Ce,i$:()=>se,Mq:()=>le});var c=C(4893),o=C(9808);let g;try{g="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(z){g=!1}let q,Y=(()=>{class z{constructor(pe){this._platformId=pe,this.isBrowser=this._platformId?(0,o.NF)(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&&!g)&&"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 z.\u0275fac=function(pe){return new(pe||z)(c.LFG(c.Lbi))},z.\u0275prov=c.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();const De=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ce(){if(q)return q;if("object"!=typeof document||!document)return q=new Set(De),q;let z=document.createElement("input");return q=new Set(De.filter(Q=>(z.setAttribute("type",Q),z.type===Q))),q}let ue,X,Be;function se(z){return function te(){if(null==ue&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ue=!0}))}finally{ue=ue||!1}return ue}()?z:!!z.capture}function le(){if(null==X){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return X=!1,X;if("scrollBehavior"in document.documentElement.style)X=!0;else{const z=Element.prototype.scrollTo;X=!!z&&!/\{\s*\[native code\]\s*\}/.test(z.toString())}}return X}function et(z){if(function Z(){if(null==Be){const z="undefined"!=typeof document?document.head:null;Be=!(!z||!z.createShadowRoot&&!z.attachShadow)}return Be}()){const Q=z.getRootNode?z.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Q instanceof ShadowRoot)return Q}return null}function Ye(){let z="undefined"!=typeof document&&document?document.activeElement:null;for(;z&&z.shadowRoot;){const Q=z.shadowRoot.activeElement;if(Q===z)break;z=Q}return z}function Qe(z){return z.composedPath?z.composedPath()[0]:z.target}function me(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(qe,ye,C)=>{C.d(ye,{en:()=>X,Pl:()=>Ye,C5:()=>te,u0:()=>ke,eL:()=>me,UE:()=>se});var c=C(4893),o=C(9808);class ue{attach(pe){return this._attachedHost=pe,pe.attach(this)}detach(){let pe=this._attachedHost;null!=pe&&(this._attachedHost=null,pe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(pe){this._attachedHost=pe}}class te extends ue{constructor(pe,Te,Ne,ve){super(),this.component=pe,this.viewContainerRef=Te,this.injector=Ne,this.componentFactoryResolver=ve}}class se extends ue{constructor(pe,Te,Ne){super(),this.templateRef=pe,this.viewContainerRef=Te,this.context=Ne}get origin(){return this.templateRef.elementRef}attach(pe,Te=this.context){return this.context=Te,super.attach(pe)}detach(){return this.context=void 0,super.detach()}}class de extends ue{constructor(pe){super(),this.element=pe instanceof c.SBq?pe.nativeElement:pe}}class X{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(pe){return pe instanceof te?(this._attachedPortal=pe,this.attachComponentPortal(pe)):pe instanceof se?(this._attachedPortal=pe,this.attachTemplatePortal(pe)):this.attachDomPortal&&pe instanceof de?(this._attachedPortal=pe,this.attachDomPortal(pe)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(pe){this._disposeFn=pe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ke extends X{constructor(pe,Te,Ne,ve,Me){super(),this.outletElement=pe,this._componentFactoryResolver=Te,this._appRef=Ne,this._defaultInjector=ve,this.attachDomPortal=xe=>{const Ae=xe.element,tt=this._document.createComment("dom-portal");Ae.parentNode.insertBefore(tt,Ae),this.outletElement.appendChild(Ae),this._attachedPortal=xe,super.setDisposeFn(()=>{tt.parentNode&&tt.parentNode.replaceChild(Ae,tt)})},this._document=Me}attachComponentPortal(pe){const Ne=(pe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(pe.component);let ve;return pe.viewContainerRef?(ve=pe.viewContainerRef.createComponent(Ne,pe.viewContainerRef.length,pe.injector||pe.viewContainerRef.injector),this.setDisposeFn(()=>ve.destroy())):(ve=Ne.create(pe.injector||this._defaultInjector),this._appRef.attachView(ve.hostView),this.setDisposeFn(()=>{this._appRef.detachView(ve.hostView),ve.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ve)),this._attachedPortal=pe,ve}attachTemplatePortal(pe){let Te=pe.viewContainerRef,Ne=Te.createEmbeddedView(pe.templateRef,pe.context);return Ne.rootNodes.forEach(ve=>this.outletElement.appendChild(ve)),Ne.detectChanges(),this.setDisposeFn(()=>{let ve=Te.indexOf(Ne);-1!==ve&&Te.remove(ve)}),this._attachedPortal=pe,Ne}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(pe){return pe.hostView.rootNodes[0]}}let Ye=(()=>{class Q extends X{constructor(Te,Ne,ve){super(),this._componentFactoryResolver=Te,this._viewContainerRef=Ne,this._isInitialized=!1,this.attached=new c.vpe,this.attachDomPortal=Me=>{const xe=Me.element,Ae=this._document.createComment("dom-portal");Me.setAttachedHost(this),xe.parentNode.insertBefore(Ae,xe),this._getRootNode().appendChild(xe),this._attachedPortal=Me,super.setDisposeFn(()=>{Ae.parentNode&&Ae.parentNode.replaceChild(xe,Ae)})},this._document=ve}get portal(){return this._attachedPortal}set portal(Te){this.hasAttached()&&!Te&&!this._isInitialized||(this.hasAttached()&&super.detach(),Te&&super.attach(Te),this._attachedPortal=Te||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Te){Te.setAttachedHost(this);const Ne=null!=Te.viewContainerRef?Te.viewContainerRef:this._viewContainerRef,Me=(Te.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Te.component),xe=Ne.createComponent(Me,Ne.length,Te.injector||Ne.injector);return Ne!==this._viewContainerRef&&this._getRootNode().appendChild(xe.hostView.rootNodes[0]),super.setDisposeFn(()=>xe.destroy()),this._attachedPortal=Te,this._attachedRef=xe,this.attached.emit(xe),xe}attachTemplatePortal(Te){Te.setAttachedHost(this);const Ne=this._viewContainerRef.createEmbeddedView(Te.templateRef,Te.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Te,this._attachedRef=Ne,this.attached.emit(Ne),Ne}_getRootNode(){const Te=this._viewContainerRef.element.nativeElement;return Te.nodeType===Te.ELEMENT_NODE?Te:Te.parentNode}}return Q.\u0275fac=function(Te){return new(Te||Q)(c.Y36(c._Vd),c.Y36(c.s_b),c.Y36(o.K0))},Q.\u0275dir=c.lG2({type:Q,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[c.qOj]}),Q})(),me=(()=>{class Q{}return Q.\u0275fac=function(Te){return new(Te||Q)},Q.\u0275mod=c.oAB({type:Q}),Q.\u0275inj=c.cJS({}),Q})()},495:(qe,ye,C)=>{C.d(ye,{ZD:()=>on,mF:()=>mt,Cl:()=>Xe,rL:()=>Rt});var c=C(3191),o=C(4893),g=C(4408),Y=C(727);const ce={schedule(je){let J=requestAnimationFrame,K=cancelAnimationFrame;const{delegate:He}=ce;He&&(J=He.requestAnimationFrame,K=He.cancelAnimationFrame);const Ge=J(lt=>{K=void 0,je(lt)});return new Y.w0(()=>null==K?void 0:K(Ge))},requestAnimationFrame(...je){const{delegate:J}=ce;return((null==J?void 0:J.requestAnimationFrame)||requestAnimationFrame)(...je)},cancelAnimationFrame(...je){const{delegate:J}=ce;return((null==J?void 0:J.cancelAnimationFrame)||cancelAnimationFrame)(...je)},delegate:void 0};var De=C(640);new class Ce extends De.v{flush(J){this._active=!0;const K=this._scheduled;this._scheduled=void 0;const{actions:He}=this;let Ge;J=J||He.shift();do{if(Ge=J.execute(J.state,J.delay))break}while((J=He[0])&&J.id===K&&He.shift());if(this._active=!1,Ge){for(;(J=He[0])&&J.id===K&&He.shift();)J.unsubscribe();throw Ge}}}(class q extends g.o{constructor(J,K){super(J,K),this.scheduler=J,this.work=K}requestAsyncId(J,K,He=0){return null!==He&&He>0?super.requestAsyncId(J,K,He):(J.actions.push(this),J._scheduled||(J._scheduled=ce.requestAnimationFrame(()=>J.flush(void 0))))}recycleAsyncId(J,K,He=0){if(null!=He&&He>0||null==He&&this.delay>0)return super.recycleAsyncId(J,K,He);J.actions.some(Ge=>Ge.id===K)||(ce.cancelAnimationFrame(K),J._scheduled=void 0)}});var se=C(7579),de=C(9646),X=C(8306),le=C(4968),Be=(C(3101),C(4986)),Z=C(4482),et=C(8421),Ye=C(5403),me=C(5963);function z(je,J=Be.z){return function Qe(je){return(0,Z.e)((J,K)=>{let He=!1,Ge=null,lt=null,St=!1;const Ht=()=>{if(null==lt||lt.unsubscribe(),lt=null,He){He=!1;const Nt=Ge;Ge=null,K.next(Nt)}St&&K.complete()},bt=()=>{lt=null,St&&K.complete()};J.subscribe((0,Ye.x)(K,Nt=>{He=!0,Ge=Nt,lt||(0,et.Xf)(je(Nt)).subscribe(lt=(0,Ye.x)(K,Ht,bt))},()=>{St=!0,(!He||!lt||lt.closed)&&K.complete()}))})}(()=>(0,me.H)(je,J))}var Q=C(9300),pe=C(9808),Te=C(925),Ne=C(226);let mt=(()=>{class je{constructor(K,He,Ge){this._ngZone=K,this._platform=He,this._scrolled=new se.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ge}register(K){this.scrollContainers.has(K)||this.scrollContainers.set(K,K.elementScrolled().subscribe(()=>this._scrolled.next(K)))}deregister(K){const He=this.scrollContainers.get(K);He&&(He.unsubscribe(),this.scrollContainers.delete(K))}scrolled(K=20){return this._platform.isBrowser?new X.y(He=>{this._globalSubscription||this._addGlobalListener();const Ge=K>0?this._scrolled.pipe(z(K)).subscribe(He):this._scrolled.subscribe(He);return this._scrolledCount++,()=>{Ge.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,de.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((K,He)=>this.deregister(He)),this._scrolled.complete()}ancestorScrolled(K,He){const Ge=this.getAncestorScrollContainers(K);return this.scrolled(He).pipe((0,Q.h)(lt=>!lt||Ge.indexOf(lt)>-1))}getAncestorScrollContainers(K){const He=[];return this.scrollContainers.forEach((Ge,lt)=>{this._scrollableContainsElement(lt,K)&&He.push(lt)}),He}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(K,He){let Ge=(0,c.fI)(He),lt=K.getElementRef().nativeElement;do{if(Ge==lt)return!0}while(Ge=Ge.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const K=this._getWindow();return(0,le.R)(K.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return je.\u0275fac=function(K){return new(K||je)(o.LFG(o.R0b),o.LFG(Te.t4),o.LFG(pe.K0,8))},je.\u0275prov=o.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})(),Rt=(()=>{class je{constructor(K,He,Ge){this._platform=K,this._change=new se.x,this._changeListener=lt=>{this._change.next(lt)},this._document=Ge,He.runOutsideAngular(()=>{if(K.isBrowser){const lt=this._getWindow();lt.addEventListener("resize",this._changeListener),lt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const K=this._getWindow();K.removeEventListener("resize",this._changeListener),K.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const K={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),K}getViewportRect(){const K=this.getViewportScrollPosition(),{width:He,height:Ge}=this.getViewportSize();return{top:K.top,left:K.left,bottom:K.top+Ge,right:K.left+He,height:Ge,width:He}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const K=this._document,He=this._getWindow(),Ge=K.documentElement,lt=Ge.getBoundingClientRect();return{top:-lt.top||K.body.scrollTop||He.scrollY||Ge.scrollTop||0,left:-lt.left||K.body.scrollLeft||He.scrollX||Ge.scrollLeft||0}}change(K=20){return K>0?this._change.pipe(z(K)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const K=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:K.innerWidth,height:K.innerHeight}:{width:0,height:0}}}return je.\u0275fac=function(K){return new(K||je)(o.LFG(Te.t4),o.LFG(o.R0b),o.LFG(pe.K0,8))},je.\u0275prov=o.Yz7({token:je,factory:je.\u0275fac,providedIn:"root"}),je})(),on=(()=>{class je{}return je.\u0275fac=function(K){return new(K||je)},je.\u0275mod=o.oAB({type:je}),je.\u0275inj=o.cJS({}),je})(),Xe=(()=>{class je{}return je.\u0275fac=function(K){return new(K||je)},je.\u0275mod=o.oAB({type:je}),je.\u0275inj=o.cJS({imports:[[Ne.vT,on],Ne.vT,on]}),je})()},9808:(qe,ye,C)=>{C.d(ye,{mr:()=>Ye,Ov:()=>fr,ez:()=>Nr,K0:()=>De,Do:()=>me,V_:()=>te,Ye:()=>z,S$:()=>Z,mk:()=>tn,sg:()=>jt,O5:()=>Si,RF:()=>Nn,n9:()=>Xn,ED:()=>un,b0:()=>Qe,lw:()=>Ce,EM:()=>Tn,JF:()=>Pi,NF:()=>Ii,w_:()=>q,bD:()=>zi,q:()=>g,Mx:()=>ci,HT:()=>ce});var c=C(4893);let o=null;function g(){return o}function ce(A){o||(o=A)}class q{}const De=new c.OlP("DocumentToken");let Ce=(()=>{class A{historyGo(T){throw new Error("Not implemented")}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=c.Yz7({token:A,factory:function(){return function ue(){return(0,c.LFG)(se)}()},providedIn:"platform"}),A})();const te=new c.OlP("Location Initialized");let se=(()=>{class A extends Ce{constructor(T){super(),this._doc=T,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return g().getBaseHref(this._doc)}onPopState(T){const H=g().getGlobalEventTarget(this._doc,"window");return H.addEventListener("popstate",T,!1),()=>H.removeEventListener("popstate",T)}onHashChange(T){const H=g().getGlobalEventTarget(this._doc,"window");return H.addEventListener("hashchange",T,!1),()=>H.removeEventListener("hashchange",T)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(T){this.location.pathname=T}pushState(T,H,ae){de()?this._history.pushState(T,H,ae):this.location.hash=ae}replaceState(T,H,ae){de()?this._history.replaceState(T,H,ae):this.location.hash=ae}forward(){this._history.forward()}back(){this._history.back()}historyGo(T=0){this._history.go(T)}getState(){return this._history.state}}return A.\u0275fac=function(T){return new(T||A)(c.LFG(De))},A.\u0275prov=c.Yz7({token:A,factory:function(){return function X(){return new se((0,c.LFG)(De))}()},providedIn:"platform"}),A})();function de(){return!!window.history.pushState}function le(A,N){if(0==A.length)return N;if(0==N.length)return A;let T=0;return A.endsWith("/")&&T++,N.startsWith("/")&&T++,2==T?A+N.substring(1):1==T?A+N:A+"/"+N}function ke(A){const N=A.match(/#|\?|$/),T=N&&N.index||A.length;return A.slice(0,T-("/"===A[T-1]?1:0))+A.slice(T)}function Be(A){return A&&"?"!==A[0]?"?"+A:A}let Z=(()=>{class A{historyGo(T){throw new Error("Not implemented")}}return A.\u0275fac=function(T){return new(T||A)},A.\u0275prov=c.Yz7({token:A,factory:function(){return function et(A){const N=(0,c.LFG)(De).location;return new Qe((0,c.LFG)(Ce),N&&N.origin||"")}()},providedIn:"root"}),A})();const Ye=new c.OlP("appBaseHref");let Qe=(()=>{class A extends Z{constructor(T,H){if(super(),this._platformLocation=T,this._removeListenerFns=[],null==H&&(H=this._platformLocation.getBaseHrefFromDOM()),null==H)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=H}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}prepareExternalUrl(T){return le(this._baseHref,T)}path(T=!1){const H=this._platformLocation.pathname+Be(this._platformLocation.search),ae=this._platformLocation.hash;return ae&&T?`${H}${ae}`:H}pushState(T,H,ae,$e){const nt=this.prepareExternalUrl(ae+Be($e));this._platformLocation.pushState(T,H,nt)}replaceState(T,H,ae,$e){const nt=this.prepareExternalUrl(ae+Be($e));this._platformLocation.replaceState(T,H,nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(T=0){var H,ae;null===(ae=(H=this._platformLocation).historyGo)||void 0===ae||ae.call(H,T)}}return A.\u0275fac=function(T){return new(T||A)(c.LFG(Ce),c.LFG(Ye,8))},A.\u0275prov=c.Yz7({token:A,factory:A.\u0275fac}),A})(),me=(()=>{class A extends Z{constructor(T,H){super(),this._platformLocation=T,this._baseHref="",this._removeListenerFns=[],null!=H&&(this._baseHref=H)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(T){this._removeListenerFns.push(this._platformLocation.onPopState(T),this._platformLocation.onHashChange(T))}getBaseHref(){return this._baseHref}path(T=!1){let H=this._platformLocation.hash;return null==H&&(H="#"),H.length>0?H.substring(1):H}prepareExternalUrl(T){const H=le(this._baseHref,T);return H.length>0?"#"+H:H}pushState(T,H,ae,$e){let nt=this.prepareExternalUrl(ae+Be($e));0==nt.length&&(nt=this._platformLocation.pathname),this._platformLocation.pushState(T,H,nt)}replaceState(T,H,ae,$e){let nt=this.prepareExternalUrl(ae+Be($e));0==nt.length&&(nt=this._platformLocation.pathname),this._platformLocation.replaceState(T,H,nt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(T=0){var H,ae;null===(ae=(H=this._platformLocation).historyGo)||void 0===ae||ae.call(H,T)}}return A.\u0275fac=function(T){return new(T||A)(c.LFG(Ce),c.LFG(Ye,8))},A.\u0275prov=c.Yz7({token:A,factory:A.\u0275fac}),A})(),z=(()=>{class A{constructor(T,H){this._subject=new c.vpe,this._urlChangeListeners=[],this._platformStrategy=T;const ae=this._platformStrategy.getBaseHref();this._platformLocation=H,this._baseHref=ke(Te(ae)),this._platformStrategy.onPopState($e=>{this._subject.emit({url:this.path(!0),pop:!0,state:$e.state,type:$e.type})})}path(T=!1){return this.normalize(this._platformStrategy.path(T))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(T,H=""){return this.path()==this.normalize(T+Be(H))}normalize(T){return A.stripTrailingSlash(function pe(A,N){return A&&N.startsWith(A)?N.substring(A.length):N}(this._baseHref,Te(T)))}prepareExternalUrl(T){return T&&"/"!==T[0]&&(T="/"+T),this._platformStrategy.prepareExternalUrl(T)}go(T,H="",ae=null){this._platformStrategy.pushState(ae,"",T,H),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Be(H)),ae)}replaceState(T,H="",ae=null){this._platformStrategy.replaceState(ae,"",T,H),this._notifyUrlChangeListeners(this.prepareExternalUrl(T+Be(H)),ae)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(T=0){var H,ae;null===(ae=(H=this._platformStrategy).historyGo)||void 0===ae||ae.call(H,T)}onUrlChange(T){this._urlChangeListeners.push(T),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(H=>{this._notifyUrlChangeListeners(H.url,H.state)}))}_notifyUrlChangeListeners(T="",H){this._urlChangeListeners.forEach(ae=>ae(T,H))}subscribe(T,H,ae){return this._subject.subscribe({next:T,error:H,complete:ae})}}return A.normalizeQueryParams=Be,A.joinWithSlash=le,A.stripTrailingSlash=ke,A.\u0275fac=function(T){return new(T||A)(c.LFG(Z),c.LFG(Ce))},A.\u0275prov=c.Yz7({token:A,factory:function(){return function Q(){return new z((0,c.LFG)(Z),(0,c.LFG)(Ce))}()},providedIn:"root"}),A})();function Te(A){return A.replace(/\/index.html$/,"")}function ci(A,N){N=encodeURIComponent(N);for(const T of A.split(";")){const H=T.indexOf("="),[ae,$e]=-1==H?[T,""]:[T.slice(0,H),T.slice(H+1)];if(ae.trim()===N)return decodeURIComponent($e)}return null}let tn=(()=>{class A{constructor(T,H,ae,$e){this._iterableDiffers=T,this._keyValueDiffers=H,this._ngEl=ae,this._renderer=$e,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(T){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof T?T.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(T){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof T?T.split(/\s+/):T,this._rawClass&&((0,c.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const T=this._iterableDiffer.diff(this._rawClass);T&&this._applyIterableChanges(T)}else if(this._keyValueDiffer){const T=this._keyValueDiffer.diff(this._rawClass);T&&this._applyKeyValueChanges(T)}}_applyKeyValueChanges(T){T.forEachAddedItem(H=>this._toggleClass(H.key,H.currentValue)),T.forEachChangedItem(H=>this._toggleClass(H.key,H.currentValue)),T.forEachRemovedItem(H=>{H.previousValue&&this._toggleClass(H.key,!1)})}_applyIterableChanges(T){T.forEachAddedItem(H=>{if("string"!=typeof H.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,c.AaK)(H.item)}`);this._toggleClass(H.item,!0)}),T.forEachRemovedItem(H=>this._toggleClass(H.item,!1))}_applyClasses(T){T&&(Array.isArray(T)||T instanceof Set?T.forEach(H=>this._toggleClass(H,!0)):Object.keys(T).forEach(H=>this._toggleClass(H,!!T[H])))}_removeClasses(T){T&&(Array.isArray(T)||T instanceof Set?T.forEach(H=>this._toggleClass(H,!1)):Object.keys(T).forEach(H=>this._toggleClass(H,!1)))}_toggleClass(T,H){(T=T.trim())&&T.split(/\s+/g).forEach(ae=>{H?this._renderer.addClass(this._ngEl.nativeElement,ae):this._renderer.removeClass(this._ngEl.nativeElement,ae)})}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.ZZ4),c.Y36(c.aQg),c.Y36(c.SBq),c.Y36(c.Qsj))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),A})();class pi{constructor(N,T,H,ae){this.$implicit=N,this.ngForOf=T,this.index=H,this.count=ae}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let jt=(()=>{class A{constructor(T,H,ae){this._viewContainer=T,this._template=H,this._differs=ae,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(T){this._ngForOf=T,this._ngForOfDirty=!0}set ngForTrackBy(T){this._trackByFn=T}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(T){T&&(this._template=T)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const T=this._ngForOf;!this._differ&&T&&(this._differ=this._differs.find(T).create(this.ngForTrackBy))}if(this._differ){const T=this._differ.diff(this._ngForOf);T&&this._applyChanges(T)}}_applyChanges(T){const H=this._viewContainer;T.forEachOperation((ae,$e,nt)=>{if(null==ae.previousIndex)H.createEmbeddedView(this._template,new pi(ae.item,this._ngForOf,-1,-1),null===nt?void 0:nt);else if(null==nt)H.remove(null===$e?void 0:$e);else if(null!==$e){const ht=H.get($e);H.move(ht,nt),ui(ht,ae)}});for(let ae=0,$e=H.length;ae<$e;ae++){const ht=H.get(ae).context;ht.index=ae,ht.count=$e,ht.ngForOf=this._ngForOf}T.forEachIdentityChange(ae=>{ui(H.get(ae.currentIndex),ae)})}static ngTemplateContextGuard(T,H){return!0}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(c.ZZ4))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),A})();function ui(A,N){A.context.$implicit=N.item}let Si=(()=>{class A{constructor(T,H){this._viewContainer=T,this._context=new Gn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=H}set ngIf(T){this._context.$implicit=this._context.ngIf=T,this._updateView()}set ngIfThen(T){gn("ngIfThen",T),this._thenTemplateRef=T,this._thenViewRef=null,this._updateView()}set ngIfElse(T){gn("ngIfElse",T),this._elseTemplateRef=T,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(T,H){return!0}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),A})();class Gn{constructor(){this.$implicit=null,this.ngIf=null}}function gn(A,N){if(N&&!N.createEmbeddedView)throw new Error(`${A} must be a TemplateRef, but received '${(0,c.AaK)(N)}'.`)}class di{constructor(N,T){this._viewContainerRef=N,this._templateRef=T,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(N){N&&!this._created?this.create():!N&&this._created&&this.destroy()}}let Nn=(()=>{class A{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(T){this._ngSwitch=T,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(T){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(T)}_matchCase(T){const H=T==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||H,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),H}_updateDefaultCases(T){if(this._defaultViews&&T!==this._defaultUsed){this._defaultUsed=T;for(let H=0;H{class A{constructor(T,H,ae){this.ngSwitch=ae,ae._addCase(),this._view=new di(T,H)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(Nn,9))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),A})(),un=(()=>{class A{constructor(T,H,ae){ae._addDefault(new di(T,H))}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(Nn,9))},A.\u0275dir=c.lG2({type:A,selectors:[["","ngSwitchDefault",""]]}),A})();class ei{createSubscription(N,T){return N.subscribe({next:T,error:H=>{throw H}})}dispose(N){N.unsubscribe()}onDestroy(N){N.unsubscribe()}}class Oi{createSubscription(N,T){return N.then(T,H=>{throw H})}dispose(N){}onDestroy(N){}}const hr=new Oi,rr=new ei;let fr=(()=>{class A{constructor(T){this._ref=T,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(T){return this._obj?T!==this._obj?(this._dispose(),this.transform(T)):this._latestValue:(T&&this._subscribe(T),this._latestValue)}_subscribe(T){this._obj=T,this._strategy=this._selectStrategy(T),this._subscription=this._strategy.createSubscription(T,H=>this._updateLatestValue(T,H))}_selectStrategy(T){if((0,c.QGY)(T))return hr;if((0,c.F4k)(T))return rr;throw function On(A,N){return new c.vHH(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(T,H){T===this._obj&&(this._latestValue=H,this._ref.markForCheck())}}return A.\u0275fac=function(T){return new(T||A)(c.Y36(c.sBO,16))},A.\u0275pipe=c.Yjl({name:"async",type:A,pure:!1}),A})(),Nr=(()=>{class A{}return A.\u0275fac=function(T){return new(T||A)},A.\u0275mod=c.oAB({type:A}),A.\u0275inj=c.cJS({}),A})();const zi="browser";function Ii(A){return A===zi}let Tn=(()=>{class A{}return A.\u0275prov=(0,c.Yz7)({token:A,providedIn:"root",factory:()=>new Ji((0,c.LFG)(De),window)}),A})();class Ji{constructor(N,T){this.document=N,this.window=T,this.offset=()=>[0,0]}setOffset(N){this.offset=Array.isArray(N)?()=>N:N}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(N){this.supportsScrolling()&&this.window.scrollTo(N[0],N[1])}scrollToAnchor(N){if(!this.supportsScrolling())return;const T=function ni(A,N){const T=A.getElementById(N)||A.getElementsByName(N)[0];if(T)return T;if("function"==typeof A.createTreeWalker&&A.body&&(A.body.createShadowRoot||A.body.attachShadow)){const H=A.createTreeWalker(A.body,NodeFilter.SHOW_ELEMENT);let ae=H.currentNode;for(;ae;){const $e=ae.shadowRoot;if($e){const nt=$e.getElementById(N)||$e.querySelector(`[name="${N}"]`);if(nt)return nt}ae=H.nextNode()}}return null}(this.document,N);T&&(this.scrollToElement(T),T.focus())}setHistoryScrollRestoration(N){if(this.supportScrollRestoration()){const T=this.window.history;T&&T.scrollRestoration&&(T.scrollRestoration=N)}}scrollToElement(N){const T=N.getBoundingClientRect(),H=T.left+this.window.pageXOffset,ae=T.top+this.window.pageYOffset,$e=this.offset();this.window.scrollTo(H-$e[0],ae-$e[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const N=Xi(this.window.history)||Xi(Object.getPrototypeOf(this.window.history));return!(!N||!N.writable&&!N.set)}catch(N){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(N){return!1}}}function Xi(A){return Object.getOwnPropertyDescriptor(A,"scrollRestoration")}class Pi{}},520:(qe,ye,C)=>{C.d(ye,{eN:()=>Fe,JF:()=>Pe});var c=C(9808),o=C(4893),g=C(9646),Y=C(8306),ce=C(4351),q=C(9300),De=C(4004);class Ce{}class ue{}class te{constructor(P){this.normalizedNames=new Map,this.lazyUpdate=null,P?this.lazyInit="string"==typeof P?()=>{this.headers=new Map,P.split("\n").forEach(L=>{const re=L.indexOf(":");if(re>0){const be=L.slice(0,re),Ue=be.toLowerCase(),ze=L.slice(re+1).trim();this.maybeSetNormalizedName(be,Ue),this.headers.has(Ue)?this.headers.get(Ue).push(ze):this.headers.set(Ue,[ze])}})}:()=>{this.headers=new Map,Object.keys(P).forEach(L=>{let re=P[L];const be=L.toLowerCase();"string"==typeof re&&(re=[re]),re.length>0&&(this.headers.set(be,re),this.maybeSetNormalizedName(L,be))})}:this.headers=new Map}has(P){return this.init(),this.headers.has(P.toLowerCase())}get(P){this.init();const L=this.headers.get(P.toLowerCase());return L&&L.length>0?L[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(P){return this.init(),this.headers.get(P.toLowerCase())||null}append(P,L){return this.clone({name:P,value:L,op:"a"})}set(P,L){return this.clone({name:P,value:L,op:"s"})}delete(P,L){return this.clone({name:P,value:L,op:"d"})}maybeSetNormalizedName(P,L){this.normalizedNames.has(L)||this.normalizedNames.set(L,P)}init(){this.lazyInit&&(this.lazyInit instanceof te?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(P=>this.applyUpdate(P)),this.lazyUpdate=null))}copyFrom(P){P.init(),Array.from(P.headers.keys()).forEach(L=>{this.headers.set(L,P.headers.get(L)),this.normalizedNames.set(L,P.normalizedNames.get(L))})}clone(P){const L=new te;return L.lazyInit=this.lazyInit&&this.lazyInit instanceof te?this.lazyInit:this,L.lazyUpdate=(this.lazyUpdate||[]).concat([P]),L}applyUpdate(P){const L=P.name.toLowerCase();switch(P.op){case"a":case"s":let re=P.value;if("string"==typeof re&&(re=[re]),0===re.length)return;this.maybeSetNormalizedName(P.name,L);const be=("a"===P.op?this.headers.get(L):void 0)||[];be.push(...re),this.headers.set(L,be);break;case"d":const Ue=P.value;if(Ue){let ze=this.headers.get(L);if(!ze)return;ze=ze.filter(_t=>-1===Ue.indexOf(_t)),0===ze.length?(this.headers.delete(L),this.normalizedNames.delete(L)):this.headers.set(L,ze)}else this.headers.delete(L),this.normalizedNames.delete(L)}}forEach(P){this.init(),Array.from(this.normalizedNames.keys()).forEach(L=>P(this.normalizedNames.get(L),this.headers.get(L)))}}class se{encodeKey(P){return ke(P)}encodeValue(P){return ke(P)}decodeKey(P){return decodeURIComponent(P)}decodeValue(P){return decodeURIComponent(P)}}const X=/%(\d[a-f0-9])/gi,le={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ke(D){return encodeURIComponent(D).replace(X,(P,L)=>{var re;return null!==(re=le[L])&&void 0!==re?re:P})}function Be(D){return`${D}`}class Z{constructor(P={}){if(this.updates=null,this.cloneFrom=null,this.encoder=P.encoder||new se,P.fromString){if(P.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function de(D,P){const L=new Map;return D.length>0&&D.replace(/^\?/,"").split("&").forEach(be=>{const Ue=be.indexOf("="),[ze,_t]=-1==Ue?[P.decodeKey(be),""]:[P.decodeKey(be.slice(0,Ue)),P.decodeValue(be.slice(Ue+1))],ct=L.get(ze)||[];ct.push(_t),L.set(ze,ct)}),L}(P.fromString,this.encoder)}else P.fromObject?(this.map=new Map,Object.keys(P.fromObject).forEach(L=>{const re=P.fromObject[L];this.map.set(L,Array.isArray(re)?re:[re])})):this.map=null}has(P){return this.init(),this.map.has(P)}get(P){this.init();const L=this.map.get(P);return L?L[0]:null}getAll(P){return this.init(),this.map.get(P)||null}keys(){return this.init(),Array.from(this.map.keys())}append(P,L){return this.clone({param:P,value:L,op:"a"})}appendAll(P){const L=[];return Object.keys(P).forEach(re=>{const be=P[re];Array.isArray(be)?be.forEach(Ue=>{L.push({param:re,value:Ue,op:"a"})}):L.push({param:re,value:be,op:"a"})}),this.clone(L)}set(P,L){return this.clone({param:P,value:L,op:"s"})}delete(P,L){return this.clone({param:P,value:L,op:"d"})}toString(){return this.init(),this.keys().map(P=>{const L=this.encoder.encodeKey(P);return this.map.get(P).map(re=>L+"="+this.encoder.encodeValue(re)).join("&")}).filter(P=>""!==P).join("&")}clone(P){const L=new Z({encoder:this.encoder});return L.cloneFrom=this.cloneFrom||this,L.updates=(this.updates||[]).concat(P),L}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(P=>this.map.set(P,this.cloneFrom.map.get(P))),this.updates.forEach(P=>{switch(P.op){case"a":case"s":const L=("a"===P.op?this.map.get(P.param):void 0)||[];L.push(Be(P.value)),this.map.set(P.param,L);break;case"d":if(void 0===P.value){this.map.delete(P.param);break}{let re=this.map.get(P.param)||[];const be=re.indexOf(Be(P.value));-1!==be&&re.splice(be,1),re.length>0?this.map.set(P.param,re):this.map.delete(P.param)}}}),this.cloneFrom=this.updates=null)}}class Ye{constructor(){this.map=new Map}set(P,L){return this.map.set(P,L),this}get(P){return this.map.has(P)||this.map.set(P,P.defaultValue()),this.map.get(P)}delete(P){return this.map.delete(P),this}has(P){return this.map.has(P)}keys(){return this.map.keys()}}function me(D){return"undefined"!=typeof ArrayBuffer&&D instanceof ArrayBuffer}function z(D){return"undefined"!=typeof Blob&&D instanceof Blob}function Q(D){return"undefined"!=typeof FormData&&D instanceof FormData}class Te{constructor(P,L,re,be){let Ue;if(this.url=L,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=P.toUpperCase(),function Qe(D){switch(D){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||be?(this.body=void 0!==re?re:null,Ue=be):Ue=re,Ue&&(this.reportProgress=!!Ue.reportProgress,this.withCredentials=!!Ue.withCredentials,Ue.responseType&&(this.responseType=Ue.responseType),Ue.headers&&(this.headers=Ue.headers),Ue.context&&(this.context=Ue.context),Ue.params&&(this.params=Ue.params)),this.headers||(this.headers=new te),this.context||(this.context=new Ye),this.params){const ze=this.params.toString();if(0===ze.length)this.urlWithParams=L;else{const _t=L.indexOf("?");this.urlWithParams=L+(-1===_t?"?":_tdn.set(dt,P.setHeaders[dt]),Ot)),P.setParams&&(nn=Object.keys(P.setParams).reduce((dn,dt)=>dn.set(dt,P.setParams[dt]),nn)),new Te(re,be,ze,{params:nn,headers:Ot,context:Yt,reportProgress:ct,responseType:Ue,withCredentials:_t})}}var Ne=(()=>((Ne=Ne||{})[Ne.Sent=0]="Sent",Ne[Ne.UploadProgress=1]="UploadProgress",Ne[Ne.ResponseHeader=2]="ResponseHeader",Ne[Ne.DownloadProgress=3]="DownloadProgress",Ne[Ne.Response=4]="Response",Ne[Ne.User=5]="User",Ne))();class ve{constructor(P,L=200,re="OK"){this.headers=P.headers||new te,this.status=void 0!==P.status?P.status:L,this.statusText=P.statusText||re,this.url=P.url||null,this.ok=this.status>=200&&this.status<300}}class Me extends ve{constructor(P={}){super(P),this.type=Ne.ResponseHeader}clone(P={}){return new Me({headers:P.headers||this.headers,status:void 0!==P.status?P.status:this.status,statusText:P.statusText||this.statusText,url:P.url||this.url||void 0})}}class xe extends ve{constructor(P={}){super(P),this.type=Ne.Response,this.body=void 0!==P.body?P.body:null}clone(P={}){return new xe({body:void 0!==P.body?P.body:this.body,headers:P.headers||this.headers,status:void 0!==P.status?P.status:this.status,statusText:P.statusText||this.statusText,url:P.url||this.url||void 0})}}class Ae extends ve{constructor(P){super(P,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${P.url||"(unknown url)"}`:`Http failure response for ${P.url||"(unknown url)"}: ${P.status} ${P.statusText}`,this.error=P.error||null}}function tt(D,P){return{body:P,headers:D.headers,context:D.context,observe:D.observe,params:D.params,reportProgress:D.reportProgress,responseType:D.responseType,withCredentials:D.withCredentials}}let Fe=(()=>{class D{constructor(L){this.handler=L}request(L,re,be={}){let Ue;if(L instanceof Te)Ue=L;else{let ct,Ot;ct=be.headers instanceof te?be.headers:new te(be.headers),be.params&&(Ot=be.params instanceof Z?be.params:new Z({fromObject:be.params})),Ue=new Te(L,re,void 0!==be.body?be.body:null,{headers:ct,context:be.context,params:Ot,reportProgress:be.reportProgress,responseType:be.responseType||"json",withCredentials:be.withCredentials})}const ze=(0,g.of)(Ue).pipe((0,ce.b)(ct=>this.handler.handle(ct)));if(L instanceof Te||"events"===be.observe)return ze;const _t=ze.pipe((0,q.h)(ct=>ct instanceof xe));switch(be.observe||"body"){case"body":switch(Ue.responseType){case"arraybuffer":return _t.pipe((0,De.U)(ct=>{if(null!==ct.body&&!(ct.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ct.body}));case"blob":return _t.pipe((0,De.U)(ct=>{if(null!==ct.body&&!(ct.body instanceof Blob))throw new Error("Response is not a Blob.");return ct.body}));case"text":return _t.pipe((0,De.U)(ct=>{if(null!==ct.body&&"string"!=typeof ct.body)throw new Error("Response is not a string.");return ct.body}));default:return _t.pipe((0,De.U)(ct=>ct.body))}case"response":return _t;default:throw new Error(`Unreachable: unhandled observe type ${be.observe}}`)}}delete(L,re={}){return this.request("DELETE",L,re)}get(L,re={}){return this.request("GET",L,re)}head(L,re={}){return this.request("HEAD",L,re)}jsonp(L,re){return this.request("JSONP",L,{params:(new Z).append(re,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(L,re={}){return this.request("OPTIONS",L,re)}patch(L,re,be={}){return this.request("PATCH",L,tt(be,re))}post(L,re,be={}){return this.request("POST",L,tt(be,re))}put(L,re,be={}){return this.request("PUT",L,tt(be,re))}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(Ce))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})();class Ct{constructor(P,L){this.next=P,this.interceptor=L}handle(P){return this.interceptor.intercept(P,this.next)}}const mt=new o.OlP("HTTP_INTERCEPTORS");let Jt=(()=>{class D{intercept(L,re){return re.handle(L)}}return D.\u0275fac=function(L){return new(L||D)},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})();const Xe=/^\)\]\}',?\n/;let J=(()=>{class D{constructor(L){this.xhrFactory=L}handle(L){if("JSONP"===L.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Y.y(re=>{const be=this.xhrFactory.build();if(be.open(L.method,L.urlWithParams),L.withCredentials&&(be.withCredentials=!0),L.headers.forEach((dt,vt)=>be.setRequestHeader(dt,vt.join(","))),L.headers.has("Accept")||be.setRequestHeader("Accept","application/json, text/plain, */*"),!L.headers.has("Content-Type")){const dt=L.detectContentTypeHeader();null!==dt&&be.setRequestHeader("Content-Type",dt)}if(L.responseType){const dt=L.responseType.toLowerCase();be.responseType="json"!==dt?dt:"text"}const Ue=L.serializeBody();let ze=null;const _t=()=>{if(null!==ze)return ze;const dt=be.statusText||"OK",vt=new te(be.getAllResponseHeaders()),Le=function je(D){return"responseURL"in D&&D.responseURL?D.responseURL:/^X-Request-URL:/m.test(D.getAllResponseHeaders())?D.getResponseHeader("X-Request-URL"):null}(be)||L.url;return ze=new Me({headers:vt,status:be.status,statusText:dt,url:Le}),ze},ct=()=>{let{headers:dt,status:vt,statusText:Le,url:we}=_t(),V=null;204!==vt&&(V=void 0===be.response?be.responseText:be.response),0===vt&&(vt=V?200:0);let j=vt>=200&&vt<300;if("json"===L.responseType&&"string"==typeof V){const $=V;V=V.replace(Xe,"");try{V=""!==V?JSON.parse(V):null}catch(he){V=$,j&&(j=!1,V={error:he,text:V})}}j?(re.next(new xe({body:V,headers:dt,status:vt,statusText:Le,url:we||void 0})),re.complete()):re.error(new Ae({error:V,headers:dt,status:vt,statusText:Le,url:we||void 0}))},Ot=dt=>{const{url:vt}=_t(),Le=new Ae({error:dt,status:be.status||0,statusText:be.statusText||"Unknown Error",url:vt||void 0});re.error(Le)};let nn=!1;const Yt=dt=>{nn||(re.next(_t()),nn=!0);let vt={type:Ne.DownloadProgress,loaded:dt.loaded};dt.lengthComputable&&(vt.total=dt.total),"text"===L.responseType&&!!be.responseText&&(vt.partialText=be.responseText),re.next(vt)},dn=dt=>{let vt={type:Ne.UploadProgress,loaded:dt.loaded};dt.lengthComputable&&(vt.total=dt.total),re.next(vt)};return be.addEventListener("load",ct),be.addEventListener("error",Ot),be.addEventListener("timeout",Ot),be.addEventListener("abort",Ot),L.reportProgress&&(be.addEventListener("progress",Yt),null!==Ue&&be.upload&&be.upload.addEventListener("progress",dn)),be.send(Ue),re.next({type:Ne.Sent}),()=>{be.removeEventListener("error",Ot),be.removeEventListener("abort",Ot),be.removeEventListener("load",ct),be.removeEventListener("timeout",Ot),L.reportProgress&&(be.removeEventListener("progress",Yt),null!==Ue&&be.upload&&be.upload.removeEventListener("progress",dn)),be.readyState!==be.DONE&&be.abort()}})}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(c.JF))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})();const K=new o.OlP("XSRF_COOKIE_NAME"),He=new o.OlP("XSRF_HEADER_NAME");class Ge{}let lt=(()=>{class D{constructor(L,re,be){this.doc=L,this.platform=re,this.cookieName=be,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const L=this.doc.cookie||"";return L!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,c.Mx)(L,this.cookieName),this.lastCookieString=L),this.lastToken}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(c.K0),o.LFG(o.Lbi),o.LFG(K))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})(),St=(()=>{class D{constructor(L,re){this.tokenService=L,this.headerName=re}intercept(L,re){const be=L.url.toLowerCase();if("GET"===L.method||"HEAD"===L.method||be.startsWith("http://")||be.startsWith("https://"))return re.handle(L);const Ue=this.tokenService.getToken();return null!==Ue&&!L.headers.has(this.headerName)&&(L=L.clone({headers:L.headers.set(this.headerName,Ue)})),re.handle(L)}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(Ge),o.LFG(He))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})(),Ht=(()=>{class D{constructor(L,re){this.backend=L,this.injector=re,this.chain=null}handle(L){if(null===this.chain){const re=this.injector.get(mt,[]);this.chain=re.reduceRight((be,Ue)=>new Ct(be,Ue),this.backend)}return this.chain.handle(L)}}return D.\u0275fac=function(L){return new(L||D)(o.LFG(ue),o.LFG(o.zs3))},D.\u0275prov=o.Yz7({token:D,factory:D.\u0275fac}),D})(),at=(()=>{class D{static disable(){return{ngModule:D,providers:[{provide:St,useClass:Jt}]}}static withOptions(L={}){return{ngModule:D,providers:[L.cookieName?{provide:K,useValue:L.cookieName}:[],L.headerName?{provide:He,useValue:L.headerName}:[]]}}}return D.\u0275fac=function(L){return new(L||D)},D.\u0275mod=o.oAB({type:D}),D.\u0275inj=o.cJS({providers:[St,{provide:mt,useExisting:St,multi:!0},{provide:Ge,useClass:lt},{provide:K,useValue:"XSRF-TOKEN"},{provide:He,useValue:"X-XSRF-TOKEN"}]}),D})(),Pe=(()=>{class D{}return D.\u0275fac=function(L){return new(L||D)},D.\u0275mod=o.oAB({type:D}),D.\u0275inj=o.cJS({providers:[Fe,{provide:Ce,useClass:Ht},J,{provide:ue,useExisting:J}],imports:[[at.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),D})()},4893:(qe,ye,C)=>{C.d(ye,{deG:()=>Im,tb:()=>am,AFp:()=>im,ip1:()=>nm,CZH:()=>jc,hGG:()=>VC,z2F:()=>Zc,sBO:()=>DC,Sil:()=>rC,_Vd:()=>Ra,EJc:()=>nC,SBq:()=>Ws,qLn:()=>ca,vpe:()=>co,tBr:()=>ra,XFs:()=>S,OlP:()=>vi,zs3:()=>zr,ZZ4:()=>tu,aQg:()=>nu,soG:()=>Gc,YKP:()=>gp,h0i:()=>fs,PXZ:()=>gC,R0b:()=>Yr,FiY:()=>As,Lbi:()=>sm,g9A:()=>om,n_E:()=>Fa,Qsj:()=>qb,FYo:()=>hp,JOm:()=>ro,q3G:()=>yi,tp0:()=>Ts,Rgc:()=>qs,dDg:()=>dm,GfV:()=>fp,s_b:()=>Na,ifc:()=>Ot,eFA:()=>pm,G48:()=>EC,Gpc:()=>Be,f3M:()=>Mu,_c5:()=>BC,VLi:()=>fC,c2e:()=>lm,zSh:()=>Gl,wAp:()=>qt,vHH:()=>Qe,EiD:()=>Uu,mCW:()=>Ss,qzn:()=>Go,JVY:()=>cg,pB0:()=>fg,eBb:()=>dg,L6k:()=>ug,LAX:()=>hg,cg1:()=>bc,kL8:()=>Lf,yhl:()=>Pu,dqk:()=>vt,sIi:()=>Bs,CqO:()=>zh,QGY:()=>sc,F4k:()=>jh,RDi:()=>N,AaK:()=>X,z3N:()=>_o,qOj:()=>Zl,TTD:()=>zi,_Bn:()=>cp,xp6:()=>Cd,uIk:()=>Jl,Tol:()=>hf,Gre:()=>Af,ekj:()=>fc,Suo:()=>Fp,Xpm:()=>Dt,lG2:()=>$t,Yz7:()=>J,cJS:()=>He,oAB:()=>Ie,Yjl:()=>bn,Y36:()=>Us,_UZ:()=>oc,BQk:()=>wa,ynx:()=>Ma,qZA:()=>Da,TgZ:()=>Ea,EpF:()=>Hh,n5z:()=>pu,Ikx:()=>vc,LFG:()=>Ni,$8M:()=>$a,$Z:()=>Vh,NdJ:()=>ac,CRH:()=>Lp,kcU:()=>Mo,O4$:()=>eo,oxw:()=>Wh,ALo:()=>Ap,lcZ:()=>Tp,Hsn:()=>Kh,F$t:()=>Yh,Q6J:()=>ic,s9C:()=>uc,VKq:()=>bp,iGM:()=>Rp,MAs:()=>xh,evT:()=>Zu,CHM:()=>Jr,oJD:()=>Hu,LSH:()=>ol,Udp:()=>hc,WFA:()=>lc,d8E:()=>yc,YNc:()=>Th,_uU:()=>yf,Oqu:()=>mc,hij:()=>Ta,AsE:()=>gc,lnq:()=>_c,Gf:()=>kp});var c=C(7579),o=C(727),g=C(8306),Y=C(6451),ce=C(2076),q=C(5698),De=C(930),Ce=C(4482);function te(e,t,...n){return!0===t?(e(),null):!1===t?null:t(...n).pipe((0,q.q)(1)).subscribe(()=>e())}function se(e){for(let t in e)if(e[t]===se)return t;throw Error("Could not find renamed property on target object.")}function de(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function X(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(X).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function le(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ke=se({__forward_ref__:se});function Be(e){return e.__forward_ref__=Be,e.toString=function(){return X(this())},e}function Z(e){return et(e)?e():e}function et(e){return"function"==typeof e&&e.hasOwnProperty(ke)&&e.__forward_ref__===Be}class Qe extends Error{constructor(t,n){super(function me(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function z(e){return"string"==typeof e?e:null==e?"":String(e)}function Q(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():z(e)}function ve(e,t){const n=t?` in ${t}`:"";throw new Qe(-201,`No provider for ${Q(e)} found${n}`)}function Ut(e,t){null==e&&function xt(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function J(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function He(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ge(e){return lt(e,Nt)||lt(e,Pe)}function lt(e,t){return e.hasOwnProperty(t)?e[t]:null}function bt(e){return e&&(e.hasOwnProperty(at)||e.hasOwnProperty(E))?e[at]:null}const Nt=se({\u0275prov:se}),at=se({\u0275inj:se}),Pe=se({ngInjectableDef:se}),E=se({ngInjectorDef:se});var S=(()=>((S=S||{})[S.Default=0]="Default",S[S.Host=1]="Host",S[S.Self=2]="Self",S[S.SkipSelf=4]="SkipSelf",S[S.Optional=8]="Optional",S))();let D;function L(e){const t=D;return D=e,t}function re(e,t,n){const i=Ge(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&S.Optional?null:void 0!==t?t:void ve(X(e),"Injector")}function Ue(e){return{toString:e}.toString()}var ze=(()=>((ze=ze||{})[ze.OnPush=0]="OnPush",ze[ze.Default=1]="Default",ze))(),Ot=(()=>{return(e=Ot||(Ot={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ot;var e})();const nn="undefined"!=typeof globalThis&&globalThis,Yt="undefined"!=typeof window&&window,dn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,vt=nn||"undefined"!=typeof global&&global||Yt||dn,V={},j=[],$=se({\u0275cmp:se}),he=se({\u0275dir:se}),Se=se({\u0275pipe:se}),st=se({\u0275mod:se}),At=se({\u0275fac:se}),Zt=se({__NG_ELEMENT_ID__:se});let Kt=0;function Dt(e){return Ue(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ze.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||j,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ot.Emulated,id:"c",styles:e.styles||j,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,s=e.features,u=e.pipes;return i.id+=Kt++,i.inputs=kt(e.inputs,n),i.outputs=kt(e.outputs),s&&s.forEach(p=>p(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Ve):null,i.pipeDefs=u?()=>("function"==typeof u?u():u).map(_e):null,i})}function Ve(e){return en(e)||function kn(e){return e[he]||null}(e)}function _e(e){return function Cn(e){return e[Se]||null}(e)}const ne={};function Ie(e){return Ue(()=>{const t={type:e.type,bootstrap:e.bootstrap||j,declarations:e.declarations||j,imports:e.imports||j,exports:e.exports||j,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ne[e.id]=e.type),t})}function kt(e,t){if(null==e)return V;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}const $t=Dt;function bn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function en(e){return e[$]||null}function jn(e,t){const n=e[st]||null;if(!n&&!0===t)throw new Error(`Type ${X(e)} does not have '\u0275mod' property.`);return n}function Kn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ci(e){return Array.isArray(e)&&!0===e[1]}function Ki(e){return 0!=(8&e.flags)}function Zi(e){return 2==(2&e.flags)}function On(e){return 1==(1&e.flags)}function ei(e){return null!==e.template}function Oi(e){return 0!=(512&e[2])}function Mi(e,t){return e.hasOwnProperty(At)?e[At]:null}class Nr{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function zi(){return Bi}function Bi(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qr),Qi}function Qi(){const e=lr(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===V)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Qr(e,t,n,i){const r=lr(e)||function Br(e,t){return e[Ii]=t}(e,{previous:V,current:null}),s=r.current||(r.current={}),u=r.previous,p=this.declaredInputs[n],b=u[p];s[p]=new Nr(b&&b.currentValue,t,u===V),e[i]=t}zi.ngInherit=!0;const Ii="__ngSimpleChanges__";function lr(e){return e[Ii]||null}let A;function N(e){A=e}function T(){return void 0!==A?A:"undefined"!=typeof document?document:void 0}function ae(e){return!!e.listen}const $e={createRenderer:(e,t)=>T()};function ht(e){for(;Array.isArray(e);)e=e[0];return e}function hn(e,t){return ht(t[e])}function zt(e,t){return ht(t[e.index])}function vn(e,t){return e.data[t]}function Sn(e,t){return e[t]}function Vn(e,t){const n=t[e];return Kn(n)?n:n[0]}function wi(e){return 4==(4&e[2])}function er(e){return 128==(128&e[2])}function ki(e,t){return null==t?null:e[t]}function x(e){e[18]=0}function M(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const y={lFrame:Ei(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function gi(){return y.bindingsEnabled}function ot(){return y.lFrame.lView}function sn(){return y.lFrame.tView}function Jr(e){return y.lFrame.contextLView=e,e[8]}function Zn(){let e=bo();for(;null!==e&&64===e.type;)e=e.parent;return e}function bo(){return y.lFrame.currentTNode}function Vi(e,t){const n=y.lFrame;n.currentTNode=e,n.isParent=t}function Xr(){return y.lFrame.isParent}function k(){y.lFrame.isParent=!1}function d(){return y.isInCheckNoChangesMode}function a(e){y.isInCheckNoChangesMode=e}function l(){const e=y.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function v(){return y.lFrame.bindingIndex}function G(){return y.lFrame.bindingIndex++}function ie(e){const t=y.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ke(e,t){const n=y.lFrame;n.bindingIndex=n.bindingRootIndex=e,It(t)}function It(e){y.lFrame.currentDirectiveIndex=e}function Xt(e){const t=y.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function ln(){return y.lFrame.currentQueryIndex}function Vt(e){y.lFrame.currentQueryIndex=e}function rn(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Mn(e,t,n){if(n&S.SkipSelf){let r=t,s=e;for(;!(r=r.parent,null!==r||n&S.Host||(r=rn(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,e=s}const i=y.lFrame=li();return i.currentTNode=t,i.lView=e,!0}function $n(e){const t=li(),n=e[1];y.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function li(){const e=y.lFrame,t=null===e?null:e.child;return null===t?Ei(e):t}function Ei(e){const t={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:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function ii(){const e=y.lFrame;return y.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Sr=ii;function Ui(){const e=ii();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Un(){return y.lFrame.selectedIndex}function _i(e){y.lFrame.selectedIndex=e}function Hn(){const e=y.lFrame;return vn(e.tView,e.selectedIndex)}function eo(){y.lFrame.currentNamespace="svg"}function Mo(){!function ho(){y.lFrame.currentNamespace=null}()}function Lt(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n=i)break}else t[b]<0&&(e[18]+=65536),(p>11>16&&(3&e[2])===t){e[2]+=2048;try{s.call(p)}finally{}}}else try{s.call(p)}finally{}}class Or{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function Ro(e,t,n){const i=ae(e);let r=0;for(;rt){u=s-1;break}}}for(;s>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let vs=!0;function ys(e){const t=vs;return vs=e,t}let w=0;function B(e,t){const n=ge(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,ee(i.data,e),ee(t,null),ee(i.blueprint,null));const r=Ze(e,t),s=e.injectorIndex;if(Fo(r)){const u=Co(r),p=fo(r,t),b=p[1].data;for(let I=0;I<8;I++)t[s+I]=p[u+I]|b[u+I]}return t[s+8]=r,s}function ee(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ge(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ze(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){const s=r[1],u=s.type;if(i=2===u?s.declTNode:1===u?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Mt(e,t,n){!function O(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Zt)&&(i=n[Zt]),null==i&&(i=n[Zt]=w++);const r=255&i;t.data[e+(r>>5)]|=1<=0?255&t:Ur:t}(n);if("function"==typeof s){if(!Mn(t,e,i))return i&S.Host?Bt(r,n,i):xn(t,n,i,r);try{const u=s(i);if(null!=u||i&S.Optional)return u;ve(n)}finally{Sr()}}else if("number"==typeof s){let u=null,p=ge(e,t),b=-1,I=i&S.Host?t[16][6]:null;for((-1===p||i&S.SkipSelf)&&(b=-1===p?Ze(e,t):t[p+8],-1!==b&&ea(i,!1)?(u=t[1],p=Co(b),t=fo(b,t)):p=-1);-1!==p;){const F=t[1];if(Ao(s,p,F.data)){const W=mo(p,t,n,u,i,I);if(W!==po)return W}b=t[p+8],-1!==b&&ea(i,t[1].data[p+8]===I)&&Ao(s,p,t)?(u=F,p=Co(b),t=fo(b,t)):p=-1}}}return xn(t,n,i,r)}const po={};function Ur(){return new Lo(Zn(),ot())}function mo(e,t,n,i,r,s){const u=t[1],p=u.data[e+8],F=Ir(p,u,n,null==i?Zi(p)&&vs:i!=u&&0!=(3&p.type),r&S.Host&&s===p);return null!==F?Dr(t,u,F,p):po}function Ir(e,t,n,i,r){const s=e.providerIndexes,u=t.data,p=1048575&s,b=e.directiveStart,F=s>>20,fe=r?p+F:e.directiveEnd;for(let Re=i?p:p+F;Re=b&&Je.type===n)return Re}if(r){const Re=u[b];if(Re&&ei(Re)&&Re.type===n)return b}return null}function Dr(e,t,n,i){let r=e[n];const s=t.data;if(function Js(e){return e instanceof Or}(r)){const u=r;u.resolving&&function pe(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Qe(-200,`Circular dependency in DI detected for ${e}${n}`)}(Q(s[n]));const p=ys(u.canSeeViewProviders);u.resolving=!0;const b=u.injectImpl?L(u.injectImpl):null;Mn(e,i,S.Default);try{r=e[n]=u.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Ft(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const u=Bi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,u)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==b&&L(b),ys(p),u.resolving=!1,Sr()}}return r}function Ao(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[At]||Ga(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const s=r[At]||Ga(r);if(s&&s!==n)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Ga(e){return et(e)?()=>{const t=Ga(Z(e));return t&&t()}:Mi(e)}function $a(e){return function cn(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let r=0;for(;r{const i=function Wa(e){return function(...n){if(e){const i=e(...n);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const u=new r(...s);return p.annotation=u,p;function p(b,I,F){const W=b.hasOwnProperty(Bo)?b[Bo]:Object.defineProperty(b,Bo,{value:[]})[Bo];for(;W.length<=F;)W.push(null);return(W[F]=W[F]||[]).push(u),b}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}class vi{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=J({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Im=new vi("AnalyzeForEntryComponents");function Pr(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?to(n,t):t(n))}function gu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ta(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Es(e,t){const n=[];for(let i=0;i=0?e[1|i]=n:(i=~i,function km(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function Ka(e,t){const n=Ho(e,t);if(n>=0)return e[1|n]}function Ho(e,t){return function yu(e,t,n){let i=0,r=e.length>>n;for(;r!==i;){const s=i+(r-i>>1),u=e[s<t?r=s:i=s+1}return~(r<({token:e})),-1),As=ws(Uo("Optional"),8),Ts=ws(Uo("SkipSelf"),4);let sa,aa;function zo(e){var t;return(null===(t=function Xa(){if(void 0===sa&&(sa=null,vt.trustedTypes))try{sa=vt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return sa}())||void 0===t?void 0:t.createHTML(e))||e}function Su(e){var t;return(null===(t=function el(){if(void 0===aa&&(aa=null,vt.trustedTypes))try{aa=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return aa}())||void 0===t?void 0:t.createHTML(e))||e}class To{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class rg extends To{getTypeName(){return"HTML"}}class og extends To{getTypeName(){return"Style"}}class sg extends To{getTypeName(){return"Script"}}class ag extends To{getTypeName(){return"URL"}}class lg extends To{getTypeName(){return"ResourceURL"}}function _o(e){return e instanceof To?e.changingThisBreaksApplicationSecurity:e}function Go(e,t){const n=Pu(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Pu(e){return e instanceof To&&e.getTypeName()||null}function cg(e){return new rg(e)}function ug(e){return new og(e)}function dg(e){return new sg(e)}function hg(e){return new ag(e)}function fg(e){return new lg(e)}class pg{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(zo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class mg{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=zo(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=zo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let r=n.length-1;0Ss(t.trim())).join(", ")),this.buf.push(" ",u,'="',Vu(b),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();tl.hasOwnProperty(n)&&!Fu.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Vu(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Cg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Eg=/([^\#-~ |!])/g;function Vu(e){return e.replace(/&/g,"&").replace(Cg,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Eg,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let la;function Uu(e,t){let n=null;try{la=la||function Ru(e){const t=new mg(e);return function gg(){try{return!!(new window.DOMParser).parseFromString(zo(""),"text/html")}catch(e){return!1}}()?new pg(t):t}(e);let i=t?String(t):"";n=la.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=la.getInertBodyElement(i)}while(i!==s);return zo((new bg).sanitizeChildren(rl(n)||n))}finally{if(n){const i=rl(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function rl(e){return"content"in e&&function Dg(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var yi=(()=>((yi=yi||{})[yi.NONE=0]="NONE",yi[yi.HTML=1]="HTML",yi[yi.STYLE=2]="STYLE",yi[yi.SCRIPT=3]="SCRIPT",yi[yi.URL=4]="URL",yi[yi.RESOURCE_URL=5]="RESOURCE_URL",yi))();function Hu(e){const t=Is();return t?Su(t.sanitize(yi.HTML,e)||""):Go(e,"HTML")?Su(_o(e)):Uu(T(),z(e))}function ol(e){const t=Is();return t?t.sanitize(yi.URL,e)||"":Go(e,"URL")?_o(e):Ss(z(e))}function Is(){const e=ot();return e&&e[12]}const Gu="__ngContext__";function Wi(e,t){e[Gu]=t}function al(e){const t=function Ps(e){return e[Gu]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function cl(e){return e.ngOriginalError}function Vg(e,...t){e.error(...t)}class ca{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function Bg(e){return e&&e.ngErrorLogger||Vg}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&cl(t);for(;n&&cl(n);)n=cl(n);return n||null}}const Zg=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(vt))();function Zu(e){return e.ownerDocument}function io(e){return e instanceof Function?e():e}var ro=(()=>((ro=ro||{})[ro.Important=1]="Important",ro[ro.DashCase=2]="DashCase",ro))();function dl(e,t){return undefined(e,t)}function Rs(e){const t=e[3];return Ci(t)?t[3]:t}function hl(e){return ed(e[13])}function fl(e){return ed(e[4])}function ed(e){for(;null!==e&&!Ci(e);)e=e[4];return e}function Wo(e,t,n,i,r){if(null!=i){let s,u=!1;Ci(i)?s=i:Kn(i)&&(u=!0,i=i[0]);const p=ht(i);0===e&&null!==n?null==r?sd(t,n,p):xo(t,n,p,r||null,!0):1===e&&null!==n?xo(t,n,p,r||null,!0):2===e?function fd(e,t,n){const i=ua(e,t);i&&function l_(e,t,n,i){ae(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,p,u):3===e&&t.destroyNode(p),null!=s&&function d_(e,t,n,i,r){const s=n[7];s!==ht(n)&&Wo(t,e,i,s,r);for(let p=10;p0&&(e[n-1][4]=i[4]);const s=ta(e,10+t);!function e_(e,t){ks(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const u=s[19];null!==u&&u.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function id(e,t){if(!(256&t[2])){const n=t[11];ae(n)&&n.destroyNode&&ks(e,t,n,3,null,null),function i_(e){let t=e[13];if(!t)return _l(e[1],e);for(;t;){let n=null;if(Kn(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Kn(t)&&_l(t[1],t),t=t[3];null===t&&(t=e),Kn(t)&&_l(t[1],t),n=t&&t[4]}t=n}}(t)}}function _l(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function a_(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i=0?i[r=I]():i[r=-I].unsubscribe(),s+=2}else{const u=i[r=n[s+1]];n[s].call(u)}if(null!==i){for(let s=r+1;ss?"":r[W+1].toLowerCase();const Re=8&i?fe:null;if(Re&&-1!==gd(Re,I,0)||2&i&&I!==fe){if(Hr(i))return!1;u=!0}}}}else{if(!u&&!Hr(i)&&!Hr(b))return!1;if(u&&Hr(b))continue;u=!1,i=b|1&i}}return Hr(i)||u}function Hr(e){return 0==(1&e)}function g_(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let s=!1;for(;r-1)for(n++;n0?'="'+p+'"':"")+"]"}else 8&i?r+="."+u:4&i&&(r+=" "+u);else""!==r&&!Hr(u)&&(t+=bd(s,r),r=""),i=u,s=s||!Hr(i);n++}return""!==r&&(t+=bd(s,r)),t}const an={};function Cd(e){Ed(sn(),ot(),Un()+e,d())}function Ed(e,t,n,i){if(!i)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&fn(t,s,n)}else{const s=e.preOrderHooks;null!==s&&qn(t,s,0,n)}_i(n)}function fa(e,t){return e<<17|t<<2}function jr(e){return e>>17&32767}function El(e){return 2|e}function vo(e){return(131068&e)>>2}function Dl(e,t){return-131069&e|t<<2}function Ml(e){return 1|e}function Rd(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i20&&Ed(e,t,20,d()),n(i,r)}finally{_i(s)}}function Fd(e,t,n){if(Ki(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(p)!=b&&p.push(b),p.push(i,r,u)}}function zd(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Gd(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function q_(e,t,n){if(n){if(t.exportAs)for(let i=0;i0&&Bl(n)}}function Bl(e){for(let i=hl(e);null!==i;i=fl(i))for(let r=10;r0&&Bl(s)}const n=e[1].components;if(null!==n)for(let i=0;i0&&Bl(r)}}function iv(e,t){const n=Vn(t,e),i=n[1];(function rv(e,t){for(let n=t.length;nPromise.resolve(null))();function Zd(e){return e[7]||(e[7]=[])}function qd(e){return e.cleanup||(e.cleanup=[])}function Qd(e,t,n){return(null===e||ei(e))&&(n=function En(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Jd(e,t){const n=e[9],i=n?n.get(ca,null):null;i&&i.handleError(t)}function Xd(e,t,n,i,r){for(let s=0;sthis.processProvider(p,t,n)),to([t],p=>this.processInjectorType(p,[],s)),this.records.set(zl,qo(void 0,this));const u=this.records.get(Gl);this.scope=null!=u?u.value:null,this.source=r||("object"==typeof t?null:X(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Ds,i=S.Default){this.assertNotDestroyed();const r=Eu(this),s=L(void 0);try{if(!(i&S.SkipSelf)){let p=this.records.get(t);if(void 0===p){const b=function bv(e){return"function"==typeof e||"object"==typeof e&&e instanceof vi}(t)&&Ge(t);p=b&&this.injectableDefInScope(b)?qo(Wl(t),Ns):null,this.records.set(t,p)}if(null!=p)return this.hydrate(t,p)}return(i&S.Self?th():this.parent).get(t,n=i&S.Optional&&n===Ds?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[ia]=u[ia]||[]).unshift(X(t)),r)throw u;return function Wm(e,t,n,i){const r=e[ia];throw t[Cu]&&r.unshift(t[Cu]),e.message=function Ym(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=X(t);if(Array.isArray(t))r=t.map(X).join(" -> ");else if("object"==typeof t){let s=[];for(let u in t)if(t.hasOwnProperty(u)){let p=t[u];s.push(u+":"+("string"==typeof p?JSON.stringify(p):X(p)))}r=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(Hm,"\n ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[ia]=null,e}(u,t,"R3InjectorError",this.source)}throw u}finally{L(s),Eu(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(X(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Qe(205,!1)}processInjectorType(t,n,i){if(!(t=Z(t)))return!1;let r=bt(t);const s=null==r&&t.ngModule||void 0,u=void 0===s?t:s,p=-1!==i.indexOf(u);if(void 0!==s&&(r=bt(s)),null==r)return!1;if(null!=r.imports&&!p){let F;i.push(u);try{to(r.imports,W=>{this.processInjectorType(W,n,i)&&(void 0===F&&(F=[]),F.push(W))})}finally{}if(void 0!==F)for(let W=0;Wthis.processProvider(Je,fe,Re||j))}}this.injectorDefTypes.add(u);const b=Mi(u)||(()=>new u);this.records.set(u,qo(b,Ns));const I=r.providers;if(null!=I&&!p){const F=t;to(I,W=>this.processProvider(W,F,I))}return void 0!==s&&void 0!==t.providers}processProvider(t,n,i){let r=Qo(t=Z(t))?t:Z(t&&t.provide);const s=function pv(e,t,n){return oh(e)?qo(void 0,e.useValue):qo(rh(e),Ns)}(t);if(Qo(t)||!0!==t.multi)this.records.get(r);else{let u=this.records.get(r);u||(u=qo(void 0,Ns,!0),u.factory=()=>Qa(u.multi),this.records.set(r,u)),r=t,u.multi.push(t)}this.records.set(r,s)}hydrate(t,n){return n.value===Ns&&(n.value=dv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function yv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Z(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Wl(e){const t=Ge(e),n=null!==t?t.factory:Mi(e);if(null!==n)return n;if(e instanceof vi)throw new Qe(204,!1);if(e instanceof Function)return function fv(e){const t=e.length;if(t>0)throw Es(t,"?"),new Qe(204,!1);const n=function St(e){const t=e&&(e[Nt]||e[Pe]);if(t){const n=function Ht(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Qe(204,!1)}function rh(e,t,n){let i;if(Qo(e)){const r=Z(e);return Mi(r)||Wl(r)}if(oh(e))i=()=>Z(e.useValue);else if(function gv(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Qa(e.deps||[]));else if(function mv(e){return!(!e||!e.useExisting)}(e))i=()=>Ni(Z(e.useExisting));else{const r=Z(e&&(e.useClass||e.provide));if(!function vv(e){return!!e.deps}(e))return Mi(r)||Wl(r);i=()=>new r(...Qa(e.deps))}return i}function qo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function oh(e){return null!==e&&"object"==typeof e&&zm in e}function Qo(e){return"function"==typeof e}let zr=(()=>{class e{static create(n,i){var r;if(Array.isArray(n))return nh({name:""},i,n,"");{const s=null!==(r=n.name)&&void 0!==r?r:"";return nh({name:s},n.parent,n.providers,s)}}}return e.THROW_IF_NOT_FOUND=Ds,e.NULL=new eh,e.\u0275prov=J({token:e,providedIn:"any",factory:()=>Ni(zl)}),e.__NG_ELEMENT_ID__=-1,e})();function xv(e,t){Lt(al(e)[1],Zn())}function Zl(e){let t=function _h(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let r;if(ei(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Qe(903,"");r=t.\u0275dir}if(r){if(n){i.push(r);const u=e;u.inputs=ql(e.inputs),u.declaredInputs=ql(e.declaredInputs),u.outputs=ql(e.outputs);const p=r.hostBindings;p&&Pv(e,p);const b=r.viewQuery,I=r.contentQueries;if(b&&Ov(e,b),I&&Iv(e,I),de(e.inputs,r.inputs),de(e.declaredInputs,r.declaredInputs),de(e.outputs,r.outputs),ei(r)&&r.data.animation){const F=e.data;F.animation=(F.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let u=0;u=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=ko(r.hostAttrs,n=ko(n,r.hostAttrs))}}(i)}function ql(e){return e===V?{}:e===j?[]:e}function Ov(e,t){const n=e.viewQuery;e.viewQuery=n?(i,r)=>{t(i,r),n(i,r)}:t}function Iv(e,t){const n=e.contentQueries;e.contentQueries=n?(i,r,s)=>{t(i,r,s),n(i,r,s)}:t}function Pv(e,t){const n=e.hostBindings;e.hostBindings=n?(i,r)=>{t(i,r),n(i,r)}:t}let ya=null;function Jo(){if(!ya){const e=vt.Symbol;if(e&&e.iterator)ya=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;np(ht(yn[i.index])):i.index;if(ae(n)){let yn=null;if(!p&&b&&(yn=function ly(e,t,n,i){const r=e.cleanup;if(null!=r)for(let s=0;sb?p[b]:null}"string"==typeof u&&(s+=2)}return null}(e,t,r,i.index)),null!==yn)(yn.__ngLastListenerFn__||yn).__ngNextListenerFn__=s,yn.__ngLastListenerFn__=s,Re=!1;else{s=cc(i,t,W,s,!1);const In=n.listen(wt,r,s);fe.push(s,In),F&&F.push(r,Gt,it,it+1)}}else s=cc(i,t,W,s,!0),wt.addEventListener(r,s,u),fe.push(s),F&&F.push(r,Gt,it,u)}else s=cc(i,t,W,s,!1);const Je=i.outputs;let ut;if(Re&&null!==Je&&(ut=Je[r])){const pt=ut.length;if(pt)for(let wt=0;wt0;)t=t[15],e--;return t}(e,y.lFrame.contextLView))[8]}(e)}function cy(e,t){let n=null;const i=function __(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let r=0;r=0}const xi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function sf(e){return e.substring(xi.key,xi.keyEnd)}function af(e,t){const n=xi.textEnd;return n===t?-1:(t=xi.keyEnd=function gy(e,t,n){for(;t32;)t++;return t}(e,xi.key=t,n),cs(e,t,n))}function cs(e,t,n){for(;t=0;n=af(t,n))Mr(e,sf(t),!0)}function $r(e,t,n,i){const r=ot(),s=sn(),u=ie(2);s.firstUpdatePass&&pf(s,e,u,i),t!==an&&Yi(r,u,t)&&gf(s,s.data[Un()],r,r[11],e,r[u+1]=function Ay(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=X(_o(e)))),e}(t,n),i,u)}function Wr(e,t,n,i){const r=sn(),s=ie(2);r.firstUpdatePass&&pf(r,null,s,i);const u=ot();if(n!==an&&Yi(u,s,n)){const p=r.data[Un()];if(vf(p,i)&&!ff(r,s)){let b=i?p.classesWithoutHost:p.stylesWithoutHost;null!==b&&(n=le(b,n||"")),rc(r,p,u,n,i)}else!function wy(e,t,n,i,r,s,u,p){r===an&&(r=j);let b=0,I=0,F=0=e.expandoStartIndex}function pf(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[Un()],u=ff(e,n);vf(s,i)&&null===t&&!u&&(t=!1),t=function by(e,t,n,i){const r=Xt(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Hs(n=pc(null,e,t,n,i),t.attrs,i),s=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==r)if(n=pc(r,e,t,n,i),null===s){let b=function Cy(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==vo(i))return e[jr(i)]}(e,t,i);void 0!==b&&Array.isArray(b)&&(b=pc(null,e,t,b[1],i),b=Hs(b,t.attrs,i),function Ey(e,t,n,i){e[jr(n?t.classBindings:t.styleBindings)]=i}(e,t,i,b))}else s=function Dy(e,t,n){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(I=!0)}else F=n;if(r)if(0!==b){const fe=jr(e[p+1]);e[i+1]=fa(fe,p),0!==fe&&(e[fe+1]=Dl(e[fe+1],i)),e[p+1]=function M_(e,t){return 131071&e|t<<17}(e[p+1],i)}else e[i+1]=fa(p,0),0!==p&&(e[p+1]=Dl(e[p+1],i)),p=i;else e[i+1]=fa(b,0),0===p?p=i:e[b+1]=Dl(e[b+1],i),b=i;I&&(e[i+1]=El(e[i+1])),rf(e,F,i,!0),rf(e,F,i,!1),function dy(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&Ho(s,t)>=0&&(n[i+1]=Ml(n[i+1]))}(t,F,e,i,s),u=fa(p,b),s?t.classBindings=u:t.styleBindings=u}(r,s,t,n,u,i)}}function pc(e,t,n,i,r){let s=null;const u=n.directiveEnd;let p=n.directiveStylingLast;for(-1===p?p=n.directiveStart:p++;p0;){const b=e[r],I=Array.isArray(b),F=I?b[1]:b,W=null===F;let fe=n[r+1];fe===an&&(fe=W?j:void 0);let Re=W?Ka(fe,i):F===i?fe:void 0;if(I&&!Aa(Re)&&(Re=Ka(b,i)),Aa(Re)&&(p=Re,u))return p;const Je=e[r+1];r=u?jr(Je):vo(Je)}if(null!==t){let b=s?t.residualClasses:t.residualStyles;null!=b&&(p=Ka(b,i))}return p}function Aa(e){return void 0!==e}function vf(e,t){return 0!=(e.flags&(t?16:32))}function yf(e,t=""){const n=ot(),i=sn(),r=e+20,s=i.firstCreatePass?Yo(i,r,1,t,null):i.data[r],u=n[r]=function pl(e,t){return ae(e)?e.createText(t):e.createTextNode(t)}(n[11],t);da(i,n,u,s),Vi(s,!1)}function mc(e){return Ta("",e,""),mc}function Ta(e,t,n){const i=ot(),r=es(i,e,t,n);return r!==an&&yo(i,Un(),r),Ta}function gc(e,t,n,i,r){const s=ot(),u=function ts(e,t,n,i,r,s){const p=So(e,v(),n,r);return ie(2),p?t+z(n)+i+z(r)+s:an}(s,e,t,n,i,r);return u!==an&&yo(s,Un(),u),gc}function _c(e,t,n,i,r,s,u){const p=ot(),b=ns(p,e,t,n,i,r,s,u);return b!==an&&yo(p,Un(),b),_c}function Af(e,t,n){Wr(Mr,lo,es(ot(),e,t,n),!0)}function vc(e,t,n){const i=ot();return Yi(i,G(),t)&&wr(sn(),Hn(),i,e,t,i[11],n,!0),vc}function yc(e,t,n){const i=ot();if(Yi(i,G(),t)){const s=sn(),u=Hn();wr(s,u,i,e,t,Qd(Xt(s.data),u,i),n,!0)}return yc}const Oo=void 0;var $y=["en",[["a","p"],["AM","PM"],Oo],[["AM","PM"],Oo,Oo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Oo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Oo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Oo,"{1} 'at' {0}",Oo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Gy(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let us={};function bc(e){const t=function Wy(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Nf(t);if(n)return n;const i=t.split("-")[0];if(n=Nf(i),n)return n;if("en"===i)return $y;throw new Error(`Missing locale data for the locale "${e}".`)}function Lf(e){return bc(e)[qt.PluralCase]}function Nf(e){return e in us||(us[e]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[e]),us[e]}var qt=(()=>((qt=qt||{})[qt.LocaleId=0]="LocaleId",qt[qt.DayPeriodsFormat=1]="DayPeriodsFormat",qt[qt.DayPeriodsStandalone=2]="DayPeriodsStandalone",qt[qt.DaysFormat=3]="DaysFormat",qt[qt.DaysStandalone=4]="DaysStandalone",qt[qt.MonthsFormat=5]="MonthsFormat",qt[qt.MonthsStandalone=6]="MonthsStandalone",qt[qt.Eras=7]="Eras",qt[qt.FirstDayOfWeek=8]="FirstDayOfWeek",qt[qt.WeekendRange=9]="WeekendRange",qt[qt.DateFormat=10]="DateFormat",qt[qt.TimeFormat=11]="TimeFormat",qt[qt.DateTimeFormat=12]="DateTimeFormat",qt[qt.NumberSymbols=13]="NumberSymbols",qt[qt.NumberFormats=14]="NumberFormats",qt[qt.CurrencyCode=15]="CurrencyCode",qt[qt.CurrencySymbol=16]="CurrencySymbol",qt[qt.CurrencyName=17]="CurrencyName",qt[qt.Currencies=18]="Currencies",qt[qt.Directionality=19]="Directionality",qt[qt.PluralCase=20]="PluralCase",qt[qt.ExtraData=21]="ExtraData",qt))();const xa="en-US";let Bf=xa;function Dc(e,t,n,i,r){if(e=Z(e),Array.isArray(e))for(let s=0;s>20;if(Qo(e)||!e.multi){const Re=new Or(b,r,Us),Je=wc(p,t,r?F:F+fe,W);-1===Je?(Mt(B(I,u),s,p),Mc(s,e,t.length),t.push(p),I.directiveStart++,I.directiveEnd++,r&&(I.providerIndexes+=1048576),n.push(Re),u.push(Re)):(n[Je]=Re,u[Je]=Re)}else{const Re=wc(p,t,F+fe,W),Je=wc(p,t,F,F+fe),ut=Re>=0&&n[Re],pt=Je>=0&&n[Je];if(r&&!pt||!r&&!ut){Mt(B(I,u),s,p);const wt=function Gb(e,t,n,i,r){const s=new Or(e,n,Us);return s.multi=[],s.index=t,s.componentProviders=0,lp(s,r,i&&!n),s}(r?zb:jb,n.length,r,i,b);!r&&pt&&(n[Je].providerFactory=wt),Mc(s,e,t.length,0),t.push(p),I.directiveStart++,I.directiveEnd++,r&&(I.providerIndexes+=1048576),n.push(wt),u.push(wt)}else Mc(s,e,Re>-1?Re:Je,lp(n[r?Je:Re],b,!r&&i));!r&&i&&pt&&n[Je].componentProviders++}}}function Mc(e,t,n,i){const r=Qo(t),s=function _v(e){return!!e.useClass}(t);if(r||s){const b=(s?Z(t.useClass):t).prototype.ngOnDestroy;if(b){const I=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const F=I.indexOf(n);-1===F?I.push(n,[i,b]):I[F+1].push(i,b)}else I.push(n,b)}}}function lp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function wc(e,t,n,i){for(let r=n;r{n.providersResolver=(i,r)=>function Hb(e,t,n){const i=sn();if(i.firstCreatePass){const r=ei(e);Dc(n,i.data,i.blueprint,r,!0),Dc(t,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,t)}}class up{}class Yb{resolveComponentFactory(t){throw function Wb(e){const t=Error(`No component factory found for ${X(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ra=(()=>{class e{}return e.NULL=new Yb,e})();function Kb(){return hs(Zn(),ot())}function hs(e,t){return new Ws(zt(e,t))}let Ws=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Kb,e})();function Zb(e){return e instanceof Ws?e.nativeElement:e}class hp{}let qb=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function Jb(){const e=ot(),n=Vn(Zn().index,e);return function Qb(e){return e[11]}(Kn(n)?n:e)}(),e})(),Xb=(()=>{class e{}return e.\u0275prov=J({token:e,providedIn:"root",factory:()=>null}),e})();class fp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const e0=new fp("13.2.5"),Tc={};function ka(e,t,n,i,r=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(ht(s)),Ci(s))for(let p=10;p-1&&(gl(t,i),ta(n,i))}this._attachedToViewContainer=!1}id(this._lView[1],this._lView)}onDestroy(t){Vd(this._lView[1],this._lView,null,t)}markForCheck(){Vl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Hl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function sv(e,t,n){a(!0);try{Hl(e,t,n)}finally{a(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Qe(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function n_(e,t){ks(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Qe(902,"");this._appRef=t}}class t0 extends Ys{constructor(t){super(t),this._view=t}detectChanges(){Kd(this._view)}checkNoChanges(){!function av(e){a(!0);try{Kd(e)}finally{a(!1)}}(this._view)}get context(){return null}}class pp extends Ra{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=en(t);return new xc(n,this.ngModule)}}function mp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class xc extends up{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function E_(e){return e.map(C_).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return mp(this.componentDef.inputs)}get outputs(){return mp(this.componentDef.outputs)}create(t,n,i,r){const s=(r=r||this.ngModule)?function r0(e,t){return{get:(n,i,r)=>{const s=e.get(n,Tc,r);return s!==Tc||i===Tc?s:t.get(n,i,r)}}}(t,r.injector):t,u=s.get(hp,$e),p=s.get(Xb,null),b=u.createRenderer(null,this.componentDef),I=this.componentDef.selectors[0][0]||"div",F=i?function Bd(e,t,n){if(ae(e))return e.selectRootElement(t,n===Ot.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(b,i,this.componentDef.encapsulation):ml(u.createRenderer(null,this.componentDef),I,function n0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(I)),W=this.componentDef.onPush?576:528,fe=function gh(e,t){return{components:[],scheduler:e||Zg,clean:lv,playerHandler:t||null,flags:0}}(),Re=ga(0,null,null,1,0,null,null,null,null,null),Je=Fs(null,Re,fe,W,null,null,u,b,p,s);let ut,pt;$n(Je);try{const wt=function ph(e,t,n,i,r,s){const u=n[1];n[20]=e;const b=Yo(u,20,2,"#host",null),I=b.mergedAttrs=t.hostAttrs;null!==I&&(va(b,I,!0),null!==e&&(Ro(r,e,I),null!==b.classes&&Cl(r,e,b.classes),null!==b.styles&&md(r,e,b.styles)));const F=i.createRenderer(e,t),W=Fs(n,Ld(t),null,t.onPush?64:16,n[20],b,i,F,s||null,null);return u.firstCreatePass&&(Mt(B(b,n),u,t.type),Gd(u,b),$d(b,n.length,1)),_a(n,W),n[20]=W}(F,this.componentDef,Je,u,b);if(F)if(i)Ro(b,F,["ng-version",e0.full]);else{const{attrs:it,classes:Gt}=function D_(e){const t=[],n=[];let i=1,r=2;for(;i0&&Cl(b,F,Gt.join(" "))}if(pt=vn(Re,20),void 0!==n){const it=pt.projection=[];for(let Gt=0;Gtb(u,t)),t.contentQueries){const b=Zn();t.contentQueries(1,u,b.directiveStart)}const p=Zn();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(_i(p.index),jd(n[1],p,0,p.directiveStart,p.directiveEnd,t),zd(t,u)),u}(wt,this.componentDef,Je,fe,[xv]),Ls(Re,Je,null)}finally{Ui()}return new s0(this.componentType,ut,hs(pt,Je),Je,pt)}}class s0 extends class $b{}{constructor(t,n,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new t0(r),this.componentType=t}get injector(){return new Lo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class fs{}class gp{}const ps=new Map;class yp extends fs{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new pp(this);const i=jn(t);this._bootstrapComponents=io(i.bootstrap),this._r3Injector=ih(t,n,[{provide:fs,useValue:this},{provide:Ra,useValue:this.componentFactoryResolver}],X(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=zr.THROW_IF_NOT_FOUND,i=S.Default){return t===zr||t===fs||t===zl?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Sc extends gp{constructor(t){super(),this.moduleType=t,null!==jn(t)&&function l0(e){const t=new Set;!function n(i){const r=jn(i,!0),s=r.id;null!==s&&(function _p(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${X(t)} vs ${X(t.name)}`)}(s,ps.get(s),i),ps.set(s,i));const u=io(r.imports);for(const p of u)t.has(p)||(t.add(p),n(p))}(e)}(t)}create(t){return new yp(this.moduleType,t)}}function bp(e,t,n,i){return Cp(ot(),l(),e,t,n,i)}function Cp(e,t,n,i,r,s){const u=t+n;return Yi(e,u,r)?function so(e,t,n){return e[t]=n}(e,u+1,s?i.call(s,r):i(r)):function Ks(e,t){const n=e[t];return n===an?void 0:n}(e,u+1)}function Ap(e,t){const n=sn();let i;const r=e+20;n.firstCreatePass?(i=function v0(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=Mi(i.type)),u=L(Us);try{const p=ys(!1),b=s();return ys(p),function Uv(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,ot(),r,b),b}finally{L(u)}}function Tp(e,t,n){const i=e+20,r=ot(),s=Sn(r,i);return function Zs(e,t){return e[1].data[t].pure}(r,i)?Cp(r,l(),t,s.transform,n,s):s.transform(n)}function Oc(e){return t=>{setTimeout(e,void 0,t)}}const co=class D0 extends c.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var r,s,u;let p=t,b=n||(()=>null),I=i;if(t&&"object"==typeof t){const W=t;p=null===(r=W.next)||void 0===r?void 0:r.bind(W),b=null===(s=W.error)||void 0===s?void 0:s.bind(W),I=null===(u=W.complete)||void 0===u?void 0:u.bind(W)}this.__isAsync&&(b=Oc(b),p&&(p=Oc(p)),I&&(I=Oc(I)));const F=super.subscribe({next:p,error:b,complete:I});return t instanceof o.w0&&t.add(F),F}};function M0(){return this._results[Jo()]()}class Fa{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Jo(),i=Fa.prototype;i[n]||(i[n]=M0)}get changes(){return this._changes||(this._changes=new co)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const r=Pr(t);(this._changesDetected=!function Pm(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i{class e{}return e.__NG_ELEMENT_ID__=T0,e})();const w0=qs,A0=class extends w0{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Fs(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(n)),Ls(n,i,t),new Ys(i)}};function T0(){return La(Zn(),ot())}function La(e,t){return 4&e.type?new A0(t,e,hs(e,t)):null}let Na=(()=>{class e{}return e.__NG_ELEMENT_ID__=x0,e})();function x0(){return Op(Zn(),ot())}const S0=Na,xp=class extends S0{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return hs(this._hostTNode,this._hostLView)}get injector(){return new Lo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ze(this._hostTNode,this._hostLView);if(Fo(t)){const n=fo(t,this._hostLView),i=Co(t);return new Lo(n[1].data[i+8],n)}return new Lo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Sp(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const r=t.createEmbeddedView(n||{});return this.insert(r,i),r}createComponent(t,n,i,r,s){const u=t&&!function Cs(e){return"function"==typeof e}(t);let p;if(u)p=n;else{const W=n||{};p=W.index,i=W.injector,r=W.projectableNodes,s=W.ngModuleRef}const b=u?t:new xc(en(t)),I=i||this.parentInjector;if(!s&&null==b.ngModule){const fe=(u?I:this.parentInjector).get(fs,null);fe&&(s=fe)}const F=b.create(I,r,void 0,s);return this.insert(F.hostView,p),F}insert(t,n){const i=t._lView,r=i[1];if(function Ri(e){return Ci(e[3])}(i)){const F=this.indexOf(t);if(-1!==F)this.detach(F);else{const W=i[3],fe=new xp(W,W[6],W[3]);fe.detach(fe.indexOf(t))}}const s=this._adjustIndex(n),u=this._lContainer;!function r_(e,t,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=t),i0)i.push(u[p/2]);else{const I=s[p+1],F=t[-b];for(let W=10;W{class e{constructor(n){this.appInits=n,this.resolve=Ua,this.reject=Ua,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{s.subscribe({complete:p,error:b})});n.push(u)}}Promise.all(n).then(()=>{i()}).catch(r=>{this.reject(r)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Ni(nm,8))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const im=new vi("AppId",{providedIn:"root",factory:function rm(){return`${zc()}${zc()}${zc()}`}});function zc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const om=new vi("Platform Initializer"),sm=new vi("Platform ID"),am=new vi("appBootstrapListener");let lm=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();const Gc=new vi("LocaleId",{providedIn:"root",factory:()=>Mu(Gc,S.Optional|S.SkipSelf)||function tC(){return"undefined"!=typeof $localize&&$localize.locale||xa}()}),nC=new vi("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class iC{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let rC=(()=>{class e{compileModuleSync(n){return new Sc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),s=io(jn(n).declarations).reduce((u,p)=>{const b=en(p);return b&&u.push(new xc(b)),u},[]);return new iC(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sC=(()=>Promise.resolve(0))();function $c(e){"undefined"==typeof Zone?sC.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Yr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new co(!1),this.onMicrotaskEmpty=new co(!1),this.onStable=new co(!1),this.onError=new co(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&n,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function aC(){let e=vt.requestAnimationFrame,t=vt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function uC(e){const t=()=>{!function cC(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(vt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Yc(e),e.isCheckStableRunning=!0,Wc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Yc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,u,p)=>{try{return cm(e),n.invokeTask(r,s,u,p)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),um(e)}},onInvoke:(n,i,r,s,u,p,b)=>{try{return cm(e),n.invoke(r,s,u,p,b)}finally{e.shouldCoalesceRunChangeDetection&&t(),um(e)}},onHasTask:(n,i,r,s)=>{n.hasTask(r,s),i===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Yc(e),Wc(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,r,s)=>(n.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Yr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Yr.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,r){const s=this._inner,u=s.scheduleEventTask("NgZoneEvent: "+r,t,lC,Ua,Ua);try{return s.runTask(u,n,i)}finally{s.cancelTask(u)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const lC={};function Wc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Yc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function cm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function um(e){e._nesting--,Wc(e)}class dC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new co,this.onMicrotaskEmpty=new co,this.onStable=new co,this.onError=new co}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,r){return t.apply(n,i)}}let dm=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Yr.assertNotInAngularZone(),$c(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())$c(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:r})}whenStable(n,i,r){if(r&&!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,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,r){return[]}}return e.\u0275fac=function(n){return new(n||e)(Ni(Yr))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})(),hm=(()=>{class e{constructor(){this._applications=new Map,Kc.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return Kc.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();class hC{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function fC(e){Kc=e}let Kr,Kc=new hC;const fm=new vi("AllowMultipleToken");class gC{constructor(t,n){this.name=t,this.token=n}}function pm(e,t,n=[]){const i=`Platform: ${t}`,r=new vi(i);return(s=[])=>{let u=mm();if(!u||u.injector.get(fm,!1))if(e)e(n.concat(s).concat({provide:r,useValue:!0}));else{const p=n.concat(s).concat({provide:r,useValue:!0},{provide:Gl,useValue:"platform"});!function _C(e){if(Kr&&!Kr.destroyed&&!Kr.injector.get(fm,!1))throw new Qe(400,"");Kr=e.get(gm);const t=e.get(om,null);t&&t.forEach(n=>n())}(zr.create({providers:p,name:i}))}return function vC(e){const t=mm();if(!t)throw new Qe(401,"");return t}()}}function mm(){return Kr&&!Kr.destroyed?Kr:null}let gm=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const p=function yC(e,t){let n;return n="noop"===e?new dC:("zone.js"===e?void 0:e)||new Yr({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),b=[{provide:Yr,useValue:p}];return p.run(()=>{const I=zr.create({providers:b,parent:this.injector,name:n.moduleType.name}),F=n.create(I),W=F.injector.get(ca,null);if(!W)throw new Qe(402,"");return p.runOutsideAngular(()=>{const fe=p.onError.subscribe({next:Re=>{W.handleError(Re)}});F.onDestroy(()=>{qc(this._modules,F),fe.unsubscribe()})}),function bC(e,t,n){try{const i=n();return sc(i)?i.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(W,p,()=>{const fe=F.injector.get(jc);return fe.runInitializers(),fe.donePromise.then(()=>(function qy(e){Ut(e,"Expected localeId to be defined"),"string"==typeof e&&(Bf=e.toLowerCase().replace(/_/g,"-"))}(F.injector.get(Gc,xa)||xa),this._moduleDoBootstrap(F),F))})})}bootstrapModule(n,i=[]){const r=_m({},i);return function pC(e,t,n){const i=new Sc(n);return Promise.resolve(i)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(n){const i=n.injector.get(Zc);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!n.instance.ngDoBootstrap)throw new Qe(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Qe(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Ni(zr))},e.\u0275prov=J({token:e,factory:e.\u0275fac}),e})();function _m(e,t){return Array.isArray(t)?t.reduce(_m,e):Object.assign(Object.assign({},e),t)}let Zc=(()=>{class e{constructor(n,i,r,s,u){this._zone=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const p=new g.y(I=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{I.next(this._stable),I.complete()})}),b=new g.y(I=>{let F;this._zone.runOutsideAngular(()=>{F=this._zone.onStable.subscribe(()=>{Yr.assertNotInAngularZone(),$c(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,I.next(!0))})})});const W=this._zone.onUnstable.subscribe(()=>{Yr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{I.next(!1)}))});return()=>{F.unsubscribe(),W.unsubscribe()}});this.isStable=(0,Y.T)(p,b.pipe(function ue(e={}){const{connector:t=(()=>new c.x),resetOnError:n=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return s=>{let u=null,p=null,b=null,I=0,F=!1,W=!1;const fe=()=>{null==p||p.unsubscribe(),p=null},Re=()=>{fe(),u=b=null,F=W=!1},Je=()=>{const ut=u;Re(),null==ut||ut.unsubscribe()};return(0,Ce.e)((ut,pt)=>{I++,!W&&!F&&fe();const wt=b=null!=b?b:t();pt.add(()=>{I--,0===I&&!W&&!F&&(p=te(Je,r))}),wt.subscribe(pt),u||(u=new De.Hp({next:it=>wt.next(it),error:it=>{W=!0,fe(),p=te(Re,n,it),wt.error(it)},complete:()=>{F=!0,fe(),p=te(Re,i),wt.complete()}}),(0,ce.D)(ut).subscribe(u))})(s)}}()))}bootstrap(n,i){if(!this._initStatus.done)throw new Qe(405,"");let r;r=n instanceof up?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(r.componentType);const s=function mC(e){return e.isBoundToModule}(r)?void 0:this._injector.get(fs),p=r.create(zr.NULL,[],i||r.selector,s),b=p.location.nativeElement,I=p.injector.get(dm,null),F=I&&p.injector.get(hm);return I&&F&&F.registerApplication(b,I),p.onDestroy(()=>{this.detachView(p.hostView),qc(this.components,p),F&&F.unregisterApplication(b)}),this._loadComponent(p),p}tick(){if(this._runningTick)throw new Qe(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;qc(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(am,[]).concat(this._bootstrapListeners).forEach(r=>r(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(Ni(Yr),Ni(zr),Ni(ca),Ni(Ra),Ni(jc))},e.\u0275prov=J({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function qc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let ym=!0;function EC(){ym=!1}let DC=(()=>{class e{}return e.__NG_ELEMENT_ID__=MC,e})();function MC(e){return function wC(e,t,n){if(Zi(e)&&!n){const i=Vn(e.index,t);return new Ys(i,i)}return 47&e.type?new Ys(t[16],t):null}(Zn(),ot(),16==(16&e))}class Mm{constructor(){}supports(t){return Bs(t)}create(t){return new IC(t)}}const OC=(e,t)=>t;class IC{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||OC}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,r=0,s=null;for(;n||i;){const u=!i||n&&n.currentIndex{u=this._trackByFn(r,p),null!==n&&Object.is(n.trackById,u)?(i&&(n=this._verifyReinsertion(n,p,u,r)),Object.is(n.item,p)||this._addIdentityChange(n,p)):(n=this._mismatch(n,p,u,r),i=!0),n=n._next,r++}),this.length=r;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,r)):t=this._addAfter(new PC(n,i),s,r),t}_verifyReinsertion(t,n,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const r=null===n?this._itHead:n._next;return t._next=r,t._prev=n,null===r?this._itTail=t:r._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new wm),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wm),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class PC{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class RC{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class wm{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new RC,this.map.set(n,i)),i.add(t)}get(t,n){const r=this.map.get(t);return r?r.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Am(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i{if(n&&n.key===r)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(r,i);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,n);const s=r._prev,u=r._next;return s&&(s._next=u),u&&(u._prev=s),r._next=null,r._prev=null,r}const i=new FC(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class FC{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function xm(){return new tu([new Mm])}let tu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||xm()),deps:[[e,new Ts,new As]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(null!=i)return i;throw new Qe(901,"")}}return e.\u0275prov=J({token:e,providedIn:"root",factory:xm}),e})();function Sm(){return new nu([new Tm])}let nu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Sm()),deps:[[e,new Ts,new As]]}}find(n){const i=this.factories.find(s=>s.supports(n));if(i)return i;throw new Qe(901,"")}}return e.\u0275prov=J({token:e,providedIn:"root",factory:Sm}),e})();const BC=pm(null,"core",[{provide:sm,useValue:"unknown"},{provide:gm,deps:[zr]},{provide:hm,deps:[]},{provide:lm,deps:[]}]);let VC=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Ni(Zc))},e.\u0275mod=Ie({type:e}),e.\u0275inj=He({}),e})()},2382:(qe,ye,C)=>{C.d(ye,{Zs:()=>T,sg:()=>sr,u5:()=>Vn,Cf:()=>pe,JU:()=>ke,a5:()=>at,JL:()=>L,F:()=>gn,kI:()=>ve,_Y:()=>On});var c=C(4893),g=(C(9808),C(8306)),Y=C(4742),ce=C(8421),q=C(3269),De=C(5403),Ce=C(3268),ue=C(1810),se=C(2076),de=C(4004);const ke=new c.OlP("NgValueAccessor");function z(x){return null==x||0===x.length}function Q(x){return null!=x&&"number"==typeof x.length}const pe=new c.OlP("NgValidators"),Te=new c.OlP("NgAsyncValidators"),Ne=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ve{static min(M){return function Me(x){return M=>{if(z(M.value)||z(x))return null;const y=parseFloat(M.value);return!isNaN(y)&&y{if(z(M.value)||z(x))return null;const y=parseFloat(M.value);return!isNaN(y)&&y>x?{max:{max:x,actual:M.value}}:null}}(M)}static required(M){return Ae(M)}static requiredTrue(M){return tt(M)}static email(M){return function Fe(x){return z(x.value)||Ne.test(x.value)?null:{email:!0}}(M)}static minLength(M){return function Ct(x){return M=>z(M.value)||!Q(M.value)?null:M.value.lengthQ(M.value)&&M.value.length>x?{maxlength:{requiredLength:x,actualLength:M.value.length}}:null}(M)}static pattern(M){return function Jt(x){if(!x)return yt;let M,y;return"string"==typeof x?(y="","^"!==x.charAt(0)&&(y+="^"),y+=x,"$"!==x.charAt(x.length-1)&&(y+="$"),M=new RegExp(y)):(y=x.toString(),M=x),U=>{if(z(U.value))return null;const We=U.value;return M.test(We)?null:{pattern:{requiredPattern:y,actualValue:We}}}}(M)}static nullValidator(M){return null}static compose(M){return on(M)}static composeAsync(M){return je(M)}}function Ae(x){return z(x.value)?{required:!0}:null}function tt(x){return!0===x.value?null:{required:!0}}function yt(x){return null}function Rt(x){return null!=x}function Wt(x){const M=(0,c.QGY)(x)?(0,se.D)(x):x;return(0,c.CqO)(M),M}function Pt(x){let M={};return x.forEach(y=>{M=null!=y?Object.assign(Object.assign({},M),y):M}),0===Object.keys(M).length?null:M}function mn(x,M){return M.map(y=>y(x))}function xt(x){return x.map(M=>function Ut(x){return!x.validate}(M)?M:y=>M.validate(y))}function on(x){if(!x)return null;const M=x.filter(Rt);return 0==M.length?null:function(y){return Pt(mn(y,M))}}function Xe(x){return null!=x?on(xt(x)):null}function je(x){if(!x)return null;const M=x.filter(Rt);return 0==M.length?null:function(y){return function te(...x){const M=(0,q.jO)(x),{args:y,keys:U}=(0,Y.D)(x),We=new g.y(Et=>{const{length:Dn}=y;if(!Dn)return void Et.complete();const gi=new Array(Dn);let Gi=Dn,Fi=Dn;for(let ot=0;ot{sn||(sn=!0,Fi--),gi[ot]=Jr},()=>Gi--,void 0,()=>{(!Gi||!sn)&&(Fi||Et.next(U?(0,ue.n)(U,gi):gi),Et.complete())}))}});return M?We.pipe((0,Ce.Z)(M)):We}(mn(y,M).map(Wt)).pipe((0,de.U)(Pt))}}function J(x){return null!=x?je(xt(x)):null}function K(x,M){return null===x?[M]:Array.isArray(x)?[...x,M]:[x,M]}function He(x){return x._rawValidators}function Ge(x){return x._rawAsyncValidators}function lt(x){return x?Array.isArray(x)?x:[x]:[]}function St(x,M){return Array.isArray(x)?x.includes(M):x===M}function Ht(x,M){const y=lt(M);return lt(x).forEach(We=>{St(y,We)||y.push(We)}),y}function bt(x,M){return lt(M).filter(y=>!St(x,y))}class Nt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(M){this._rawValidators=M||[],this._composedValidatorFn=Xe(this._rawValidators)}_setAsyncValidators(M){this._rawAsyncValidators=M||[],this._composedAsyncValidatorFn=J(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(M){this._onDestroyCallbacks.push(M)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(M=>M()),this._onDestroyCallbacks=[]}reset(M){this.control&&this.control.reset(M)}hasError(M,y){return!!this.control&&this.control.hasError(M,y)}getError(M,y){return this.control?this.control.getError(M,y):null}}class at extends Nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Pe extends Nt{get formDirective(){return null}get path(){return null}}let L=(()=>{class x extends class E{constructor(M){this._cd=M}is(M){var y,U,We;return"submitted"===M?!!(null===(y=this._cd)||void 0===y?void 0:y.submitted):!!(null===(We=null===(U=this._cd)||void 0===U?void 0:U.control)||void 0===We?void 0:We[M])}}{constructor(y){super(y)}}return x.\u0275fac=function(y){return new(y||x)(c.Y36(Pe,10))},x.\u0275dir=c.lG2({type:x,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(y,U){2&y&&c.ekj("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))("ng-submitted",U.is("submitted"))},features:[c.qOj]}),x})();function he(x,M){Zt(x,M),M.valueAccessor.writeValue(x.value),function Dt(x,M){M.valueAccessor.registerOnChange(y=>{x._pendingValue=y,x._pendingChange=!0,x._pendingDirty=!0,"change"===x.updateOn&&Ve(x,M)})}(x,M),function _e(x,M){const y=(U,We)=>{M.valueAccessor.writeValue(U),We&&M.viewToModelUpdate(U)};x.registerOnChange(y),M._registerOnDestroy(()=>{x._unregisterOnChange(y)})}(x,M),function Rn(x,M){M.valueAccessor.registerOnTouched(()=>{x._pendingTouched=!0,"blur"===x.updateOn&&x._pendingChange&&Ve(x,M),"submit"!==x.updateOn&&x.markAsTouched()})}(x,M),function At(x,M){if(M.valueAccessor.setDisabledState){const y=U=>{M.valueAccessor.setDisabledState(U)};x.registerOnDisabledChange(y),M._registerOnDestroy(()=>{x._unregisterOnDisabledChange(y)})}}(x,M)}function Se(x,M,y=!0){const U=()=>{};M.valueAccessor&&(M.valueAccessor.registerOnChange(U),M.valueAccessor.registerOnTouched(U)),Kt(x,M),x&&(M._invokeOnDestroyCallbacks(),x._registerOnCollectionChange(()=>{}))}function st(x,M){x.forEach(y=>{y.registerOnValidatorChange&&y.registerOnValidatorChange(M)})}function Zt(x,M){const y=He(x);null!==M.validator?x.setValidators(K(y,M.validator)):"function"==typeof y&&x.setValidators([y]);const U=Ge(x);null!==M.asyncValidator?x.setAsyncValidators(K(U,M.asyncValidator)):"function"==typeof U&&x.setAsyncValidators([U]);const We=()=>x.updateValueAndValidity();st(M._rawValidators,We),st(M._rawAsyncValidators,We)}function Kt(x,M){let y=!1;if(null!==x){if(null!==M.validator){const We=He(x);if(Array.isArray(We)&&We.length>0){const Et=We.filter(Dn=>Dn!==M.validator);Et.length!==We.length&&(y=!0,x.setValidators(Et))}}if(null!==M.asyncValidator){const We=Ge(x);if(Array.isArray(We)&&We.length>0){const Et=We.filter(Dn=>Dn!==M.asyncValidator);Et.length!==We.length&&(y=!0,x.setAsyncValidators(Et))}}}const U=()=>{};return st(M._rawValidators,U),st(M._rawAsyncValidators,U),y}function Ve(x,M){x._pendingDirty&&x.markAsDirty(),x.setValue(x._pendingValue,{emitModelToViewChange:!1}),M.viewToModelUpdate(x._pendingValue),x._pendingChange=!1}function ne(x,M){Zt(x,M)}function en(x,M){x._syncPendingControls(),M.forEach(y=>{const U=y.control;"submit"===U.updateOn&&U._pendingChange&&(y.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function Cn(x,M){const y=x.indexOf(M);y>-1&&x.splice(y,1)}const Wn="VALID",bi="INVALID",si="PENDING",fi="DISABLED";function ji(x){return(pn(x)?x.validators:x)||null}function zn(x){return Array.isArray(x)?Xe(x):x||null}function ft(x,M){return(pn(M)?M.asyncValidators:x)||null}function Qt(x){return Array.isArray(x)?J(x):x||null}function pn(x){return null!=x&&!Array.isArray(x)&&"object"==typeof x}const Fn=x=>x instanceof jt,ai=x=>x instanceof ui;function ci(x){return Fn(x)?x.value:x.getRawValue()}function tn(x,M){const y=ai(x),U=x.controls;if(!(y?Object.keys(U):U).length)throw new c.vHH(1e3,"");if(!U[M])throw new c.vHH(1001,"")}function Yn(x,M){ai(x),x._forEachChild((U,We)=>{if(void 0===M[We])throw new c.vHH(1002,"")})}class pi{constructor(M,y){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=M,this._rawAsyncValidators=y,this._composedValidatorFn=zn(this._rawValidators),this._composedAsyncValidatorFn=Qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(M){this._rawValidators=this._composedValidatorFn=M}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(M){this._rawAsyncValidators=this._composedAsyncValidatorFn=M}get parent(){return this._parent}get valid(){return this.status===Wn}get invalid(){return this.status===bi}get pending(){return this.status==si}get disabled(){return this.status===fi}get enabled(){return this.status!==fi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(M){this._rawValidators=M,this._composedValidatorFn=zn(M)}setAsyncValidators(M){this._rawAsyncValidators=M,this._composedAsyncValidatorFn=Qt(M)}addValidators(M){this.setValidators(Ht(M,this._rawValidators))}addAsyncValidators(M){this.setAsyncValidators(Ht(M,this._rawAsyncValidators))}removeValidators(M){this.setValidators(bt(M,this._rawValidators))}removeAsyncValidators(M){this.setAsyncValidators(bt(M,this._rawAsyncValidators))}hasValidator(M){return St(this._rawValidators,M)}hasAsyncValidator(M){return St(this._rawAsyncValidators,M)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(M={}){this.touched=!0,this._parent&&!M.onlySelf&&this._parent.markAsTouched(M)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(M=>M.markAllAsTouched())}markAsUntouched(M={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(y=>{y.markAsUntouched({onlySelf:!0})}),this._parent&&!M.onlySelf&&this._parent._updateTouched(M)}markAsDirty(M={}){this.pristine=!1,this._parent&&!M.onlySelf&&this._parent.markAsDirty(M)}markAsPristine(M={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(y=>{y.markAsPristine({onlySelf:!0})}),this._parent&&!M.onlySelf&&this._parent._updatePristine(M)}markAsPending(M={}){this.status=si,!1!==M.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!M.onlySelf&&this._parent.markAsPending(M)}disable(M={}){const y=this._parentMarkedDirty(M.onlySelf);this.status=fi,this.errors=null,this._forEachChild(U=>{U.disable(Object.assign(Object.assign({},M),{onlySelf:!0}))}),this._updateValue(),!1!==M.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},M),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!0))}enable(M={}){const y=this._parentMarkedDirty(M.onlySelf);this.status=Wn,this._forEachChild(U=>{U.enable(Object.assign(Object.assign({},M),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:M.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},M),{skipPristineCheck:y})),this._onDisabledChange.forEach(U=>U(!1))}_updateAncestors(M){this._parent&&!M.onlySelf&&(this._parent.updateValueAndValidity(M),M.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(M){this._parent=M}updateValueAndValidity(M={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Wn||this.status===si)&&this._runAsyncValidator(M.emitEvent)),!1!==M.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!M.onlySelf&&this._parent.updateValueAndValidity(M)}_updateTreeValidity(M={emitEvent:!0}){this._forEachChild(y=>y._updateTreeValidity(M)),this.updateValueAndValidity({onlySelf:!0,emitEvent:M.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fi:Wn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(M){if(this.asyncValidator){this.status=si,this._hasOwnPendingAsyncValidator=!0;const y=Wt(this.asyncValidator(this));this._asyncValidationSubscription=y.subscribe(U=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(U,{emitEvent:M})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(M,y={}){this.errors=M,this._updateControlsErrors(!1!==y.emitEvent)}get(M){return function Ln(x,M,y){if(null==M||(Array.isArray(M)||(M=M.split(y)),Array.isArray(M)&&0===M.length))return null;let U=x;return M.forEach(We=>{U=ai(U)?U.controls.hasOwnProperty(We)?U.controls[We]:null:(x=>x instanceof Jn)(U)&&U.at(We)||null}),U}(this,M,".")}getError(M,y){const U=y?this.get(y):this;return U&&U.errors?U.errors[M]:null}hasError(M,y){return!!this.getError(M,y)}get root(){let M=this;for(;M._parent;)M=M._parent;return M}_updateControlsErrors(M){this.status=this._calculateStatus(),M&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(M)}_initObservables(){this.valueChanges=new c.vpe,this.statusChanges=new c.vpe}_calculateStatus(){return this._allControlsDisabled()?fi:this.errors?bi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(si)?si:this._anyControlsHaveStatus(bi)?bi:Wn}_anyControlsHaveStatus(M){return this._anyControls(y=>y.status===M)}_anyControlsDirty(){return this._anyControls(M=>M.dirty)}_anyControlsTouched(){return this._anyControls(M=>M.touched)}_updatePristine(M={}){this.pristine=!this._anyControlsDirty(),this._parent&&!M.onlySelf&&this._parent._updatePristine(M)}_updateTouched(M={}){this.touched=this._anyControlsTouched(),this._parent&&!M.onlySelf&&this._parent._updateTouched(M)}_isBoxedValue(M){return"object"==typeof M&&null!==M&&2===Object.keys(M).length&&"value"in M&&"disabled"in M}_registerOnCollectionChange(M){this._onCollectionChange=M}_setUpdateStrategy(M){pn(M)&&null!=M.updateOn&&(this._updateOn=M.updateOn)}_parentMarkedDirty(M){return!M&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class jt extends pi{constructor(M=null,y,U){super(ji(y),ft(U,y)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(M),this._setUpdateStrategy(y),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),pn(y)&&y.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(M)?M.value:M)}setValue(M,y={}){this.value=this._pendingValue=M,this._onChange.length&&!1!==y.emitModelToViewChange&&this._onChange.forEach(U=>U(this.value,!1!==y.emitViewToModelChange)),this.updateValueAndValidity(y)}patchValue(M,y={}){this.setValue(M,y)}reset(M=this.defaultValue,y={}){this._applyFormState(M),this.markAsPristine(y),this.markAsUntouched(y),this.setValue(this.value,y),this._pendingChange=!1}_updateValue(){}_anyControls(M){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(M){this._onChange.push(M)}_unregisterOnChange(M){Cn(this._onChange,M)}registerOnDisabledChange(M){this._onDisabledChange.push(M)}_unregisterOnDisabledChange(M){Cn(this._onDisabledChange,M)}_forEachChild(M){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(M){this._isBoxedValue(M)?(this.value=this._pendingValue=M.value,M.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=M}}class ui extends pi{constructor(M,y,U){super(ji(y),ft(U,y)),this.controls=M,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(M,y){return this.controls[M]?this.controls[M]:(this.controls[M]=y,y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange),y)}addControl(M,y,U={}){this.registerControl(M,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}removeControl(M,y={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),delete this.controls[M],this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}setControl(M,y,U={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),delete this.controls[M],y&&this.registerControl(M,y),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}contains(M){return this.controls.hasOwnProperty(M)&&this.controls[M].enabled}setValue(M,y={}){Yn(this,M),Object.keys(M).forEach(U=>{tn(this,U),this.controls[U].setValue(M[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(M,y={}){null!=M&&(Object.keys(M).forEach(U=>{this.controls[U]&&this.controls[U].patchValue(M[U],{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(M={},y={}){this._forEachChild((U,We)=>{U.reset(M[We],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this._reduceChildren({},(M,y,U)=>(M[U]=ci(y),M))}_syncPendingControls(){let M=this._reduceChildren(!1,(y,U)=>!!U._syncPendingControls()||y);return M&&this.updateValueAndValidity({onlySelf:!0}),M}_forEachChild(M){Object.keys(this.controls).forEach(y=>{const U=this.controls[y];U&&M(U,y)})}_setUpControls(){this._forEachChild(M=>{M.setParent(this),M._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(M){for(const y of Object.keys(this.controls)){const U=this.controls[y];if(this.contains(y)&&M(U))return!0}return!1}_reduceValue(){return this._reduceChildren({},(M,y,U)=>((y.enabled||this.disabled)&&(M[U]=y.value),M))}_reduceChildren(M,y){let U=M;return this._forEachChild((We,Et)=>{U=y(U,We,Et)}),U}_allControlsDisabled(){for(const M of Object.keys(this.controls))if(this.controls[M].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Jn extends pi{constructor(M,y,U){super(ji(y),ft(U,y)),this.controls=M,this._initObservables(),this._setUpdateStrategy(y),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(M){return this.controls[M]}push(M,y={}){this.controls.push(M),this._registerControl(M),this.updateValueAndValidity({emitEvent:y.emitEvent}),this._onCollectionChange()}insert(M,y,U={}){this.controls.splice(M,0,y),this._registerControl(y),this.updateValueAndValidity({emitEvent:U.emitEvent})}removeAt(M,y={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),this.controls.splice(M,1),this.updateValueAndValidity({emitEvent:y.emitEvent})}setControl(M,y,U={}){this.controls[M]&&this.controls[M]._registerOnCollectionChange(()=>{}),this.controls.splice(M,1),y&&(this.controls.splice(M,0,y),this._registerControl(y)),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(M,y={}){Yn(this,M),M.forEach((U,We)=>{tn(this,We),this.at(We).setValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y)}patchValue(M,y={}){null!=M&&(M.forEach((U,We)=>{this.at(We)&&this.at(We).patchValue(U,{onlySelf:!0,emitEvent:y.emitEvent})}),this.updateValueAndValidity(y))}reset(M=[],y={}){this._forEachChild((U,We)=>{U.reset(M[We],{onlySelf:!0,emitEvent:y.emitEvent})}),this._updatePristine(y),this._updateTouched(y),this.updateValueAndValidity(y)}getRawValue(){return this.controls.map(M=>ci(M))}clear(M={}){this.controls.length<1||(this._forEachChild(y=>y._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:M.emitEvent}))}_syncPendingControls(){let M=this.controls.reduce((y,U)=>!!U._syncPendingControls()||y,!1);return M&&this.updateValueAndValidity({onlySelf:!0}),M}_forEachChild(M){this.controls.forEach((y,U)=>{M(y,U)})}_updateValue(){this.value=this.controls.filter(M=>M.enabled||this.disabled).map(M=>M.value)}_anyControls(M){return this.controls.some(y=>y.enabled&&M(y))}_setUpControls(){this._forEachChild(M=>this._registerControl(M))}_allControlsDisabled(){for(const M of this.controls)if(M.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(M){M.setParent(this),M._registerOnCollectionChange(this._onCollectionChange)}}const Si={provide:Pe,useExisting:(0,c.Gpc)(()=>gn)},Gn=(()=>Promise.resolve(null))();let gn=(()=>{class x extends Pe{constructor(y,U){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new c.vpe,this.form=new ui({},Xe(y),J(U))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(y){Gn.then(()=>{const U=this._findContainer(y.path);y.control=U.registerControl(y.name,y.control),he(y.control,y),y.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(y)})}getControl(y){return this.form.get(y.path)}removeControl(y){Gn.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name),this._directives.delete(y)})}addFormGroup(y){Gn.then(()=>{const U=this._findContainer(y.path),We=new ui({});ne(We,y),U.registerControl(y.name,We),We.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(y){Gn.then(()=>{const U=this._findContainer(y.path);U&&U.removeControl(y.name)})}getFormGroup(y){return this.form.get(y.path)}updateModel(y,U){Gn.then(()=>{this.form.get(y.path).setValue(U)})}setValue(y){this.control.setValue(y)}onSubmit(y){return this.submitted=!0,en(this.form,this._directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(y){return y.pop(),y.length?this.form.get(y):this.form}}return x.\u0275fac=function(y){return new(y||x)(c.Y36(pe,10),c.Y36(Te,10))},x.\u0275dir=c.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(y,U){1&y&&c.NdJ("submit",function(Et){return U.onSubmit(Et)})("reset",function(){return U.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c._Bn([Si]),c.qOj]}),x})(),On=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275dir=c.lG2({type:x,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),x})(),fr=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({}),x})();const xr={provide:Pe,useExisting:(0,c.Gpc)(()=>sr)};let sr=(()=>{class x extends Pe{constructor(y,U){super(),this.validators=y,this.asyncValidators=U,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new c.vpe,this._setValidators(y),this._setAsyncValidators(U)}ngOnChanges(y){this._checkFormPresent(),y.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Kt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(y){const U=this.form.get(y.path);return he(U,y),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(y),U}getControl(y){return this.form.get(y.path)}removeControl(y){Se(y.control||null,y,!1),Cn(this.directives,y)}addFormGroup(y){this._setUpFormContainer(y)}removeFormGroup(y){this._cleanUpFormContainer(y)}getFormGroup(y){return this.form.get(y.path)}addFormArray(y){this._setUpFormContainer(y)}removeFormArray(y){this._cleanUpFormContainer(y)}getFormArray(y){return this.form.get(y.path)}updateModel(y,U){this.form.get(y.path).setValue(U)}onSubmit(y){return this.submitted=!0,en(this.form,this.directives),this.ngSubmit.emit(y),!1}onReset(){this.resetForm()}resetForm(y){this.form.reset(y),this.submitted=!1}_updateDomValue(){this.directives.forEach(y=>{const U=y.control,We=this.form.get(y.path);U!==We&&(Se(U||null,y),Fn(We)&&(he(We,y),y.control=We))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(y){const U=this.form.get(y.path);ne(U,y),U.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(y){if(this.form){const U=this.form.get(y.path);U&&function Ie(x,M){return Kt(x,M)}(U,y)&&U.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Zt(this.form,this),this._oldForm&&Kt(this._oldForm,this)}_checkFormPresent(){}}return x.\u0275fac=function(y){return new(y||x)(c.Y36(pe,10),c.Y36(Te,10))},x.\u0275dir=c.lG2({type:x,selectors:[["","formGroup",""]],hostBindings:function(y,U){1&y&&c.NdJ("submit",function(Et){return U.onSubmit(Et)})("reset",function(){return U.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c._Bn([xr]),c.qOj,c.TTD]}),x})(),Tn=(()=>{class x{constructor(){this._validator=yt}ngOnChanges(y){if(this.inputName in y){const U=this.normalizeInput(y[this.inputName].currentValue);this._enabled=this.enabled(U),this._validator=this._enabled?this.createValidator(U):yt,this._onChange&&this._onChange()}}validate(y){return this._validator(y)}registerOnValidatorChange(y){this._onChange=y}enabled(y){return null!=y}}return x.\u0275fac=function(y){return new(y||x)},x.\u0275dir=c.lG2({type:x,features:[c.TTD]}),x})();const Pi={provide:pe,useExisting:(0,c.Gpc)(()=>N),multi:!0},A={provide:pe,useExisting:(0,c.Gpc)(()=>T),multi:!0};let N=(()=>{class x extends Tn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=y=>function ti(x){return null!=x&&!1!==x&&"false"!=`${x}`}(y),this.createValidator=y=>Ae}enabled(y){return y}}return x.\u0275fac=function(){let M;return function(U){return(M||(M=c.n5z(x)))(U||x)}}(),x.\u0275dir=c.lG2({type:x,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(y,U){2&y&&c.uIk("required",U._enabled?"":null)},inputs:{required:"required"},features:[c._Bn([Pi]),c.qOj]}),x})(),T=(()=>{class x extends N{constructor(){super(...arguments),this.createValidator=y=>tt}}return x.\u0275fac=function(){let M;return function(U){return(M||(M=c.n5z(x)))(U||x)}}(),x.\u0275dir=c.lG2({type:x,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(y,U){2&y&&c.uIk("required",U._enabled?"":null)},features:[c._Bn([A]),c.qOj]}),x})(),Sn=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({imports:[[fr]]}),x})(),Vn=(()=>{class x{}return x.\u0275fac=function(y){return new(y||x)},x.\u0275mod=c.oAB({type:x}),x.\u0275inj=c.cJS({imports:[Sn]}),x})()},7423:(qe,ye,C)=>{C.d(ye,{zs:()=>de,lW:()=>se,ot:()=>X});var c=C(4893),o=C(508),g=C(6360),Y=C(9950);const ce=["mat-button",""],q=["*"],ue=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],te=(0,o.pj)((0,o.Id)((0,o.Kr)(class{constructor(le){this._elementRef=le}})));let se=(()=>{class le extends te{constructor(Be,Z,et){super(Be),this._focusMonitor=Z,this._animationMode=et,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Ye of ue)this._hasHostAttributes(Ye)&&this._getHostElement().classList.add(Ye);Be.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(Be,Z){Be?this._focusMonitor.focusVia(this._getHostElement(),Be,Z):this._getHostElement().focus(Z)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...Be){return Be.some(Z=>this._getHostElement().hasAttribute(Z))}}return le.\u0275fac=function(Be){return new(Be||le)(c.Y36(c.SBq),c.Y36(Y.tE),c.Y36(g.Qb,8))},le.\u0275cmp=c.Xpm({type:le,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(Be,Z){if(1&Be&&c.Gf(o.wG,5),2&Be){let et;c.iGM(et=c.CRH())&&(Z.ripple=et.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(Be,Z){2&Be&&(c.uIk("disabled",Z.disabled||null),c.ekj("_mat-animation-noopable","NoopAnimations"===Z._animationMode)("mat-button-disabled",Z.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[c.qOj],attrs:ce,ngContentSelectors:q,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(Be,Z){1&Be&&(c.F$t(),c.TgZ(0,"span",0),c.Hsn(1),c.qZA(),c._UZ(2,"span",1)(3,"span",2)),2&Be&&(c.xp6(2),c.ekj("mat-button-ripple-round",Z.isRoundButton||Z.isIconButton),c.Q6J("matRippleDisabled",Z._isRippleDisabled())("matRippleCentered",Z.isIconButton)("matRippleTrigger",Z._getHostElement()))},directives:[o.wG],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;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;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}),le})(),de=(()=>{class le extends se{constructor(Be,Z,et,Ye){super(Z,Be,et),this._ngZone=Ye,this._haltDisabledEvents=Qe=>{this.disabled&&(Qe.preventDefault(),Qe.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return le.\u0275fac=function(Be){return new(Be||le)(c.Y36(Y.tE),c.Y36(c.SBq),c.Y36(g.Qb,8),c.Y36(c.R0b,8))},le.\u0275cmp=c.Xpm({type:le,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(Be,Z){2&Be&&(c.uIk("tabindex",Z.disabled?-1:Z.tabIndex||0)("disabled",Z.disabled||null)("aria-disabled",Z.disabled.toString()),c.ekj("_mat-animation-noopable","NoopAnimations"===Z._animationMode)("mat-button-disabled",Z.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[c.qOj],attrs:ce,ngContentSelectors:q,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(Be,Z){1&Be&&(c.F$t(),c.TgZ(0,"span",0),c.Hsn(1),c.qZA(),c._UZ(2,"span",1)(3,"span",2)),2&Be&&(c.xp6(2),c.ekj("mat-button-ripple-round",Z.isRoundButton||Z.isIconButton),c.Q6J("matRippleDisabled",Z._isRippleDisabled())("matRippleCentered",Z.isIconButton)("matRippleTrigger",Z._getHostElement()))},directives:[o.wG],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;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;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}),le})(),X=(()=>{class le{}return le.\u0275fac=function(Be){return new(Be||le)},le.\u0275mod=c.oAB({type:le}),le.\u0275inj=c.cJS({imports:[[o.si,o.BQ],o.BQ]}),le})()},508:(qe,ye,C)=>{C.d(ye,{rD:()=>xt,K7:()=>ze,HF:()=>L,BQ:()=>me,ey:()=>Yt,Ng:()=>vt,wG:()=>E,si:()=>S,CB:()=>dn,jH:()=>dt,pj:()=>Ne,Kr:()=>ve,Id:()=>Te,FD:()=>xe,sb:()=>Me});var c=C(4893),o=C(226),Y=C(9808),ce=C(925),q=C(9950),De=C(3191),Ce=C(7579),ue=C(6360),te=C(1159);function X(Le,we){if(1&Le&&c._UZ(0,"mat-pseudo-checkbox",4),2&Le){const V=c.oxw();c.Q6J("state",V.selected?"checked":"unchecked")("disabled",V.disabled)}}function le(Le,we){if(1&Le&&(c.TgZ(0,"span",5),c._uU(1),c.qZA()),2&Le){const V=c.oxw();c.xp6(1),c.hij("(",V.group.label,")")}}const ke=["*"],Qe=new c.OlP("mat-sanity-checks",{providedIn:"root",factory:function Ye(){return!0}});let me=(()=>{class Le{constructor(V,j,$){this._sanityChecks=j,this._document=$,this._hasDoneGlobalChecks=!1,V._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(V){return!(0,ce.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[V])}}return Le.\u0275fac=function(V){return new(V||Le)(c.LFG(q.qm),c.LFG(Qe,8),c.LFG(Y.K0))},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[o.vT],o.vT]}),Le})();function Te(Le){return class extends Le{constructor(...we){super(...we),this._disabled=!1}get disabled(){return this._disabled}set disabled(we){this._disabled=(0,De.Ig)(we)}}}function Ne(Le,we){return class extends Le{constructor(...V){super(...V),this.defaultColor=we,this.color=we}get color(){return this._color}set color(V){const j=V||this.defaultColor;j!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),j&&this._elementRef.nativeElement.classList.add(`mat-${j}`),this._color=j)}}}function ve(Le){return class extends Le{constructor(...we){super(...we),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(we){this._disableRipple=(0,De.Ig)(we)}}}function Me(Le,we=0){return class extends Le{constructor(...V){super(...V),this._tabIndex=we,this.defaultTabIndex=we}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(V){this._tabIndex=null!=V?(0,De.su)(V):this.defaultTabIndex}}}function xe(Le){return class extends Le{constructor(...we){super(...we),this.stateChanges=new Ce.x,this.errorState=!1}updateErrorState(){const we=this.errorState,he=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);he!==we&&(this.errorState=he,this.stateChanges.next())}}}let xt=(()=>{class Le{isErrorState(V,j){return!!(V&&V.invalid&&(V.touched||j&&j.submitted))}}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275prov=c.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})();class K{constructor(we,V,j){this._renderer=we,this.element=V,this.config=j,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const He={enterDuration:225,exitDuration:150},lt=(0,ce.i$)({passive:!0}),St=["mousedown","touchstart"],Ht=["mouseup","mouseleave","touchend","touchcancel"];class bt{constructor(we,V,j,$){this._target=we,this._ngZone=V,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,$.isBrowser&&(this._containerElement=(0,De.fI)(j))}fadeInRipple(we,V,j={}){const $=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),he=Object.assign(Object.assign({},He),j.animation);j.centered&&(we=$.left+$.width/2,V=$.top+$.height/2);const Se=j.radius||function at(Le,we,V){const j=Math.max(Math.abs(Le-V.left),Math.abs(Le-V.right)),$=Math.max(Math.abs(we-V.top),Math.abs(we-V.bottom));return Math.sqrt(j*j+$*$)}(we,V,$),st=we-$.left,At=V-$.top,Zt=he.enterDuration,Kt=document.createElement("div");Kt.classList.add("mat-ripple-element"),Kt.style.left=st-Se+"px",Kt.style.top=At-Se+"px",Kt.style.height=2*Se+"px",Kt.style.width=2*Se+"px",null!=j.color&&(Kt.style.backgroundColor=j.color),Kt.style.transitionDuration=`${Zt}ms`,this._containerElement.appendChild(Kt),function Nt(Le){window.getComputedStyle(Le).getPropertyValue("opacity")}(Kt),Kt.style.transform="scale(1)";const Dt=new K(this,Kt,j);return Dt.state=0,this._activeRipples.add(Dt),j.persistent||(this._mostRecentTransientRipple=Dt),this._runTimeoutOutsideZone(()=>{const Rn=Dt===this._mostRecentTransientRipple;Dt.state=1,!j.persistent&&(!Rn||!this._isPointerDown)&&Dt.fadeOut()},Zt),Dt}fadeOutRipple(we){const V=this._activeRipples.delete(we);if(we===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!V)return;const j=we.element,$=Object.assign(Object.assign({},He),we.config.animation);j.style.transitionDuration=`${$.exitDuration}ms`,j.style.opacity="0",we.state=2,this._runTimeoutOutsideZone(()=>{we.state=3,j.remove()},$.exitDuration)}fadeOutAll(){this._activeRipples.forEach(we=>we.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(we=>{we.config.persistent||we.fadeOut()})}setupTriggerEvents(we){const V=(0,De.fI)(we);!V||V===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=V,this._registerEvents(St))}handleEvent(we){"mousedown"===we.type?this._onMousedown(we):"touchstart"===we.type?this._onTouchStart(we):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ht),this._pointerUpEventsRegistered=!0)}_onMousedown(we){const V=(0,q.X6)(we),j=this._lastTouchStartEvent&&Date.now(){!we.config.persistent&&(1===we.state||we.config.terminateOnPointerUp&&0===we.state)&&we.fadeOut()}))}_runTimeoutOutsideZone(we,V=0){this._ngZone.runOutsideAngular(()=>setTimeout(we,V))}_registerEvents(we){this._ngZone.runOutsideAngular(()=>{we.forEach(V=>{this._triggerElement.addEventListener(V,this,lt)})})}_removeTriggerEvents(){this._triggerElement&&(St.forEach(we=>{this._triggerElement.removeEventListener(we,this,lt)}),this._pointerUpEventsRegistered&&Ht.forEach(we=>{this._triggerElement.removeEventListener(we,this,lt)}))}}const Pe=new c.OlP("mat-ripple-global-options");let E=(()=>{class Le{constructor(V,j,$,he,Se){this._elementRef=V,this._animationMode=Se,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=he||{},this._rippleRenderer=new bt(this,j,V,$)}get disabled(){return this._disabled}set disabled(V){V&&this.fadeOutAllNonPersistent(),this._disabled=V,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(V){this._trigger=V,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(V,j=0,$){return"number"==typeof V?this._rippleRenderer.fadeInRipple(V,j,Object.assign(Object.assign({},this.rippleConfig),$)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),V))}}return Le.\u0275fac=function(V){return new(V||Le)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(ce.t4),c.Y36(Pe,8),c.Y36(ue.Qb,8))},Le.\u0275dir=c.lG2({type:Le,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(V,j){2&V&&c.ekj("mat-ripple-unbounded",j.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"]}),Le})(),S=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[me],me]}),Le})(),D=(()=>{class Le{constructor(V){this._animationMode=V,this.state="unchecked",this.disabled=!1}}return Le.\u0275fac=function(V){return new(V||Le)(c.Y36(ue.Qb,8))},Le.\u0275cmp=c.Xpm({type:Le,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(V,j){2&V&&c.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===j.state)("mat-pseudo-checkbox-checked","checked"===j.state)("mat-pseudo-checkbox-disabled",j.disabled)("_mat-animation-noopable","NoopAnimations"===j._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(V,j){},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}),Le})(),P=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[me]]}),Le})();const L=new c.OlP("MAT_OPTION_PARENT_COMPONENT"),ze=new c.OlP("MatOptgroup");let ct=0;class Ot{constructor(we,V=!1){this.source=we,this.isUserInput=V}}let nn=(()=>{class Le{constructor(V,j,$,he){this._element=V,this._changeDetectorRef=j,this._parent=$,this.group=he,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ct++,this.onSelectionChange=new c.vpe,this._stateChanges=new Ce.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(V){this._disabled=(0,De.Ig)(V)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(V,j){const $=this._getHostElement();"function"==typeof $.focus&&$.focus(j)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(V){(V.keyCode===te.K5||V.keyCode===te.L_)&&!(0,te.Vb)(V)&&(this._selectViaInteraction(),V.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const V=this.viewValue;V!==this._mostRecentViewValue&&(this._mostRecentViewValue=V,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(V=!1){this.onSelectionChange.emit(new Ot(this,V))}}return Le.\u0275fac=function(V){c.$Z()},Le.\u0275dir=c.lG2({type:Le,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Le})(),Yt=(()=>{class Le extends nn{constructor(V,j,$,he){super(V,j,$,he)}}return Le.\u0275fac=function(V){return new(V||Le)(c.Y36(c.SBq),c.Y36(c.sBO),c.Y36(L,8),c.Y36(ze,8))},Le.\u0275cmp=c.Xpm({type:Le,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(V,j){1&V&&c.NdJ("click",function(){return j._selectViaInteraction()})("keydown",function(he){return j._handleKeydown(he)}),2&V&&(c.Ikx("id",j.id),c.uIk("tabindex",j._getTabIndex())("aria-selected",j._getAriaSelected())("aria-disabled",j.disabled.toString()),c.ekj("mat-selected",j.selected)("mat-option-multiple",j.multiple)("mat-active",j.active)("mat-option-disabled",j.disabled))},exportAs:["matOption"],features:[c.qOj],ngContentSelectors:ke,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(V,j){1&V&&(c.F$t(),c.YNc(0,X,1,2,"mat-pseudo-checkbox",0),c.TgZ(1,"span",1),c.Hsn(2),c.qZA(),c.YNc(3,le,2,1,"span",2),c._UZ(4,"div",3)),2&V&&(c.Q6J("ngIf",j.multiple),c.xp6(3),c.Q6J("ngIf",j.group&&j.group._inert),c.xp6(1),c.Q6J("matRippleTrigger",j._getHostElement())("matRippleDisabled",j.disabled||j.disableRipple))},directives:[D,Y.O5,E],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;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}),Le})();function dn(Le,we,V){if(V.length){let j=we.toArray(),$=V.toArray(),he=0;for(let Se=0;SeV+j?Math.max(0,Le-j+we):V}let vt=(()=>{class Le{}return Le.\u0275fac=function(V){return new(V||Le)},Le.\u0275mod=c.oAB({type:Le}),Le.\u0275inj=c.cJS({imports:[[S,Y.ez,me,P]]}),Le})()},8966:(qe,ye,C)=>{C.d(ye,{WI:()=>Me,uw:()=>Jt,H8:()=>Ut,ZT:()=>Wt,xY:()=>mn,Is:()=>on,so:()=>Ne,uh:()=>Pt});var c=C(9776),o=C(7429),g=C(4893),Y=C(508),ce=C(226),q=C(7579),De=C(9770),Ce=C(727),ue=C(9646),te=C(9300),se=C(5698),de=C(8675),X=C(925),le=C(9808),ke=C(1777),Be=C(9950),Z=C(1159),et=C(6360);function Ye(Xe,je){}class Qe{constructor(){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.closeOnNavigation=!0}}const me={dialogContainer:(0,ke.X$)("dialogContainer",[(0,ke.SB)("void, exit",(0,ke.oB)({opacity:0,transform:"scale(0.7)"})),(0,ke.SB)("enter",(0,ke.oB)({transform:"none"})),(0,ke.eR)("* => enter",(0,ke.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ke.oB)({transform:"none",opacity:1}))),(0,ke.eR)("* => void, * => exit",(0,ke.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,ke.oB)({opacity:0})))])};let Q=(()=>{class Xe extends o.en{constructor(J,K,He,Ge,lt,St,Ht,bt){super(),this._elementRef=J,this._focusTrapFactory=K,this._changeDetectorRef=He,this._config=lt,this._interactivityChecker=St,this._ngZone=Ht,this._focusMonitor=bt,this._animationStateChanged=new g.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Nt=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(Nt)),this._ariaLabelledBy=lt.ariaLabelledBy||null,this._document=Ge}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(J){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(J)}attachTemplatePortal(J){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(J)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(J,K){this._interactivityChecker.isFocusable(J)||(J.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{J.addEventListener("blur",()=>J.removeAttribute("tabindex")),J.addEventListener("mousedown",()=>J.removeAttribute("tabindex"))})),J.focus(K)}_focusByCssSelector(J,K){let He=this._elementRef.nativeElement.querySelector(J);He&&this._forceFocus(He,K)}_trapFocus(){const J=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||J.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(K=>{K||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const J=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&J&&"function"==typeof J.focus){const K=(0,X.ht)(),He=this._elementRef.nativeElement;(!K||K===this._document.body||K===He||He.contains(K))&&(this._focusMonitor?(this._focusMonitor.focusVia(J,this._closeInteractionType),this._closeInteractionType=null):J.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,X.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const J=this._elementRef.nativeElement,K=(0,X.ht)();return J===K||J.contains(K)}}return Xe.\u0275fac=function(J){return new(J||Xe)(g.Y36(g.SBq),g.Y36(Be.qV),g.Y36(g.sBO),g.Y36(le.K0,8),g.Y36(Qe),g.Y36(Be.ic),g.Y36(g.R0b),g.Y36(Be.tE))},Xe.\u0275dir=g.lG2({type:Xe,viewQuery:function(J,K){if(1&J&&g.Gf(o.Pl,7),2&J){let He;g.iGM(He=g.CRH())&&(K._portalOutlet=He.first)}},features:[g.qOj]}),Xe})(),pe=(()=>{class Xe extends Q{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:J,totalTime:K}){"enter"===J?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:K})):"exit"===J&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:K}))}_onAnimationStart({toState:J,totalTime:K}){"enter"===J?this._animationStateChanged.next({state:"opening",totalTime:K}):("exit"===J||"void"===J)&&this._animationStateChanged.next({state:"closing",totalTime:K})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return Xe.\u0275fac=function(){let je;return function(K){return(je||(je=g.n5z(Xe)))(K||Xe)}}(),Xe.\u0275cmp=g.Xpm({type:Xe,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(J,K){1&J&&g.WFA("@dialogContainer.start",function(Ge){return K._onAnimationStart(Ge)})("@dialogContainer.done",function(Ge){return K._onAnimationDone(Ge)}),2&J&&(g.Ikx("id",K._id),g.uIk("role",K._config.role)("aria-labelledby",K._config.ariaLabel?null:K._ariaLabelledBy)("aria-label",K._config.ariaLabel)("aria-describedby",K._config.ariaDescribedBy||null),g.d8E("@dialogContainer",K._state))},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(J,K){1&J&&g.YNc(0,Ye,0,0,"ng-template",0)},directives:[o.Pl],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:[me.dialogContainer]}}),Xe})(),Te=0;class Ne{constructor(je,J,K="mat-dialog-"+Te++){this._overlayRef=je,this._containerInstance=J,this.id=K,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new q.x,this._afterClosed=new q.x,this._beforeClosed=new q.x,this._state=0,J._id=K,J._animationStateChanged.pipe((0,te.h)(He=>"opened"===He.state),(0,se.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),J._animationStateChanged.pipe((0,te.h)(He=>"closed"===He.state),(0,se.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),je.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),je.keydownEvents().pipe((0,te.h)(He=>He.keyCode===Z.hY&&!this.disableClose&&!(0,Z.Vb)(He))).subscribe(He=>{He.preventDefault(),ve(this,"keyboard")}),je.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():ve(this,"mouse")})}close(je){this._result=je,this._containerInstance._animationStateChanged.pipe((0,te.h)(J=>"closing"===J.state),(0,se.q)(1)).subscribe(J=>{this._beforeClosed.next(je),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),J.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(je){let J=this._getPositionStrategy();return je&&(je.left||je.right)?je.left?J.left(je.left):J.right(je.right):J.centerHorizontally(),je&&(je.top||je.bottom)?je.top?J.top(je.top):J.bottom(je.bottom):J.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(je="",J=""){return this._overlayRef.updateSize({width:je,height:J}),this._overlayRef.updatePosition(),this}addPanelClass(je){return this._overlayRef.addPanelClass(je),this}removePanelClass(je){return this._overlayRef.removePanelClass(je),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function ve(Xe,je,J){return void 0!==Xe._containerInstance&&(Xe._containerInstance._closeInteractionType=je),Xe.close(J)}const Me=new g.OlP("MatDialogData"),xe=new g.OlP("mat-dialog-default-options"),Ae=new g.OlP("mat-dialog-scroll-strategy"),Ct={provide:Ae,deps:[c.aV],useFactory:function Fe(Xe){return()=>Xe.scrollStrategies.block()}};let mt=(()=>{class Xe{constructor(J,K,He,Ge,lt,St,Ht,bt,Nt,at){this._overlay=J,this._injector=K,this._defaultOptions=He,this._parentDialog=Ge,this._overlayContainer=lt,this._dialogRefConstructor=Ht,this._dialogContainerType=bt,this._dialogDataToken=Nt,this._animationMode=at,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new q.x,this._afterOpenedAtThisLevel=new q.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,De.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,de.O)(void 0))),this._scrollStrategy=St}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const J=this._parentDialog;return J?J._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(J,K){if(K=function yt(Xe,je){return Object.assign(Object.assign({},je),Xe)}(K,this._defaultOptions||new Qe),K.id&&this.getDialogById(K.id),this._dialogAnimatingOpen)return this._lastDialogRef;const He=this._createOverlay(K),Ge=this._attachDialogContainer(He,K);if("NoopAnimations"!==this._animationMode){const St=Ge._animationStateChanged.subscribe(Ht=>{"opening"===Ht.state&&(this._dialogAnimatingOpen=!0),"opened"===Ht.state&&(this._dialogAnimatingOpen=!1,St.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new Ce.w0),this._animationStateSubscriptions.add(St)}const lt=this._attachDialogContent(J,Ge,He,K);return this._lastDialogRef=lt,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(lt),lt.afterClosed().subscribe(()=>this._removeOpenDialog(lt)),this.afterOpened.next(lt),Ge._initializeWithAttachedContent(),lt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(J){return this.openDialogs.find(K=>K.id===J)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(J){const K=this._getOverlayConfig(J);return this._overlay.create(K)}_getOverlayConfig(J){const K=new c.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:J.scrollStrategy||this._scrollStrategy(),panelClass:J.panelClass,hasBackdrop:J.hasBackdrop,direction:J.direction,minWidth:J.minWidth,minHeight:J.minHeight,maxWidth:J.maxWidth,maxHeight:J.maxHeight,disposeOnNavigation:J.closeOnNavigation});return J.backdropClass&&(K.backdropClass=J.backdropClass),K}_attachDialogContainer(J,K){const Ge=g.zs3.create({parent:K&&K.viewContainerRef&&K.viewContainerRef.injector||this._injector,providers:[{provide:Qe,useValue:K}]}),lt=new o.C5(this._dialogContainerType,K.viewContainerRef,Ge,K.componentFactoryResolver);return J.attach(lt).instance}_attachDialogContent(J,K,He,Ge){const lt=new this._dialogRefConstructor(He,K,Ge.id);if(J instanceof g.Rgc)K.attachTemplatePortal(new o.UE(J,null,{$implicit:Ge.data,dialogRef:lt}));else{const St=this._createInjector(Ge,lt,K),Ht=K.attachComponentPortal(new o.C5(J,Ge.viewContainerRef,St,Ge.componentFactoryResolver));lt.componentInstance=Ht.instance}return lt.updateSize(Ge.width,Ge.height).updatePosition(Ge.position),lt}_createInjector(J,K,He){const Ge=J&&J.viewContainerRef&&J.viewContainerRef.injector,lt=[{provide:this._dialogContainerType,useValue:He},{provide:this._dialogDataToken,useValue:J.data},{provide:this._dialogRefConstructor,useValue:K}];return J.direction&&(!Ge||!Ge.get(ce.Is,null,g.XFs.Optional))&<.push({provide:ce.Is,useValue:{value:J.direction,change:(0,ue.of)()}}),g.zs3.create({parent:Ge||this._injector,providers:lt})}_removeOpenDialog(J){const K=this.openDialogs.indexOf(J);K>-1&&(this.openDialogs.splice(K,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((He,Ge)=>{He?Ge.setAttribute("aria-hidden",He):Ge.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const J=this._overlayContainer.getContainerElement();if(J.parentElement){const K=J.parentElement.children;for(let He=K.length-1;He>-1;He--){let Ge=K[He];Ge!==J&&"SCRIPT"!==Ge.nodeName&&"STYLE"!==Ge.nodeName&&!Ge.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Ge,Ge.getAttribute("aria-hidden")),Ge.setAttribute("aria-hidden","true"))}}}_closeDialogs(J){let K=J.length;for(;K--;)J[K].close()}}return Xe.\u0275fac=function(J){g.$Z()},Xe.\u0275dir=g.lG2({type:Xe}),Xe})(),Jt=(()=>{class Xe extends mt{constructor(J,K,He,Ge,lt,St,Ht,bt){super(J,K,Ge,St,Ht,lt,Ne,pe,Me,bt)}}return Xe.\u0275fac=function(J){return new(J||Xe)(g.LFG(c.aV),g.LFG(g.zs3),g.LFG(le.Ye,8),g.LFG(xe,8),g.LFG(Ae),g.LFG(Xe,12),g.LFG(c.Xj),g.LFG(et.Qb,8))},Xe.\u0275prov=g.Yz7({token:Xe,factory:Xe.\u0275fac}),Xe})(),Rt=0,Wt=(()=>{class Xe{constructor(J,K,He){this.dialogRef=J,this._elementRef=K,this._dialog=He,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=xt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(J){const K=J._matDialogClose||J._matDialogCloseResult;K&&(this.dialogResult=K.currentValue)}_onButtonClick(J){ve(this.dialogRef,0===J.screenX&&0===J.screenY?"keyboard":"mouse",this.dialogResult)}}return Xe.\u0275fac=function(J){return new(J||Xe)(g.Y36(Ne,8),g.Y36(g.SBq),g.Y36(Jt))},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(J,K){1&J&&g.NdJ("click",function(Ge){return K._onButtonClick(Ge)}),2&J&&g.uIk("aria-label",K.ariaLabel||null)("type",K.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[g.TTD]}),Xe})(),Pt=(()=>{class Xe{constructor(J,K,He){this._dialogRef=J,this._elementRef=K,this._dialog=He,this.id="mat-dialog-title-"+Rt++}ngOnInit(){this._dialogRef||(this._dialogRef=xt(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const J=this._dialogRef._containerInstance;J&&!J._ariaLabelledBy&&(J._ariaLabelledBy=this.id)})}}return Xe.\u0275fac=function(J){return new(J||Xe)(g.Y36(Ne,8),g.Y36(g.SBq),g.Y36(Jt))},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(J,K){2&J&&g.Ikx("id",K.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Xe})(),mn=(()=>{class Xe{}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Xe})(),Ut=(()=>{class Xe{}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275dir=g.lG2({type:Xe,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),Xe})();function xt(Xe,je){let J=Xe.nativeElement.parentElement;for(;J&&!J.classList.contains("mat-dialog-container");)J=J.parentElement;return J?je.find(K=>K.id===J.id):null}let on=(()=>{class Xe{}return Xe.\u0275fac=function(J){return new(J||Xe)},Xe.\u0275mod=g.oAB({type:Xe}),Xe.\u0275inj=g.cJS({providers:[Jt,Ct],imports:[[c.U8,o.eL,Y.BQ],Y.BQ]}),Xe})()},7322:(qe,ye,C)=>{C.d(ye,{G_:()=>Nt,o2:()=>bt,KE:()=>at,Eo:()=>yt,lN:()=>Pe,hX:()=>on,R9:()=>He});var c=C(7144),o=C(9808),g=C(4893),Y=C(508),ce=C(3191),q=C(7579),De=C(6451),Ce=C(4968),ue=C(8675),te=C(2722),se=C(5698),de=C(1777),X=C(6360),le=C(226),ke=C(925);const Be=["connectionContainer"],Z=["inputContainer"],et=["label"];function Ye(E,S){1&E&&(g.ynx(0),g.TgZ(1,"div",14),g._UZ(2,"div",15)(3,"div",16)(4,"div",17),g.qZA(),g.TgZ(5,"div",18),g._UZ(6,"div",15)(7,"div",16)(8,"div",17),g.qZA(),g.BQk())}function Qe(E,S){if(1&E){const D=g.EpF();g.TgZ(0,"div",19),g.NdJ("cdkObserveContent",function(){return g.CHM(D),g.oxw().updateOutlineGap()}),g.Hsn(1,1),g.qZA()}if(2&E){const D=g.oxw();g.Q6J("cdkObserveContentDisabled","outline"!=D.appearance)}}function me(E,S){if(1&E&&(g.ynx(0),g.Hsn(1,2),g.TgZ(2,"span"),g._uU(3),g.qZA(),g.BQk()),2&E){const D=g.oxw(2);g.xp6(3),g.Oqu(D._control.placeholder)}}function z(E,S){1&E&&g.Hsn(0,3,["*ngSwitchCase","true"])}function Q(E,S){1&E&&(g.TgZ(0,"span",23),g._uU(1," *"),g.qZA())}function pe(E,S){if(1&E){const D=g.EpF();g.TgZ(0,"label",20,21),g.NdJ("cdkObserveContent",function(){return g.CHM(D),g.oxw().updateOutlineGap()}),g.YNc(2,me,4,1,"ng-container",12),g.YNc(3,z,1,0,"ng-content",12),g.YNc(4,Q,2,0,"span",22),g.qZA()}if(2&E){const D=g.oxw();g.ekj("mat-empty",D._control.empty&&!D._shouldAlwaysFloat())("mat-form-field-empty",D._control.empty&&!D._shouldAlwaysFloat())("mat-accent","accent"==D.color)("mat-warn","warn"==D.color),g.Q6J("cdkObserveContentDisabled","outline"!=D.appearance)("id",D._labelId)("ngSwitch",D._hasLabel()),g.uIk("for",D._control.id)("aria-owns",D._control.id),g.xp6(2),g.Q6J("ngSwitchCase",!1),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngIf",!D.hideRequiredMarker&&D._control.required&&!D._control.disabled)}}function Te(E,S){1&E&&(g.TgZ(0,"div",24),g.Hsn(1,4),g.qZA())}function Ne(E,S){if(1&E&&(g.TgZ(0,"div",25),g._UZ(1,"span",26),g.qZA()),2&E){const D=g.oxw();g.xp6(1),g.ekj("mat-accent","accent"==D.color)("mat-warn","warn"==D.color)}}function ve(E,S){if(1&E&&(g.TgZ(0,"div"),g.Hsn(1,5),g.qZA()),2&E){const D=g.oxw();g.Q6J("@transitionMessages",D._subscriptAnimationState)}}function Me(E,S){if(1&E&&(g.TgZ(0,"div",30),g._uU(1),g.qZA()),2&E){const D=g.oxw(2);g.Q6J("id",D._hintLabelId),g.xp6(1),g.Oqu(D.hintLabel)}}function xe(E,S){if(1&E&&(g.TgZ(0,"div",27),g.YNc(1,Me,2,2,"div",28),g.Hsn(2,6),g._UZ(3,"div",29),g.Hsn(4,7),g.qZA()),2&E){const D=g.oxw();g.Q6J("@transitionMessages",D._subscriptAnimationState),g.xp6(1),g.Q6J("ngIf",D.hintLabel)}}const Ae=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],tt=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Ct=new g.OlP("MatError"),Jt={transitionMessages:(0,de.X$)("transitionMessages",[(0,de.SB)("enter",(0,de.oB)({opacity:1,transform:"translateY(0%)"})),(0,de.eR)("void => enter",[(0,de.oB)({opacity:0,transform:"translateY(-5px)"}),(0,de.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let yt=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E}),E})();const Ut=new g.OlP("MatHint");let on=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E,selectors:[["mat-label"]]}),E})(),Xe=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E,selectors:[["mat-placeholder"]]}),E})();const je=new g.OlP("MatPrefix"),K=new g.OlP("MatSuffix");let He=(()=>{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275dir=g.lG2({type:E,selectors:[["","matSuffix",""]],features:[g._Bn([{provide:K,useExisting:E}])]}),E})(),Ge=0;const Ht=(0,Y.pj)(class{constructor(E){this._elementRef=E}},"primary"),bt=new g.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Nt=new g.OlP("MatFormField");let at=(()=>{class E extends Ht{constructor(D,P,L,re,be,Ue,ze){super(D),this._changeDetectorRef=P,this._dir=L,this._defaults=re,this._platform=be,this._ngZone=Ue,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new q.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Ge++,this._labelId="mat-form-field-label-"+Ge++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==ze,this.appearance=re&&re.appearance?re.appearance:"legacy",this._hideRequiredMarker=!(!re||null==re.hideRequiredMarker)&&re.hideRequiredMarker}get appearance(){return this._appearance}set appearance(D){const P=this._appearance;this._appearance=D||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&P!==D&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(D){this._hideRequiredMarker=(0,ce.Ig)(D)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(D){this._hintLabel=D,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(D){D!==this._floatLabel&&(this._floatLabel=D||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(D){this._explicitFormFieldControl=D}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const D=this._control;D.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${D.controlType}`),D.stateChanges.pipe((0,ue.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),D.ngControl&&D.ngControl.valueChanges&&D.ngControl.valueChanges.pipe((0,te.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,te.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,De.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,ue.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,ue.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,te.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(D){const P=this._control?this._control.ngControl:null;return P&&P[D]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,Ce.R)(this._label.nativeElement,"transitionend").pipe((0,se.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let D=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&D.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const P=this._hintChildren?this._hintChildren.find(re=>"start"===re.align):null,L=this._hintChildren?this._hintChildren.find(re=>"end"===re.align):null;P?D.push(P.id):this._hintLabel&&D.push(this._hintLabelId),L&&D.push(L.id)}else this._errorChildren&&D.push(...this._errorChildren.map(P=>P.id));this._control.setDescribedByIds(D)}}_validateControlChild(){}updateOutlineGap(){const D=this._label?this._label.nativeElement:null,P=this._connectionContainerRef.nativeElement,L=".mat-form-field-outline-start",re=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!D||!D.children.length||!D.textContent.trim()){const ct=P.querySelectorAll(`${L}, ${re}`);for(let Ot=0;Ot0?.75*dn+10:0}for(let ct=0;ct{class E{}return E.\u0275fac=function(D){return new(D||E)},E.\u0275mod=g.oAB({type:E}),E.\u0275inj=g.cJS({imports:[[o.ez,Y.BQ,c.Q8],Y.BQ]}),E})()},7531:(qe,ye,C)=>{C.d(ye,{Nt:()=>Ye,c:()=>Qe});var c=C(3191),o=C(925),g=C(4893),Y=C(2382),ce=C(508),q=C(7322),De=C(7579),Ce=C(515);const ue=(0,o.i$)({passive:!0});let te=(()=>{class me{constructor(Q,pe){this._platform=Q,this._ngZone=pe,this._monitoredElements=new Map}monitor(Q){if(!this._platform.isBrowser)return Ce.E;const pe=(0,c.fI)(Q),Te=this._monitoredElements.get(pe);if(Te)return Te.subject;const Ne=new De.x,ve="cdk-text-field-autofilled",Me=xe=>{"cdk-text-field-autofill-start"!==xe.animationName||pe.classList.contains(ve)?"cdk-text-field-autofill-end"===xe.animationName&&pe.classList.contains(ve)&&(pe.classList.remove(ve),this._ngZone.run(()=>Ne.next({target:xe.target,isAutofilled:!1}))):(pe.classList.add(ve),this._ngZone.run(()=>Ne.next({target:xe.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{pe.addEventListener("animationstart",Me,ue),pe.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(pe,{subject:Ne,unlisten:()=>{pe.removeEventListener("animationstart",Me,ue)}}),Ne}stopMonitoring(Q){const pe=(0,c.fI)(Q),Te=this._monitoredElements.get(pe);Te&&(Te.unlisten(),Te.subject.complete(),pe.classList.remove("cdk-text-field-autofill-monitored"),pe.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(pe))}ngOnDestroy(){this._monitoredElements.forEach((Q,pe)=>this.stopMonitoring(pe))}}return me.\u0275fac=function(Q){return new(Q||me)(g.LFG(o.t4),g.LFG(g.R0b))},me.\u0275prov=g.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})(),X=(()=>{class me{}return me.\u0275fac=function(Q){return new(Q||me)},me.\u0275mod=g.oAB({type:me}),me.\u0275inj=g.cJS({}),me})();const ke=new g.OlP("MAT_INPUT_VALUE_ACCESSOR"),Be=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Z=0;const et=(0,ce.FD)(class{constructor(me,z,Q,pe){this._defaultErrorStateMatcher=me,this._parentForm=z,this._parentFormGroup=Q,this.ngControl=pe}});let Ye=(()=>{class me extends et{constructor(Q,pe,Te,Ne,ve,Me,xe,Ae,tt,Fe){super(Me,Ne,ve,Te),this._elementRef=Q,this._platform=pe,this._autofillMonitor=Ae,this._formField=Fe,this._uid="mat-input-"+Z++,this.focused=!1,this.stateChanges=new De.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Jt=>(0,o.qK)().has(Jt));const Ct=this._elementRef.nativeElement,mt=Ct.nodeName.toLowerCase();this._inputValueAccessor=xe||Ct,this._previousNativeValue=this.value,this.id=this.id,pe.IOS&&tt.runOutsideAngular(()=>{Q.nativeElement.addEventListener("keyup",Jt=>{const yt=Jt.target;!yt.value&&0===yt.selectionStart&&0===yt.selectionEnd&&(yt.setSelectionRange(1,1),yt.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===mt,this._isTextarea="textarea"===mt,this._isInFormField=!!Fe,this._isNativeSelect&&(this.controlType=Ct.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Q){this._disabled=(0,c.Ig)(Q),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(Q){this._id=Q||this._uid}get required(){var Q,pe,Te,Ne;return null!==(Ne=null!==(Q=this._required)&&void 0!==Q?Q:null===(Te=null===(pe=this.ngControl)||void 0===pe?void 0:pe.control)||void 0===Te?void 0:Te.hasValidator(Y.kI.required))&&void 0!==Ne&&Ne}set required(Q){this._required=(0,c.Ig)(Q)}get type(){return this._type}set type(Q){this._type=Q||"text",this._validateType(),!this._isTextarea&&(0,o.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(Q){Q!==this.value&&(this._inputValueAccessor.value=Q,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Q){this._readonly=(0,c.Ig)(Q)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Q=>{this.autofilled=Q.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Q){this._elementRef.nativeElement.focus(Q)}_focusChanged(Q){Q!==this.focused&&(this.focused=Q,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var Q,pe;const Te=(null===(pe=null===(Q=this._formField)||void 0===Q?void 0:Q._hideControlPlaceholder)||void 0===pe?void 0:pe.call(Q))?null:this.placeholder;if(Te!==this._previousPlaceholder){const Ne=this._elementRef.nativeElement;this._previousPlaceholder=Te,Te?Ne.setAttribute("placeholder",Te):Ne.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const Q=this._elementRef.nativeElement.value;this._previousNativeValue!==Q&&(this._previousNativeValue=Q,this.stateChanges.next())}_validateType(){Be.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Q=this._elementRef.nativeElement.validity;return Q&&Q.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Q=this._elementRef.nativeElement,pe=Q.options[0];return this.focused||Q.multiple||!this.empty||!!(Q.selectedIndex>-1&&pe&&pe.label)}return this.focused||!this.empty}setDescribedByIds(Q){Q.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Q.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Q=this._elementRef.nativeElement;return this._isNativeSelect&&(Q.multiple||Q.size>1)}}return me.\u0275fac=function(Q){return new(Q||me)(g.Y36(g.SBq),g.Y36(o.t4),g.Y36(Y.a5,10),g.Y36(Y.F,8),g.Y36(Y.sg,8),g.Y36(ce.rD),g.Y36(ke,10),g.Y36(te),g.Y36(g.R0b),g.Y36(q.G_,8))},me.\u0275dir=g.lG2({type:me,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(Q,pe){1&Q&&g.NdJ("focus",function(){return pe._focusChanged(!0)})("blur",function(){return pe._focusChanged(!1)})("input",function(){return pe._onInput()}),2&Q&&(g.Ikx("disabled",pe.disabled)("required",pe.required),g.uIk("id",pe.id)("data-placeholder",pe.placeholder)("name",pe.name||null)("readonly",pe.readonly&&!pe._isNativeSelect||null)("aria-invalid",pe.empty&&pe.required?null:pe.errorState)("aria-required",pe.required),g.ekj("mat-input-server",pe._isServer)("mat-native-select-inline",pe._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:[g._Bn([{provide:q.Eo,useExisting:me}]),g.qOj,g.TTD]}),me})(),Qe=(()=>{class me{}return me.\u0275fac=function(Q){return new(Q||me)},me.\u0275mod=g.oAB({type:me}),me.\u0275inj=g.cJS({providers:[ce.rD],imports:[[X,q.lN,ce.BQ],X,q.lN]}),me})()},4107:(qe,ye,C)=>{C.d(ye,{gD:()=>bt,LD:()=>Nt});var c=C(9776),o=C(9808),g=C(4893),Y=C(508),ce=C(7322),q=C(495),De=C(9950),Ce=C(3191),ue=C(449),te=C(1159),se=C(2382),de=C(7579),X=C(9770),le=C(6451),ke=C(8675),Be=C(3900),Z=C(5698),et=C(9300),Ye=C(4004),Qe=C(1884),me=C(2722),z=C(1777),Q=C(226);const pe=["trigger"],Te=["panel"];function Ne(at,Pe){if(1&at&&(g.TgZ(0,"span",8),g._uU(1),g.qZA()),2&at){const E=g.oxw();g.xp6(1),g.Oqu(E.placeholder)}}function ve(at,Pe){if(1&at&&(g.TgZ(0,"span",12),g._uU(1),g.qZA()),2&at){const E=g.oxw(2);g.xp6(1),g.Oqu(E.triggerValue)}}function Me(at,Pe){1&at&&g.Hsn(0,0,["*ngSwitchCase","true"])}function xe(at,Pe){if(1&at&&(g.TgZ(0,"span",9),g.YNc(1,ve,2,1,"span",10),g.YNc(2,Me,1,0,"ng-content",11),g.qZA()),2&at){const E=g.oxw();g.Q6J("ngSwitch",!!E.customTrigger),g.xp6(2),g.Q6J("ngSwitchCase",!0)}}function Ae(at,Pe){if(1&at){const E=g.EpF();g.TgZ(0,"div",13)(1,"div",14,15),g.NdJ("@transformPanel.done",function(D){return g.CHM(E),g.oxw()._panelDoneAnimatingStream.next(D.toState)})("keydown",function(D){return g.CHM(E),g.oxw()._handleKeydown(D)}),g.Hsn(3,1),g.qZA()()}if(2&at){const E=g.oxw();g.Q6J("@transformPanelWrap",void 0),g.xp6(1),g.Gre("mat-select-panel ",E._getPanelTheme(),""),g.Udp("transform-origin",E._transformOrigin)("font-size",E._triggerFontSize,"px"),g.Q6J("ngClass",E.panelClass)("@transformPanel",E.multiple?"showing-multiple":"showing"),g.uIk("id",E.id+"-panel")("aria-multiselectable",E.multiple)("aria-label",E.ariaLabel||null)("aria-labelledby",E._getPanelAriaLabelledby())}}const tt=[[["mat-select-trigger"]],"*"],Fe=["mat-select-trigger","*"],Ct={transformPanelWrap:(0,z.X$)("transformPanelWrap",[(0,z.eR)("* => void",(0,z.IO)("@transformPanel",[(0,z.pV)()],{optional:!0}))]),transformPanel:(0,z.X$)("transformPanel",[(0,z.SB)("void",(0,z.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,z.SB)("showing",(0,z.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,z.SB)("showing-multiple",(0,z.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,z.eR)("void => *",(0,z.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,z.eR)("* => void",(0,z.jt)("100ms 25ms linear",(0,z.oB)({opacity:0})))])};let Rt=0;const Xe=new g.OlP("mat-select-scroll-strategy"),J=new g.OlP("MAT_SELECT_CONFIG"),K={provide:Xe,deps:[c.aV],useFactory:function je(at){return()=>at.scrollStrategies.reposition()}};class He{constructor(Pe,E){this.source=Pe,this.value=E}}const Ge=(0,Y.Kr)((0,Y.sb)((0,Y.Id)((0,Y.FD)(class{constructor(at,Pe,E,S,D){this._elementRef=at,this._defaultErrorStateMatcher=Pe,this._parentForm=E,this._parentFormGroup=S,this.ngControl=D}})))),lt=new g.OlP("MatSelectTrigger");let Ht=(()=>{class at extends Ge{constructor(E,S,D,P,L,re,be,Ue,ze,_t,ct,Ot,nn,Yt){var dn,dt,vt;super(L,P,be,Ue,_t),this._viewportRuler=E,this._changeDetectorRef=S,this._ngZone=D,this._dir=re,this._parentFormField=ze,this._liveAnnouncer=nn,this._defaultOptions=Yt,this._panelOpen=!1,this._compareWith=(Le,we)=>Le===we,this._uid="mat-select-"+Rt++,this._triggerAriaLabelledBy=null,this._destroy=new de.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Rt++,this._panelDoneAnimatingStream=new de.x,this._overlayPanelClass=(null===(dn=this._defaultOptions)||void 0===dn?void 0:dn.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(vt=null===(dt=this._defaultOptions)||void 0===dt?void 0:dt.disableOptionCentering)&&void 0!==vt&&vt,this.ariaLabel="",this.optionSelectionChanges=(0,X.P)(()=>{const Le=this.options;return Le?Le.changes.pipe((0,ke.O)(Le),(0,Be.w)(()=>(0,le.T)(...Le.map(we=>we.onSelectionChange)))):this._ngZone.onStable.pipe((0,Z.q)(1),(0,Be.w)(()=>this.optionSelectionChanges))}),this.openedChange=new g.vpe,this._openedStream=this.openedChange.pipe((0,et.h)(Le=>Le),(0,Ye.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,et.h)(Le=>!Le),(0,Ye.U)(()=>{})),this.selectionChange=new g.vpe,this.valueChange=new g.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Yt?void 0:Yt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Yt.typeaheadDebounceInterval),this._scrollStrategyFactory=Ot,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(ct)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(E){this._placeholder=E,this.stateChanges.next()}get required(){var E,S,D,P;return null!==(P=null!==(E=this._required)&&void 0!==E?E:null===(D=null===(S=this.ngControl)||void 0===S?void 0:S.control)||void 0===D?void 0:D.hasValidator(se.kI.required))&&void 0!==P&&P}set required(E){this._required=(0,Ce.Ig)(E),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(E){this._multiple=(0,Ce.Ig)(E)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(E){this._disableOptionCentering=(0,Ce.Ig)(E)}get compareWith(){return this._compareWith}set compareWith(E){this._compareWith=E,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(E){(E!==this._value||this._multiple&&Array.isArray(E))&&(this.options&&this._setSelectionByValue(E),this._value=E)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(E){this._typeaheadDebounceInterval=(0,Ce.su)(E)}get id(){return this._id}set id(E){this._id=E||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ue.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Qe.x)(),(0,me.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,me.R)(this._destroy)).subscribe(E=>{E.added.forEach(S=>S.select()),E.removed.forEach(S=>S.deselect())}),this.options.changes.pipe((0,ke.O)(null),(0,me.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const E=this._getTriggerAriaLabelledby();if(E!==this._triggerAriaLabelledBy){const S=this._elementRef.nativeElement;this._triggerAriaLabelledBy=E,E?S.setAttribute("aria-labelledby",E):S.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(E){E.disabled&&this.stateChanges.next(),E.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(E){this.value=E}registerOnChange(E){this._onChange=E}registerOnTouched(E){this._onTouched=E}setDisabledState(E){this.disabled=E,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var E,S;return this.multiple?(null===(E=this._selectionModel)||void 0===E?void 0:E.selected)||[]:null===(S=this._selectionModel)||void 0===S?void 0:S.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const E=this._selectionModel.selected.map(S=>S.viewValue);return this._isRtl()&&E.reverse(),E.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(E){this.disabled||(this.panelOpen?this._handleOpenKeydown(E):this._handleClosedKeydown(E))}_handleClosedKeydown(E){const S=E.keyCode,D=S===te.JH||S===te.LH||S===te.oh||S===te.SV,P=S===te.K5||S===te.L_,L=this._keyManager;if(!L.isTyping()&&P&&!(0,te.Vb)(E)||(this.multiple||E.altKey)&&D)E.preventDefault(),this.open();else if(!this.multiple){const re=this.selected;L.onKeydown(E);const be=this.selected;be&&re!==be&&this._liveAnnouncer.announce(be.viewValue,1e4)}}_handleOpenKeydown(E){const S=this._keyManager,D=E.keyCode,P=D===te.JH||D===te.LH,L=S.isTyping();if(P&&E.altKey)E.preventDefault(),this.close();else if(L||D!==te.K5&&D!==te.L_||!S.activeItem||(0,te.Vb)(E))if(!L&&this._multiple&&D===te.A&&E.ctrlKey){E.preventDefault();const re=this.options.some(be=>!be.disabled&&!be.selected);this.options.forEach(be=>{be.disabled||(re?be.select():be.deselect())})}else{const re=S.activeItemIndex;S.onKeydown(E),this._multiple&&P&&E.shiftKey&&S.activeItem&&S.activeItemIndex!==re&&S.activeItem._selectViaInteraction()}else E.preventDefault(),S.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Z.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(E){if(this._selectionModel.selected.forEach(S=>S.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&E)Array.isArray(E),E.forEach(S=>this._selectValue(S)),this._sortValues();else{const S=this._selectValue(E);S?this._keyManager.updateActiveItem(S):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(E){const S=this.options.find(D=>{if(this._selectionModel.isSelected(D))return!1;try{return null!=D.value&&this._compareWith(D.value,E)}catch(P){return!1}});return S&&this._selectionModel.select(S),S}_initKeyManager(){this._keyManager=new De.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,me.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,me.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const E=(0,le.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,me.R)(E)).subscribe(S=>{this._onSelect(S.source,S.isUserInput),S.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,le.T)(...this.options.map(S=>S._stateChanges)).pipe((0,me.R)(E)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(E,S){const D=this._selectionModel.isSelected(E);null!=E.value||this._multiple?(D!==E.selected&&(E.selected?this._selectionModel.select(E):this._selectionModel.deselect(E)),S&&this._keyManager.setActiveItem(E),this.multiple&&(this._sortValues(),S&&this.focus())):(E.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(E.value)),D!==this._selectionModel.isSelected(E)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const E=this.options.toArray();this._selectionModel.sort((S,D)=>this.sortComparator?this.sortComparator(S,D,E):E.indexOf(S)-E.indexOf(D)),this.stateChanges.next()}}_propagateChanges(E){let S=null;S=this.multiple?this.selected.map(D=>D.value):this.selected?this.selected.value:E,this._value=S,this.valueChange.emit(S),this._onChange(S),this.selectionChange.emit(this._getChangeEvent(S)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var E;return!this._panelOpen&&!this.disabled&&(null===(E=this.options)||void 0===E?void 0:E.length)>0}focus(E){this._elementRef.nativeElement.focus(E)}_getPanelAriaLabelledby(){var E;if(this.ariaLabel)return null;const S=null===(E=this._parentFormField)||void 0===E?void 0:E.getLabelId();return this.ariaLabelledby?(S?S+" ":"")+this.ariaLabelledby:S}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var E;if(this.ariaLabel)return null;const S=null===(E=this._parentFormField)||void 0===E?void 0:E.getLabelId();let D=(S?S+" ":"")+this._valueId;return this.ariaLabelledby&&(D+=" "+this.ariaLabelledby),D}_panelDoneAnimating(E){this.openedChange.emit(E)}setDescribedByIds(E){this._ariaDescribedby=E.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return at.\u0275fac=function(E){return new(E||at)(g.Y36(q.rL),g.Y36(g.sBO),g.Y36(g.R0b),g.Y36(Y.rD),g.Y36(g.SBq),g.Y36(Q.Is,8),g.Y36(se.F,8),g.Y36(se.sg,8),g.Y36(ce.G_,8),g.Y36(se.a5,10),g.$8M("tabindex"),g.Y36(Xe),g.Y36(De.Kd),g.Y36(J,8))},at.\u0275dir=g.lG2({type:at,viewQuery:function(E,S){if(1&E&&(g.Gf(pe,5),g.Gf(Te,5),g.Gf(c.pI,5)),2&E){let D;g.iGM(D=g.CRH())&&(S.trigger=D.first),g.iGM(D=g.CRH())&&(S.panel=D.first),g.iGM(D=g.CRH())&&(S._overlayDir=D.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:[g.qOj,g.TTD]}),at})(),bt=(()=>{class at extends Ht{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(E,S,D){const P=this._getItemHeight();return Math.min(Math.max(0,P*E-S+P/2),D)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,me.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Z.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(E){const S=(0,Y.CB)(E,this.options,this.optionGroups),D=this._getItemHeight();this.panel.nativeElement.scrollTop=0===E&&1===S?0:(0,Y.jH)((E+S)*D,D,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(E){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(E)}_getChangeEvent(E){return new He(this,E)}_calculateOverlayOffsetX(){const E=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),S=this._viewportRuler.getViewportSize(),D=this._isRtl(),P=this.multiple?56:32;let L;if(this.multiple)L=40;else if(this.disableOptionCentering)L=16;else{let Ue=this._selectionModel.selected[0]||this.options.first;L=Ue&&Ue.group?32:16}D||(L*=-1);const re=0-(E.left+L-(D?P:0)),be=E.right+L-S.width+(D?0:P);re>0?L+=re+8:be>0&&(L-=be+8),this._overlayDir.offsetX=Math.round(L),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(E,S,D){const P=this._getItemHeight(),L=(P-this._triggerRect.height)/2,re=Math.floor(256/P);let be;return this.disableOptionCentering?0:(be=0===this._scrollTop?E*P:this._scrollTop===D?(E-(this._getItemCount()-re))*P+(P-(this._getItemCount()*P-256)%P):S-P/2,Math.round(-1*be-L))}_checkOverlayWithinViewport(E){const S=this._getItemHeight(),D=this._viewportRuler.getViewportSize(),P=this._triggerRect.top-8,L=D.height-this._triggerRect.bottom-8,re=Math.abs(this._offsetY),Ue=Math.min(this._getItemCount()*S,256)-re-this._triggerRect.height;Ue>L?this._adjustPanelUp(Ue,L):re>P?this._adjustPanelDown(re,P,E):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(E,S){const D=Math.round(E-S);this._scrollTop-=D,this._offsetY-=D,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(E,S,D){const P=Math.round(E-S);if(this._scrollTop+=P,this._offsetY+=P,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=D)return this._scrollTop=D,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const E=this._getItemHeight(),S=this._getItemCount(),D=Math.min(S*E,256),L=S*E-D;let re;re=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),re+=(0,Y.CB)(re,this.options,this.optionGroups);const be=D/2;this._scrollTop=this._calculateOverlayScroll(re,be,L),this._offsetY=this._calculateOverlayOffsetY(re,be,L),this._checkOverlayWithinViewport(L)}_getOriginBasedOnOption(){const E=this._getItemHeight(),S=(E-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-S+E/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return at.\u0275fac=function(){let Pe;return function(S){return(Pe||(Pe=g.n5z(at)))(S||at)}}(),at.\u0275cmp=g.Xpm({type:at,selectors:[["mat-select"]],contentQueries:function(E,S,D){if(1&E&&(g.Suo(D,lt,5),g.Suo(D,Y.ey,5),g.Suo(D,Y.K7,5)),2&E){let P;g.iGM(P=g.CRH())&&(S.customTrigger=P.first),g.iGM(P=g.CRH())&&(S.options=P),g.iGM(P=g.CRH())&&(S.optionGroups=P)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(E,S){1&E&&g.NdJ("keydown",function(P){return S._handleKeydown(P)})("focus",function(){return S._onFocus()})("blur",function(){return S._onBlur()}),2&E&&(g.uIk("id",S.id)("tabindex",S.tabIndex)("aria-controls",S.panelOpen?S.id+"-panel":null)("aria-expanded",S.panelOpen)("aria-label",S.ariaLabel||null)("aria-required",S.required.toString())("aria-disabled",S.disabled.toString())("aria-invalid",S.errorState)("aria-describedby",S._ariaDescribedby||null)("aria-activedescendant",S._getAriaActiveDescendant()),g.ekj("mat-select-disabled",S.disabled)("mat-select-invalid",S.errorState)("mat-select-required",S.required)("mat-select-empty",S.empty)("mat-select-multiple",S.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[g._Bn([{provide:ce.Eo,useExisting:at},{provide:Y.HF,useExisting:at}]),g.qOj],ngContentSelectors:Fe,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(E,S){if(1&E&&(g.F$t(tt),g.TgZ(0,"div",0,1),g.NdJ("click",function(){return S.toggle()}),g.TgZ(3,"div",2),g.YNc(4,Ne,2,1,"span",3),g.YNc(5,xe,3,2,"span",4),g.qZA(),g.TgZ(6,"div",5),g._UZ(7,"div",6),g.qZA()(),g.YNc(8,Ae,4,14,"ng-template",7),g.NdJ("backdropClick",function(){return S.close()})("attach",function(){return S._onAttached()})("detach",function(){return S.close()})),2&E){const D=g.MAs(1);g.uIk("aria-owns",S.panelOpen?S.id+"-panel":null),g.xp6(3),g.Q6J("ngSwitch",S.empty),g.uIk("id",S._valueId),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1),g.xp6(3),g.Q6J("cdkConnectedOverlayPanelClass",S._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",S._scrollStrategy)("cdkConnectedOverlayOrigin",D)("cdkConnectedOverlayOpen",S.panelOpen)("cdkConnectedOverlayPositions",S._positions)("cdkConnectedOverlayMinWidth",null==S._triggerRect?null:S._triggerRect.width)("cdkConnectedOverlayOffsetY",S._offsetY)}},directives:[c.xu,o.RF,o.n9,o.ED,c.pI,o.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-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;opacity:0}\n'],encapsulation:2,data:{animation:[Ct.transformPanelWrap,Ct.transformPanel]},changeDetection:0}),at})(),Nt=(()=>{class at{}return at.\u0275fac=function(E){return new(E||at)},at.\u0275mod=g.oAB({type:at}),at.\u0275inj=g.cJS({providers:[K],imports:[[o.ez,c.U8,Y.Ng,Y.BQ],q.ZD,ce.lN,Y.Ng,Y.BQ]}),at})()},6360:(qe,ye,C)=>{C.d(ye,{Qb:()=>br,PW:()=>Ee});var c=C(4893),o=C(2313),g=C(1777);const Y=!1;function q(d){return new c.vHH(3e3,Y)}function xt(){return"undefined"!=typeof window&&void 0!==window.document}function on(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Xe(d){switch(d.length){case 0:return new g.ZN;case 1:return d[0];default:return new g.ZE(d)}}function je(d,a,l,v,R={},G={}){const ie=[],oe=[];let Oe=-1,Ke=null;if(v.forEach(gt=>{const It=gt.offset,Xt=It==Oe,ln=Xt&&Ke||{};Object.keys(gt).forEach(Vt=>{let rn=Vt,Mn=gt[Vt];if("offset"!==Vt)switch(rn=a.normalizePropertyName(rn,ie),Mn){case g.k1:Mn=R[Vt];break;case g.l3:Mn=G[Vt];break;default:Mn=a.normalizeStyleValue(Vt,rn,Mn,ie)}ln[rn]=Mn}),Xt||oe.push(ln),Ke=ln,Oe=It}),ie.length)throw function Ae(d){return new c.vHH(3502,Y)}();return oe}function J(d,a,l,v){switch(a){case"start":d.onStart(()=>v(l&&K(l,"start",d)));break;case"done":d.onDone(()=>v(l&&K(l,"done",d)));break;case"destroy":d.onDestroy(()=>v(l&&K(l,"destroy",d)))}}function K(d,a,l){const v=l.totalTime,G=He(d.element,d.triggerName,d.fromState,d.toState,a||d.phaseName,null==v?d.totalTime:v,!!l.disabled),ie=d._data;return null!=ie&&(G._data=ie),G}function He(d,a,l,v,R="",G=0,ie){return{element:d,triggerName:a,fromState:l,toState:v,phaseName:R,totalTime:G,disabled:!!ie}}function Ge(d,a,l){let v;return d instanceof Map?(v=d.get(a),v||d.set(a,v=l)):(v=d[a],v||(v=d[a]=l)),v}function lt(d){const a=d.indexOf(":");return[d.substring(1,a),d.substr(a+1)]}let St=(d,a)=>!1,Ht=(d,a,l)=>[],bt=null;function Nt(d){const a=d.parentNode||d.host;return a===bt?null:a}(on()||"undefined"!=typeof Element)&&(xt()?(bt=(()=>document.documentElement)(),St=(d,a)=>{for(;a;){if(a===d)return!0;a=Nt(a)}return!1}):St=(d,a)=>d.contains(a),Ht=(d,a,l)=>{if(l)return Array.from(d.querySelectorAll(a));const v=d.querySelector(a);return v?[v]:[]});let E=null,S=!1;function D(d){E||(E=function P(){return"undefined"!=typeof document?document.body:null}()||{},S=!!E.style&&"WebkitAppearance"in E.style);let a=!0;return E.style&&!function Pe(d){return"ebkit"==d.substring(1,6)}(d)&&(a=d in E.style,!a&&S&&(a="Webkit"+d.charAt(0).toUpperCase()+d.substr(1)in E.style)),a}const L=St,re=Ht;let Ue=(()=>{class d{validateStyleProperty(l){return D(l)}matchesElement(l,v){return!1}containsElement(l,v){return L(l,v)}getParentElement(l){return Nt(l)}query(l,v,R){return re(l,v,R)}computeStyle(l,v,R){return R||""}animate(l,v,R,G,ie,oe=[],Oe){return new g.ZN(R,G)}}return d.\u0275fac=function(l){return new(l||d)},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})(),ze=(()=>{class d{}return d.NOOP=new Ue,d})();const nn="ng-enter",Yt="ng-leave",dn="ng-trigger",dt=".ng-trigger",vt="ng-animating",Le=".ng-animating";function we(d){if("number"==typeof d)return d;const a=d.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:V(parseFloat(a[1]),a[2])}function V(d,a){return"s"===a?1e3*d:d}function j(d,a,l){return d.hasOwnProperty("duration")?d:function $(d,a,l){let R,G=0,ie="";if("string"==typeof d){const oe=d.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===oe)return a.push(q()),{duration:0,delay:0,easing:""};R=V(parseFloat(oe[1]),oe[2]);const Oe=oe[3];null!=Oe&&(G=V(parseFloat(Oe),oe[4]));const Ke=oe[5];Ke&&(ie=Ke)}else R=d;if(!l){let oe=!1,Oe=a.length;R<0&&(a.push(function De(){return new c.vHH(3100,Y)}()),oe=!0),G<0&&(a.push(function Ce(){return new c.vHH(3101,Y)}()),oe=!0),oe&&a.splice(Oe,0,q())}return{duration:R,delay:G,easing:ie}}(d,a,l)}function he(d,a={}){return Object.keys(d).forEach(l=>{a[l]=d[l]}),a}function st(d,a,l={}){if(a)for(let v in d)l[v]=d[v];else he(d,l);return l}function At(d,a,l){return l?a+":"+l+";":""}function Zt(d){let a="";for(let l=0;l{const R=$t(v);l&&!l.hasOwnProperty(v)&&(l[v]=d.style[R]),d.style[R]=a[v]}),on()&&Zt(d))}function Dt(d,a){d.style&&(Object.keys(a).forEach(l=>{const v=$t(l);d.style[v]=""}),on()&&Zt(d))}function Rn(d){return Array.isArray(d)?1==d.length?d[0]:(0,g.vP)(d):d}const _e=new RegExp("{{\\s*(.+?)\\s*}}","g");function ne(d){let a=[];if("string"==typeof d){let l;for(;l=_e.exec(d);)a.push(l[1]);_e.lastIndex=0}return a}function Ie(d,a,l){const v=d.toString(),R=v.replace(_e,(G,ie)=>{let oe=a[ie];return a.hasOwnProperty(ie)||(l.push(function te(d){return new c.vHH(3003,Y)}()),oe=""),oe.toString()});return R==v?d:R}function rt(d){const a=[];let l=d.next();for(;!l.done;)a.push(l.value),l=d.next();return a}const kt=/-+([a-z0-9])/g;function $t(d){return d.replace(kt,(...a)=>a[1].toUpperCase())}function bn(d){return d.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Cn(d,a,l){switch(a.type){case 7:return d.visitTrigger(a,l);case 0:return d.visitState(a,l);case 1:return d.visitTransition(a,l);case 2:return d.visitSequence(a,l);case 3:return d.visitGroup(a,l);case 4:return d.visitAnimate(a,l);case 5:return d.visitKeyframes(a,l);case 6:return d.visitStyle(a,l);case 8:return d.visitReference(a,l);case 9:return d.visitAnimateChild(a,l);case 10:return d.visitAnimateRef(a,l);case 11:return d.visitQuery(a,l);case 12:return d.visitStagger(a,l);default:throw function se(d){return new c.vHH(3004,Y)}()}}function jn(d,a){return window.getComputedStyle(d)[a]}function ft(d,a){const l=[];return"string"==typeof d?d.split(/\s*,\s*/).forEach(v=>function Qt(d,a,l){if(":"==d[0]){const Oe=function pn(d,a){switch(d){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,v)=>parseFloat(v)>parseFloat(l);case":decrement":return(l,v)=>parseFloat(v) *"}}(d,l);if("function"==typeof Oe)return void a.push(Oe);d=Oe}const v=d.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==v||v.length<4)return l.push(function Te(d){return new c.vHH(3015,Y)}()),a;const R=v[1],G=v[2],ie=v[3];a.push(An(R,ie));"<"==G[0]&&!("*"==R&&"*"==ie)&&a.push(An(ie,R))}(v,l,a)):l.push(d),l}const Fn=new Set(["true","1"]),ai=new Set(["false","0"]);function An(d,a){const l=Fn.has(d)||ai.has(d),v=Fn.has(a)||ai.has(a);return(R,G)=>{let ie="*"==d||d==R,oe="*"==a||a==G;return!ie&&l&&"boolean"==typeof R&&(ie=R?Fn.has(d):ai.has(d)),!oe&&v&&"boolean"==typeof G&&(oe=G?Fn.has(a):ai.has(a)),ie&&oe}}const tn=new RegExp("s*:selfs*,?","g");function Yn(d,a,l,v){return new jt(d).build(a,l,v)}class jt{constructor(a){this._driver=a}build(a,l,v){const R=new Si(l);this._resetContextStyleTimingState(R);const G=Cn(this,Rn(a),R);return R.unsupportedCSSPropertiesFound.size&&R.unsupportedCSSPropertiesFound.keys(),G}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,l){let v=l.queryCount=0,R=l.depCount=0;const G=[],ie=[];return"@"==a.name.charAt(0)&&l.errors.push(function X(){return new c.vHH(3006,Y)}()),a.definitions.forEach(oe=>{if(this._resetContextStyleTimingState(l),0==oe.type){const Oe=oe,Ke=Oe.name;Ke.toString().split(/\s*,\s*/).forEach(gt=>{Oe.name=gt,G.push(this.visitState(Oe,l))}),Oe.name=Ke}else if(1==oe.type){const Oe=this.visitTransition(oe,l);v+=Oe.queryCount,R+=Oe.depCount,ie.push(Oe)}else l.errors.push(function le(){return new c.vHH(3007,Y)}())}),{type:7,name:a.name,states:G,transitions:ie,queryCount:v,depCount:R,options:null}}visitState(a,l){const v=this.visitStyle(a.styles,l),R=a.options&&a.options.params||null;if(v.containsDynamicStyles){const G=new Set,ie=R||{};v.styles.forEach(oe=>{if(gn(oe)){const Oe=oe;Object.keys(Oe).forEach(Ke=>{ne(Oe[Ke]).forEach(gt=>{ie.hasOwnProperty(gt)||G.add(gt)})})}}),G.size&&(rt(G.values()),l.errors.push(function ke(d,a){return new c.vHH(3008,Y)}()))}return{type:0,name:a.name,style:v,options:R?{params:R}:null}}visitTransition(a,l){l.queryCount=0,l.depCount=0;const v=Cn(this,Rn(a.animation),l);return{type:1,matchers:ft(a.expr,l.errors),animation:v,queryCount:l.queryCount,depCount:l.depCount,options:Nn(a.options)}}visitSequence(a,l){return{type:2,steps:a.steps.map(v=>Cn(this,v,l)),options:Nn(a.options)}}visitGroup(a,l){const v=l.currentTime;let R=0;const G=a.steps.map(ie=>{l.currentTime=v;const oe=Cn(this,ie,l);return R=Math.max(R,l.currentTime),oe});return l.currentTime=R,{type:3,steps:G,options:Nn(a.options)}}visitAnimate(a,l){const v=function di(d,a){let l=null;if(d.hasOwnProperty("duration"))l=d;else if("number"==typeof d)return Xn(j(d,a).duration,0,"");const v=d;if(v.split(/\s+/).some(G=>"{"==G.charAt(0)&&"{"==G.charAt(1))){const G=Xn(0,0,"");return G.dynamic=!0,G.strValue=v,G}return l=l||j(v,a),Xn(l.duration,l.delay,l.easing)}(a.timings,l.errors);l.currentAnimateTimings=v;let R,G=a.styles?a.styles:(0,g.oB)({});if(5==G.type)R=this.visitKeyframes(G,l);else{let ie=a.styles,oe=!1;if(!ie){oe=!0;const Ke={};v.easing&&(Ke.easing=v.easing),ie=(0,g.oB)(Ke)}l.currentTime+=v.duration+v.delay;const Oe=this.visitStyle(ie,l);Oe.isEmptyStep=oe,R=Oe}return l.currentAnimateTimings=null,{type:4,timings:v,style:R,options:null}}visitStyle(a,l){const v=this._makeStyleAst(a,l);return this._validateStyleAst(v,l),v}_makeStyleAst(a,l){const v=[];Array.isArray(a.styles)?a.styles.forEach(ie=>{"string"==typeof ie?ie==g.l3?v.push(ie):l.errors.push(function Be(d){return new c.vHH(3002,Y)}()):v.push(ie)}):v.push(a.styles);let R=!1,G=null;return v.forEach(ie=>{if(gn(ie)){const oe=ie,Oe=oe.easing;if(Oe&&(G=Oe,delete oe.easing),!R)for(let Ke in oe)if(oe[Ke].toString().indexOf("{{")>=0){R=!0;break}}}),{type:6,styles:v,easing:G,offset:a.offset,containsDynamicStyles:R,options:null}}_validateStyleAst(a,l){const v=l.currentAnimateTimings;let R=l.currentTime,G=l.currentTime;v&&G>0&&(G-=v.duration+v.delay),a.styles.forEach(ie=>{"string"!=typeof ie&&Object.keys(ie).forEach(oe=>{if(!this._driver.validateStyleProperty(oe))return delete ie[oe],void l.unsupportedCSSPropertiesFound.add(oe);const Oe=l.collectedStyles[l.currentQuerySelector],Ke=Oe[oe];let gt=!0;Ke&&(G!=R&&G>=Ke.startTime&&R<=Ke.endTime&&(l.errors.push(function et(d,a,l,v,R){return new c.vHH(3010,Y)}()),gt=!1),G=Ke.startTime),gt&&(Oe[oe]={startTime:G,endTime:R}),l.options&&function Ve(d,a,l){const v=a.params||{},R=ne(d);R.length&&R.forEach(G=>{v.hasOwnProperty(G)||l.push(function ue(d){return new c.vHH(3001,Y)}())})}(ie[oe],l.options,l.errors)})})}visitKeyframes(a,l){const v={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push(function Ye(){return new c.vHH(3011,Y)}()),v;let G=0;const ie=[];let oe=!1,Oe=!1,Ke=0;const gt=a.steps.map($n=>{const li=this._makeStyleAst($n,l);let Ei=null!=li.offset?li.offset:function Gn(d){if("string"==typeof d)return null;let a=null;if(Array.isArray(d))d.forEach(l=>{if(gn(l)&&l.hasOwnProperty("offset")){const v=l;a=parseFloat(v.offset),delete v.offset}});else if(gn(d)&&d.hasOwnProperty("offset")){const l=d;a=parseFloat(l.offset),delete l.offset}return a}(li.styles),ii=0;return null!=Ei&&(G++,ii=li.offset=Ei),Oe=Oe||ii<0||ii>1,oe=oe||ii0&&G{const Ei=Xt>0?li==ln?1:Xt*li:ie[li],ii=Ei*Mn;l.currentTime=Vt+rn.delay+ii,rn.duration=ii,this._validateStyleAst($n,l),$n.offset=Ei,v.styles.push($n)}),v}visitReference(a,l){return{type:8,animation:Cn(this,Rn(a.animation),l),options:Nn(a.options)}}visitAnimateChild(a,l){return l.depCount++,{type:9,options:Nn(a.options)}}visitAnimateRef(a,l){return{type:10,animation:this.visitReference(a.animation,l),options:Nn(a.options)}}visitQuery(a,l){const v=l.currentQuerySelector,R=a.options||{};l.queryCount++,l.currentQuery=a;const[G,ie]=function ui(d){const a=!!d.split(/\s*,\s*/).find(l=>":self"==l);return a&&(d=d.replace(tn,"")),d=d.replace(/@\*/g,dt).replace(/@\w+/g,l=>dt+"-"+l.substr(1)).replace(/:animating/g,Le),[d,a]}(a.selector);l.currentQuerySelector=v.length?v+" "+G:G,Ge(l.collectedStyles,l.currentQuerySelector,{});const oe=Cn(this,Rn(a.animation),l);return l.currentQuery=null,l.currentQuerySelector=v,{type:11,selector:G,limit:R.limit||0,optional:!!R.optional,includeSelf:ie,animation:oe,originalSelector:a.selector,options:Nn(a.options)}}visitStagger(a,l){l.currentQuery||l.errors.push(function Q(){return new c.vHH(3013,Y)}());const v="full"===a.timings?{duration:0,delay:0,easing:"full"}:j(a.timings,l.errors,!0);return{type:12,animation:Cn(this,Rn(a.animation),l),timings:v,options:null}}}class Si{constructor(a){this.errors=a,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 gn(d){return!Array.isArray(d)&&"object"==typeof d}function Nn(d){return d?(d=he(d)).params&&(d.params=function Jn(d){return d?he(d):null}(d.params)):d={},d}function Xn(d,a,l){return{duration:d,delay:a,easing:l}}function un(d,a,l,v,R,G,ie=null,oe=!1){return{type:1,element:d,keyframes:a,preStyleProps:l,postStyleProps:v,duration:R,delay:G,totalTime:R+G,easing:ie,subTimeline:oe}}class ir{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,l){let v=this._map.get(a);v||this._map.set(a,v=[]),v.push(...l)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const Ci=new RegExp(":enter","g"),Zi=new RegExp(":leave","g");function On(d,a,l,v,R,G={},ie={},oe,Oe,Ke=[]){return(new ei).buildKeyframes(d,a,l,v,R,G,ie,oe,Oe,Ke)}class ei{buildKeyframes(a,l,v,R,G,ie,oe,Oe,Ke,gt=[]){Ke=Ke||new ir;const It=new hr(a,l,Ke,R,G,gt,[]);It.options=Oe,It.currentTimeline.setStyles([ie],null,It.errors,Oe),Cn(this,v,It);const Xt=It.timelines.filter(ln=>ln.containsAnimation());if(Object.keys(oe).length){let ln;for(let Vt=Xt.length-1;Vt>=0;Vt--){const rn=Xt[Vt];if(rn.element===l){ln=rn;break}}ln&&!ln.allowOnlyTimelineStyles()&&ln.setStyles([oe],null,It.errors,Oe)}return Xt.length?Xt.map(ln=>ln.buildKeyframes()):[un(l,[],[],[],0,0,"",!1)]}visitTrigger(a,l){}visitState(a,l){}visitTransition(a,l){}visitAnimateChild(a,l){const v=l.subInstructions.get(l.element);if(v){const R=l.createSubContext(a.options),G=l.currentTimeline.currentTime,ie=this._visitSubInstructions(v,R,R.options);G!=ie&&l.transformIntoNewTimeline(ie)}l.previousNode=a}visitAnimateRef(a,l){const v=l.createSubContext(a.options);v.transformIntoNewTimeline(),this.visitReference(a.animation,v),l.transformIntoNewTimeline(v.currentTimeline.currentTime),l.previousNode=a}_visitSubInstructions(a,l,v){let G=l.currentTimeline.currentTime;const ie=null!=v.duration?we(v.duration):null,oe=null!=v.delay?we(v.delay):null;return 0!==ie&&a.forEach(Oe=>{const Ke=l.appendInstructionToTimeline(Oe,ie,oe);G=Math.max(G,Ke.duration+Ke.delay)}),G}visitReference(a,l){l.updateOptions(a.options,!0),Cn(this,a.animation,l),l.previousNode=a}visitSequence(a,l){const v=l.subContextCount;let R=l;const G=a.options;if(G&&(G.params||G.delay)&&(R=l.createSubContext(G),R.transformIntoNewTimeline(),null!=G.delay)){6==R.previousNode.type&&(R.currentTimeline.snapshotCurrentStyles(),R.previousNode=Oi);const ie=we(G.delay);R.delayNextStep(ie)}a.steps.length&&(a.steps.forEach(ie=>Cn(this,ie,R)),R.currentTimeline.applyStylesToKeyframe(),R.subContextCount>v&&R.transformIntoNewTimeline()),l.previousNode=a}visitGroup(a,l){const v=[];let R=l.currentTimeline.currentTime;const G=a.options&&a.options.delay?we(a.options.delay):0;a.steps.forEach(ie=>{const oe=l.createSubContext(a.options);G&&oe.delayNextStep(G),Cn(this,ie,oe),R=Math.max(R,oe.currentTimeline.currentTime),v.push(oe.currentTimeline)}),v.forEach(ie=>l.currentTimeline.mergeTimelineCollectedStyles(ie)),l.transformIntoNewTimeline(R),l.previousNode=a}_visitTiming(a,l){if(a.dynamic){const v=a.strValue;return j(l.params?Ie(v,l.params,l.errors):v,l.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,l){const v=l.currentAnimateTimings=this._visitTiming(a.timings,l),R=l.currentTimeline;v.delay&&(l.incrementTime(v.delay),R.snapshotCurrentStyles());const G=a.style;5==G.type?this.visitKeyframes(G,l):(l.incrementTime(v.duration),this.visitStyle(G,l),R.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=a}visitStyle(a,l){const v=l.currentTimeline,R=l.currentAnimateTimings;!R&&v.getCurrentStyleProperties().length&&v.forwardFrame();const G=R&&R.easing||a.easing;a.isEmptyStep?v.applyEmptyStep(G):v.setStyles(a.styles,G,l.errors,l.options),l.previousNode=a}visitKeyframes(a,l){const v=l.currentAnimateTimings,R=l.currentTimeline.duration,G=v.duration,oe=l.createSubContext().currentTimeline;oe.easing=v.easing,a.styles.forEach(Oe=>{oe.forwardTime((Oe.offset||0)*G),oe.setStyles(Oe.styles,Oe.easing,l.errors,l.options),oe.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(oe),l.transformIntoNewTimeline(R+G),l.previousNode=a}visitQuery(a,l){const v=l.currentTimeline.currentTime,R=a.options||{},G=R.delay?we(R.delay):0;G&&(6===l.previousNode.type||0==v&&l.currentTimeline.getCurrentStyleProperties().length)&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=Oi);let ie=v;const oe=l.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!R.optional,l.errors);l.currentQueryTotal=oe.length;let Oe=null;oe.forEach((Ke,gt)=>{l.currentQueryIndex=gt;const It=l.createSubContext(a.options,Ke);G&&It.delayNextStep(G),Ke===l.element&&(Oe=It.currentTimeline),Cn(this,a.animation,It),It.currentTimeline.applyStylesToKeyframe(),ie=Math.max(ie,It.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(ie),Oe&&(l.currentTimeline.mergeTimelineCollectedStyles(Oe),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=a}visitStagger(a,l){const v=l.parentContext,R=l.currentTimeline,G=a.timings,ie=Math.abs(G.duration),oe=ie*(l.currentQueryTotal-1);let Oe=ie*l.currentQueryIndex;switch(G.duration<0?"reverse":G.easing){case"reverse":Oe=oe-Oe;break;case"full":Oe=v.currentStaggerTime}const gt=l.currentTimeline;Oe&>.delayNextStep(Oe);const It=gt.currentTime;Cn(this,a.animation,l),l.previousNode=a,v.currentStaggerTime=R.currentTime-It+(R.startTime-v.currentTimeline.startTime)}}const Oi={};class hr{constructor(a,l,v,R,G,ie,oe,Oe){this._driver=a,this.element=l,this.subInstructions=v,this._enterClassName=R,this._leaveClassName=G,this.errors=ie,this.timelines=oe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Oi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Oe||new rr(this._driver,l,0),oe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,l){if(!a)return;const v=a;let R=this.options;null!=v.duration&&(R.duration=we(v.duration)),null!=v.delay&&(R.delay=we(v.delay));const G=v.params;if(G){let ie=R.params;ie||(ie=this.options.params={}),Object.keys(G).forEach(oe=>{(!l||!ie.hasOwnProperty(oe))&&(ie[oe]=Ie(G[oe],ie,this.errors))})}}_copyOptions(){const a={};if(this.options){const l=this.options.params;if(l){const v=a.params={};Object.keys(l).forEach(R=>{v[R]=l[R]})}}return a}createSubContext(a=null,l,v){const R=l||this.element,G=new hr(this._driver,R,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(R,v||0));return G.previousNode=this.previousNode,G.currentAnimateTimings=this.currentAnimateTimings,G.options=this._copyOptions(),G.updateOptions(a),G.currentQueryIndex=this.currentQueryIndex,G.currentQueryTotal=this.currentQueryTotal,G.parentContext=this,this.subContextCount++,G}transformIntoNewTimeline(a){return this.previousNode=Oi,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,l,v){const R={duration:null!=l?l:a.duration,delay:this.currentTimeline.currentTime+(null!=v?v:0)+a.delay,easing:""},G=new fr(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,R,a.stretchStartingKeyframe);return this.timelines.push(G),R}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,l,v,R,G,ie){let oe=[];if(R&&oe.push(this.element),a.length>0){a=(a=a.replace(Ci,"."+this._enterClassName)).replace(Zi,"."+this._leaveClassName);let Ke=this._driver.query(this.element,a,1!=v);0!==v&&(Ke=v<0?Ke.slice(Ke.length+v,Ke.length):Ke.slice(0,v)),oe.push(...Ke)}return!G&&0==oe.length&&ie.push(function pe(d){return new c.vHH(3014,Y)}()),oe}}class rr{constructor(a,l,v,R){this._driver=a,this.element=l,this.startTime=v,this._elementTimelineStylesLookup=R,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const l=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||l?(this.forwardTime(this.currentTime+a),l&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,l){return this.applyStylesToKeyframe(),new rr(this._driver,a,l||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,l){this._localTimelineStyles[a]=l,this._globalTimelineStyles[a]=l,this._styleSummary[a]={time:this.currentTime,value:l}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(l=>{this._backFill[l]=this._globalTimelineStyles[l]||g.l3,this._currentKeyframe[l]=g.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,l,v,R){l&&(this._previousKeyframe.easing=l);const G=R&&R.params||{},ie=function kr(d,a){const l={};let v;return d.forEach(R=>{"*"===R?(v=v||Object.keys(a),v.forEach(G=>{l[G]=g.l3})):st(R,!1,l)}),l}(a,this._globalTimelineStyles);Object.keys(ie).forEach(oe=>{const Oe=Ie(ie[oe],G,v);this._pendingStyles[oe]=Oe,this._localTimelineStyles.hasOwnProperty(oe)||(this._backFill[oe]=this._globalTimelineStyles.hasOwnProperty(oe)?this._globalTimelineStyles[oe]:g.l3),this._updateStyle(oe,Oe)})}applyStylesToKeyframe(){const a=this._pendingStyles,l=Object.keys(a);0!=l.length&&(this._pendingStyles={},l.forEach(v=>{this._currentKeyframe[v]=a[v]}),Object.keys(this._localTimelineStyles).forEach(v=>{this._currentKeyframe.hasOwnProperty(v)||(this._currentKeyframe[v]=this._localTimelineStyles[v])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const l=this._localTimelineStyles[a];this._pendingStyles[a]=l,this._updateStyle(a,l)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let l in this._currentKeyframe)a.push(l);return a}mergeTimelineCollectedStyles(a){Object.keys(a._styleSummary).forEach(l=>{const v=this._styleSummary[l],R=a._styleSummary[l];(!v||R.time>v.time)&&this._updateStyle(l,R.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,l=new Set,v=1===this._keyframes.size&&0===this.duration;let R=[];this._keyframes.forEach((oe,Oe)=>{const Ke=st(oe,!0);Object.keys(Ke).forEach(gt=>{const It=Ke[gt];It==g.k1?a.add(gt):It==g.l3&&l.add(gt)}),v||(Ke.offset=Oe/this.duration),R.push(Ke)});const G=a.size?rt(a.values()):[],ie=l.size?rt(l.values()):[];if(v){const oe=R[0],Oe=he(oe);oe.offset=0,Oe.offset=1,R=[oe,Oe]}return un(this.element,R,G,ie,this.duration,this.startTime,this.easing,!1)}}class fr extends rr{constructor(a,l,v,R,G,ie,oe=!1){super(a,l,ie.delay),this.keyframes=v,this.preStyleProps=R,this.postStyleProps=G,this._stretchStartingKeyframe=oe,this.timings={duration:ie.duration,delay:ie.delay,easing:ie.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:l,duration:v,easing:R}=this.timings;if(this._stretchStartingKeyframe&&l){const G=[],ie=v+l,oe=l/ie,Oe=st(a[0],!1);Oe.offset=0,G.push(Oe);const Ke=st(a[0],!1);Ke.offset=pr(oe),G.push(Ke);const gt=a.length-1;for(let It=1;It<=gt;It++){let Xt=st(a[It],!1);Xt.offset=pr((l+Xt.offset*v)/ie),G.push(Xt)}v=ie,l=0,R="",a=G}return un(this.element,a,this.preStyleProps,this.postStyleProps,v,l,R,!0)}}function pr(d,a=3){const l=Math.pow(10,a-1);return Math.round(d*l)/l}class mr{}class gr extends mr{normalizePropertyName(a,l){return $t(a)}normalizeStyleValue(a,l,v,R){let G="";const ie=v.toString().trim();if(or[l]&&0!==v&&"0"!==v)if("number"==typeof v)G="px";else{const oe=v.match(/^[+-]?[\d\.]+([a-z]*)$/);oe&&0==oe[1].length&&R.push(function de(d,a){return new c.vHH(3005,Y)}())}return ie+G}}const or=(()=>function xr(d){const a={};return d.forEach(l=>a[l]=!0),a}("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 sr(d,a,l,v,R,G,ie,oe,Oe,Ke,gt,It,Xt){return{type:0,element:d,triggerName:a,isRemovalTransition:R,fromState:l,fromStyles:G,toState:v,toStyles:ie,timelines:oe,queriedElements:Oe,preStyleProps:Ke,postStyleProps:gt,totalTime:It,errors:Xt}}const _r={};class ar{constructor(a,l,v){this._triggerName=a,this.ast=l,this._stateStyles=v}match(a,l,v,R){return function Zr(d,a,l,v,R){return d.some(G=>G(a,l,v,R))}(this.ast.matchers,a,l,v,R)}buildStyles(a,l,v){const R=this._stateStyles["*"],G=this._stateStyles[a],ie=R?R.buildStyles(l,v):{};return G?G.buildStyles(l,v):ie}build(a,l,v,R,G,ie,oe,Oe,Ke,gt){const It=[],Xt=this.ast.options&&this.ast.options.params||_r,Vt=this.buildStyles(v,oe&&oe.params||_r,It),rn=Oe&&Oe.params||_r,Mn=this.buildStyles(R,rn,It),$n=new Set,li=new Map,Ei=new Map,ii="void"===R,Sr={params:Object.assign(Object.assign({},Xt),rn)},Ui=gt?[]:On(a,l,this.ast.animation,G,ie,Vt,Mn,Sr,Ke,It);let Ai=0;if(Ui.forEach(Un=>{Ai=Math.max(Un.duration+Un.delay,Ai)}),It.length)return sr(l,this._triggerName,v,R,ii,Vt,Mn,[],[],li,Ei,Ai,It);Ui.forEach(Un=>{const _i=Un.element,Hn=Ge(li,_i,{});Un.preStyleProps.forEach(ri=>Hn[ri]=!0);const eo=Ge(Ei,_i,{});Un.postStyleProps.forEach(ri=>eo[ri]=!0),_i!==l&&$n.add(_i)});const Cr=rt($n.values());return sr(l,this._triggerName,v,R,ii,Vt,Mn,Ui,Cr,li,Ei,Ai)}}class vr{constructor(a,l,v){this.styles=a,this.defaultParams=l,this.normalizer=v}buildStyles(a,l){const v={},R=he(this.defaultParams);return Object.keys(a).forEach(G=>{const ie=a[G];null!=ie&&(R[G]=ie)}),this.styles.styles.forEach(G=>{if("string"!=typeof G){const ie=G;Object.keys(ie).forEach(oe=>{let Oe=ie[oe];Oe.length>1&&(Oe=Ie(Oe,R,l));const Ke=this.normalizer.normalizePropertyName(oe,l);Oe=this.normalizer.normalizeStyleValue(oe,Ke,Oe,l),v[Ke]=Oe})}}),v}}class qi{constructor(a,l,v){this.name=a,this.ast=l,this._normalizer=v,this.transitionFactories=[],this.states={},l.states.forEach(R=>{this.states[R.name]=new vr(R.style,R.options&&R.options.params||{},v)}),yr(this.states,"true","1"),yr(this.states,"false","0"),l.transitions.forEach(R=>{this.transitionFactories.push(new ar(a,R,this.states))}),this.fallbackTransition=function mi(d,a,l){return new ar(d,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ie,oe)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,l,v,R){return this.transitionFactories.find(ie=>ie.match(a,l,v,R))||null}matchStyles(a,l,v){return this.fallbackTransition.buildStyles(a,l,v)}}function yr(d,a,l){d.hasOwnProperty(a)?d.hasOwnProperty(l)||(d[l]=d[a]):d.hasOwnProperty(l)&&(d[a]=d[l])}const Di=new ir;class qr{constructor(a,l,v){this.bodyNode=a,this._driver=l,this._normalizer=v,this._animations={},this._playersById={},this.players=[]}register(a,l){const v=[],G=Yn(this._driver,l,v,[]);if(v.length)throw function tt(d){return new c.vHH(3503,Y)}();this._animations[a]=G}_buildPlayer(a,l,v){const R=a.element,G=je(0,this._normalizer,0,a.keyframes,l,v);return this._driver.animate(R,G,a.duration,a.delay,a.easing,[],!0)}create(a,l,v={}){const R=[],G=this._animations[a];let ie;const oe=new Map;if(G?(ie=On(this._driver,l,G,nn,Yt,{},{},v,Di,R),ie.forEach(gt=>{const It=Ge(oe,gt.element,{});gt.postStyleProps.forEach(Xt=>It[Xt]=null)})):(R.push(function Fe(){return new c.vHH(3300,Y)}()),ie=[]),R.length)throw function Ct(d){return new c.vHH(3504,Y)}();oe.forEach((gt,It)=>{Object.keys(gt).forEach(Xt=>{gt[Xt]=this._driver.computeStyle(It,Xt,g.l3)})});const Ke=Xe(ie.map(gt=>{const It=oe.get(gt.element);return this._buildPlayer(gt,{},It)}));return this._playersById[a]=Ke,Ke.onDestroy(()=>this.destroy(a)),this.players.push(Ke),Ke}destroy(a){const l=this._getPlayer(a);l.destroy(),delete this._playersById[a];const v=this.players.indexOf(l);v>=0&&this.players.splice(v,1)}_getPlayer(a){const l=this._playersById[a];if(!l)throw function mt(d){return new c.vHH(3301,Y)}();return l}listen(a,l,v,R){const G=He(l,"","","");return J(this._getPlayer(a),v,G,R),()=>{}}command(a,l,v,R){if("register"==v)return void this.register(a,R[0]);if("create"==v)return void this.create(a,l,R[0]||{});const G=this._getPlayer(a);switch(v){case"play":G.play();break;case"pause":G.pause();break;case"reset":G.reset();break;case"restart":G.restart();break;case"finish":G.finish();break;case"init":G.init();break;case"setPosition":G.setPosition(parseFloat(R[0]));break;case"destroy":this.destroy(a)}}}const Mi="ng-animate-queued",zi="ng-animate-disabled",Ii=[],lr={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Br={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ti="__ng_removed";class cr{constructor(a,l=""){this.namespaceId=l;const v=a&&a.hasOwnProperty("value");if(this.value=function A(d){return null!=d?d:null}(v?a.value:a),v){const G=he(a);delete G.value,this.options=G}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const l=a.params;if(l){const v=this.options.params;Object.keys(l).forEach(R=>{null==v[R]&&(v[R]=l[R])})}}}const Tn="void",Ji=new cr(Tn);class Xi{constructor(a,l,v){this.id=a,this.hostElement=l,this._engine=v,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,nt(l,this._hostClassName)}listen(a,l,v,R){if(!this._triggers.hasOwnProperty(l))throw function Jt(d,a){return new c.vHH(3302,Y)}();if(null==v||0==v.length)throw function yt(d){return new c.vHH(3303,Y)}();if(!function T(d){return"start"==d||"done"==d}(v))throw function Rt(d,a){return new c.vHH(3400,Y)}();const G=Ge(this._elementListeners,a,[]),ie={name:l,phase:v,callback:R};G.push(ie);const oe=Ge(this._engine.statesByElement,a,{});return oe.hasOwnProperty(l)||(nt(a,dn),nt(a,dn+"-"+l),oe[l]=Ji),()=>{this._engine.afterFlush(()=>{const Oe=G.indexOf(ie);Oe>=0&&G.splice(Oe,1),this._triggers[l]||delete oe[l]})}}register(a,l){return!this._triggers[a]&&(this._triggers[a]=l,!0)}_getTrigger(a){const l=this._triggers[a];if(!l)throw function Wt(d){return new c.vHH(3401,Y)}();return l}trigger(a,l,v,R=!0){const G=this._getTrigger(l),ie=new ur(this.id,l,a);let oe=this._engine.statesByElement.get(a);oe||(nt(a,dn),nt(a,dn+"-"+l),this._engine.statesByElement.set(a,oe={}));let Oe=oe[l];const Ke=new cr(v,this.id);if(!(v&&v.hasOwnProperty("value"))&&Oe&&Ke.absorbOptions(Oe.options),oe[l]=Ke,Oe||(Oe=Ji),Ke.value!==Tn&&Oe.value===Ke.value){if(!function zt(d,a){const l=Object.keys(d),v=Object.keys(a);if(l.length!=v.length)return!1;for(let R=0;R{Dt(a,Mn),Kt(a,$n)})}return}const Xt=Ge(this._engine.playersByElement,a,[]);Xt.forEach(rn=>{rn.namespaceId==this.id&&rn.triggerName==l&&rn.queued&&rn.destroy()});let ln=G.matchTransition(Oe.value,Ke.value,a,Ke.params),Vt=!1;if(!ln){if(!R)return;ln=G.fallbackTransition,Vt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:l,transition:ln,fromState:Oe,toState:Ke,player:ie,isFallbackTransition:Vt}),Vt||(nt(a,Mi),ie.onStart(()=>{ht(a,Mi)})),ie.onDone(()=>{let rn=this.players.indexOf(ie);rn>=0&&this.players.splice(rn,1);const Mn=this._engine.playersByElement.get(a);if(Mn){let $n=Mn.indexOf(ie);$n>=0&&Mn.splice($n,1)}}),this.players.push(ie),Xt.push(ie),ie}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((l,v)=>{delete l[a]}),this._elementListeners.forEach((l,v)=>{this._elementListeners.set(v,l.filter(R=>R.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const l=this._engine.playersByElement.get(a);l&&(l.forEach(v=>v.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,l){const v=this._engine.driver.query(a,dt,!0);v.forEach(R=>{if(R[ti])return;const G=this._engine.fetchNamespacesByElement(R);G.size?G.forEach(ie=>ie.triggerLeaveAnimation(R,l,!1,!0)):this.clearElementCache(R)}),this._engine.afterFlushAnimationsDone(()=>v.forEach(R=>this.clearElementCache(R)))}triggerLeaveAnimation(a,l,v,R){const G=this._engine.statesByElement.get(a),ie=new Map;if(G){const oe=[];if(Object.keys(G).forEach(Oe=>{if(ie.set(Oe,G[Oe].value),this._triggers[Oe]){const Ke=this.trigger(a,Oe,Tn,R);Ke&&oe.push(Ke)}}),oe.length)return this._engine.markElementAsRemoved(this.id,a,!0,l,ie),v&&Xe(oe).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const l=this._elementListeners.get(a),v=this._engine.statesByElement.get(a);if(l&&v){const R=new Set;l.forEach(G=>{const ie=G.name;if(R.has(ie))return;R.add(ie);const Oe=this._triggers[ie].fallbackTransition,Ke=v[ie]||Ji,gt=new cr(Tn),It=new ur(this.id,ie,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:ie,transition:Oe,fromState:Ke,toState:gt,player:It,isFallbackTransition:!0})})}}removeNode(a,l){const v=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,l),this.triggerLeaveAnimation(a,l,!0))return;let R=!1;if(v.totalAnimations){const G=v.players.length?v.playersByQueriedElement.get(a):[];if(G&&G.length)R=!0;else{let ie=a;for(;ie=ie.parentNode;)if(v.statesByElement.get(ie)){R=!0;break}}}if(this.prepareLeaveAnimationListeners(a),R)v.markElementAsRemoved(this.id,a,!1,l);else{const G=a[ti];(!G||G===lr)&&(v.afterFlush(()=>this.clearElementCache(a)),v.destroyInnerAnimations(a),v._onRemovalComplete(a,l))}}insertNode(a,l){nt(a,this._hostClassName)}drainQueuedTransitions(a){const l=[];return this._queue.forEach(v=>{const R=v.player;if(R.destroyed)return;const G=v.element,ie=this._elementListeners.get(G);ie&&ie.forEach(oe=>{if(oe.name==v.triggerName){const Oe=He(G,v.triggerName,v.fromState.value,v.toState.value);Oe._data=a,J(v.player,oe.phase,Oe,oe.callback)}}),R.markedForDestroy?this._engine.afterFlush(()=>{R.destroy()}):l.push(v)}),this._queue=[],l.sort((v,R)=>{const G=v.transition.ast.depCount,ie=R.transition.ast.depCount;return 0==G||0==ie?G-ie:this._engine.driver.containsElement(v.element,R.element)?1:-1})}destroy(a){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let l=!1;return this._elementListeners.has(a)&&(l=!0),l=!!this._queue.find(v=>v.element===a)||l,l}}class ni{constructor(a,l,v){this.bodyNode=a,this.driver=l,this._normalizer=v,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=(R,G)=>{}}_onRemovalComplete(a,l){this.onRemovalComplete(a,l)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(l=>{l.players.forEach(v=>{v.queued&&a.push(v)})}),a}createNamespace(a,l){const v=new Xi(a,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(v,l):(this.newHostElements.set(l,v),this.collectEnterElement(l)),this._namespaceLookup[a]=v}_balanceNamespaceList(a,l){const v=this._namespaceList,R=this.namespacesByHostElement,G=v.length-1;if(G>=0){let ie=!1;if(void 0!==this.driver.getParentElement){let oe=this.driver.getParentElement(l);for(;oe;){const Oe=R.get(oe);if(Oe){const Ke=v.indexOf(Oe);v.splice(Ke+1,0,a),ie=!0;break}oe=this.driver.getParentElement(oe)}}else for(let oe=G;oe>=0;oe--)if(this.driver.containsElement(v[oe].hostElement,l)){v.splice(oe+1,0,a),ie=!0;break}ie||v.unshift(a)}else v.push(a);return R.set(l,a),a}register(a,l){let v=this._namespaceLookup[a];return v||(v=this.createNamespace(a,l)),v}registerTrigger(a,l,v){let R=this._namespaceLookup[a];R&&R.register(l,v)&&this.totalAnimations++}destroy(a,l){if(!a)return;const v=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(v.hostElement),delete this._namespaceLookup[a];const R=this._namespaceList.indexOf(v);R>=0&&this._namespaceList.splice(R,1)}),this.afterFlushAnimationsDone(()=>v.destroy(l))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const l=new Set,v=this.statesByElement.get(a);if(v){const R=Object.keys(v);for(let G=0;G=0&&this.collectedLeaveElements.splice(ie,1)}if(a){const ie=this._fetchNamespace(a);ie&&ie.insertNode(l,v)}R&&this.collectEnterElement(l)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,l){l?this.disabledNodes.has(a)||(this.disabledNodes.add(a),nt(a,zi)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),ht(a,zi))}removeNode(a,l,v,R){if(N(l)){const G=a?this._fetchNamespace(a):null;if(G?G.removeNode(l,R):this.markElementAsRemoved(a,l,!1,R),v){const ie=this.namespacesByHostElement.get(l);ie&&ie.id!==a&&ie.removeNode(l,R)}}else this._onRemovalComplete(l,R)}markElementAsRemoved(a,l,v,R,G){this.collectedLeaveElements.push(l),l[ti]={namespaceId:a,setForRemoval:R,hasAnimation:v,removedBeforeQueried:!1,previousTriggersValues:G}}listen(a,l,v,R,G){return N(l)?this._fetchNamespace(a).listen(l,v,R,G):()=>{}}_buildInstruction(a,l,v,R,G){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,v,R,a.fromState.options,a.toState.options,l,G)}destroyInnerAnimations(a){let l=this.driver.query(a,dt,!0);l.forEach(v=>this.destroyActiveAnimationsForElement(v)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(a,Le,!0),l.forEach(v=>this.finishActiveQueriedAnimationOnElement(v)))}destroyActiveAnimationsForElement(a){const l=this.playersByElement.get(a);l&&l.forEach(v=>{v.queued?v.markedForDestroy=!0:v.destroy()})}finishActiveQueriedAnimationOnElement(a){const l=this.playersByQueriedElement.get(a);l&&l.forEach(v=>v.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Xe(this.players).onDone(()=>a());a()})}processLeaveNode(a){var l;const v=a[ti];if(v&&v.setForRemoval){if(a[ti]=lr,v.namespaceId){this.destroyInnerAnimations(a);const R=this._fetchNamespace(v.namespaceId);R&&R.clearElementCache(a)}this._onRemovalComplete(a,v.setForRemoval)}(null===(l=a.classList)||void 0===l?void 0:l.contains(zi))&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(R=>{this.markElementAsDisabled(R,!1)})}flush(a=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((v,R)=>this._balanceNamespaceList(v,R)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let v=0;vv()),this._flushFns=[],this._whenQuietFns.length){const v=this._whenQuietFns;this._whenQuietFns=[],l.length?Xe(l).onDone(()=>{v.forEach(R=>R())}):v.forEach(R=>R())}}reportError(a){throw function Pt(d){return new c.vHH(3402,Y)}()}_flushAnimations(a,l){const v=new ir,R=[],G=new Map,ie=[],oe=new Map,Oe=new Map,Ke=new Map,gt=new Set;this.disabledNodes.forEach(Tt=>{gt.add(Tt);const Ft=this.driver.query(Tt,".ng-animate-queued",!0);for(let Lt=0;Lt{const Lt=nn+rn++;Vt.set(Ft,Lt),Tt.forEach(fn=>nt(fn,Lt))});const Mn=[],$n=new Set,li=new Set;for(let Tt=0;Tt$n.add(fn)):li.add(Ft))}const Ei=new Map,ii=$e(Xt,Array.from($n));ii.forEach((Tt,Ft)=>{const Lt=Yt+rn++;Ei.set(Ft,Lt),Tt.forEach(fn=>nt(fn,Lt))}),a.push(()=>{ln.forEach((Tt,Ft)=>{const Lt=Vt.get(Ft);Tt.forEach(fn=>ht(fn,Lt))}),ii.forEach((Tt,Ft)=>{const Lt=Ei.get(Ft);Tt.forEach(fn=>ht(fn,Lt))}),Mn.forEach(Tt=>{this.processLeaveNode(Tt)})});const Sr=[],Ui=[];for(let Tt=this._namespaceList.length-1;Tt>=0;Tt--)this._namespaceList[Tt].drainQueuedTransitions(l).forEach(Lt=>{const fn=Lt.player,qn=Lt.element;if(Sr.push(fn),this.collectedEnterElements.length){const Qn=qn[ti];if(Qn&&Qn.setForMove){if(Qn.previousTriggersValues&&Qn.previousTriggersValues.has(Lt.triggerName)){const $i=Qn.previousTriggersValues.get(Lt.triggerName),dr=this.statesByElement.get(Lt.element);dr&&dr[Lt.triggerName]&&(dr[Lt.triggerName].value=$i)}return void fn.destroy()}}const Hi=!It||!this.driver.containsElement(It,qn),Li=Ei.get(qn),Er=Vt.get(qn),wn=this._buildInstruction(Lt,v,Er,Li,Hi);if(wn.errors&&wn.errors.length)return void Ui.push(wn);if(Hi)return fn.onStart(()=>Dt(qn,wn.fromStyles)),fn.onDestroy(()=>Kt(qn,wn.toStyles)),void R.push(fn);if(Lt.isFallbackTransition)return fn.onStart(()=>Dt(qn,wn.fromStyles)),fn.onDestroy(()=>Kt(qn,wn.toStyles)),void R.push(fn);const Or=[];wn.timelines.forEach(Qn=>{Qn.stretchStartingKeyframe=!0,this.disabledNodes.has(Qn.element)||Or.push(Qn)}),wn.timelines=Or,v.append(qn,wn.timelines),ie.push({instruction:wn,player:fn,element:qn}),wn.queriedElements.forEach(Qn=>Ge(oe,Qn,[]).push(fn)),wn.preStyleProps.forEach((Qn,$i)=>{const dr=Object.keys(Qn);if(dr.length){let Vr=Oe.get($i);Vr||Oe.set($i,Vr=new Set),dr.forEach(wo=>Vr.add(wo))}}),wn.postStyleProps.forEach((Qn,$i)=>{const dr=Object.keys(Qn);let Vr=Ke.get($i);Vr||Ke.set($i,Vr=new Set),dr.forEach(wo=>Vr.add(wo))})});if(Ui.length){const Tt=[];Ui.forEach(Ft=>{Tt.push(function Ut(d,a){return new c.vHH(3505,Y)}())}),Sr.forEach(Ft=>Ft.destroy()),this.reportError(Tt)}const Ai=new Map,Cr=new Map;ie.forEach(Tt=>{const Ft=Tt.element;v.has(Ft)&&(Cr.set(Ft,Ft),this._beforeAnimationBuild(Tt.player.namespaceId,Tt.instruction,Ai))}),R.forEach(Tt=>{const Ft=Tt.element;this._getPreviousPlayers(Ft,!1,Tt.namespaceId,Tt.triggerName,null).forEach(fn=>{Ge(Ai,Ft,[]).push(fn),fn.destroy()})});const Un=Mn.filter(Tt=>Bn(Tt,Oe,Ke)),_i=new Map;ae(_i,this.driver,li,Ke,g.l3).forEach(Tt=>{Bn(Tt,Oe,Ke)&&Un.push(Tt)});const eo=new Map;ln.forEach((Tt,Ft)=>{ae(eo,this.driver,new Set(Tt),Oe,g.k1)}),Un.forEach(Tt=>{const Ft=_i.get(Tt),Lt=eo.get(Tt);_i.set(Tt,Object.assign(Object.assign({},Ft),Lt))});const ri=[],Mo=[],ho={};ie.forEach(Tt=>{const{element:Ft,player:Lt,instruction:fn}=Tt;if(v.has(Ft)){if(gt.has(Ft))return Lt.onDestroy(()=>Kt(Ft,fn.toStyles)),Lt.disabled=!0,Lt.overrideTotalTime(fn.totalTime),void R.push(Lt);let qn=ho;if(Cr.size>1){let Li=Ft;const Er=[];for(;Li=Li.parentNode;){const wn=Cr.get(Li);if(wn){qn=wn;break}Er.push(Li)}Er.forEach(wn=>Cr.set(wn,qn))}const Hi=this._buildAnimation(Lt.namespaceId,fn,Ai,G,eo,_i);if(Lt.setRealPlayer(Hi),qn===ho)ri.push(Lt);else{const Li=this.playersByElement.get(qn);Li&&Li.length&&(Lt.parentPlayer=Xe(Li)),R.push(Lt)}}else Dt(Ft,fn.fromStyles),Lt.onDestroy(()=>Kt(Ft,fn.toStyles)),Mo.push(Lt),gt.has(Ft)&&R.push(Lt)}),Mo.forEach(Tt=>{const Ft=G.get(Tt.element);if(Ft&&Ft.length){const Lt=Xe(Ft);Tt.setRealPlayer(Lt)}}),R.forEach(Tt=>{Tt.parentPlayer?Tt.syncPlayerEvents(Tt.parentPlayer):Tt.destroy()});for(let Tt=0;Tt!Hi.destroyed);qn.length?En(this,Ft,qn):this.processLeaveNode(Ft)}return Mn.length=0,ri.forEach(Tt=>{this.players.push(Tt),Tt.onDone(()=>{Tt.destroy();const Ft=this.players.indexOf(Tt);this.players.splice(Ft,1)}),Tt.play()}),ri}elementContainsData(a,l){let v=!1;const R=l[ti];return R&&R.setForRemoval&&(v=!0),this.playersByElement.has(l)&&(v=!0),this.playersByQueriedElement.has(l)&&(v=!0),this.statesByElement.has(l)&&(v=!0),this._fetchNamespace(a).elementContainsData(l)||v}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,l,v,R,G){let ie=[];if(l){const oe=this.playersByQueriedElement.get(a);oe&&(ie=oe)}else{const oe=this.playersByElement.get(a);if(oe){const Oe=!G||G==Tn;oe.forEach(Ke=>{Ke.queued||!Oe&&Ke.triggerName!=R||ie.push(Ke)})}}return(v||R)&&(ie=ie.filter(oe=>!(v&&v!=oe.namespaceId||R&&R!=oe.triggerName))),ie}_beforeAnimationBuild(a,l,v){const G=l.element,ie=l.isRemovalTransition?void 0:a,oe=l.isRemovalTransition?void 0:l.triggerName;for(const Oe of l.timelines){const Ke=Oe.element,gt=Ke!==G,It=Ge(v,Ke,[]);this._getPreviousPlayers(Ke,gt,ie,oe,l.toState).forEach(ln=>{const Vt=ln.getRealPlayer();Vt.beforeDestroy&&Vt.beforeDestroy(),ln.destroy(),It.push(ln)})}Dt(G,l.fromStyles)}_buildAnimation(a,l,v,R,G,ie){const oe=l.triggerName,Oe=l.element,Ke=[],gt=new Set,It=new Set,Xt=l.timelines.map(Vt=>{const rn=Vt.element;gt.add(rn);const Mn=rn[ti];if(Mn&&Mn.removedBeforeQueried)return new g.ZN(Vt.duration,Vt.delay);const $n=rn!==Oe,li=function _n(d){const a=[];return hn(d,a),a}((v.get(rn)||Ii).map(Ai=>Ai.getRealPlayer())).filter(Ai=>!!Ai.element&&Ai.element===rn),Ei=G.get(rn),ii=ie.get(rn),Sr=je(0,this._normalizer,0,Vt.keyframes,Ei,ii),Ui=this._buildPlayer(Vt,Sr,li);if(Vt.subTimeline&&R&&It.add(rn),$n){const Ai=new ur(a,oe,rn);Ai.setRealPlayer(Ui),Ke.push(Ai)}return Ui});Ke.forEach(Vt=>{Ge(this.playersByQueriedElement,Vt.element,[]).push(Vt),Vt.onDone(()=>function Pi(d,a,l){let v;if(d instanceof Map){if(v=d.get(a),v){if(v.length){const R=v.indexOf(l);v.splice(R,1)}0==v.length&&d.delete(a)}}else if(v=d[a],v){if(v.length){const R=v.indexOf(l);v.splice(R,1)}0==v.length&&delete d[a]}return v}(this.playersByQueriedElement,Vt.element,Vt))}),gt.forEach(Vt=>nt(Vt,vt));const ln=Xe(Xt);return ln.onDestroy(()=>{gt.forEach(Vt=>ht(Vt,vt)),Kt(Oe,l.toStyles)}),It.forEach(Vt=>{Ge(R,Vt,[]).push(ln)}),ln}_buildPlayer(a,l,v){return l.length>0?this.driver.animate(a.element,l,a.duration,a.delay,a.easing,v):new g.ZN(a.duration,a.delay)}}class ur{constructor(a,l,v){this.namespaceId=a,this.triggerName=l,this.element=v,this._player=new g.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(l=>{this._queuedCallbacks[l].forEach(v=>J(a,l,void 0,v))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const l=this._player;l.triggerCallback&&a.onStart(()=>l.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,l){Ge(this._queuedCallbacks,a,[]).push(l)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const l=this._player;l.triggerCallback&&l.triggerCallback(a)}}function N(d){return d&&1===d.nodeType}function H(d,a){const l=d.style.display;return d.style.display=null!=a?a:"none",l}function ae(d,a,l,v,R){const G=[];l.forEach(Oe=>G.push(H(Oe)));const ie=[];v.forEach((Oe,Ke)=>{const gt={};Oe.forEach(It=>{const Xt=gt[It]=a.computeStyle(Ke,It,R);(!Xt||0==Xt.length)&&(Ke[ti]=Br,ie.push(Ke))}),d.set(Ke,gt)});let oe=0;return l.forEach(Oe=>H(Oe,G[oe++])),ie}function $e(d,a){const l=new Map;if(d.forEach(oe=>l.set(oe,[])),0==a.length)return l;const R=new Set(a),G=new Map;function ie(oe){if(!oe)return 1;let Oe=G.get(oe);if(Oe)return Oe;const Ke=oe.parentNode;return Oe=l.has(Ke)?Ke:R.has(Ke)?1:ie(Ke),G.set(oe,Oe),Oe}return a.forEach(oe=>{const Oe=ie(oe);1!==Oe&&l.get(Oe).push(oe)}),l}function nt(d,a){var l;null===(l=d.classList)||void 0===l||l.add(a)}function ht(d,a){var l;null===(l=d.classList)||void 0===l||l.remove(a)}function En(d,a,l){Xe(l).onDone(()=>d.processLeaveNode(a))}function hn(d,a){for(let l=0;lR.add(G)):a.set(d,v),l.delete(d),!0}class vn{constructor(a,l,v){this.bodyNode=a,this._driver=l,this._normalizer=v,this._triggerCache={},this.onRemovalComplete=(R,G)=>{},this._transitionEngine=new ni(a,l,v),this._timelineEngine=new qr(a,l,v),this._transitionEngine.onRemovalComplete=(R,G)=>this.onRemovalComplete(R,G)}registerTrigger(a,l,v,R,G){const ie=a+"-"+R;let oe=this._triggerCache[ie];if(!oe){const Oe=[],gt=Yn(this._driver,G,Oe,[]);if(Oe.length)throw function xe(d,a){return new c.vHH(3404,Y)}();oe=function Lr(d,a,l){return new qi(d,a,l)}(R,gt,this._normalizer),this._triggerCache[ie]=oe}this._transitionEngine.registerTrigger(l,R,oe)}register(a,l){this._transitionEngine.register(a,l)}destroy(a,l){this._transitionEngine.destroy(a,l)}onInsert(a,l,v,R){this._transitionEngine.insertNode(a,l,v,R)}onRemove(a,l,v,R){this._transitionEngine.removeNode(a,l,R||!1,v)}disableAnimations(a,l){this._transitionEngine.markElementAsDisabled(a,l)}process(a,l,v,R){if("@"==v.charAt(0)){const[G,ie]=lt(v);this._timelineEngine.command(G,l,ie,R)}else this._transitionEngine.trigger(a,l,v,R)}listen(a,l,v,R,G){if("@"==v.charAt(0)){const[ie,oe]=lt(v);return this._timelineEngine.listen(ie,l,oe,G)}return this._transitionEngine.listen(a,l,v,R,G)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Vn=(()=>{class d{constructor(l,v,R){this._element=l,this._startStyles=v,this._endStyles=R,this._state=0;let G=d.initialStylesByElement.get(l);G||d.initialStylesByElement.set(l,G={}),this._initialStyles=G}start(){this._state<1&&(this._startStyles&&Kt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Kt(this._element,this._initialStyles),this._endStyles&&(Kt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(d.initialStylesByElement.delete(this._element),this._startStyles&&(Dt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Dt(this._element,this._endStyles),this._endStyles=null),Kt(this._element,this._initialStyles),this._state=3)}}return d.initialStylesByElement=new WeakMap,d})();function wi(d){let a=null;const l=Object.keys(d);for(let v=0;va()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,l,v){return a.animate(l,v)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const l=this._finalKeyframe;Object.keys(l).forEach(v=>{"offset"!=v&&(a[v]=this._finished?l[v]:jn(this.element,v))})}this.currentSnapshot=a}triggerCallback(a){const l="start"==a?this._onStartFns:this._onDoneFns;l.forEach(v=>v()),l.length=0}}class ki{validateStyleProperty(a){return D(a)}matchesElement(a,l){return!1}containsElement(a,l){return L(a,l)}getParentElement(a){return Nt(a)}query(a,l,v){return re(a,l,v)}computeStyle(a,l,v){return window.getComputedStyle(a)[l]}animate(a,l,v,R,G,ie=[]){const Oe={duration:v,delay:R,fill:0==R?"both":"forwards"};G&&(Oe.easing=G);const Ke={},gt=ie.filter(Xt=>Xt instanceof Ri);(function en(d,a){return 0===d||0===a})(v,R)&>.forEach(Xt=>{let ln=Xt.currentSnapshot;Object.keys(ln).forEach(Vt=>Ke[Vt]=ln[Vt])}),l=function kn(d,a,l){const v=Object.keys(l);if(v.length&&a.length){let G=a[0],ie=[];if(v.forEach(oe=>{G.hasOwnProperty(oe)||ie.push(oe),G[oe]=l[oe]}),ie.length)for(var R=1;Rst(Xt,!1)),Ke);const It=function Sn(d,a){let l=null,v=null;return Array.isArray(a)&&a.length?(l=wi(a[0]),a.length>1&&(v=wi(a[a.length-1]))):a&&(l=wi(a)),l||v?new Vn(d,l,v):null}(a,l);return new Ri(a,l,Oe,It)}}var x=C(9808);let M=(()=>{class d extends g._j{constructor(l,v){super(),this._nextAnimationId=0,this._renderer=l.createRenderer(v.body,{id:"0",encapsulation:c.ifc.None,styles:[],data:{animation:[]}})}build(l){const v=this._nextAnimationId.toString();this._nextAnimationId++;const R=Array.isArray(l)?(0,g.vP)(l):l;return We(this._renderer,null,v,"register",[R]),new y(v,this._renderer)}}return d.\u0275fac=function(l){return new(l||d)(c.LFG(c.FYo),c.LFG(x.K0))},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})();class y extends g.LC{constructor(a,l){super(),this._id=a,this._renderer=l}create(a,l){return new U(this._id,a,l||{},this._renderer)}}class U{constructor(a,l,v,R){this.id=a,this.element=l,this._renderer=R,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",v)}_listen(a,l){return this._renderer.listen(this.element,`@@${this.id}:${a}`,l)}_command(a,...l){return We(this._renderer,this.element,this.id,a,l)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,l;return null!==(l=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==l?l:0}}function We(d,a,l,v,R){return d.setProperty(a,`@@${l}:${v}`,R)}const Dn="@.disabled";let gi=(()=>{class d{constructor(l,v,R){this.delegate=l,this.engine=v,this._zone=R,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),v.onRemovalComplete=(G,ie)=>{const oe=null==ie?void 0:ie.parentNode(G);oe&&ie.removeChild(oe,G)}}createRenderer(l,v){const G=this.delegate.createRenderer(l,v);if(!(l&&v&&v.data&&v.data.animation)){let gt=this._rendererCache.get(G);return gt||(gt=new Gi("",G,this.engine),this._rendererCache.set(G,gt)),gt}const ie=v.id,oe=v.id+"-"+this._currentId;this._currentId++,this.engine.register(oe,l);const Oe=gt=>{Array.isArray(gt)?gt.forEach(Oe):this.engine.registerTrigger(ie,oe,l,gt.name,gt)};return v.data.animation.forEach(Oe),new Fi(this,oe,G,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(l,v,R){l>=0&&lv(R)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(G=>{const[ie,oe]=G;ie(oe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([v,R]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return d.\u0275fac=function(l){return new(l||d)(c.LFG(c.FYo),c.LFG(vn),c.LFG(c.R0b))},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})();class Gi{constructor(a,l,v){this.namespaceId=a,this.delegate=l,this.engine=v,this.destroyNode=this.delegate.destroyNode?R=>l.destroyNode(R):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,l){return this.delegate.createElement(a,l)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,l){this.delegate.appendChild(a,l),this.engine.onInsert(this.namespaceId,l,a,!1)}insertBefore(a,l,v,R=!0){this.delegate.insertBefore(a,l,v),this.engine.onInsert(this.namespaceId,l,a,R)}removeChild(a,l,v){this.engine.onRemove(this.namespaceId,l,this.delegate,v)}selectRootElement(a,l){return this.delegate.selectRootElement(a,l)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,l,v,R){this.delegate.setAttribute(a,l,v,R)}removeAttribute(a,l,v){this.delegate.removeAttribute(a,l,v)}addClass(a,l){this.delegate.addClass(a,l)}removeClass(a,l){this.delegate.removeClass(a,l)}setStyle(a,l,v,R){this.delegate.setStyle(a,l,v,R)}removeStyle(a,l,v){this.delegate.removeStyle(a,l,v)}setProperty(a,l,v){"@"==l.charAt(0)&&l==Dn?this.disableAnimations(a,!!v):this.delegate.setProperty(a,l,v)}setValue(a,l){this.delegate.setValue(a,l)}listen(a,l,v){return this.delegate.listen(a,l,v)}disableAnimations(a,l){this.engine.disableAnimations(a,l)}}class Fi extends Gi{constructor(a,l,v,R){super(l,v,R),this.factory=a,this.namespaceId=l}setProperty(a,l,v){"@"==l.charAt(0)?"."==l.charAt(1)&&l==Dn?this.disableAnimations(a,v=void 0===v||!!v):this.engine.process(this.namespaceId,a,l.substr(1),v):this.delegate.setProperty(a,l,v)}listen(a,l,v){if("@"==l.charAt(0)){const R=function ot(d){switch(d){case"body":return document.body;case"document":return document;case"window":return window;default:return d}}(a);let G=l.substr(1),ie="";return"@"!=G.charAt(0)&&([G,ie]=function sn(d){const a=d.indexOf(".");return[d.substring(0,a),d.substr(a+1)]}(G)),this.engine.listen(this.namespaceId,R,G,ie,oe=>{this.factory.scheduleListenerCallback(oe._data||-1,v,oe)})}return this.delegate.listen(a,l,v)}}let Jr=(()=>{class d extends vn{constructor(l,v,R){super(l.body,v,R)}ngOnDestroy(){this.flush()}}return d.\u0275fac=function(l){return new(l||d)(c.LFG(x.K0),c.LFG(ze),c.LFG(mr))},d.\u0275prov=c.Yz7({token:d,factory:d.\u0275fac}),d})();const br=new c.OlP("AnimationModuleType"),Vi=[{provide:g._j,useClass:M},{provide:mr,useFactory:function Zn(){return new gr}},{provide:vn,useClass:Jr},{provide:c.FYo,useFactory:function bo(d,a,l){return new gi(d,a,l)},deps:[o.se,vn,c.R0b]}],Xr=[{provide:ze,useFactory:()=>new ki},{provide:br,useValue:"BrowserAnimations"},...Vi],k=[{provide:ze,useClass:Ue},{provide:br,useValue:"NoopAnimations"},...Vi];let Ee=(()=>{class d{static withConfig(l){return{ngModule:d,providers:l.disableAnimations?k:Xr}}}return d.\u0275fac=function(l){return new(l||d)},d.\u0275mod=c.oAB({type:d}),d.\u0275inj=c.cJS({providers:Xr,imports:[o.b2]}),d})()},2313:(qe,ye,C)=>{C.d(ye,{b2:()=>St,H7:()=>Zt,q6:()=>Ge,se:()=>tt});var c=C(9808),o=C(4893);class g extends c.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Y extends g{static makeCurrent(){(0,c.HT)(new Y)}onAndCancel(_e,ne,Ie){return _e.addEventListener(ne,Ie,!1),()=>{_e.removeEventListener(ne,Ie,!1)}}dispatchEvent(_e,ne){_e.dispatchEvent(ne)}remove(_e){_e.parentNode&&_e.parentNode.removeChild(_e)}createElement(_e,ne){return(ne=ne||this.getDefaultDocument()).createElement(_e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(_e){return _e.nodeType===Node.ELEMENT_NODE}isShadowRoot(_e){return _e instanceof DocumentFragment}getGlobalEventTarget(_e,ne){return"window"===ne?window:"document"===ne?_e:"body"===ne?_e.body:null}getBaseHref(_e){const ne=function q(){return ce=ce||document.querySelector("base"),ce?ce.getAttribute("href"):null}();return null==ne?null:function Ce(Ve){De=De||document.createElement("a"),De.setAttribute("href",Ve);const _e=De.pathname;return"/"===_e.charAt(0)?_e:`/${_e}`}(ne)}resetBaseElement(){ce=null}getUserAgent(){return window.navigator.userAgent}getCookie(_e){return(0,c.Mx)(document.cookie,_e)}}let De,ce=null;const ue=new o.OlP("TRANSITION_ID"),se=[{provide:o.ip1,useFactory:function te(Ve,_e,ne){return()=>{ne.get(o.CZH).donePromise.then(()=>{const Ie=(0,c.q)(),rt=_e.querySelectorAll(`style[ng-transition="${Ve}"]`);for(let kt=0;kt{const kt=_e.findTestabilityInTree(Ie,rt);if(null==kt)throw new Error("Could not find testability for element.");return kt},o.dqk.getAllAngularTestabilities=()=>_e.getAllTestabilities(),o.dqk.getAllAngularRootElements=()=>_e.getAllRootElements(),o.dqk.frameworkStabilizers||(o.dqk.frameworkStabilizers=[]),o.dqk.frameworkStabilizers.push(Ie=>{const rt=o.dqk.getAllAngularTestabilities();let kt=rt.length,$t=!1;const bn=function(en){$t=$t||en,kt--,0==kt&&Ie($t)};rt.forEach(function(en){en.whenStable(bn)})})}findTestabilityInTree(_e,ne,Ie){if(null==ne)return null;const rt=_e.getTestability(ne);return null!=rt?rt:Ie?(0,c.q)().isShadowRoot(ne)?this.findTestabilityInTree(_e,ne.host,!0):this.findTestabilityInTree(_e,ne.parentElement,!0):null}}let X=(()=>{class Ve{build(){return new XMLHttpRequest}}return Ve.\u0275fac=function(ne){return new(ne||Ve)},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const le=new o.OlP("EventManagerPlugins");let ke=(()=>{class Ve{constructor(ne,Ie){this._zone=Ie,this._eventNameToPlugin=new Map,ne.forEach(rt=>rt.manager=this),this._plugins=ne.slice().reverse()}addEventListener(ne,Ie,rt){return this._findPluginFor(Ie).addEventListener(ne,Ie,rt)}addGlobalEventListener(ne,Ie,rt){return this._findPluginFor(Ie).addGlobalEventListener(ne,Ie,rt)}getZone(){return this._zone}_findPluginFor(ne){const Ie=this._eventNameToPlugin.get(ne);if(Ie)return Ie;const rt=this._plugins;for(let kt=0;kt{class Ve{constructor(){this._stylesSet=new Set}addStyles(ne){const Ie=new Set;ne.forEach(rt=>{this._stylesSet.has(rt)||(this._stylesSet.add(rt),Ie.add(rt))}),this.onStylesAdded(Ie)}onStylesAdded(ne){}getAllStyles(){return Array.from(this._stylesSet)}}return Ve.\u0275fac=function(ne){return new(ne||Ve)},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})(),et=(()=>{class Ve extends Z{constructor(ne){super(),this._doc=ne,this._hostNodes=new Map,this._hostNodes.set(ne.head,[])}_addStylesToHost(ne,Ie,rt){ne.forEach(kt=>{const $t=this._doc.createElement("style");$t.textContent=kt,rt.push(Ie.appendChild($t))})}addHost(ne){const Ie=[];this._addStylesToHost(this._stylesSet,ne,Ie),this._hostNodes.set(ne,Ie)}removeHost(ne){const Ie=this._hostNodes.get(ne);Ie&&Ie.forEach(Ye),this._hostNodes.delete(ne)}onStylesAdded(ne){this._hostNodes.forEach((Ie,rt)=>{this._addStylesToHost(ne,rt,Ie)})}ngOnDestroy(){this._hostNodes.forEach(ne=>ne.forEach(Ye))}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();function Ye(Ve){(0,c.q)().remove(Ve)}const Qe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},me=/%COMP%/g,Q="%COMP%",pe=`_nghost-${Q}`,Te=`_ngcontent-${Q}`;function Me(Ve,_e,ne){for(let Ie=0;Ie<_e.length;Ie++){let rt=_e[Ie];Array.isArray(rt)?Me(Ve,rt,ne):(rt=rt.replace(me,Ve),ne.push(rt))}return ne}function xe(Ve){return _e=>{if("__ngUnwrap__"===_e)return Ve;!1===Ve(_e)&&(_e.preventDefault(),_e.returnValue=!1)}}let tt=(()=>{class Ve{constructor(ne,Ie,rt){this.eventManager=ne,this.sharedStylesHost=Ie,this.appId=rt,this.rendererByCompId=new Map,this.defaultRenderer=new Fe(ne)}createRenderer(ne,Ie){if(!ne||!Ie)return this.defaultRenderer;switch(Ie.encapsulation){case o.ifc.Emulated:{let rt=this.rendererByCompId.get(Ie.id);return rt||(rt=new Jt(this.eventManager,this.sharedStylesHost,Ie,this.appId),this.rendererByCompId.set(Ie.id,rt)),rt.applyToHost(ne),rt}case 1:case o.ifc.ShadowDom:return new yt(this.eventManager,this.sharedStylesHost,ne,Ie);default:if(!this.rendererByCompId.has(Ie.id)){const rt=Me(Ie.id,Ie.styles,[]);this.sharedStylesHost.addStyles(rt),this.rendererByCompId.set(Ie.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(ke),o.LFG(et),o.LFG(o.AFp))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();class Fe{constructor(_e){this.eventManager=_e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(_e,ne){return ne?document.createElementNS(Qe[ne]||ne,_e):document.createElement(_e)}createComment(_e){return document.createComment(_e)}createText(_e){return document.createTextNode(_e)}appendChild(_e,ne){_e.appendChild(ne)}insertBefore(_e,ne,Ie){_e&&_e.insertBefore(ne,Ie)}removeChild(_e,ne){_e&&_e.removeChild(ne)}selectRootElement(_e,ne){let Ie="string"==typeof _e?document.querySelector(_e):_e;if(!Ie)throw new Error(`The selector "${_e}" did not match any elements`);return ne||(Ie.textContent=""),Ie}parentNode(_e){return _e.parentNode}nextSibling(_e){return _e.nextSibling}setAttribute(_e,ne,Ie,rt){if(rt){ne=rt+":"+ne;const kt=Qe[rt];kt?_e.setAttributeNS(kt,ne,Ie):_e.setAttribute(ne,Ie)}else _e.setAttribute(ne,Ie)}removeAttribute(_e,ne,Ie){if(Ie){const rt=Qe[Ie];rt?_e.removeAttributeNS(rt,ne):_e.removeAttribute(`${Ie}:${ne}`)}else _e.removeAttribute(ne)}addClass(_e,ne){_e.classList.add(ne)}removeClass(_e,ne){_e.classList.remove(ne)}setStyle(_e,ne,Ie,rt){rt&(o.JOm.DashCase|o.JOm.Important)?_e.style.setProperty(ne,Ie,rt&o.JOm.Important?"important":""):_e.style[ne]=Ie}removeStyle(_e,ne,Ie){Ie&o.JOm.DashCase?_e.style.removeProperty(ne):_e.style[ne]=""}setProperty(_e,ne,Ie){_e[ne]=Ie}setValue(_e,ne){_e.nodeValue=ne}listen(_e,ne,Ie){return"string"==typeof _e?this.eventManager.addGlobalEventListener(_e,ne,xe(Ie)):this.eventManager.addEventListener(_e,ne,xe(Ie))}}class Jt extends Fe{constructor(_e,ne,Ie,rt){super(_e),this.component=Ie;const kt=Me(rt+"-"+Ie.id,Ie.styles,[]);ne.addStyles(kt),this.contentAttr=function Ne(Ve){return Te.replace(me,Ve)}(rt+"-"+Ie.id),this.hostAttr=function ve(Ve){return pe.replace(me,Ve)}(rt+"-"+Ie.id)}applyToHost(_e){super.setAttribute(_e,this.hostAttr,"")}createElement(_e,ne){const Ie=super.createElement(_e,ne);return super.setAttribute(Ie,this.contentAttr,""),Ie}}class yt extends Fe{constructor(_e,ne,Ie,rt){super(_e),this.sharedStylesHost=ne,this.hostEl=Ie,this.shadowRoot=Ie.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const kt=Me(rt.id,rt.styles,[]);for(let $t=0;$t{class Ve extends Be{constructor(ne){super(ne)}supports(ne){return!0}addEventListener(ne,Ie,rt){return ne.addEventListener(Ie,rt,!1),()=>this.removeEventListener(ne,Ie,rt)}removeEventListener(ne,Ie,rt){return ne.removeEventListener(Ie,rt)}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const Wt=["alt","control","meta","shift"],mn={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ut={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},xt={alt:Ve=>Ve.altKey,control:Ve=>Ve.ctrlKey,meta:Ve=>Ve.metaKey,shift:Ve=>Ve.shiftKey};let on=(()=>{class Ve extends Be{constructor(ne){super(ne)}supports(ne){return null!=Ve.parseEventName(ne)}addEventListener(ne,Ie,rt){const kt=Ve.parseEventName(Ie),$t=Ve.eventCallback(kt.fullKey,rt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.q)().onAndCancel(ne,kt.domEventName,$t))}static parseEventName(ne){const Ie=ne.toLowerCase().split("."),rt=Ie.shift();if(0===Ie.length||"keydown"!==rt&&"keyup"!==rt)return null;const kt=Ve._normalizeKey(Ie.pop());let $t="";if(Wt.forEach(en=>{const kn=Ie.indexOf(en);kn>-1&&(Ie.splice(kn,1),$t+=en+".")}),$t+=kt,0!=Ie.length||0===kt.length)return null;const bn={};return bn.domEventName=rt,bn.fullKey=$t,bn}static getEventFullKey(ne){let Ie="",rt=function Xe(Ve){let _e=Ve.key;if(null==_e){if(_e=Ve.keyIdentifier,null==_e)return"Unidentified";_e.startsWith("U+")&&(_e=String.fromCharCode(parseInt(_e.substring(2),16)),3===Ve.location&&Ut.hasOwnProperty(_e)&&(_e=Ut[_e]))}return mn[_e]||_e}(ne);return rt=rt.toLowerCase()," "===rt?rt="space":"."===rt&&(rt="dot"),Wt.forEach(kt=>{kt!=rt&&xt[kt](ne)&&(Ie+=kt+".")}),Ie+=rt,Ie}static eventCallback(ne,Ie,rt){return kt=>{Ve.getEventFullKey(kt)===ne&&rt.runGuarded(()=>Ie(kt))}}static _normalizeKey(ne){return"esc"===ne?"escape":ne}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})();const Ge=(0,o.eFA)(o._c5,"browser",[{provide:o.Lbi,useValue:c.bD},{provide:o.g9A,useValue:function je(){Y.makeCurrent(),de.init()},multi:!0},{provide:c.K0,useFactory:function K(){return(0,o.RDi)(document),document},deps:[]}]),lt=[{provide:o.zSh,useValue:"root"},{provide:o.qLn,useFactory:function J(){return new o.qLn},deps:[]},{provide:le,useClass:Rt,multi:!0,deps:[c.K0,o.R0b,o.Lbi]},{provide:le,useClass:on,multi:!0,deps:[c.K0]},{provide:tt,useClass:tt,deps:[ke,et,o.AFp]},{provide:o.FYo,useExisting:tt},{provide:Z,useExisting:et},{provide:et,useClass:et,deps:[c.K0]},{provide:o.dDg,useClass:o.dDg,deps:[o.R0b]},{provide:ke,useClass:ke,deps:[le,o.R0b]},{provide:c.JF,useClass:X,deps:[]}];let St=(()=>{class Ve{constructor(ne){if(ne)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(ne){return{ngModule:Ve,providers:[{provide:o.AFp,useValue:ne.appId},{provide:ue,useExisting:o.AFp},se]}}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(Ve,12))},Ve.\u0275mod=o.oAB({type:Ve}),Ve.\u0275inj=o.cJS({providers:lt,imports:[c.ez,o.hGG]}),Ve})();"undefined"!=typeof window&&window;let Zt=(()=>{class Ve{}return Ve.\u0275fac=function(ne){return new(ne||Ve)},Ve.\u0275prov=o.Yz7({token:Ve,factory:function(ne){let Ie=null;return Ie=ne?new(ne||Ve):o.LFG(Dt),Ie},providedIn:"root"}),Ve})(),Dt=(()=>{class Ve extends Zt{constructor(ne){super(),this._doc=ne}sanitize(ne,Ie){if(null==Ie)return null;switch(ne){case o.q3G.NONE:return Ie;case o.q3G.HTML:return(0,o.qzn)(Ie,"HTML")?(0,o.z3N)(Ie):(0,o.EiD)(this._doc,String(Ie)).toString();case o.q3G.STYLE:return(0,o.qzn)(Ie,"Style")?(0,o.z3N)(Ie):Ie;case o.q3G.SCRIPT:if((0,o.qzn)(Ie,"Script"))return(0,o.z3N)(Ie);throw new Error("unsafe value used in a script context");case o.q3G.URL:return(0,o.yhl)(Ie),(0,o.qzn)(Ie,"URL")?(0,o.z3N)(Ie):(0,o.mCW)(String(Ie));case o.q3G.RESOURCE_URL:if((0,o.qzn)(Ie,"ResourceURL"))return(0,o.z3N)(Ie);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ne} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ne){return(0,o.JVY)(ne)}bypassSecurityTrustStyle(ne){return(0,o.L6k)(ne)}bypassSecurityTrustScript(ne){return(0,o.eBb)(ne)}bypassSecurityTrustUrl(ne){return(0,o.LAX)(ne)}bypassSecurityTrustResourceUrl(ne){return(0,o.pB0)(ne)}}return Ve.\u0275fac=function(ne){return new(ne||Ve)(o.LFG(c.K0))},Ve.\u0275prov=o.Yz7({token:Ve,factory:function(ne){let Ie=null;return Ie=ne?new ne:function Kt(Ve){return new Dt(Ve.get(c.K0))}(o.LFG(o.zs3)),Ie},providedIn:"root"}),Ve})()},9525:(qe,ye,C)=>{C.d(ye,{gz:()=>Jn,F0:()=>ri,rH:()=>Tt,yS:()=>Ft,Bz:()=>wo,lC:()=>lr});var c=C(4893),o=C(8306),g=C(576);function Y(_,f){const h=(0,g.m)(_)?_:()=>_,w=O=>O.error(h());return new o.y(f?O=>f.schedule(w,0,O):w)}const q=(0,C(3888).d)(_=>function(){_(this),this.name="EmptyError",this.message="no elements in sequence"});var De=C(727),Ce=C(4482),ue=C(5403);function te(){return(0,Ce.e)((_,f)=>{let h=null;_._refCount++;const w=(0,ue.x)(f,void 0,void 0,void 0,()=>{if(!_||_._refCount<=0||0<--_._refCount)return void(h=null);const O=_._connection,B=h;h=null,O&&(!B||O===B)&&O.unsubscribe(),f.unsubscribe()});_.subscribe(w),w.closed||(h=_.connect())})}class se extends o.y{constructor(f,h){super(),this.source=f,this.subjectFactory=h,this._subject=null,this._refCount=0,this._connection=null,(0,Ce.A)(f)&&(this.lift=f.lift)}_subscribe(f){return this.getSubject().subscribe(f)}getSubject(){const f=this._subject;return(!f||f.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:f}=this;this._subject=this._connection=null,null==f||f.unsubscribe()}connect(){let f=this._connection;if(!f){f=this._connection=new De.w0;const h=this.getSubject();f.add(this.source.subscribe((0,ue.x)(h,void 0,()=>{this._teardown(),h.complete()},w=>{this._teardown(),h.error(w)},()=>this._teardown()))),f.closed&&(this._connection=null,f=De.w0.EMPTY)}return f}refCount(){return te()(this)}}var de=C(2076),X=C(9646),le=C(1135),ke=C(9841),Be=C(7272),Z=C(9770),et=C(515),Ye=C(7579);function Qe(_,f,h,w,O){return(B,ee)=>{let ge=h,Ze=f,Mt=0;B.subscribe((0,ue.x)(ee,cn=>{const Bt=Mt++;Ze=ge?_(Ze,cn,Bt):(ge=!0,cn),w&&ee.next(Ze)},O&&(()=>{ge&&ee.next(Ze),ee.complete()})))}}function me(_,f){return(0,Ce.e)(Qe(_,f,arguments.length>=2,!0))}var z=C(8421);function Q(_){return(0,Ce.e)((f,h)=>{let B,w=null,O=!1;w=f.subscribe((0,ue.x)(h,void 0,void 0,ee=>{B=(0,z.Xf)(_(ee,Q(_)(f))),w?(w.unsubscribe(),w=null,B.subscribe(h)):O=!0})),O&&(w.unsubscribe(),w=null,B.subscribe(h))})}var pe=C(9300);function Te(_){return _<=0?()=>et.E:(0,Ce.e)((f,h)=>{let w=[];f.subscribe((0,ue.x)(h,O=>{w.push(O),_{for(const O of w)h.next(O);h.complete()},void 0,()=>{w=null}))})}function Ne(_=ve){return(0,Ce.e)((f,h)=>{let w=!1;f.subscribe((0,ue.x)(h,O=>{w=!0,h.next(O)},()=>w?h.complete():h.error(_())))})}function ve(){return new q}function Me(_){return(0,Ce.e)((f,h)=>{let w=!1;f.subscribe((0,ue.x)(h,O=>{w=!0,h.next(O)},()=>{w||h.next(_),h.complete()}))})}var xe=C(4671),tt=C(5698);function Fe(_,f){const h=arguments.length>=2;return w=>w.pipe(_?(0,pe.h)((O,B)=>_(O,B,w)):xe.y,(0,tt.q)(1),h?Me(f):Ne(()=>new q))}var mt=C(4004),Jt=C(3900),yt=C(8675),Rt=C(4351),Wt=C(5577),Pt=C(8505),mn=C(8189),Ut=C(9808);class xt{constructor(f,h){this.id=f,this.url=h}}class on extends xt{constructor(f,h,w="imperative",O=null){super(f,h),this.navigationTrigger=w,this.restoredState=O}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Xe extends xt{constructor(f,h,w){super(f,h),this.urlAfterRedirects=w}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class je extends xt{constructor(f,h,w){super(f,h),this.reason=w}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class J extends xt{constructor(f,h,w){super(f,h),this.error=w}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class K extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class He extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ge extends xt{constructor(f,h,w,O,B){super(f,h),this.urlAfterRedirects=w,this.state=O,this.shouldActivate=B}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class lt extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class St extends xt{constructor(f,h,w,O){super(f,h),this.urlAfterRedirects=w,this.state=O}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ht{constructor(f){this.route=f}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class bt{constructor(f){this.route=f}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Nt{constructor(f){this.snapshot=f}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class at{constructor(f){this.snapshot=f}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pe{constructor(f){this.snapshot=f}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class E{constructor(f){this.snapshot=f}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class S{constructor(f,h,w){this.routerEvent=f,this.position=h,this.anchor=w}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const D="primary";class P{constructor(f){this.params=f||{}}has(f){return Object.prototype.hasOwnProperty.call(this.params,f)}get(f){if(this.has(f)){const h=this.params[f];return Array.isArray(h)?h[0]:h}return null}getAll(f){if(this.has(f)){const h=this.params[f];return Array.isArray(h)?h:[h]}return[]}get keys(){return Object.keys(this.params)}}function L(_){return new P(_)}const re="ngNavigationCancelingError";function be(_){const f=Error("NavigationCancelingError: "+_);return f[re]=!0,f}function ze(_,f,h){const w=h.path.split("/");if(w.length>_.length||"full"===h.pathMatch&&(f.hasChildren()||w.length<_.length))return null;const O={};for(let B=0;Bw[B]===O)}return _===f}function nn(_){return Array.prototype.concat.apply([],_)}function Yt(_){return _.length>0?_[_.length-1]:null}function dt(_,f){for(const h in _)_.hasOwnProperty(h)&&f(_[h],h)}function vt(_){return(0,c.CqO)(_)?_:(0,c.QGY)(_)?(0,de.D)(Promise.resolve(_)):(0,X.of)(_)}const we={exact:function he(_,f,h){if(!_e(_.segments,f.segments)||!Zt(_.segments,f.segments,h)||_.numberOfChildren!==f.numberOfChildren)return!1;for(const w in f.children)if(!_.children[w]||!he(_.children[w],f.children[w],h))return!1;return!0},subset:st},V={exact:function $(_,f){return ct(_,f)},subset:function Se(_,f){return Object.keys(f).length<=Object.keys(_).length&&Object.keys(f).every(h=>Ot(_[h],f[h]))},ignored:()=>!0};function j(_,f,h){return we[h.paths](_.root,f.root,h.matrixParams)&&V[h.queryParams](_.queryParams,f.queryParams)&&!("exact"===h.fragment&&_.fragment!==f.fragment)}function st(_,f,h){return At(_,f,f.segments,h)}function At(_,f,h,w){if(_.segments.length>h.length){const O=_.segments.slice(0,h.length);return!(!_e(O,h)||f.hasChildren()||!Zt(O,h,w))}if(_.segments.length===h.length){if(!_e(_.segments,h)||!Zt(_.segments,h,w))return!1;for(const O in f.children)if(!_.children[O]||!st(_.children[O],f.children[O],w))return!1;return!0}{const O=h.slice(0,_.segments.length),B=h.slice(_.segments.length);return!!(_e(_.segments,O)&&Zt(_.segments,O,w)&&_.children[D])&&At(_.children[D],f,B,w)}}function Zt(_,f,h){return f.every((w,O)=>V[h](_[O].parameters,w.parameters))}class Kt{constructor(f,h,w){this.root=f,this.queryParams=h,this.fragment=w}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=L(this.queryParams)),this._queryParamMap}toString(){return kt.serialize(this)}}class Dt{constructor(f,h){this.segments=f,this.children=h,this.parent=null,dt(h,(w,O)=>w.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return $t(this)}}class Rn{constructor(f,h){this.path=f,this.parameters=h}get parameterMap(){return this._parameterMap||(this._parameterMap=L(this.parameters)),this._parameterMap}toString(){return bi(this)}}function _e(_,f){return _.length===f.length&&_.every((h,w)=>h.path===f[w].path)}class Ie{}class rt{parse(f){const h=new Fn(f);return new Kt(h.parseRootSegment(),h.parseQueryParams(),h.parseFragment())}serialize(f){const h=`/${bn(f.root,!0)}`,w=function fi(_){const f=Object.keys(_).map(h=>{const w=_[h];return Array.isArray(w)?w.map(O=>`${kn(h)}=${kn(O)}`).join("&"):`${kn(h)}=${kn(w)}`}).filter(h=>!!h);return f.length?`?${f.join("&")}`:""}(f.queryParams);return`${h}${w}${"string"==typeof f.fragment?`#${function Cn(_){return encodeURI(_)}(f.fragment)}`:""}`}}const kt=new rt;function $t(_){return _.segments.map(f=>bi(f)).join("/")}function bn(_,f){if(!_.hasChildren())return $t(_);if(f){const h=_.children[D]?bn(_.children[D],!1):"",w=[];return dt(_.children,(O,B)=>{B!==D&&w.push(`${B}:${bn(O,!1)}`)}),w.length>0?`${h}(${w.join("//")})`:h}{const h=function ne(_,f){let h=[];return dt(_.children,(w,O)=>{O===D&&(h=h.concat(f(w,O)))}),dt(_.children,(w,O)=>{O!==D&&(h=h.concat(f(w,O)))}),h}(_,(w,O)=>O===D?[bn(_.children[D],!1)]:[`${O}:${bn(w,!1)}`]);return 1===Object.keys(_.children).length&&null!=_.children[D]?`${$t(_)}/${h[0]}`:`${$t(_)}/(${h.join("//")})`}}function en(_){return encodeURIComponent(_).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kn(_){return en(_).replace(/%3B/gi,";")}function jn(_){return en(_).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function oi(_){return decodeURIComponent(_)}function Wn(_){return oi(_.replace(/\+/g,"%20"))}function bi(_){return`${jn(_.path)}${function si(_){return Object.keys(_).map(f=>`;${jn(f)}=${jn(_[f])}`).join("")}(_.parameters)}`}const Ln=/^[^\/()?;=#]+/;function ji(_){const f=_.match(Ln);return f?f[0]:""}const zn=/^[^=?&#]+/,Qt=/^[^&#]+/;class Fn{constructor(f){this.url=f,this.remaining=f}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Dt([],{}):new Dt([],this.parseChildren())}parseQueryParams(){const f={};if(this.consumeOptional("?"))do{this.parseQueryParam(f)}while(this.consumeOptional("&"));return f}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const f=[];for(this.peekStartsWith("(")||f.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),f.push(this.parseSegment());let h={};this.peekStartsWith("/(")&&(this.capture("/"),h=this.parseParens(!0));let w={};return this.peekStartsWith("(")&&(w=this.parseParens(!1)),(f.length>0||Object.keys(h).length>0)&&(w[D]=new Dt(f,h)),w}parseSegment(){const f=ji(this.remaining);if(""===f&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(f),new Rn(oi(f),this.parseMatrixParams())}parseMatrixParams(){const f={};for(;this.consumeOptional(";");)this.parseParam(f);return f}parseParam(f){const h=ji(this.remaining);if(!h)return;this.capture(h);let w="";if(this.consumeOptional("=")){const O=ji(this.remaining);O&&(w=O,this.capture(w))}f[oi(h)]=oi(w)}parseQueryParam(f){const h=function ft(_){const f=_.match(zn);return f?f[0]:""}(this.remaining);if(!h)return;this.capture(h);let w="";if(this.consumeOptional("=")){const ee=function pn(_){const f=_.match(Qt);return f?f[0]:""}(this.remaining);ee&&(w=ee,this.capture(w))}const O=Wn(h),B=Wn(w);if(f.hasOwnProperty(O)){let ee=f[O];Array.isArray(ee)||(ee=[ee],f[O]=ee),ee.push(B)}else f[O]=B}parseParens(f){const h={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const w=ji(this.remaining),O=this.remaining[w.length];if("/"!==O&&")"!==O&&";"!==O)throw new Error(`Cannot parse url '${this.url}'`);let B;w.indexOf(":")>-1?(B=w.substr(0,w.indexOf(":")),this.capture(B),this.capture(":")):f&&(B=D);const ee=this.parseChildren();h[B]=1===Object.keys(ee).length?ee[D]:new Dt([],ee),this.consumeOptional("//")}return h}peekStartsWith(f){return this.remaining.startsWith(f)}consumeOptional(f){return!!this.peekStartsWith(f)&&(this.remaining=this.remaining.substring(f.length),!0)}capture(f){if(!this.consumeOptional(f))throw new Error(`Expected "${f}".`)}}class ai{constructor(f){this._root=f}get root(){return this._root.value}parent(f){const h=this.pathFromRoot(f);return h.length>1?h[h.length-2]:null}children(f){const h=An(f,this._root);return h?h.children.map(w=>w.value):[]}firstChild(f){const h=An(f,this._root);return h&&h.children.length>0?h.children[0].value:null}siblings(f){const h=ci(f,this._root);return h.length<2?[]:h[h.length-2].children.map(O=>O.value).filter(O=>O!==f)}pathFromRoot(f){return ci(f,this._root).map(h=>h.value)}}function An(_,f){if(_===f.value)return f;for(const h of f.children){const w=An(_,h);if(w)return w}return null}function ci(_,f){if(_===f.value)return[f];for(const h of f.children){const w=ci(_,h);if(w.length)return w.unshift(f),w}return[]}class tn{constructor(f,h){this.value=f,this.children=h}toString(){return`TreeNode(${this.value})`}}function Yn(_){const f={};return _&&_.children.forEach(h=>f[h.value.outlet]=h),f}class pi extends ai{constructor(f,h){super(f),this.snapshot=h,Nn(this,f)}toString(){return this.snapshot.toString()}}function jt(_,f){const h=function ui(_,f){const ee=new gn([],{},{},"",{},D,f,null,_.root,-1,{});return new di("",new tn(ee,[]))}(_,f),w=new le.X([new Rn("",{})]),O=new le.X({}),B=new le.X({}),ee=new le.X({}),ge=new le.X(""),Ze=new Jn(w,O,ee,ge,B,D,f,h.root);return Ze.snapshot=h.root,new pi(new tn(Ze,[]),h)}class Jn{constructor(f,h,w,O,B,ee,ge,Ze){this.url=f,this.params=h,this.queryParams=w,this.fragment=O,this.data=B,this.outlet=ee,this.component=ge,this._futureSnapshot=Ze}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,mt.U)(f=>L(f)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,mt.U)(f=>L(f)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Si(_,f="emptyOnly"){const h=_.pathFromRoot;let w=0;if("always"!==f)for(w=h.length-1;w>=1;){const O=h[w],B=h[w-1];if(O.routeConfig&&""===O.routeConfig.path)w--;else{if(B.component)break;w--}}return function Gn(_){return _.reduce((f,h)=>({params:Object.assign(Object.assign({},f.params),h.params),data:Object.assign(Object.assign({},f.data),h.data),resolve:Object.assign(Object.assign({},f.resolve),h._resolvedData)}),{params:{},data:{},resolve:{}})}(h.slice(w))}class gn{constructor(f,h,w,O,B,ee,ge,Ze,Mt,cn,Bt){this.url=f,this.params=h,this.queryParams=w,this.fragment=O,this.data=B,this.outlet=ee,this.component=ge,this.routeConfig=Ze,this._urlSegment=Mt,this._lastPathIndex=cn,this._resolve=Bt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=L(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=L(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(w=>w.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class di extends ai{constructor(f,h){super(h),this.url=f,Nn(this,h)}toString(){return Xn(this._root)}}function Nn(_,f){f.value._routerState=_,f.children.forEach(h=>Nn(_,h))}function Xn(_){const f=_.children.length>0?` { ${_.children.map(Xn).join(", ")} } `:"";return`${_.value}${f}`}function un(_){if(_.snapshot){const f=_.snapshot,h=_._futureSnapshot;_.snapshot=h,ct(f.queryParams,h.queryParams)||_.queryParams.next(h.queryParams),f.fragment!==h.fragment&&_.fragment.next(h.fragment),ct(f.params,h.params)||_.params.next(h.params),function _t(_,f){if(_.length!==f.length)return!1;for(let h=0;h<_.length;++h)if(!ct(_[h],f[h]))return!1;return!0}(f.url,h.url)||_.url.next(h.url),ct(f.data,h.data)||_.data.next(h.data)}else _.snapshot=_._futureSnapshot,_.data.next(_._futureSnapshot.data)}function ir(_,f){const h=ct(_.params,f.params)&&function Ve(_,f){return _e(_,f)&&_.every((h,w)=>ct(h.parameters,f[w].parameters))}(_.url,f.url);return h&&!(!_.parent!=!f.parent)&&(!_.parent||ir(_.parent,f.parent))}function Kn(_,f,h){if(h&&_.shouldReuseRoute(f.value,h.value.snapshot)){const w=h.value;w._futureSnapshot=f.value;const O=function Ci(_,f,h){return f.children.map(w=>{for(const O of h.children)if(_.shouldReuseRoute(w.value,O.value.snapshot))return Kn(_,w,O);return Kn(_,w)})}(_,f,h);return new tn(w,O)}{if(_.shouldAttach(f.value)){const B=_.retrieve(f.value);if(null!==B){const ee=B.route;return ee.value._futureSnapshot=f.value,ee.children=f.children.map(ge=>Kn(_,ge)),ee}}const w=function Ki(_){return new Jn(new le.X(_.url),new le.X(_.params),new le.X(_.queryParams),new le.X(_.fragment),new le.X(_.data),_.outlet,_.component,_)}(f.value),O=f.children.map(B=>Kn(_,B));return new tn(w,O)}}function On(_){return"object"==typeof _&&null!=_&&!_.outlets&&!_.segmentPath}function ei(_){return"object"==typeof _&&null!=_&&_.outlets}function Oi(_,f,h,w,O){let B={};return w&&dt(w,(ee,ge)=>{B[ge]=Array.isArray(ee)?ee.map(Ze=>`${Ze}`):`${ee}`}),new Kt(h.root===_?f:hr(h.root,_,f),B,O)}function hr(_,f,h){const w={};return dt(_.children,(O,B)=>{w[B]=O===f?h:hr(O,f,h)}),new Dt(_.segments,w)}class rr{constructor(f,h,w){if(this.isAbsolute=f,this.numberOfDoubleDots=h,this.commands=w,f&&w.length>0&&On(w[0]))throw new Error("Root segment cannot have matrix parameters");const O=w.find(ei);if(O&&O!==Yt(w))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class pr{constructor(f,h,w){this.segmentGroup=f,this.processChildren=h,this.index=w}}function Fr(_,f,h){if(_||(_=new Dt([],{})),0===_.segments.length&&_.hasChildren())return gr(_,f,h);const w=function or(_,f,h){let w=0,O=f;const B={match:!1,pathIndex:0,commandIndex:0};for(;O<_.segments.length;){if(w>=h.length)return B;const ee=_.segments[O],ge=h[w];if(ei(ge))break;const Ze=`${ge}`,Mt=w0&&void 0===Ze)break;if(Ze&&Mt&&"object"==typeof Mt&&void 0===Mt.outlets){if(!ar(Ze,Mt,ee))return B;w+=2}else{if(!ar(Ze,{},ee))return B;w++}O++}return{match:!0,pathIndex:O,commandIndex:w}}(_,f,h),O=h.slice(w.commandIndex);if(w.match&&w.pathIndex<_.segments.length){const B=new Dt(_.segments.slice(0,w.pathIndex),{});return B.children[D]=new Dt(_.segments.slice(w.pathIndex),_.children),gr(B,0,O)}return w.match&&0===O.length?new Dt(_.segments,{}):w.match&&!_.hasChildren()?xr(_,f,h):w.match?gr(_,0,O):xr(_,f,h)}function gr(_,f,h){if(0===h.length)return new Dt(_.segments,{});{const w=function mr(_){return ei(_[0])?_[0].outlets:{[D]:_}}(h),O={};return dt(w,(B,ee)=>{"string"==typeof B&&(B=[B]),null!==B&&(O[ee]=Fr(_.children[ee],f,B))}),dt(_.children,(B,ee)=>{void 0===w[ee]&&(O[ee]=B)}),new Dt(_.segments,O)}}function xr(_,f,h){const w=_.segments.slice(0,f);let O=0;for(;O{"string"==typeof h&&(h=[h]),null!==h&&(f[w]=xr(new Dt([],{}),0,h))}),f}function _r(_){const f={};return dt(_,(h,w)=>f[w]=`${h}`),f}function ar(_,f,h){return _==h.path&&ct(f,h.parameters)}class vr{constructor(f,h,w,O){this.routeReuseStrategy=f,this.futureState=h,this.currState=w,this.forwardEvent=O}activate(f){const h=this.futureState._root,w=this.currState?this.currState._root:null;this.deactivateChildRoutes(h,w,f),un(this.futureState.root),this.activateChildRoutes(h,w,f)}deactivateChildRoutes(f,h,w){const O=Yn(h);f.children.forEach(B=>{const ee=B.value.outlet;this.deactivateRoutes(B,O[ee],w),delete O[ee]}),dt(O,(B,ee)=>{this.deactivateRouteAndItsChildren(B,w)})}deactivateRoutes(f,h,w){const O=f.value,B=h?h.value:null;if(O===B)if(O.component){const ee=w.getContext(O.outlet);ee&&this.deactivateChildRoutes(f,h,ee.children)}else this.deactivateChildRoutes(f,h,w);else B&&this.deactivateRouteAndItsChildren(h,w)}deactivateRouteAndItsChildren(f,h){f.value.component&&this.routeReuseStrategy.shouldDetach(f.value.snapshot)?this.detachAndStoreRouteSubtree(f,h):this.deactivateRouteAndOutlet(f,h)}detachAndStoreRouteSubtree(f,h){const w=h.getContext(f.value.outlet),O=w&&f.value.component?w.children:h,B=Yn(f);for(const ee of Object.keys(B))this.deactivateRouteAndItsChildren(B[ee],O);if(w&&w.outlet){const ee=w.outlet.detach(),ge=w.children.onOutletDeactivated();this.routeReuseStrategy.store(f.value.snapshot,{componentRef:ee,route:f,contexts:ge})}}deactivateRouteAndOutlet(f,h){const w=h.getContext(f.value.outlet),O=w&&f.value.component?w.children:h,B=Yn(f);for(const ee of Object.keys(B))this.deactivateRouteAndItsChildren(B[ee],O);w&&w.outlet&&(w.outlet.deactivate(),w.children.onOutletDeactivated(),w.attachRef=null,w.resolver=null,w.route=null)}activateChildRoutes(f,h,w){const O=Yn(h);f.children.forEach(B=>{this.activateRoutes(B,O[B.value.outlet],w),this.forwardEvent(new E(B.value.snapshot))}),f.children.length&&this.forwardEvent(new at(f.value.snapshot))}activateRoutes(f,h,w){const O=f.value,B=h?h.value:null;if(un(O),O===B)if(O.component){const ee=w.getOrCreateContext(O.outlet);this.activateChildRoutes(f,h,ee.children)}else this.activateChildRoutes(f,h,w);else if(O.component){const ee=w.getOrCreateContext(O.outlet);if(this.routeReuseStrategy.shouldAttach(O.snapshot)){const ge=this.routeReuseStrategy.retrieve(O.snapshot);this.routeReuseStrategy.store(O.snapshot,null),ee.children.onOutletReAttached(ge.contexts),ee.attachRef=ge.componentRef,ee.route=ge.route.value,ee.outlet&&ee.outlet.attach(ge.componentRef,ge.route.value),un(ge.route.value),this.activateChildRoutes(f,null,ee.children)}else{const ge=function Lr(_){for(let f=_.parent;f;f=f.parent){const h=f.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig;if(h&&h.component)return null}return null}(O.snapshot),Ze=ge?ge.module.componentFactoryResolver:null;ee.attachRef=null,ee.route=O,ee.resolver=Ze,ee.outlet&&ee.outlet.activateWith(O,Ze),this.activateChildRoutes(f,null,ee.children)}}else this.activateChildRoutes(f,null,w)}}class qi{constructor(f,h){this.routes=f,this.module=h}}function mi(_){return"function"==typeof _}function Di(_){return _ instanceof Kt}const Bi=Symbol("INITIAL_VALUE");function Qi(){return(0,Jt.w)(_=>(0,ke.a)(_.map(f=>f.pipe((0,tt.q)(1),(0,yt.O)(Bi)))).pipe(me((f,h)=>{let w=!1;return h.reduce((O,B,ee)=>O!==Bi?O:(B===Bi&&(w=!0),w||!1!==B&&ee!==h.length-1&&!Di(B)?O:B),f)},Bi),(0,pe.h)(f=>f!==Bi),(0,mt.U)(f=>Di(f)?f:!0===f),(0,tt.q)(1)))}class Qr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ii,this.attachRef=null}}class Ii{constructor(){this.contexts=new Map}onChildOutletCreated(f,h){const w=this.getOrCreateContext(f);w.outlet=h,this.contexts.set(f,w)}onChildOutletDestroyed(f){const h=this.getContext(f);h&&(h.outlet=null,h.attachRef=null)}onOutletDeactivated(){const f=this.contexts;return this.contexts=new Map,f}onOutletReAttached(f){this.contexts=f}getOrCreateContext(f){let h=this.getContext(f);return h||(h=new Qr,this.contexts.set(f,h)),h}getContext(f){return this.contexts.get(f)||null}}let lr=(()=>{class _{constructor(h,w,O,B,ee){this.parentContexts=h,this.location=w,this.resolver=O,this.changeDetector=ee,this.activated=null,this._activatedRoute=null,this.activateEvents=new c.vpe,this.deactivateEvents=new c.vpe,this.attachEvents=new c.vpe,this.detachEvents=new c.vpe,this.name=B||D,h.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const h=this.parentContexts.getContext(this.name);h&&h.route&&(h.attachRef?this.attach(h.attachRef,h.route):this.activateWith(h.route,h.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const h=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(h.instance),h}attach(h,w){this.activated=h,this._activatedRoute=w,this.location.insert(h.hostView),this.attachEvents.emit(h.instance)}deactivate(){if(this.activated){const h=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(h)}}activateWith(h,w){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=h;const ee=(w=w||this.resolver).resolveComponentFactory(h._futureSnapshot.routeConfig.component),ge=this.parentContexts.getOrCreateContext(this.name).children,Ze=new Br(h,ge,this.location.injector);this.activated=this.location.createComponent(ee,this.location.length,Ze),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return _.\u0275fac=function(h){return new(h||_)(c.Y36(Ii),c.Y36(c.s_b),c.Y36(c._Vd),c.$8M("name"),c.Y36(c.sBO))},_.\u0275dir=c.lG2({type:_,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),_})();class Br{constructor(f,h,w){this.route=f,this.childContexts=h,this.parent=w}get(f,h){return f===Jn?this.route:f===Ii?this.childContexts:this.parent.get(f,h)}}let ti=(()=>{class _{}return _.\u0275fac=function(h){return new(h||_)},_.\u0275cmp=c.Xpm({type:_,selectors:[["ng-component"]],decls:1,vars:0,template:function(h,w){1&h&&c._UZ(0,"router-outlet")},directives:[lr],encapsulation:2}),_})();function cr(_,f=""){for(let h=0;h<_.length;h++){const w=_[h];Tn(w,Ji(f,w))}}function Tn(_,f){_.children&&cr(_.children,f)}function Ji(_,f){return f?_||f.path?_&&!f.path?`${_}/`:!_&&f.path?f.path:`${_}/${f.path}`:"":_}function Xi(_){const f=_.children&&_.children.map(Xi),h=f?Object.assign(Object.assign({},_),{children:f}):Object.assign({},_);return!h.component&&(f||h.loadChildren)&&h.outlet&&h.outlet!==D&&(h.component=ti),h}function ni(_){return _.outlet||D}function ur(_,f){const h=_.filter(w=>ni(w)===f);return h.push(..._.filter(w=>ni(w)!==f)),h}const Pi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function A(_,f,h){var w;if(""===f.path)return"full"===f.pathMatch&&(_.hasChildren()||h.length>0)?Object.assign({},Pi):{matched:!0,consumedSegments:[],remainingSegments:h,parameters:{},positionalParamSegments:{}};const B=(f.matcher||ze)(h,_,f);if(!B)return Object.assign({},Pi);const ee={};dt(B.posParams,(Ze,Mt)=>{ee[Mt]=Ze.path});const ge=B.consumed.length>0?Object.assign(Object.assign({},ee),B.consumed[B.consumed.length-1].parameters):ee;return{matched:!0,consumedSegments:B.consumed,remainingSegments:h.slice(B.consumed.length),parameters:ge,positionalParamSegments:null!==(w=B.posParams)&&void 0!==w?w:{}}}function N(_,f,h,w,O="corrected"){if(h.length>0&&function ae(_,f,h){return h.some(w=>nt(_,f,w)&&ni(w)!==D)}(_,h,w)){const ee=new Dt(f,function H(_,f,h,w){const O={};O[D]=w,w._sourceSegment=_,w._segmentIndexShift=f.length;for(const B of h)if(""===B.path&&ni(B)!==D){const ee=new Dt([],{});ee._sourceSegment=_,ee._segmentIndexShift=f.length,O[ni(B)]=ee}return O}(_,f,w,new Dt(h,_.children)));return ee._sourceSegment=_,ee._segmentIndexShift=f.length,{segmentGroup:ee,slicedSegments:[]}}if(0===h.length&&function $e(_,f,h){return h.some(w=>nt(_,f,w))}(_,h,w)){const ee=new Dt(_.segments,function T(_,f,h,w,O,B){const ee={};for(const ge of w)if(nt(_,h,ge)&&!O[ni(ge)]){const Ze=new Dt([],{});Ze._sourceSegment=_,Ze._segmentIndexShift="legacy"===B?_.segments.length:f.length,ee[ni(ge)]=Ze}return Object.assign(Object.assign({},O),ee)}(_,f,h,w,_.children,O));return ee._sourceSegment=_,ee._segmentIndexShift=f.length,{segmentGroup:ee,slicedSegments:h}}const B=new Dt(_.segments,_.children);return B._sourceSegment=_,B._segmentIndexShift=f.length,{segmentGroup:B,slicedSegments:h}}function nt(_,f,h){return(!(_.hasChildren()||f.length>0)||"full"!==h.pathMatch)&&""===h.path}function ht(_,f,h,w){return!!(ni(_)===w||w!==D&&nt(f,h,_))&&("**"===_.path||A(f,_,h).matched)}function En(_,f,h){return 0===f.length&&!_.children[h]}class _n{constructor(f){this.segmentGroup=f||null}}class hn{constructor(f){this.urlTree=f}}function zt(_){return Y(new _n(_))}function Bn(_){return Y(new hn(_))}class wi{constructor(f,h,w,O,B){this.configLoader=h,this.urlSerializer=w,this.urlTree=O,this.config=B,this.allowRedirects=!0,this.ngModule=f.get(c.h0i)}apply(){const f=N(this.urlTree.root,[],[],this.config).segmentGroup,h=new Dt(f.segments,f.children);return this.expandSegmentGroup(this.ngModule,this.config,h,D).pipe((0,mt.U)(B=>this.createUrlTree(Ri(B),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Q(B=>{if(B instanceof hn)return this.allowRedirects=!1,this.match(B.urlTree);throw B instanceof _n?this.noMatchError(B):B}))}match(f){return this.expandSegmentGroup(this.ngModule,this.config,f.root,D).pipe((0,mt.U)(O=>this.createUrlTree(Ri(O),f.queryParams,f.fragment))).pipe(Q(O=>{throw O instanceof _n?this.noMatchError(O):O}))}noMatchError(f){return new Error(`Cannot match any routes. URL Segment: '${f.segmentGroup}'`)}createUrlTree(f,h,w){const O=f.segments.length>0?new Dt([],{[D]:f}):f;return new Kt(O,h,w)}expandSegmentGroup(f,h,w,O){return 0===w.segments.length&&w.hasChildren()?this.expandChildren(f,h,w).pipe((0,mt.U)(B=>new Dt([],B))):this.expandSegment(f,w,h,w.segments,O,!0)}expandChildren(f,h,w){const O=[];for(const B of Object.keys(w.children))"primary"===B?O.unshift(B):O.push(B);return(0,de.D)(O).pipe((0,Rt.b)(B=>{const ee=w.children[B],ge=ur(h,B);return this.expandSegmentGroup(f,ge,ee,B).pipe((0,mt.U)(Ze=>({segment:Ze,outlet:B})))}),me((B,ee)=>(B[ee.outlet]=ee.segment,B),{}),function Ae(_,f){const h=arguments.length>=2;return w=>w.pipe(_?(0,pe.h)((O,B)=>_(O,B,w)):xe.y,Te(1),h?Me(f):Ne(()=>new q))}())}expandSegment(f,h,w,O,B,ee){return(0,de.D)(w).pipe((0,Rt.b)(ge=>this.expandSegmentAgainstRoute(f,h,w,ge,O,B,ee).pipe(Q(Mt=>{if(Mt instanceof _n)return(0,X.of)(null);throw Mt}))),Fe(ge=>!!ge),Q((ge,Ze)=>{if(ge instanceof q||"EmptyError"===ge.name){if(En(h,O,B))return(0,X.of)(new Dt([],{}));throw new _n(h)}throw ge}))}expandSegmentAgainstRoute(f,h,w,O,B,ee,ge){return ht(O,h,B,ee)?void 0===O.redirectTo?this.matchSegmentAgainstRoute(f,h,O,B,ee):ge&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(f,h,w,O,B,ee):zt(h):zt(h)}expandSegmentAgainstRouteUsingRedirect(f,h,w,O,B,ee){return"**"===O.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(f,w,O,ee):this.expandRegularSegmentAgainstRouteUsingRedirect(f,h,w,O,B,ee)}expandWildCardWithParamsAgainstRouteUsingRedirect(f,h,w,O){const B=this.applyRedirectCommands([],w.redirectTo,{});return w.redirectTo.startsWith("/")?Bn(B):this.lineralizeSegments(w,B).pipe((0,Wt.z)(ee=>{const ge=new Dt(ee,{});return this.expandSegment(f,ge,h,ee,O,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(f,h,w,O,B,ee){const{matched:ge,consumedSegments:Ze,remainingSegments:Mt,positionalParamSegments:cn}=A(h,O,B);if(!ge)return zt(h);const Bt=this.applyRedirectCommands(Ze,O.redirectTo,cn);return O.redirectTo.startsWith("/")?Bn(Bt):this.lineralizeSegments(O,Bt).pipe((0,Wt.z)(xn=>this.expandSegment(f,h,w,xn.concat(Mt),ee,!1)))}matchSegmentAgainstRoute(f,h,w,O,B){if("**"===w.path)return w.loadChildren?(w._loadedConfig?(0,X.of)(w._loadedConfig):this.configLoader.load(f.injector,w)).pipe((0,mt.U)(Bt=>(w._loadedConfig=Bt,new Dt(O,{})))):(0,X.of)(new Dt(O,{}));const{matched:ee,consumedSegments:ge,remainingSegments:Ze}=A(h,w,O);return ee?this.getChildConfig(f,w,O).pipe((0,Wt.z)(cn=>{const Bt=cn.module,xn=cn.routes,{segmentGroup:Pn,slicedSegments:po}=N(h,ge,Ze,xn),Ur=new Dt(Pn.segments,Pn.children);if(0===po.length&&Ur.hasChildren())return this.expandChildren(Bt,xn,Ur).pipe((0,mt.U)(go=>new Dt(ge,go)));if(0===xn.length&&0===po.length)return(0,X.of)(new Dt(ge,{}));const mo=ni(w)===B;return this.expandSegment(Bt,Ur,xn,po,mo?D:B,!0).pipe((0,mt.U)(Dr=>new Dt(ge.concat(Dr.segments),Dr.children)))})):zt(h)}getChildConfig(f,h,w){return h.children?(0,X.of)(new qi(h.children,f)):h.loadChildren?void 0!==h._loadedConfig?(0,X.of)(h._loadedConfig):this.runCanLoadGuards(f.injector,h,w).pipe((0,Wt.z)(O=>O?this.configLoader.load(f.injector,h).pipe((0,mt.U)(B=>(h._loadedConfig=B,B))):function Sn(_){return Y(be(`Cannot load children because the guard of the route "path: '${_.path}'" returned false`))}(h))):(0,X.of)(new qi([],f))}runCanLoadGuards(f,h,w){const O=h.canLoad;if(!O||0===O.length)return(0,X.of)(!0);const B=O.map(ee=>{const ge=f.get(ee);let Ze;if(function qr(_){return _&&mi(_.canLoad)}(ge))Ze=ge.canLoad(h,w);else{if(!mi(ge))throw new Error("Invalid CanLoad guard");Ze=ge(h,w)}return vt(Ze)});return(0,X.of)(B).pipe(Qi(),(0,Pt.b)(ee=>{if(!Di(ee))return;const ge=be(`Redirecting to "${this.urlSerializer.serialize(ee)}"`);throw ge.url=ee,ge}),(0,mt.U)(ee=>!0===ee))}lineralizeSegments(f,h){let w=[],O=h.root;for(;;){if(w=w.concat(O.segments),0===O.numberOfChildren)return(0,X.of)(w);if(O.numberOfChildren>1||!O.children[D])return Y(new Error(`Only absolute redirects can have named outlets. redirectTo: '${f.redirectTo}'`));O=O.children[D]}}applyRedirectCommands(f,h,w){return this.applyRedirectCreatreUrlTree(h,this.urlSerializer.parse(h),f,w)}applyRedirectCreatreUrlTree(f,h,w,O){const B=this.createSegmentGroup(f,h.root,w,O);return new Kt(B,this.createQueryParams(h.queryParams,this.urlTree.queryParams),h.fragment)}createQueryParams(f,h){const w={};return dt(f,(O,B)=>{if("string"==typeof O&&O.startsWith(":")){const ge=O.substring(1);w[B]=h[ge]}else w[B]=O}),w}createSegmentGroup(f,h,w,O){const B=this.createSegments(f,h.segments,w,O);let ee={};return dt(h.children,(ge,Ze)=>{ee[Ze]=this.createSegmentGroup(f,ge,w,O)}),new Dt(B,ee)}createSegments(f,h,w,O){return h.map(B=>B.path.startsWith(":")?this.findPosParam(f,B,O):this.findOrReturn(B,w))}findPosParam(f,h,w){const O=w[h.path.substring(1)];if(!O)throw new Error(`Cannot redirect to '${f}'. Cannot find '${h.path}'.`);return O}findOrReturn(f,h){let w=0;for(const O of h){if(O.path===f.path)return h.splice(w),O;w++}return f}}function Ri(_){const f={};for(const w of Object.keys(_.children)){const B=Ri(_.children[w]);(B.segments.length>0||B.hasChildren())&&(f[w]=B)}return function er(_){if(1===_.numberOfChildren&&_.children[D]){const f=_.children[D];return new Dt(_.segments.concat(f.segments),f.children)}return _}(new Dt(_.segments,f))}class x{constructor(f){this.path=f,this.route=this.path[this.path.length-1]}}class M{constructor(f,h){this.component=f,this.route=h}}function y(_,f,h){const w=_._root;return Dn(w,f?f._root:null,h,[w.value])}function We(_,f,h){const w=function Et(_){if(!_)return null;for(let f=_.parent;f;f=f.parent){const h=f.routeConfig;if(h&&h._loadedConfig)return h._loadedConfig}return null}(f);return(w?w.module.injector:h).get(_)}function Dn(_,f,h,w,O={canDeactivateChecks:[],canActivateChecks:[]}){const B=Yn(f);return _.children.forEach(ee=>{(function gi(_,f,h,w,O={canDeactivateChecks:[],canActivateChecks:[]}){const B=_.value,ee=f?f.value:null,ge=h?h.getContext(_.value.outlet):null;if(ee&&B.routeConfig===ee.routeConfig){const Ze=function Gi(_,f,h){if("function"==typeof h)return h(_,f);switch(h){case"pathParamsChange":return!_e(_.url,f.url);case"pathParamsOrQueryParamsChange":return!_e(_.url,f.url)||!ct(_.queryParams,f.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ir(_,f)||!ct(_.queryParams,f.queryParams);default:return!ir(_,f)}}(ee,B,B.routeConfig.runGuardsAndResolvers);Ze?O.canActivateChecks.push(new x(w)):(B.data=ee.data,B._resolvedData=ee._resolvedData),Dn(_,f,B.component?ge?ge.children:null:h,w,O),Ze&&ge&&ge.outlet&&ge.outlet.isActivated&&O.canDeactivateChecks.push(new M(ge.outlet.component,ee))}else ee&&Fi(f,ge,O),O.canActivateChecks.push(new x(w)),Dn(_,null,B.component?ge?ge.children:null:h,w,O)})(ee,B[ee.value.outlet],h,w.concat([ee.value]),O),delete B[ee.value.outlet]}),dt(B,(ee,ge)=>Fi(ee,h.getContext(ge),O)),O}function Fi(_,f,h){const w=Yn(_),O=_.value;dt(w,(B,ee)=>{Fi(B,O.component?f?f.children.getContext(ee):null:f,h)}),h.canDeactivateChecks.push(new M(O.component&&f&&f.outlet&&f.outlet.isActivated?f.outlet.component:null,O))}class k{}function Ee(_){return new o.y(f=>f.error(_))}class d{constructor(f,h,w,O,B,ee){this.rootComponentType=f,this.config=h,this.urlTree=w,this.url=O,this.paramsInheritanceStrategy=B,this.relativeLinkResolution=ee}recognize(){const f=N(this.urlTree.root,[],[],this.config.filter(ee=>void 0===ee.redirectTo),this.relativeLinkResolution).segmentGroup,h=this.processSegmentGroup(this.config,f,D);if(null===h)return null;const w=new gn([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},D,this.rootComponentType,null,this.urlTree.root,-1,{}),O=new tn(w,h),B=new di(this.url,O);return this.inheritParamsAndData(B._root),B}inheritParamsAndData(f){const h=f.value,w=Si(h,this.paramsInheritanceStrategy);h.params=Object.freeze(w.params),h.data=Object.freeze(w.data),f.children.forEach(O=>this.inheritParamsAndData(O))}processSegmentGroup(f,h,w){return 0===h.segments.length&&h.hasChildren()?this.processChildren(f,h):this.processSegment(f,h,h.segments,w)}processChildren(f,h){const w=[];for(const B of Object.keys(h.children)){const ee=h.children[B],ge=ur(f,B),Ze=this.processSegmentGroup(ge,ee,B);if(null===Ze)return null;w.push(...Ze)}const O=R(w);return function a(_){_.sort((f,h)=>f.value.outlet===D?-1:h.value.outlet===D?1:f.value.outlet.localeCompare(h.value.outlet))}(O),O}processSegment(f,h,w,O){for(const B of f){const ee=this.processSegmentAgainstRoute(B,h,w,O);if(null!==ee)return ee}return En(h,w,O)?[]:null}processSegmentAgainstRoute(f,h,w,O){if(f.redirectTo||!ht(f,h,w,O))return null;let B,ee=[],ge=[];if("**"===f.path){const Pn=w.length>0?Yt(w).parameters:{};B=new gn(w,Pn,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Oe(f),ni(f),f.component,f,ie(h),oe(h)+w.length,Ke(f))}else{const Pn=A(h,f,w);if(!Pn.matched)return null;ee=Pn.consumedSegments,ge=Pn.remainingSegments,B=new gn(ee,Pn.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Oe(f),ni(f),f.component,f,ie(h),oe(h)+ee.length,Ke(f))}const Ze=function l(_){return _.children?_.children:_.loadChildren?_._loadedConfig.routes:[]}(f),{segmentGroup:Mt,slicedSegments:cn}=N(h,ee,ge,Ze.filter(Pn=>void 0===Pn.redirectTo),this.relativeLinkResolution);if(0===cn.length&&Mt.hasChildren()){const Pn=this.processChildren(Ze,Mt);return null===Pn?null:[new tn(B,Pn)]}if(0===Ze.length&&0===cn.length)return[new tn(B,[])];const Bt=ni(f)===O,xn=this.processSegment(Ze,Mt,cn,Bt?D:O);return null===xn?null:[new tn(B,xn)]}}function v(_){const f=_.value.routeConfig;return f&&""===f.path&&void 0===f.redirectTo}function R(_){const f=[],h=new Set;for(const w of _){if(!v(w)){f.push(w);continue}const O=f.find(B=>w.value.routeConfig===B.value.routeConfig);void 0!==O?(O.children.push(...w.children),h.add(O)):f.push(w)}for(const w of h){const O=R(w.children);f.push(new tn(w.value,O))}return f.filter(w=>!h.has(w))}function ie(_){let f=_;for(;f._sourceSegment;)f=f._sourceSegment;return f}function oe(_){let f=_,h=f._segmentIndexShift?f._segmentIndexShift:0;for(;f._sourceSegment;)f=f._sourceSegment,h+=f._segmentIndexShift?f._segmentIndexShift:0;return h-1}function Oe(_){return _.data||{}}function Ke(_){return _.resolve||{}}function Vt(_){return[...Object.keys(_),...Object.getOwnPropertySymbols(_)]}function Mn(_){return(0,Jt.w)(f=>{const h=_(f);return h?(0,de.D)(h).pipe((0,mt.U)(()=>f)):(0,X.of)(f)})}class Ei extends class li{shouldDetach(f){return!1}store(f,h){}shouldAttach(f){return!1}retrieve(f){return null}shouldReuseRoute(f,h){return f.routeConfig===h.routeConfig}}{}const ii=new c.OlP("ROUTES");class Sr{constructor(f,h,w,O){this.injector=f,this.compiler=h,this.onLoadStartListener=w,this.onLoadEndListener=O}load(f,h){if(h._loader$)return h._loader$;this.onLoadStartListener&&this.onLoadStartListener(h);const O=this.loadModuleFactory(h.loadChildren).pipe((0,mt.U)(B=>{this.onLoadEndListener&&this.onLoadEndListener(h);const ee=B.create(f);return new qi(nn(ee.injector.get(ii,void 0,c.XFs.Self|c.XFs.Optional)).map(Xi),ee)}),Q(B=>{throw h._loader$=void 0,B}));return h._loader$=new se(O,()=>new Ye.x).pipe(te()),h._loader$}loadModuleFactory(f){return vt(f()).pipe((0,Wt.z)(h=>h instanceof c.YKP?(0,X.of)(h):(0,de.D)(this.compiler.compileModuleAsync(h))))}}class Ai{shouldProcessUrl(f){return!0}extract(f){return f}merge(f,h){return f}}function Cr(_){throw _}function Un(_,f,h){return f.parse("/")}function _i(_,f){return(0,X.of)(null)}const Hn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},eo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ri=(()=>{class _{constructor(h,w,O,B,ee,ge,Ze){this.rootComponentType=h,this.urlSerializer=w,this.rootContexts=O,this.location=B,this.config=Ze,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ye.x,this.errorHandler=Cr,this.malformedUriErrorHandler=Un,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:_i,afterPreactivation:_i},this.urlHandlingStrategy=new Ai,this.routeReuseStrategy=new Ei,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=ee.get(c.h0i),this.console=ee.get(c.c2e);const Bt=ee.get(c.R0b);this.isNgZoneEnabled=Bt instanceof c.R0b&&c.R0b.isInAngularZone(),this.resetConfig(Ze),this.currentUrlTree=function Le(){return new Kt(new Dt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Sr(ee,ge,xn=>this.triggerEvent(new Ht(xn)),xn=>this.triggerEvent(new bt(xn))),this.routerState=jt(this.currentUrlTree,this.rootComponentType),this.transitions=new le.X({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()}get browserPageId(){var h;return null===(h=this.location.getState())||void 0===h?void 0:h.\u0275routerPageId}setupNavigations(h){const w=this.events;return h.pipe((0,pe.h)(O=>0!==O.id),(0,mt.U)(O=>Object.assign(Object.assign({},O),{extractedUrl:this.urlHandlingStrategy.extract(O.rawUrl)})),(0,Jt.w)(O=>{let B=!1,ee=!1;return(0,X.of)(O).pipe((0,Pt.b)(ge=>{this.currentNavigation={id:ge.id,initialUrl:ge.currentRawUrl,extractedUrl:ge.extractedUrl,trigger:ge.source,extras:ge.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Jt.w)(ge=>{const Ze=this.browserUrlTree.toString(),Mt=!this.navigated||ge.extractedUrl.toString()!==Ze||Ze!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Mt)&&this.urlHandlingStrategy.shouldProcessUrl(ge.rawUrl))return ho(ge.source)&&(this.browserUrlTree=ge.extractedUrl),(0,X.of)(ge).pipe((0,Jt.w)(Bt=>{const xn=this.transitions.getValue();return w.next(new on(Bt.id,this.serializeUrl(Bt.extractedUrl),Bt.source,Bt.restoredState)),xn!==this.transitions.getValue()?et.E:Promise.resolve(Bt)}),function ki(_,f,h,w){return(0,Jt.w)(O=>function Vn(_,f,h,w,O){return new wi(_,f,h,w,O).apply()}(_,f,h,O.extractedUrl,w).pipe((0,mt.U)(B=>Object.assign(Object.assign({},O),{urlAfterRedirects:B}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Pt.b)(Bt=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Bt.urlAfterRedirects})}),function gt(_,f,h,w,O){return(0,Wt.z)(B=>function m(_,f,h,w,O="emptyOnly",B="legacy"){try{const ee=new d(_,f,h,w,O,B).recognize();return null===ee?Ee(new k):(0,X.of)(ee)}catch(ee){return Ee(ee)}}(_,f,B.urlAfterRedirects,h(B.urlAfterRedirects),w,O).pipe((0,mt.U)(ee=>Object.assign(Object.assign({},B),{targetSnapshot:ee}))))}(this.rootComponentType,this.config,Bt=>this.serializeUrl(Bt),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Pt.b)(Bt=>{if("eager"===this.urlUpdateStrategy){if(!Bt.extras.skipLocationChange){const Pn=this.urlHandlingStrategy.merge(Bt.urlAfterRedirects,Bt.rawUrl);this.setBrowserUrl(Pn,Bt)}this.browserUrlTree=Bt.urlAfterRedirects}const xn=new K(Bt.id,this.serializeUrl(Bt.extractedUrl),this.serializeUrl(Bt.urlAfterRedirects),Bt.targetSnapshot);w.next(xn)}));if(Mt&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:xn,extractedUrl:Pn,source:po,restoredState:Ur,extras:mo}=ge,Ir=new on(xn,this.serializeUrl(Pn),po,Ur);w.next(Ir);const Dr=jt(Pn,this.rootComponentType).snapshot;return(0,X.of)(Object.assign(Object.assign({},ge),{targetSnapshot:Dr,urlAfterRedirects:Pn,extras:Object.assign(Object.assign({},mo),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ge.rawUrl,ge.resolve(null),et.E}),Mn(ge=>{const{targetSnapshot:Ze,id:Mt,extractedUrl:cn,rawUrl:Bt,extras:{skipLocationChange:xn,replaceUrl:Pn}}=ge;return this.hooks.beforePreactivation(Ze,{navigationId:Mt,appliedUrlTree:cn,rawUrlTree:Bt,skipLocationChange:!!xn,replaceUrl:!!Pn})}),(0,Pt.b)(ge=>{const Ze=new He(ge.id,this.serializeUrl(ge.extractedUrl),this.serializeUrl(ge.urlAfterRedirects),ge.targetSnapshot);this.triggerEvent(Ze)}),(0,mt.U)(ge=>Object.assign(Object.assign({},ge),{guards:y(ge.targetSnapshot,ge.currentSnapshot,this.rootContexts)})),function ot(_,f){return(0,Wt.z)(h=>{const{targetSnapshot:w,currentSnapshot:O,guards:{canActivateChecks:B,canDeactivateChecks:ee}}=h;return 0===ee.length&&0===B.length?(0,X.of)(Object.assign(Object.assign({},h),{guardsResult:!0})):function sn(_,f,h,w){return(0,de.D)(_).pipe((0,Wt.z)(O=>function Xr(_,f,h,w,O){const B=f&&f.routeConfig?f.routeConfig.canDeactivate:null;if(!B||0===B.length)return(0,X.of)(!0);const ee=B.map(ge=>{const Ze=We(ge,f,O);let Mt;if(function zi(_){return _&&mi(_.canDeactivate)}(Ze))Mt=vt(Ze.canDeactivate(_,f,h,w));else{if(!mi(Ze))throw new Error("Invalid CanDeactivate guard");Mt=vt(Ze(_,f,h,w))}return Mt.pipe(Fe())});return(0,X.of)(ee).pipe(Qi())}(O.component,O.route,h,f,w)),Fe(O=>!0!==O,!0))}(ee,w,O,_).pipe((0,Wt.z)(ge=>ge&&function yr(_){return"boolean"==typeof _}(ge)?function Jr(_,f,h,w){return(0,de.D)(f).pipe((0,Rt.b)(O=>(0,Be.z)(function bo(_,f){return null!==_&&f&&f(new Nt(_)),(0,X.of)(!0)}(O.route.parent,w),function Zn(_,f){return null!==_&&f&&f(new Pe(_)),(0,X.of)(!0)}(O.route,w),function Vi(_,f,h){const w=f[f.length-1],B=f.slice(0,f.length-1).reverse().map(ee=>function U(_){const f=_.routeConfig?_.routeConfig.canActivateChild:null;return f&&0!==f.length?{node:_,guards:f}:null}(ee)).filter(ee=>null!==ee).map(ee=>(0,Z.P)(()=>{const ge=ee.guards.map(Ze=>{const Mt=We(Ze,ee.node,h);let cn;if(function Nr(_){return _&&mi(_.canActivateChild)}(Mt))cn=vt(Mt.canActivateChild(w,_));else{if(!mi(Mt))throw new Error("Invalid CanActivateChild guard");cn=vt(Mt(w,_))}return cn.pipe(Fe())});return(0,X.of)(ge).pipe(Qi())}));return(0,X.of)(B).pipe(Qi())}(_,O.path,h),function br(_,f,h){const w=f.routeConfig?f.routeConfig.canActivate:null;if(!w||0===w.length)return(0,X.of)(!0);const O=w.map(B=>(0,Z.P)(()=>{const ee=We(B,f,h);let ge;if(function Mi(_){return _&&mi(_.canActivate)}(ee))ge=vt(ee.canActivate(f,_));else{if(!mi(ee))throw new Error("Invalid CanActivate guard");ge=vt(ee(f,_))}return ge.pipe(Fe())}));return(0,X.of)(O).pipe(Qi())}(_,O.route,h))),Fe(O=>!0!==O,!0))}(w,B,_,f):(0,X.of)(ge)),(0,mt.U)(ge=>Object.assign(Object.assign({},h),{guardsResult:ge})))})}(this.ngModule.injector,ge=>this.triggerEvent(ge)),(0,Pt.b)(ge=>{if(Di(ge.guardsResult)){const Mt=be(`Redirecting to "${this.serializeUrl(ge.guardsResult)}"`);throw Mt.url=ge.guardsResult,Mt}const Ze=new Ge(ge.id,this.serializeUrl(ge.extractedUrl),this.serializeUrl(ge.urlAfterRedirects),ge.targetSnapshot,!!ge.guardsResult);this.triggerEvent(Ze)}),(0,pe.h)(ge=>!!ge.guardsResult||(this.restoreHistory(ge),this.cancelNavigationTransition(ge,""),!1)),Mn(ge=>{if(ge.guards.canActivateChecks.length)return(0,X.of)(ge).pipe((0,Pt.b)(Ze=>{const Mt=new lt(Ze.id,this.serializeUrl(Ze.extractedUrl),this.serializeUrl(Ze.urlAfterRedirects),Ze.targetSnapshot);this.triggerEvent(Mt)}),(0,Jt.w)(Ze=>{let Mt=!1;return(0,X.of)(Ze).pipe(function It(_,f){return(0,Wt.z)(h=>{const{targetSnapshot:w,guards:{canActivateChecks:O}}=h;if(!O.length)return(0,X.of)(h);let B=0;return(0,de.D)(O).pipe((0,Rt.b)(ee=>function Xt(_,f,h,w){return function ln(_,f,h,w){const O=Vt(_);if(0===O.length)return(0,X.of)({});const B={};return(0,de.D)(O).pipe((0,Wt.z)(ee=>function rn(_,f,h,w){const O=We(_,f,w);return vt(O.resolve?O.resolve(f,h):O(f,h))}(_[ee],f,h,w).pipe((0,Pt.b)(ge=>{B[ee]=ge}))),Te(1),(0,Wt.z)(()=>Vt(B).length===O.length?(0,X.of)(B):et.E))}(_._resolve,_,f,w).pipe((0,mt.U)(B=>(_._resolvedData=B,_.data=Object.assign(Object.assign({},_.data),Si(_,h).resolve),null)))}(ee.route,w,_,f)),(0,Pt.b)(()=>B++),Te(1),(0,Wt.z)(ee=>B===O.length?(0,X.of)(h):et.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Pt.b)({next:()=>Mt=!0,complete:()=>{Mt||(this.restoreHistory(Ze),this.cancelNavigationTransition(Ze,"At least one route resolver didn't emit any value."))}}))}),(0,Pt.b)(Ze=>{const Mt=new St(Ze.id,this.serializeUrl(Ze.extractedUrl),this.serializeUrl(Ze.urlAfterRedirects),Ze.targetSnapshot);this.triggerEvent(Mt)}))}),Mn(ge=>{const{targetSnapshot:Ze,id:Mt,extractedUrl:cn,rawUrl:Bt,extras:{skipLocationChange:xn,replaceUrl:Pn}}=ge;return this.hooks.afterPreactivation(Ze,{navigationId:Mt,appliedUrlTree:cn,rawUrlTree:Bt,skipLocationChange:!!xn,replaceUrl:!!Pn})}),(0,mt.U)(ge=>{const Ze=function Tr(_,f,h){const w=Kn(_,f._root,h?h._root:void 0);return new pi(w,f)}(this.routeReuseStrategy,ge.targetSnapshot,ge.currentRouterState);return Object.assign(Object.assign({},ge),{targetRouterState:Ze})}),(0,Pt.b)(ge=>{this.currentUrlTree=ge.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ge.urlAfterRedirects,ge.rawUrl),this.routerState=ge.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ge.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ge),this.browserUrlTree=ge.urlAfterRedirects)}),((_,f,h)=>(0,mt.U)(w=>(new vr(f,w.targetRouterState,w.currentRouterState,h).activate(_),w)))(this.rootContexts,this.routeReuseStrategy,ge=>this.triggerEvent(ge)),(0,Pt.b)({next(){B=!0},complete(){B=!0}}),function Ct(_){return(0,Ce.e)((f,h)=>{try{f.subscribe(h)}finally{h.add(_)}})}(()=>{var ge;B||ee||this.cancelNavigationTransition(O,`Navigation ID ${O.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ge=this.currentNavigation)||void 0===ge?void 0:ge.id)===O.id&&(this.currentNavigation=null)}),Q(ge=>{if(ee=!0,function Ue(_){return _&&_[re]}(ge)){const Ze=Di(ge.url);Ze||(this.navigated=!0,this.restoreHistory(O,!0));const Mt=new je(O.id,this.serializeUrl(O.extractedUrl),ge.message);w.next(Mt),Ze?setTimeout(()=>{const cn=this.urlHandlingStrategy.merge(ge.url,this.rawUrlTree),Bt={skipLocationChange:O.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ho(O.source)};this.scheduleNavigation(cn,"imperative",null,Bt,{resolve:O.resolve,reject:O.reject,promise:O.promise})},0):O.resolve(!1)}else{this.restoreHistory(O,!0);const Ze=new J(O.id,this.serializeUrl(O.extractedUrl),ge);w.next(Ze);try{O.resolve(this.errorHandler(ge))}catch(Mt){O.reject(Mt)}}return et.E}))}))}resetRootComponentType(h){this.rootComponentType=h,this.routerState.root.component=this.rootComponentType}setTransition(h){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),h))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(h=>{const w="popstate"===h.type?"popstate":"hashchange";"popstate"===w&&setTimeout(()=>{var O;const B={replaceUrl:!0},ee=(null===(O=h.state)||void 0===O?void 0:O.navigationId)?h.state:null;if(ee){const Ze=Object.assign({},ee);delete Ze.navigationId,delete Ze.\u0275routerPageId,0!==Object.keys(Ze).length&&(B.state=Ze)}const ge=this.parseUrl(h.url);this.scheduleNavigation(ge,w,ee,B)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(h){this.events.next(h)}resetConfig(h){cr(h),this.config=h.map(Xi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(h,w={}){const{relativeTo:O,queryParams:B,fragment:ee,queryParamsHandling:ge,preserveFragment:Ze}=w,Mt=O||this.routerState.root,cn=Ze?this.currentUrlTree.fragment:ee;let Bt=null;switch(ge){case"merge":Bt=Object.assign(Object.assign({},this.currentUrlTree.queryParams),B);break;case"preserve":Bt=this.currentUrlTree.queryParams;break;default:Bt=B||null}return null!==Bt&&(Bt=this.removeEmptyProps(Bt)),function Zi(_,f,h,w,O){if(0===h.length)return Oi(f.root,f.root,f,w,O);const B=function fr(_){if("string"==typeof _[0]&&1===_.length&&"/"===_[0])return new rr(!0,0,_);let f=0,h=!1;const w=_.reduce((O,B,ee)=>{if("object"==typeof B&&null!=B){if(B.outlets){const ge={};return dt(B.outlets,(Ze,Mt)=>{ge[Mt]="string"==typeof Ze?Ze.split("/"):Ze}),[...O,{outlets:ge}]}if(B.segmentPath)return[...O,B.segmentPath]}return"string"!=typeof B?[...O,B]:0===ee?(B.split("/").forEach((ge,Ze)=>{0==Ze&&"."===ge||(0==Ze&&""===ge?h=!0:".."===ge?f++:""!=ge&&O.push(ge))}),O):[...O,B]},[]);return new rr(h,f,w)}(h);if(B.toRoot())return Oi(f.root,new Dt([],{}),f,w,O);const ee=function kr(_,f,h){if(_.isAbsolute)return new pr(f.root,!0,0);if(-1===h.snapshot._lastPathIndex){const B=h.snapshot._urlSegment;return new pr(B,B===f.root,0)}const w=On(_.commands[0])?0:1;return function uo(_,f,h){let w=_,O=f,B=h;for(;B>O;){if(B-=O,w=w.parent,!w)throw new Error("Invalid number of '../'");O=w.segments.length}return new pr(w,!1,O-B)}(h.snapshot._urlSegment,h.snapshot._lastPathIndex+w,_.numberOfDoubleDots)}(B,f,_),ge=ee.processChildren?gr(ee.segmentGroup,ee.index,B.commands):Fr(ee.segmentGroup,ee.index,B.commands);return Oi(ee.segmentGroup,ge,f,w,O)}(Mt,this.currentUrlTree,h,Bt,null!=cn?cn:null)}navigateByUrl(h,w={skipLocationChange:!1}){const O=Di(h)?h:this.parseUrl(h),B=this.urlHandlingStrategy.merge(O,this.rawUrlTree);return this.scheduleNavigation(B,"imperative",null,w)}navigate(h,w={skipLocationChange:!1}){return function Mo(_){for(let f=0;f<_.length;f++){const h=_[f];if(null==h)throw new Error(`The requested path contains ${h} segment at index ${f}`)}}(h),this.navigateByUrl(this.createUrlTree(h,w),w)}serializeUrl(h){return this.urlSerializer.serialize(h)}parseUrl(h){let w;try{w=this.urlSerializer.parse(h)}catch(O){w=this.malformedUriErrorHandler(O,this.urlSerializer,h)}return w}isActive(h,w){let O;if(O=!0===w?Object.assign({},Hn):!1===w?Object.assign({},eo):w,Di(h))return j(this.currentUrlTree,h,O);const B=this.parseUrl(h);return j(this.currentUrlTree,B,O)}removeEmptyProps(h){return Object.keys(h).reduce((w,O)=>{const B=h[O];return null!=B&&(w[O]=B),w},{})}processNavigations(){this.navigations.subscribe(h=>{this.navigated=!0,this.lastSuccessfulId=h.id,this.currentPageId=h.targetPageId,this.events.next(new Xe(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,h.resolve(!0)},h=>{this.console.warn(`Unhandled Navigation Error: ${h}`)})}scheduleNavigation(h,w,O,B,ee){var ge,Ze,Mt;if(this.disposed)return Promise.resolve(!1);const cn=this.transitions.value,Bt=ho(w)&&cn&&!ho(cn.source),xn=cn.rawUrl.toString()===h.toString(),Pn=cn.id===(null===(ge=this.currentNavigation)||void 0===ge?void 0:ge.id);if(Bt&&xn&&Pn)return Promise.resolve(!0);let Ur,mo,Ir;ee?(Ur=ee.resolve,mo=ee.reject,Ir=ee.promise):Ir=new Promise((Ao,ea)=>{Ur=Ao,mo=ea});const Dr=++this.navigationId;let go;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(O=this.location.getState()),go=O&&O.\u0275routerPageId?O.\u0275routerPageId:B.replaceUrl||B.skipLocationChange?null!==(Ze=this.browserPageId)&&void 0!==Ze?Ze:0:(null!==(Mt=this.browserPageId)&&void 0!==Mt?Mt:0)+1):go=0,this.setTransition({id:Dr,targetPageId:go,source:w,restoredState:O,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:h,extras:B,resolve:Ur,reject:mo,promise:Ir,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ir.catch(Ao=>Promise.reject(Ao))}setBrowserUrl(h,w){const O=this.urlSerializer.serialize(h),B=Object.assign(Object.assign({},w.extras.state),this.generateNgRouterState(w.id,w.targetPageId));this.location.isCurrentPathEqualTo(O)||w.extras.replaceUrl?this.location.replaceState(O,"",B):this.location.go(O,"",B)}restoreHistory(h,w=!1){var O,B;if("computed"===this.canceledNavigationResolution){const ee=this.currentPageId-h.targetPageId;"popstate"!==h.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(O=this.currentNavigation)||void 0===O?void 0:O.finalUrl)||0===ee?this.currentUrlTree===(null===(B=this.currentNavigation)||void 0===B?void 0:B.finalUrl)&&0===ee&&(this.resetState(h),this.browserUrlTree=h.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ee)}else"replace"===this.canceledNavigationResolution&&(w&&this.resetState(h),this.resetUrlToCurrentUrlTree())}resetState(h){this.routerState=h.currentRouterState,this.currentUrlTree=h.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,h.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(h,w){const O=new je(h.id,this.serializeUrl(h.extractedUrl),w);this.triggerEvent(O),h.resolve(!1)}generateNgRouterState(h,w){return"computed"===this.canceledNavigationResolution?{navigationId:h,\u0275routerPageId:w}:{navigationId:h}}}return _.\u0275fac=function(h){c.$Z()},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();function ho(_){return"imperative"!==_}let Tt=(()=>{class _{constructor(h,w,O,B,ee){this.router=h,this.route=w,this.tabIndexAttribute=O,this.renderer=B,this.el=ee,this.commands=null,this.onChanges=new Ye.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(h){if(null!=this.tabIndexAttribute)return;const w=this.renderer,O=this.el.nativeElement;null!==h?w.setAttribute(O,"tabindex",h):w.removeAttribute(O,"tabindex")}ngOnChanges(h){this.onChanges.next(this)}set routerLink(h){null!=h?(this.commands=Array.isArray(h)?h:[h],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const h={skipLocationChange:Lt(this.skipLocationChange),replaceUrl:Lt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,h),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Lt(this.preserveFragment)})}}return _.\u0275fac=function(h){return new(h||_)(c.Y36(ri),c.Y36(Jn),c.$8M("tabindex"),c.Y36(c.Qsj),c.Y36(c.SBq))},_.\u0275dir=c.lG2({type:_,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(h,w){1&h&&c.NdJ("click",function(){return w.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),_})(),Ft=(()=>{class _{constructor(h,w,O){this.router=h,this.route=w,this.locationStrategy=O,this.commands=null,this.href=null,this.onChanges=new Ye.x,this.subscription=h.events.subscribe(B=>{B instanceof Xe&&this.updateTargetUrlAndHref()})}set routerLink(h){this.commands=null!=h?Array.isArray(h)?h:[h]:null}ngOnChanges(h){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(h,w,O,B,ee){if(0!==h||w||O||B||ee||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ge={skipLocationChange:Lt(this.skipLocationChange),replaceUrl:Lt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ge),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Lt(this.preserveFragment)})}}return _.\u0275fac=function(h){return new(h||_)(c.Y36(ri),c.Y36(Jn),c.Y36(Ut.S$))},_.\u0275dir=c.lG2({type:_,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(h,w){1&h&&c.NdJ("click",function(B){return w.onClick(B.button,B.ctrlKey,B.shiftKey,B.altKey,B.metaKey)}),2&h&&c.uIk("target",w.target)("href",w.href,c.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),_})();function Lt(_){return""===_||!!_}class Hi{}class Er{preload(f,h){return(0,X.of)(null)}}let wn=(()=>{class _{constructor(h,w,O,B){this.router=h,this.injector=O,this.preloadingStrategy=B,this.loader=new Sr(O,w,Ze=>h.triggerEvent(new Ht(Ze)),Ze=>h.triggerEvent(new bt(Ze)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,pe.h)(h=>h instanceof Xe),(0,Rt.b)(()=>this.preload())).subscribe(()=>{})}preload(){const h=this.injector.get(c.h0i);return this.processRoutes(h,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(h,w){const O=[];for(const B of w)if(B.loadChildren&&!B.canLoad&&B._loadedConfig){const ee=B._loadedConfig;O.push(this.processRoutes(ee.module,ee.routes))}else B.loadChildren&&!B.canLoad?O.push(this.preloadConfig(h,B)):B.children&&O.push(this.processRoutes(h,B.children));return(0,de.D)(O).pipe((0,mn.J)(),(0,mt.U)(B=>{}))}preloadConfig(h,w){return this.preloadingStrategy.preload(w,()=>(w._loadedConfig?(0,X.of)(w._loadedConfig):this.loader.load(h.injector,w)).pipe((0,Wt.z)(B=>(w._loadedConfig=B,this.processRoutes(B.module,B.routes)))))}}return _.\u0275fac=function(h){return new(h||_)(c.LFG(ri),c.LFG(c.Sil),c.LFG(c.zs3),c.LFG(Hi))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})(),Or=(()=>{class _{constructor(h,w,O={}){this.router=h,this.viewportScroller=w,this.options=O,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},O.scrollPositionRestoration=O.scrollPositionRestoration||"disabled",O.anchorScrolling=O.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(h=>{h instanceof on?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=h.navigationTrigger,this.restoredId=h.restoredState?h.restoredState.navigationId:0):h instanceof Xe&&(this.lastId=h.id,this.scheduleScrollEvent(h,this.router.parseUrl(h.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(h=>{h instanceof S&&(h.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(h.position):h.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(h.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(h,w){this.router.triggerEvent(new S(h,"popstate"===this.lastSource?this.store[this.restoredId]:null,w))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return _.\u0275fac=function(h){c.$Z()},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();const Qn=new c.OlP("ROUTER_CONFIGURATION"),$i=new c.OlP("ROUTER_FORROOT_GUARD"),dr=[Ut.Ye,{provide:Ie,useClass:rt},{provide:ri,useFactory:function _s(_,f,h,w,O,B,ee={},ge,Ze){const Mt=new ri(null,_,f,h,w,O,nn(B));return ge&&(Mt.urlHandlingStrategy=ge),Ze&&(Mt.routeReuseStrategy=Ze),function ko(_,f){_.errorHandler&&(f.errorHandler=_.errorHandler),_.malformedUriErrorHandler&&(f.malformedUriErrorHandler=_.malformedUriErrorHandler),_.onSameUrlNavigation&&(f.onSameUrlNavigation=_.onSameUrlNavigation),_.paramsInheritanceStrategy&&(f.paramsInheritanceStrategy=_.paramsInheritanceStrategy),_.relativeLinkResolution&&(f.relativeLinkResolution=_.relativeLinkResolution),_.urlUpdateStrategy&&(f.urlUpdateStrategy=_.urlUpdateStrategy),_.canceledNavigationResolution&&(f.canceledNavigationResolution=_.canceledNavigationResolution)}(ee,Mt),ee.enableTracing&&Mt.events.subscribe(cn=>{var Bt,xn;null===(Bt=console.group)||void 0===Bt||Bt.call(console,`Router Event: ${cn.constructor.name}`),console.log(cn.toString()),console.log(cn),null===(xn=console.groupEnd)||void 0===xn||xn.call(console)}),Mt},deps:[Ie,Ii,Ut.Ye,c.zs3,c.Sil,ii,Qn,[class Ui{},new c.FiY],[class $n{},new c.FiY]]},Ii,{provide:Jn,useFactory:function Xs(_){return _.routerState.root},deps:[ri]},wn,Er,class Li{preload(f,h){return h().pipe(Q(()=>(0,X.of)(null)))}},{provide:Qn,useValue:{enableTracing:!1}}];function Vr(){return new c.PXZ("Router",ri)}let wo=(()=>{class _{constructor(h,w){}static forRoot(h,w){return{ngModule:_,providers:[dr,gs(h),{provide:$i,useFactory:Ro,deps:[[ri,new c.FiY,new c.tp0]]},{provide:Qn,useValue:w||{}},{provide:Ut.S$,useFactory:fu,deps:[Ut.lw,[new c.tBr(Ut.mr),new c.FiY],Qn]},{provide:Or,useFactory:hu,deps:[ri,Ut.EM,Qn]},{provide:Hi,useExisting:w&&w.preloadingStrategy?w.preloadingStrategy:Er},{provide:c.PXZ,multi:!0,useFactory:Vr},[Fo,{provide:c.ip1,multi:!0,useFactory:Co,deps:[Fo]},{provide:fo,useFactory:za,deps:[Fo]},{provide:c.tb,multi:!0,useExisting:fo}]]}}static forChild(h){return{ngModule:_,providers:[gs(h)]}}}return _.\u0275fac=function(h){return new(h||_)(c.LFG($i,8),c.LFG(ri,8))},_.\u0275mod=c.oAB({type:_}),_.\u0275inj=c.cJS({}),_})();function hu(_,f,h){return h.scrollOffset&&f.setOffset(h.scrollOffset),new Or(_,f,h)}function fu(_,f,h={}){return h.useHash?new Ut.Do(_,f):new Ut.b0(_,f)}function Ro(_){return"guarded"}function gs(_){return[{provide:c.deG,multi:!0,useValue:_},{provide:ii,multi:!0,useValue:_}]}let Fo=(()=>{class _{constructor(h){this.injector=h,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ye.x}appInitializer(){return this.injector.get(Ut.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let w=null;const O=new Promise(ge=>w=ge),B=this.injector.get(ri),ee=this.injector.get(Qn);return"disabled"===ee.initialNavigation?(B.setUpLocationChangeListener(),w(!0)):"enabled"===ee.initialNavigation||"enabledBlocking"===ee.initialNavigation?(B.hooks.afterPreactivation=()=>this.initNavigation?(0,X.of)(null):(this.initNavigation=!0,w(!0),this.resultOfPreactivationDone),B.initialNavigation()):w(!0),O})}bootstrapListener(h){const w=this.injector.get(Qn),O=this.injector.get(wn),B=this.injector.get(Or),ee=this.injector.get(ri),ge=this.injector.get(c.z2F);h===ge.components[0]&&(("enabledNonBlocking"===w.initialNavigation||void 0===w.initialNavigation)&&ee.initialNavigation(),O.setUpPreloading(),B.init(),ee.resetRootComponentType(ge.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return _.\u0275fac=function(h){return new(h||_)(c.LFG(c.zs3))},_.\u0275prov=c.Yz7({token:_,factory:_.\u0275fac}),_})();function Co(_){return _.appInitializer.bind(_)}function za(_){return _.bootstrapListener.bind(_)}const fo=new c.OlP("Router Initializer")}},qe=>{qe(qe.s=5664)}]); \ 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 05f902f6..98097621 100644 --- a/server/src/uds/templates/uds/admin/index.html +++ b/server/src/uds/templates/uds/admin/index.html @@ -98,7 +98,7 @@ - + \ No newline at end of file