text: (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},yLV6:function(t,e,n){var s;!function(r,i,o,a){"use strict";var l,h=["","webkit","Moz","MS","ms","o"],c=i.createElement("div"),u="function",d=Math.round,p=Math.abs,f=Date.now;function m(t,e,n){return setTimeout(C(t,n),e)}function g(t,e,n){return!!Array.isArray(t)&&(_(t,n[e],n),!0)}function _(t,e,n){var s;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)for(s=0;s<t.length;)e.call(n,t[s],s,t),s++;else for(s in t)t.hasOwnProperty(s)&&e.call(n,t[s],s,t)}function y(t,e,n){var s="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=r.console&&(r.console.warn||r.console.log);return i&&i.call(r.console,s,n),t.apply(this,arguments)}}l="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var s=arguments[n];if(s!==a&&null!==s)for(var r in s)s.hasOwnProperty(r)&&(e[r]=s[r])}return e}:Object.assign;var v=y((function(t,e,n){for(var s=Object.keys(e),r=0;r<s.length;)(!n||n&&t[s[r]]===a)&&(t[s[r]]=e[s[r]]),r++;return t}),"extend","Use `assign`."),b=y((function(t,e){return v(t,e,!0)}),"merge","Use `assign`.");function w(t,e,n){var s,r=e.prototype;(s=t.prototype=Object.create(r)).constructor=t,s._super=r,n&&l(s,n)}function C(t,e){return function(){return t.apply(e,arguments)}}function E(t,e){return typeof t==u?t.apply(e&&e[0]||a,e):t}function S(t,e){return t===a?e:t}function x(t,e,n){_(k(e),(function(e){t.addEventListener(e,n,!1)}))}function T(t,e,n){_(k(e),(function(e){t.removeEventListener(e,n,!1)}))}function A(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function D(t,e){return t.indexOf(e)>-1}function k(t){return t.trim().split(/\s+/g)}function R(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var s=0;s<t.length;){if(n&&t[s][n]==e||!n&&t[s]===e)return s;s++}return-1}function I(t){return Array.prototype.slice.call(t,0)}function O(t,e,n){for(var s=[],r=[],i=0;i<t.length;){var o=e?t[i][e]:t[i];R(r,o)<0&&s.push(t[i]),r[i]=o,i++}return n&&(s=e?s.sort((function(t,n){return t[e]>n[e]})):s.sort()),s}function P(t,e){for(var n,s,r=e[0].toUpperCase()+e.slice(1),i=0;i<h.length;){if((s=(n=h[i])?n+r:e)in t)return s;i++}return a}var N=1;function M(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var F="ontouchstart"in r,V=P(r,"PointerEvent")!==a,L=F&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),j=25,$=1,U=2,z=4,B=8,H=1,q=2,Y=4,W=8,K=16,Z=q|Y,Q=W|K,G=Z|Q,X=["x","y"],J=["clientX","clientY"];function tt(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){E(t.options.enable,[t])&&n.handler(e)},this.init()}function et(t,e,n){var s=n.pointers.length,r=n.changedPointers.length,i=e&$&&s-r==0,o=e&(z|B)&&s-r==0;n.isFirst=!!i,n.isFinal=!!o,i&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,s=e.pointers,r=s.length;n.firstInput||(n.firstInput=nt(e)),r>1&&!n.firstMultiple?n.firstMultiple=nt(e):1===r&&(n.firstMultiple=!1);var i=n.firstInput,o=n.firstMultiple,l=o?o.center:i.center,h=e.center=st(s);e.timeStamp=f(),e.deltaTime=e.timeStamp-i.timeStamp,e.angle=at(l,h),e.distance=ot(l,h),function(t,e){var n=e.center,s=t.offsetDelta||{},r=t.prevDelta||{},i=t.prevInput||{};e.eventType!==$&&i.eventType!==z||(r=t.prevDelta={x:i.deltaX||0,y:i.deltaY||0},s=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-s.x),e.deltaY=r.y+(n.y-s.y)}(n,e),e.offsetDirection=it(e.deltaX,e.deltaY);var c,u,d=rt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=d.x,e.overallVelocityY=d.y,e.overallVelocity=p(d.x)>p(d.y)?d.x:d.y,e.scale=o?(c=o.pointers,ot((u=s)[0],u[1],J)/ot(c[0],c[1],J)):1,e.rotation=o?function(t,e){return at(e[1],e[0],J)+at(t[1],t[0],J)}(o.pointers,s):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,s,r,i,o=t.lastInterval||e,l=e.timeStamp-o.timeStamp;if(e.eventType!=B&&(l>j||o.velocity===a)){var h=e.deltaX-o.deltaX,c=e.deltaY-o.deltaY,u=rt(l,h,c);s=u.x,r=u.y,n=p(u.x)>p(u.y)?u.x:u.y,i=it(h,c),t.lastInterval=e}else n=o.velocity,s=o.velocityX,r=o.velocityY,i=o.direction;e.velocity=n,e.velocityX=s,e.velocityY=r,e.direction=i}(n,e);var m=t.element;A(e.srcEvent.target,m)&&(m=e.srcEvent.target),e.target=m}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function nt(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:d(t.pointers[n].clientX),clientY:d(t.pointers[n].clientY)},n++;return{timeStamp:f(),pointers:e,center:st(e),deltaX:t.deltaX,deltaY:t.deltaY}}function st(t){var e=t.length;if(1===e)return{x:d(t[0].clientX),y:d(t[0].clientY)};for(var n=0,s=0,r=0;r<e;)n+=t[r].clientX,s+=t[r].clientY,r++;return{x:d(n/e),y:d(s/e)}}function rt(t,e,n){return{x:e/t||0,y:n/t||0}}function it(t,e){return t===e?H:p(t)>=p(e)?t<0?q:Y:e<0?W:K}function ot(t,e,n){n||(n=X);var s=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(s*s+r*r)}function at(t,e,n){return n||(n=X),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}tt.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(M(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(M(this.element),this.evWin,this.domHandler)}};var lt={mousedown:$,mousemove:U,mouseup:z},ht="mousedown",ct="mousemove mouseup";function ut(){this.evEl=ht,this.evWin=ct,this.pressed=!1,tt.apply(this,arguments)}w(ut,tt,{handler:function(t){var e=lt[t.type];e&$&&0===t.button&&(this.pressed=!0),e&U&&1!==t.which&&(e=z),this.pressed&&(e&z&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var dt={pointerdown:$,pointermove:U,pointerup:z,pointercancel:B,pointerout:B},pt={2:"touch",3:"pen",4:"mouse",5:"kinect"},ft="pointerdown",mt="pointermove pointerup pointercancel";function gt(){this.evEl=ft,this.evWin=mt,tt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(ft="MSPointerDown",mt="MSPointerMove MSPointerUp MSPointerCancel"),w(gt,tt,{handler:function(t){var e=this.store,n=!1,s=t.type.toLowerCase().replace("ms",""),r=dt[s],i=pt[t.pointerType]||t.pointerType,o="touch"==i,a=R(e,t.pointerId,"pointerId");r&$&&(0===t.button||o)?a<0&&(e.push(t),a=e.length-1):r&(z|B)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:i,srcEvent:t}),n&&e.splice(a,1))}});var _t={touchstart:$,touchmove:U,touchend:z,touchcancel:B},yt="touchstart",vt="touchstart touchmove touchend touchcancel";function bt(){this.evTarget=yt,this.evWin=vt,this.started=!1,tt.apply(this,arguments)}function wt(t,e){var n=I(t.touches),s=I(t.changedTouches);return e&(z|B)&&(n=O(n.concat(s),"identifier",!0)),[n,s]}w(bt,tt,{handler:function(t){var e=_t[t.type];if(e===$&&(this.started=!0),this.started){var n=wt.call(this,t,e);e&(z|B)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var Ct={touchstart:$,touchmove:U,touchend:z,touchcancel:B},Et="touchstart touchmove touchend touchcancel";function St(){this.evTarget=Et,this.targetIds={},tt.apply(this,arguments)}function xt(t,e){var n=I(t.touches),s=this.targetIds;if(e&($|U)&&1===n.length)return s[n[0].identifier]=!0,[n,n];var r,i,o=I(t.changedTouches),a=[],l=this.target;if(i=n.filter((function(t){return A(t.target,l)})),e===$)for(r=0;r<i.length;)s[i[r].identifier]=!0,r++;for(r=0;r<o.length;)s[o[r].identifier]&&a.push(o[r]),e&(z|B)&&delete s[o[r].identifier],r++;return a.length?[O(i.concat(a),"identifier",!0),a]:void 0}w(St,tt,{handler:function(t){var e=Ct[t.type],n=xt.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var Tt=2500,At=25;function Dt(){tt.apply(this,arguments);var t=C(this.handler,this);this.touch=new St(this.manager,t),this.mouse=new ut(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function kt(t,e){t&$?(this.primaryTouch=e.changedPointers[0].identifier,Rt.call(this,e)):t&(z|B)&&Rt.call(this,e)}function Rt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var s=this.lastTouches;setTimeout((function(){var t=s.indexOf(n);t>-1&&s.splice(t,1)}),Tt)}}function It(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,s=0;s<this.lastTouches.length;s++){var r=this.lastTouches[s],i=Math.abs(e-r.x),o=Math.abs(n-r.y);if(i<=At&&o<=At)return!0}return!1}w(Dt,tt,{handler:function(t,e,n){var s="mouse"==n.pointerType;if(!(s&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)kt.call(this,e,n);else if(s&&It.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ot=P(c.style,"touchAction"),Pt=Ot!==a,Nt=function(){if(!Pt)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||r.CSS.supports("touch-action",n)})),t}();function Mt(t,e){this.manager=t,this.set(e)}Mt.prototype={set:function(t){"compute"==t&&(t=this.compute()),Pt&&this.manager.element.style&&Nt[t]&&(this.manager.element.style[Ot]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return _(this.manager.recognizers,(function(e){E(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(D(t,"none"))return"none";var e=D(t,"pan-x"),n=D(t,"pan-y");return e&&n?"none":e||n?e?"pan-x":"pan-y":D(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var s=this.actions,r=D(s,"none")&&!Nt.none,i=D(s,"pan-y")&&!Nt["pan-y"],o=D(s,"pan-x")&&!Nt["pan-x"];if(r&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!o||!i)return r||i&&n&Z||o&&n&Q?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Ft=1,Vt=2,Lt=4,jt=8,$t=jt,Ut=16;function zt(t){this.options=l({},this.defaults,t||{}),this.id=N++,this.manager=null,this.options.enable=S(this.options.enable,!0),this.state=Ft,this.simultaneous={},this.requireFail=[]}function Bt(t){return t&Ut?"cancel":t&jt?"end":t&Lt?"move":t&Vt?"start":""}function Ht(t){return t==K?"down":t==W?"up":t==q?"left":t==Y?"right":""}function qt(t,e){var n=e.manager;return n?n.get(t):t}function Yt(){zt.apply(this,arguments)}function Wt(){Yt.apply(this,arguments),this.pX=null,this.pY=null}function Kt(){Yt.apply(this,arguments)}function Zt(){zt.apply(this,arguments),this._timer=null,this._input=null}function Qt(){Yt.apply(this,arguments)}function Gt(){Yt.apply(this,arguments)}function Xt(){zt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Jt(t,e){return(e=e||{}).recognizers=S(e.recognizers,Jt.defaults.preset),new te(t,e)}function te(t,e){var n;this.options=l({},Jt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(V?gt:L?St:F?Dt:ut))(n,et),this.touchAction=new Mt(this,this.options.touchAction),ee(this,!0),_(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function ee(t,e){var n,s=t.element;s.style&&(_(t.options.cssProps,(function(r,i){n=P(s.style,i),e?(t.oldCssProps[n]=s.style[n],s.style[n]=r):s.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}zt.prototype={defaults:{},set:function(t){return l(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(g(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=qt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return g(t,"dropRecognizeWith",this)?this:(t=qt(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(g(t,"requireFailure",this))return this;var e=this.requireFail;return-1===R(e,t=qt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(g(t,"dropRequireFailure",this))return this;t=qt(t,this);var e=R(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function s(n){e.manager.emit(n,t)}n<jt&&s(e.options.event+Bt(n)),s(e.options.event),t.additionalEvent&&s(t.additionalEvent),n>=jt&&s(e.options.event+Bt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Ft)))return!1;t++}return!0},recognize:function(t){var e=l({},t);if(!E(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&($t|Ut|32)&&(this.state=Ft),this.state=this.process(e),this.state&(Vt|Lt|jt|Ut)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},w(Yt,zt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,s=e&(Vt|Lt),r=this.attrTest(t);return s&&(n&B||!r)?e|Ut:s||r?n&z?e|jt:e&Vt?e|Lt:Vt:32}}),w(Wt,Yt,{defaults:{event:"pan",threshold:10,pointers:1,direction:G},getTouchAction:function(){var t=this.options.direction,e=[];return t&Z&&e.push("pan-y"),t&Q&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,s=t.distance,r=t.direction,i=t.deltaX,o=t.deltaY;return r&e.direction||(e.direction&Z?(r=0===i?H:i<0?q:Y,n=i!=this.pX,s=Math.abs(t.deltaX)):(r=0===o?H:o<0?W:K,n=o!=this.pY,s=Math.abs(t.deltaY))),t.direction=r,n&&s>e.threshold&&r&e.direction},attrTest:function(t){return Yt.prototype.attrTest.call(this,t)&&(this.state&Vt||!(this.state&Vt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ht(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),w(Kt,Yt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Vt)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),w(Zt,zt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,s=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!s||!n||t.eventType&(z|B)&&!r)this.reset();else if(t.eventType&$)this.reset(),this._timer=m((function(){this.state=$t,this.tryEmit()}),e.time,this);else if(t.eventType&z)return $t;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===$t&&(t&&t.eventType&z?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),w(Qt,Yt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Vt)}}),w(Gt,Yt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Z|Q,pointers:1},getTouchAction:function(){return Wt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Z|Q)?e=t.overallVelocity:n&Z?e=t.overallVelocityX:n&Q&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&p(e)>this.options.velocity&&t.eventType&z},emit:function(t){var e=Ht(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),w(Xt,zt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,s=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&$&&0===this.count)return this.failTimeout();if(s&&r&&n){if(t.eventType!=z)return this.failTimeout();var i=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||ot(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,o&&i?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=m((function(){this.state=$t,this.tryEmit()}),e.interval,this),Vt):$t}return 32},failTimeout:function(){return this._timer=m((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==$t&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Jt.VERSION="2.0.7",Jt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Qt,{enable:!1}],[Kt,{enable:!1},["rotate"]],[Gt,{direction:Z}],[Wt,{direction:Z},["swipe"]],[Xt],[Xt,{event:"doubletap",taps:2},["tap"]],[Zt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},te.prototype={set:function(t){return l(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var s=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&$t)&&(r=e.curRecognizer=null);for(var i=0;i<s.length;)n=s[i],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(Vt|Lt|jt)&&(r=e.curRecognizer=n),i++}},get:function(t){if(t instanceof zt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(g(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(g(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=R(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var n=this.handlers;return _(k(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==a){var n=this.handlers;return _(k(t),(function(t){e?n[t]&&n[t].splice(R(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=i.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var s=0;s<n.length;)n[s](e),s++}},destroy:function(){this.element&&ee(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Jt,{INPUT_START:$,INPUT_MOVE:U,INPUT_END:z,INPUT_CANCEL:B,STATE_POSSIBLE:Ft,STATE_BEGAN:Vt,STATE_CHANGED:Lt,STATE_ENDED:jt,STATE_RECOGNIZED:$t,STATE_CANCELLED:Ut,STATE_FAILED:32,DIRECTION_NONE:H,DIRECTION_LEFT:q,DIRECTION_RIGHT:Y,DIRECTION_UP:W,DIRECTION_DOWN:K,DIRECTION_HORIZONTAL:Z,DIRECTION_VERTICAL:Q,DIRECTION_ALL:G,Manager:te,Input:tt,TouchAction:Mt,TouchInput:St,MouseInput:ut,PointerEventInput:gt,TouchMouseInput:Dt,SingleTouchInput:bt,Recognizer:zt,AttrRecognizer:Yt,Tap:Xt,Pan:Wt,Swipe:Gt,Pinch:Kt,Rotate:Qt,Press:Zt,on:x,off:T,each:_,merge:b,extend:v,assign:l,inherit:w,bindFn:C,prefixed:P}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=Jt,(s=(function(){return Jt}).call(e,n,e,t))===a||(t.exports=s)}(window,document)},zUnb:function(t,e,n){"use strict";function s(t){return"function"==typeof t}n.r(e),n("yLV6");let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){r=t},get useDeprecatedSynchronousErrorHandling(){return r}};function o(t){setTimeout(()=>{throw t})}const a={closed:!0,next(t){},error(t){if(i.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=Array.isArray||(t=>t&&"number"==typeof t.length);function h(t){return null!==t&&"object"==typeof t}function c(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}c.prototype=Object.create(Error.prototype);const u=c;let d=(()=>{class t{constructor(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let t,e=!1;if(this.closed)return;let{_parent:n,_parents:r,_unsubscribe:i,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let a=-1,c=r?r.length:0;for(;n;)n.remove(this),n=++a<c&&r[a]||null;if(s(i))try{i.call(this)}catch(d){e=!0,t=d instanceof u?p(d.errors):[d]}if(l(o))for(a=-1,c=o.length;++a<c;){const n=o[a];if(h(n))try{n.unsubscribe()}catch(d){e=!0,t=t||[],d instanceof u?t=t.concat(p(d.errors)):t.push(d)}}if(e)throw new u(t)}add(e){let n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;(n=new t)._subscriptions=[e]}break;default:if(!e)return t.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(n._addParent(this)){const t=this._subscriptions;t?t.push(n):this._subscriptions=[n]}return n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}_addParent(t){let{_parent:e,_parents:n}=this;return e!==t&&(e?n?-1===n.indexOf(t)&&(n.push(t),!0):(this._parents=[t],!0):(this._parent=t,!0))}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function p(t){return t.reduce((t,e)=>t.concat(e instanceof u?e.errors:e),[])}const f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class m extends d{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof m?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[f](){return this}static create(t,e,n){const s=new m(t,e,n);return s.syncErrorThrowable=!1,s}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:t,_parents:e}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this}}class g extends m{constructor(t,e,n,r){let i;super(),this._parentSubscriber=t;let o=this;s(e)?i=e:e&&(i=e.next,n=e.error,r=e.complete,e!==a&&(s((o=Object.create(e)).unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(s){return i.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const _="function"==typeof Symbol&&Symbol.observable||"@@observable";function y(){}function v(...t){return b(t)}function b(t){return t?1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}:y}let w=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:s}=this,r=function(t,e,n){if(t){if(t instanceof m)return t;if(t[f])return t[f]()}return t||e||n?new m(t,e,n):new m(a)}(t,e,n);if(r.add(s?s.call(r,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),i.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(t){try{return this._subscribe(t)}catch(e){i.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof m?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=C(e))((e,n)=>{let s;s=this.subscribe(e=>{try{t(e)}catch(r){n(r),s&&s.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[_](){return this}pipe(...t){return 0===t.length?this:b(t)(this)}toPromise(t){return new(t=C(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function C(t){if(t||(t=i.Promise||Promise),!t)throw new Error("no Promise impl found");return t}function E(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}E.prototype=Object.create(Error.prototype);const S=E;class x extends d{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class T extends m{constructor(t){super(t),this.destination=t}}let A=(()=>{class t extends w{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new T(this)}lift(t){const e=new D(this,this);return e.operator=t,e}next(t){if(this.closed)throw new S;if(!this.isStopped){const{observers:e}=this,n=e.length,s=e.slice();for(let r=0;r<n;r++)s[r].next(t)}}error(t){if(this.closed)throw new S;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,s=e.slice();for(let r=0;r<n;r++)s[r].error(t);this.observers.length=0}complete(){if(this.closed)throw new S;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let s=0;s<e;s++)n[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new S;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new S;return this.hasError?(t.error(this.thrownError),d.EMPTY):this.isStopped?(t.complete(),d.EMPTY):(this.observers.push(t),new x(this,t))}asObservable(){const t=new w;return t.source=this,t}}return t.create=(t,e)=>new D(t,e),t})();class D extends A{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):d.EMPTY}}function k(t){return t&&"function"==typeof t.schedule}class R extends m{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const I=t=>e=>{for(let n=0,s=t.length;n<s&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()},O=t=>e=>(t.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e);function P(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const N=P(),M=t=>e=>{const n=t[N]();for(;;){const t=n.next();if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e},F=t=>e=>{const n=t[_]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)},V=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function L(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const j=t=>{if(t instanceof w)return e=>t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e);if(t&&"function"==typeof t[_])return F(t);if(V(t))return I(t);if(L(t))return O(t);if(t&&"function"==typeof t[N])return M(t);{const e=h(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function $(t,e,n,s,r=new R(t,n,s)){if(!r.closed)return j(e)(r)}class U extends m{notifyNext(t,e,n,s,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function z(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new B(t,e))}}class B{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new H(t,this.project,this.thisArg))}}class H extends m{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function q(t,e){return new w(e?n=>{const s=new d;let r=0;return s.add(e.schedule((function(){r!==t.length?(n.next(t[r++]),n.closed||s.add(this.schedule())):n.complete()}))),s}:I(t))}function Y(t,e){if(!e)return t instanceof w?t:new w(j(t));if(null!=t){if(function(t){return t&&"function"==typeof t[_]}(t))return function(t,e){return new w(e?n=>{const s=new d;return s.add(e.schedule(()=>{const r=t[_]();s.add(r.subscribe({next(t){s.add(e.schedule(()=>n.next(t)))},error(t){s.add(e.schedule(()=>n.error(t)))},complete(){s.add(e.schedule(()=>n.complete()))}}))})),s}:F(t))}(t,e);if(L(t))return function(t,e){return new w(e?n=>{const s=new d;return s.add(e.schedule(()=>t.then(t=>{s.add(e.schedule(()=>{n.next(t),s.add(e.schedule(()=>n.complete()))}))},t=>{s.add(e.schedule(()=>n.error(t)))}))),s}:O(t))}(t,e);if(V(t))return q(t,e);if(function(t){return t&&"function"==typeof t[N]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new w(e?n=>{const s=new d;let r;return s.add(()=>{r&&"function"==typeof r.return&&r.return()}),s.add(e.schedule(()=>{r=t[N](),s.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(s){return void n.error(s)}e?n.complete():(n.next(t),this.schedule())})))})),s}:M(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function W(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?s=>s.pipe(W((n,s)=>Y(t(n,s)).pipe(z((t,r)=>e(n,t,s,r))),n)):("number"==typeof e&&(n=e),e=>e.lift(new K(t,n)))}class K{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new Z(t,this.project,this.concurrent))}}class Z extends U{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(e,t,n)}_innerSub(t,e,n){const s=new R(this,void 0,void 0);this.destination.add(s),$(this,t,e,n,s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,s,r){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Q(t){return t}function G(t=Number.POSITIVE_INFINITY){return W(Q,t)}function X(...t){let e=Number.POSITIVE_INFINITY,n=null,s=t[t.length-1];return k(s)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof s&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof w?t[0]:G(e)(q(t,n))}function J(){return function(t){return t.lift(new tt(t))}}class tt{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const s=new et(t,n),r=e.subscribe(s);return s.closed||(s.connection=n.connect()),r}}class et extends m{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,s=t._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}const nt=class extends w{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new d).add(this.source.subscribe(new rt(this.getSubject(),this))),t.closed?(this._connection=null,t=d.EMPTY):this._connection=t),t}refCount(){return J()(this)}}.prototype,st={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:nt._subscribe},_isComplete:{value:nt._isComplete,writable:!0},getSubject:{value:nt.getSubject},connect:{value:nt.connect},refCount:{value:nt.refCount}};class rt extends T{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function it(){return new A}const ot="__parameters__";function at(t,e,n){const s=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return s.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,s){const r=t.hasOwnProperty(ot)?t[ot]:Object.defineProperty(t,ot,{value:[]})[ot];for(;r.length<=s;)r.push(null);return(r[s]=r[s]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r}const lt=at("Inject",t=>({token:t})),ht=at("Optional"),ct=at("Self"),ut=at("SkipSelf");var dt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function pt(t){for(let e in t)if(t[e]===pt)return e;throw Error("Could not find renamed property on target object.")}function ft(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function mt(t){const e=t[gt];return e&&e.token===t?e:null}const gt=pt({ngInjectableDef:pt});function _t(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(_t).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}const yt=pt({__forward_ref__:pt});function vt(t){return t.__forward_ref__=vt,t.toString=function(){return _t(this())},t}function bt(t){const e=t;return"function"==typeof e&&e.hasOwnProperty(yt)&&e.__forward_ref__===vt?e():t}const wt="undefined"!=typeof globalThis&&globalThis,Ct="undefined"!=typeof window&&window,Et="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,St="undefined"!=typeof global&&global,xt=wt||St||Ct||Et;class Tt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.ngInjectableDef=ft({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const At=new Tt("INJECTOR",-1),Dt=new Object,kt="ngTempTokenPath",Rt="ngTokenPath",It=/\n/gm,Ot="\u0275",Pt="__source",Nt=pt({provide:String,useValue:pt});let Mt,Ft=void 0;function Vt(t){const e=Ft;return Ft=t,e}function Lt(t,e=dt.Default){if(void 0===Ft)throw new Error("inject() must be called from an injection context");return null===Ft?function(t,e,n){const s=mt(t);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&dt.Optional)return null;throw new Error(`Injector: NOT_FOUND [${_t(t)}]`)}(t,0,e):Ft.get(t,e&dt.Optional?null:void 0,e)}function jt(t,e=dt.Default){return(Mt||Lt)(t,e)}const $t=jt;class Ut{get(t,e=Dt){if(e===Dt){const e=new Error(`NullInjectorError: No provider for ${_t(t)}!`);throw e.name="NullInjectorError",e}return e}}function zt(t,e,n,s=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Ot?t.substr(2):t;let r=_t(e);if(e instanceof Array)r=e.map(_t).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let s=e[n];t.push(n+":"+("string"==typeof s?JSON.stringify(s):_t(s)))}r=`{${t.join(", ")}}`}return`${n}${s?"("+s+")":""}[${r}]: ${t.replace(It,"\n  ")}`}const Bt=new Tt("The presence of this token marks an injector as being the root injector."),Ht=function(t,e,n){return new Gt(t,e,n)};let qt=(()=>{class t{static create(t,e){return Array.isArray(t)?Ht(t,e,""):Ht(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Dt,t.NULL=new Ut,t.ngInjectableDef=ft({token:t,providedIn:"any",factory:()=>jt(At)}),t.__NG_ELEMENT_ID__=-1,t})();const Yt=function(t){return t},Wt=[],Kt=Yt,Zt=function(){return Array.prototype.slice.call(arguments)},Qt="\u0275";class Gt{constructor(t,e=qt.NULL,n=null){this.parent=e,this.source=n;const s=this._records=new Map;s.set(qt,{token:qt,fn:Yt,deps:Wt,value:this,useNew:!1}),s.set(At,{token:At,fn:Yt,deps:Wt,value:this,useNew:!1}),function t(e,n){if(n)if((n=bt(n))instanceof Array)for(let s=0;s<n.length;s++)t(e,n[s]);else{if("function"==typeof n)throw Jt("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Jt("Unexpected provider",n);{let t=bt(n.provide);const s=function(t){const e=function(t){let e=Wt;const n=t.deps;if(n&&n.length){e=[];for(let t=0;t<n.length;t++){let s=6,r=bt(n[t]);if(r instanceof Array)for(let t=0,e=r;t<e.length;t++){const n=e[t];n instanceof ht||n==ht?s|=1:n instanceof ut||n==ut?s&=-3:n instanceof ct||n==ct?s&=-5:r=n instanceof lt?n.token:bt(n)}e.push({token:r,options:s})}}else if(t.useExisting)e=[{token:bt(t.useExisting),options:6}];else if(!(n||Nt in t))throw Jt("'deps' required",t);return e}(t);let n=Yt,s=Wt,r=!1,i=bt(t.provide);if(Nt in t)s=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)r=!0,n=bt(t.useClass);else{if("function"!=typeof i)throw Jt("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);r=!0,n=i}return{deps:e,fn:n,useNew:r,value:s}}(n);if(!0===n.multi){let s=e.get(t);if(s){if(s.fn!==Zt)throw Xt(t)}else e.set(t,s={token:n.provide,deps:[],useNew:!1,fn:Zt,value:Wt});s.deps.push({token:t=n,options:6})}const r=e.get(t);if(r&&r.fn==Zt)throw Xt(t);e.set(t,s)}}}(s,t)}get(t,e,n=dt.Default){const s=this._records.get(t);try{return function t(e,n,s,r,i,o){try{return function(e,n,s,r,i,o){let a;if(!n||o&dt.SkipSelf)o&dt.Self||(a=r.get(e,i,dt.Default));else{if((a=n.value)==Kt)throw Error(Qt+"Circular dependency");if(a===Wt){n.value=Kt;let e=void 0,i=n.useNew,o=n.fn,l=n.deps,h=Wt;if(l.length){h=[];for(let e=0;e<l.length;e++){const n=l[e],i=n.options,o=2&i?s.get(n.token):void 0;h.push(t(n.token,o,s,o||4&i?r:qt.NULL,1&i?null:qt.THROW_IF_NOT_FOUND,dt.Default))}}n.value=a=i?new o(...h):o.apply(e,h)}}return a}(e,n,s,r,i,o)}catch(a){throw a instanceof Error||(a=new Error(a)),(a[kt]=a[kt]||[]).unshift(e),n&&n.value==Kt&&(n.value=Wt),a}}(t,s,this._records,this.parent,e,n)}catch(r){return function(t,e,n,s){const r=t[kt];throw e[Pt]&&r.unshift(e[Pt]),t.message=zt("\n"+t.message,r,"StaticInjectorError",s),t[Rt]=r,t[kt]=null,t}(r,t,0,this.source)}}toString(){const t=[];return this._records.forEach((e,n)=>t.push(_t(n))),`StaticInjector[${t.join(", ")}]`}}function Xt(t){return Jt("Cannot mix multi providers and regular providers",t)}function Jt(t,e){return new Error(zt(t,e,"StaticInjectorError"))}const te="ngDebugContext",ee="ngOriginalError",ne="ngErrorLogger",se=new Tt("AnalyzeForEntryComponents"),re=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),ie=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(xt))();let oe=!0,ae=!1;function le(){return ae=!0,oe}class he{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),this.inertBodyElement=this.inertDocument.createElement("body"),t.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(s){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t="<body><remove></remove>"+t+"</body>";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(t){const e=t.attributes;for(let s=e.length-1;0<s;s--){const n=e.item(s).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const ce=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ue=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function de(t){return(t=String(t)).match(ce)||t.match(ue)?t:(le()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function pe(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function fe(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const me=pe("area,br,col,hr,img,wbr"),ge=pe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_e=pe("rp,rt"),ye=fe(_e,ge),ve=fe(me,fe(ge,pe("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),fe(_e,pe("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ye),be=pe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),we=pe("srcset"),Ce=fe(be,we,pe("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),pe("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Ee=pe("script,style,template");class Se{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!ve.hasOwnProperty(e))return this.sanitizedSomething=!0,!Ee.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r<n.length;r++){const t=n.item(r),e=t.name,i=e.toLowerCase();if(!Ce.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=t.value;be[i]&&(o=de(o)),we[i]&&(s=o,o=(s=String(s)).split(",").map(t=>de(t.trim())).join(", ")),this.buf.push(" ",e,'="',Ae(o),'"')}var s;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ve.hasOwnProperty(e)&&!me.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Ae(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const xe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Te=/([^\#-~ |!])/g;function Ae(t){return t.replace(/&/g,"&amp;").replace(xe,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Te,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let De;function ke(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const Re=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}();class Ie{}const Oe=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Pe=/^url\(([^)]+)\)$/;function Ne(t){return t[te]}function Me(t){return t[ee]}function Fe(t,...e){t.error(...e)}class Ve{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),s=function(t){return t[ne]||Fe}(t);s(this._console,"ERROR",t),e&&s(this._console,"ORIGINAL ERROR",e),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Ne(t)?Ne(t):this._findContext(Me(t)):null}_findOriginalError(t){let e=Me(t);for(;e&&Me(e);)e=Me(e);return e}}const Le=/([A-Z])/g;function je(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}let $e=null;function Ue(){if(!$e){const t=xt.Symbol;if(t&&t.iterator)$e=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&($e=n)}}}return $e}function ze(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function Be(t,e){const n=qe(t),s=qe(e);if(n&&s)return function(t,e,n){const s=t[Ue()](),r=e[Ue()]();for(;;){const t=s.next(),e=r.next();if(t.done&&e.done)return!0;if(t.done||e.done)return!1;if(!n(t.value,e.value))return!1}}(t,e,Be);{const r=t&&("object"==typeof t||"function"==typeof t),i=e&&("object"==typeof e||"function"==typeof e);return!(n||!r||s||!i)||ze(t,e)}}class He{constructor(t){this.wrapped=t}static wrap(t){return new He(t)}static unwrap(t){return He.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof He}}function qe(t){return!!Ye(t)&&(Array.isArray(t)||!(t instanceof Map)&&Ue()in t)}function Ye(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function We(t){return!!t&&"function"==typeof t.then}function Ke(t){return!!t&&"function"==typeof t.subscribe}class Ze{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}class Qe{}class Ge{}function Xe(t){const e=Error(`No component factory found for ${_t(t)}. Did you add it to @NgModule.entryComponents?`);return e[Je]=t,e}const Je="ngComponent";class tn{resolveComponentFactory(t){throw Xe(t)}}let en=(()=>{class t{}return t.NULL=new tn,t})();class nn{constructor(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(let s=0;s<t.length;s++){const e=t[s];this._factories.set(e.componentType,e)}}resolveComponentFactory(t){let e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw Xe(t);return new sn(e,this._ngModule)}}class sn extends Ge{constructor(t,e){super(),this.factory=t,this.ngModule=e,this.selector=t.selector,this.componentType=t.componentType,this.ngContentSelectors=t.ngContentSelectors,this.inputs=t.inputs,this.outputs=t.outputs}create(t,e,n,s){return this.factory.create(t,e,n,s||this.ngModule)}}class rn{}class on{}function an(...t){}let ln=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>hn(t),t})();const hn=an;class cn{}class un{}const dn=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let pn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>fn(),t})();const fn=an;class mn{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const gn=new mn("8.1.3");class _n{constructor(){}supports(t){return qe(t)}create(t){return new vn(t)}}const yn=(t,e)=>e;class vn{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||yn}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,s=0,r=null;for(;e||n;){const i=!n||e&&e.currentIndex<En(n,s,r)?e:n,o=En(i,s,r),a=i.currentIndex;if(i===n)s--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)s++;else{r||(r=[]);const t=o-s,e=a-s;if(t!=e){for(let n=0;n<t;n++){const s=n<r.length?r[n]:r[n]=0,i=s+n;e<=i&&i<t&&(r[n]=s+1)}r[i.previousIndex]=e-t}}o!==a&&t(i,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!qe(t))throw new Error(`Error trying to diff '${_t(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,s,r=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)s=this._trackByFn(e,n=t[e]),null!==r&&ze(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,n,s,e)),ze(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,s,e),i=!0),r=r._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[Ue()]();let s;for(;!(s=n.next()).done;)e(s.value)}}(t,t=>{s=this._trackByFn(e,t),null!==r&&ze(r.trackById,s)?(i&&(r=this._verifyReinsertion(r,t,s,e)),ze(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,s,e),i=!0),r=r._next,e++}),this.length=e;return this._truncate(r),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,e;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=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,s){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(ze(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,s)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(ze(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,s)):t=this._addAfter(new bn(e,n),r,s),t}_verifyReinsertion(t,e,n,s){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,r=t._nextRemoved;return null===s?this._removalsHead=r:s._nextRemoved=r,null===r?this._removalsTail=s:r._prevRemoved=s,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const s=null===e?this._itHead:e._next;return t._next=s,t._prev=e,null===s?this._itTail=t:s._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Cn),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Cn),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class bn{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class wn{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&ze(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Cn{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new wn,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function En(t,e,n){const s=t.previousIndex;if(null===s)return s;let r=0;return n&&s<n.length&&(r=n[s]),s+e+r}class Sn{constructor(){}supports(t){return t instanceof Map||Ye(t)}create(){return new xn}}class xn{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Ye(t)))throw new Error(`Error trying to diff '${_t(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const s=n._prev,r=n._next;return s&&(s._next=r),r&&(r._prev=s),n._next=null,n._prev=null,n}const n=new Tn(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){ze(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Tn{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let An=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ut,new ht]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.ngInjectableDef=ft({token:t,providedIn:"root",factory:()=>new t([new _n])}),t})(),Dn=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ut,new ht]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.ngInjectableDef=ft({token:t,providedIn:"root",factory:()=>new t([new Sn])}),t})(),kn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Rn(),t})();const Rn=(...t)=>{},In=[new Sn],On=new An([new _n]),Pn=new Dn(In);let Nn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Mn(t,ln),t})();const Mn=an;let Fn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Vn(t,ln),t})();const Vn=an;function Ln(t,e,n,s){let r=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${e}'. Current value: '${n}'.`;return s&&(r+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){const n=new Error(t);return jn(n,e),n}(r,t)}function jn(t,e){t[te]=e,t[ne]=e.logError.bind(e)}function $n(t){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${t}`)}function Un(t,e,n){const s=t.state,r=1792&s;return r===e?(t.state=-1793&s|n,t.initIndex=-1,!0):r===n}function zn(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Bn(t,e){return t.nodes[e]}function Hn(t,e){return t.nodes[e]}function qn(t,e){return t.nodes[e]}function Yn(t,e){return t.nodes[e]}function Wn(t,e){return t.nodes[e]}const Kn={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Zn=()=>{},Qn=new Map;function Gn(t){let e=Qn.get(t);return e||(e=_t(t)+"_"+Qn.size,Qn.set(t,e)),e}function Xn(t,e,n,s){if(He.isWrapped(s)){s=He.unwrap(s);const r=t.def.nodes[e].bindingIndex+n,i=He.unwrap(t.oldValues[r]);t.oldValues[r]=new He(i)}return s}const Jn="$$undefined",ts="$$empty";function es(t){return{id:Jn,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}let ns=0;function ss(t,e,n,s){return!(!(2&t.state)&&ze(t.oldValues[e.bindingIndex+n],s))}function rs(t,e,n,s){return!!ss(t,e,n,s)&&(t.oldValues[e.bindingIndex+n]=s,!0)}function is(t,e,n,s){const r=t.oldValues[e.bindingIndex+n];if(1&t.state||!Be(r,s)){const i=e.bindings[n].name;throw Ln(Kn.createDebugContext(t,e.nodeIndex),`${i}: ${r}`,`${i}: ${s}`,0!=(1&t.state))}}function os(t){let e=t;for(;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function as(t,e){let n=t;for(;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function ls(t,e,n,s){try{return os(33554432&t.def.nodes[e].flags?Hn(t,e).componentView:t),Kn.handleEvent(t,e,n,s)}catch(r){t.root.errorHandler.handleError(r)}}function hs(t){return t.parent?Hn(t.parent,t.parentNodeDef.nodeIndex):null}function cs(t){return t.parent?t.parentNodeDef.parent:null}function us(t,e){switch(201347067&e.flags){case 1:return Hn(t,e.nodeIndex).renderElement;case 2:return Bn(t,e.nodeIndex).renderText}}function ds(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function ps(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function fs(t){return 1<<t%32}function ms(t){const e={};let n=0;const s={};return t&&t.forEach(([t,r])=>{"number"==typeof t?(e[t]=r,n|=fs(t)):s[t]=r}),{matchedQueries:e,references:s,matchedQueryIds:n}}function gs(t,e){return t.map(t=>{let n,s;return Array.isArray(t)?[s,n]=t:(s=0,n=t),n&&("function"==typeof n||"object"==typeof n)&&e&&Object.defineProperty(n,Pt,{value:e,configurable:!0}),{flags:s,token:n,tokenKey:Gn(n)}})}function _s(t,e,n){let s=n.renderParent;return s?0==(1&s.flags)||0==(33554432&s.flags)||s.element.componentRendererType&&s.element.componentRendererType.encapsulation===re.Native?Hn(t,n.renderParent.nodeIndex).renderElement:void 0:e}const ys=new WeakMap;function vs(t){let e=ys.get(t);return e||((e=t(()=>Zn)).factory=t,ys.set(t,e)),e}function bs(t,e,n,s,r){3===e&&(n=t.renderer.parentNode(us(t,t.def.lastRenderRootNode))),ws(t,e,0,t.def.nodes.length-1,n,s,r)}function ws(t,e,n,s,r,i,o){for(let a=n;a<=s;a++){const n=t.def.nodes[a];11&n.flags&&Es(t,n,e,r,i,o),a+=n.childCount}}function Cs(t,e,n,s,r,i){let o=t;for(;o&&!ds(o);)o=o.parent;const a=o.parent,l=cs(o),h=l.nodeIndex+l.childCount;for(let c=l.nodeIndex+1;c<=h;c++){const t=a.def.nodes[c];t.ngContentIndex===e&&Es(a,t,n,s,r,i),c+=t.childCount}if(!a.parent){const o=t.root.projectableNodes[e];if(o)for(let e=0;e<o.length;e++)Ss(t,o[e],n,s,r,i)}}function Es(t,e,n,s,r,i){if(8&e.flags)Cs(t,e.ngContent.index,n,s,r,i);else{const o=us(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&Ss(t,o,n,s,r,i),32&e.bindingFlags&&Ss(Hn(t,e.nodeIndex).componentView,o,n,s,r,i)):Ss(t,o,n,s,r,i),16777216&e.flags){const o=Hn(t,e.nodeIndex).viewContainer._embeddedViews;for(let t=0;t<o.length;t++)bs(o[t],n,s,r,i)}1&e.flags&&!e.element.name&&ws(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,s,r,i)}}function Ss(t,e,n,s,r,i){const o=t.renderer;switch(n){case 1:o.appendChild(s,e);break;case 2:o.insertBefore(s,e,r);break;case 3:o.removeChild(s,e);break;case 0:i.push(e)}}const xs=/^:([^:]+):(.+)$/;function Ts(t){if(":"===t[0]){const e=t.match(xs);return[e[1],e[2]]}return["",t]}function As(t){let e=0;for(let n=0;n<t.length;n++)e|=t[n].flags;return e}const Ds=new Object,ks=Gn(qt),Rs=Gn(At),Is=Gn(rn);function Os(t,e,n,s){return n=bt(n),{index:-1,deps:gs(s,_t(e)),flags:t,token:e,value:n}}function Ps(t,e,n=qt.THROW_IF_NOT_FOUND){const s=Vt(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);const o=e.tokenKey;switch(o){case ks:case Rs:case Is:return t}const a=t._def.providersByKey[o];let l;if(a){let e=t._providers[a.index];return void 0===e&&(e=t._providers[a.index]=Ns(t,a)),e===Ds?void 0:e}if((l=mt(e.token))&&(r=t,null!=(i=l).providedIn&&(function(t,e){return t._def.modules.indexOf(e)>-1}(r,i.providedIn)||"root"===i.providedIn&&r._def.isRoot))){const n=t._providers.length;return t._def.providers[n]=t._def.providersByKey[e.tokenKey]={flags:5120,value:l.factory,deps:[],index:n,token:e.token},t._providers[n]=Ds,t._providers[n]=Ns(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Vt(s)}var r,i}function Ns(t,e){let n;switch(201347067&e.flags){case 512:n=function(t,e,n){const s=n.length;switch(s){case 0:return new e;case 1:return new e(Ps(t,n[0]));case 2:return new e(Ps(t,n[0]),Ps(t,n[1]));case 3:return new e(Ps(t,n[0]),Ps(t,n[1]),Ps(t,n[2]));default:const r=new Array(s);for(let e=0;e<s;e++)r[e]=Ps(t,n[e]);return new e(...r)}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){const s=n.length;switch(s){case 0:return e();case 1:return e(Ps(t,n[0]));case 2:return e(Ps(t,n[0]),Ps(t,n[1]));case 3:return e(Ps(t,n[0]),Ps(t,n[1]),Ps(t,n[2]));default:const r=Array(s);for(let e=0;e<s;e++)r[e]=Ps(t,n[e]);return e(...r)}}(t,e.value,e.deps);break;case 2048:n=Ps(t,e.deps[0]);break;case 256:n=e.value}return n===Ds||null===n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?Ds:n}function Ms(t,e){const n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;const s=n[e];return s.viewContainerParent=null,js(n,e),Kn.dirtyParentQueries(s),Vs(s),s}function Fs(t,e,n){const s=e?us(e,e.def.lastRenderRootNode):t.renderElement,r=n.renderer.parentNode(s),i=n.renderer.nextSibling(s);bs(n,2,r,i,void 0)}function Vs(t){bs(t,3,null,null,void 0)}function Ls(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function js(t,e){e>=t.length-1?t.pop():t.splice(e,1)}const $s=new Object;function Us(t,e,n,s,r,i){return new zs(t,e,n,s,r,i)}class zs extends Ge{constructor(t,e,n,s,r,i){super(),this.selector=t,this.componentType=e,this._inputs=s,this._outputs=r,this.ngContentSelectors=i,this.viewDefFactory=n}get inputs(){const t=[],e=this._inputs;for(let n in e)t.push({propName:n,templateName:e[n]});return t}get outputs(){const t=[];for(let e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t}create(t,e,n,s){if(!s)throw new Error("ngModule should be provided");const r=vs(this.viewDefFactory),i=r.nodes[0].element.componentProvider.nodeIndex,o=Kn.createRootView(t,e||[],n,r,s,$s),a=qn(o,i).instance;return n&&o.renderer.setAttribute(Hn(o,0).renderElement,"ng-version",gn.full),new Bs(o,new Ws(o),a)}}class Bs extends Qe{constructor(t,e,n){super(),this._view=t,this._viewRef=e,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=e,this.changeDetectorRef=e,this.instance=n}get location(){return new ln(Hn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Gs(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(t){this._viewRef.onDestroy(t)}}function Hs(t,e,n){return new qs(t,e,n)}class qs{constructor(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}get element(){return new ln(this._data.renderElement)}get injector(){return new Gs(this._view,this._elDef)}get parentInjector(){let t=this._view,e=this._elDef.parent;for(;!e&&t;)e=cs(t),t=t.parent;return t?new Gs(t,e):new Gs(this._view,null)}clear(){for(let t=this._embeddedViews.length-1;t>=0;t--){const e=Ms(this._data,t);Kn.destroyView(e)}}get(t){const e=this._embeddedViews[t];if(e){const t=new Ws(e);return t.attachToViewContainerRef(this),t}return null}get length(){return this._embeddedViews.length}createEmbeddedView(t,e,n){const s=t.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(t,e,n,s,r){const i=n||this.parentInjector;r||t instanceof sn||(r=i.get(rn));const o=t.create(i,s,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=t;return function(t,e,n,s){let r=e.viewContainer._embeddedViews;null==n&&(n=r.length),s.viewContainerParent=t,Ls(r,n,s),function(t,e){const n=hs(e);if(!n||n===t||16&e.state)return;e.state|=16;let s=n.template._projectedViews;s||(s=n.template._projectedViews=[]),s.push(e),function(t,e){if(4&e.flags)return;t.nodeFlags|=4,e.flags|=4;let n=e.parent;for(;n;)n.childFlags|=4,n=n.parent}(e.parent.def,e.parentNodeDef)}(e,s),Kn.dirtyParentQueries(s),Fs(e,n>0?r[n-1]:null,s)}(this._view,this._data,e,n._view),n.attachToViewContainerRef(this),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(t._view);return function(t,e,n){const s=t.viewContainer._embeddedViews,r=s[e];js(s,e),null==n&&(n=s.length),Ls(s,n,r),Kn.dirtyParentQueries(r),Vs(r),Fs(t,n>0?s[n-1]:null,r)}(this._data,n,e),t}indexOf(t){return this._embeddedViews.indexOf(t._view)}remove(t){const e=Ms(this._data,t);e&&Kn.destroyView(e)}detach(t){const e=Ms(this._data,t);return e?new Ws(e):null}}function Ys(t){return new Ws(t)}class Ws{constructor(t){this._view=t,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(t){const e=[];return bs(t,0,void 0,void 0,e),e}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){os(this._view)}detach(){this._view.state&=-5}detectChanges(){const t=this._view.root.rendererFactory;t.begin&&t.begin();try{Kn.checkAndUpdateView(this._view)}finally{t.end&&t.end()}}checkNoChanges(){Kn.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Kn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Vs(this._view),Kn.dirtyParentQueries(this._view)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}}function Ks(t,e){return new Zs(t,e)}class Zs extends Nn{constructor(t,e){super(),this._parentView=t,this._def=e}createEmbeddedView(t){return new Ws(Kn.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))}get elementRef(){return new ln(Hn(this._parentView,this._def.nodeIndex).renderElement)}}function Qs(t,e){return new Gs(t,e)}class Gs{constructor(t,e){this.view=t,this.elDef=e}get(t,e=qt.THROW_IF_NOT_FOUND){return Kn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Gn(t)},e)}}function Xs(t,e){const n=t.def.nodes[e];if(1&n.flags){const e=Hn(t,n.nodeIndex);return n.element.template?e.template:e.renderElement}if(2&n.flags)return Bn(t,n.nodeIndex).renderText;if(20240&n.flags)return qn(t,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${e}`)}function Js(t){return new tr(t.renderer)}class tr{constructor(t){this.delegate=t}selectRootElement(t){return this.delegate.selectRootElement(t)}createElement(t,e){const[n,s]=Ts(e),r=this.delegate.createElement(s,n);return t&&this.delegate.appendChild(t,r),r}createViewRoot(t){return t}createTemplateAnchor(t){const e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e}createText(t,e){const n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n}projectNodes(t,e){for(let n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])}attachViewAfter(t,e){const n=this.delegate.parentNode(t),s=this.delegate.nextSibling(t);for(let r=0;r<e.length;r++)this.delegate.insertBefore(n,e[r],s)}detachView(t){for(let e=0;e<t.length;e++){const n=t[e],s=this.delegate.parentNode(n);this.delegate.removeChild(s,n)}}destroyView(t,e){for(let n=0;n<e.length;n++)this.delegate.destroyNode(e[n])}listen(t,e,n){return this.delegate.listen(t,e,n)}listenGlobal(t,e,n){return this.delegate.listen(t,e,n)}setElementProperty(t,e,n){this.delegate.setProperty(t,e,n)}setElementAttribute(t,e,n){const[s,r]=Ts(e);null!=n?this.delegate.setAttribute(t,r,n,s):this.delegate.removeAttribute(t,r,s)}setBindingDebugInfo(t,e,n){}setElementClass(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)}setElementStyle(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)}invokeElementMethod(t,e,n){t[e].apply(t,n)}setText(t,e){this.delegate.setValue(t,e)}animate(){throw new Error("Renderer.animate is no longer supported!")}}function er(t,e,n,s){return new nr(t,e,n,s)}class nr{constructor(t,e,n,s){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=s,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){const e=t._def,n=t._providers=new Array(e.providers.length);for(let s=0;s<e.providers.length;s++){const r=e.providers[s];4096&r.flags||void 0===n[s]&&(n[s]=Ns(t,r))}}(this)}get(t,e=qt.THROW_IF_NOT_FOUND,n=dt.Default){let s=0;return n&dt.SkipSelf?s|=1:n&dt.Self&&(s|=4),Ps(this,{token:t,tokenKey:Gn(t),flags:s},e)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(en)}destroy(){if(this._destroyed)throw new Error(`The ng module ${_t(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(t,e){const n=t._def,s=new Set;for(let r=0;r<n.providers.length;r++)if(131072&n.providers[r].flags){const e=t._providers[r];if(e&&e!==Ds){const t=e.ngOnDestroy;"function"!=typeof t||s.has(e)||(t.apply(e),s.add(e))}}}(this),this._destroyListeners.forEach(t=>t())}onDestroy(t){this._destroyListeners.push(t)}}const sr=Gn(cn),rr=Gn(pn),ir=Gn(ln),or=Gn(Fn),ar=Gn(Nn),lr=Gn(kn),hr=Gn(qt),cr=Gn(At);function ur(t,e,n,s,r,i,o,a){const l=[];if(o)for(let c in o){const[t,e]=o[c];l[t]={flags:8,name:c,nonMinifiedName:e,ns:null,securityContext:null,suffix:null}}const h=[];if(a)for(let c in a)h.push({type:1,propName:c,target:null,eventName:a[c]});return pr(t,e|=16384,n,s,r,r,i,l,h)}function dr(t,e,n,s,r){return pr(-1,t,e,0,n,s,r)}function pr(t,e,n,s,r,i,o,a,l){const{matchedQueries:h,references:c,matchedQueryIds:u}=ms(n);l||(l=[]),a||(a=[]),i=bt(i);const d=gs(o,_t(r));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:u,references:c,ngContentIndex:-1,childCount:s,bindings:a,bindingFlags:As(a),outputs:l,element:null,provider:{token:r,value:i,deps:d},text:null,query:null,ngContent:null}}function fr(t,e){return yr(t,e)}function mr(t,e){let n=t;for(;n.parent&&!ds(n);)n=n.parent;return vr(n.parent,cs(n),!0,e.provider.value,e.provider.deps)}function gr(t,e){const n=vr(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(let s=0;s<e.outputs.length;s++){const r=e.outputs[s],i=n[r.propName];if(!Ke(i))throw new Error(`@Output ${r.propName} not initialized in '${n.constructor.name}'.`);{const n=i.subscribe(_r(t,e.parent.nodeIndex,r.eventName));t.disposables[e.outputIndex+s]=n.unsubscribe.bind(n)}}return n}function _r(t,e,n){return s=>ls(t,e,n,s)}function yr(t,e){const n=(8192&e.flags)>0,s=e.provider;switch(201347067&e.flags){case 512:return vr(t,e.parent,n,s.value,s.deps);case 1024:return function(t,e,n,s,r){const i=r.length;switch(i){case 0:return s();case 1:return s(wr(t,e,n,r[0]));case 2:return s(wr(t,e,n,r[0]),wr(t,e,n,r[1]));case 3:return s(wr(t,e,n,r[0]),wr(t,e,n,r[1]),wr(t,e,n,r[2]));default:const o=Array(i);for(let s=0;s<i;s++)o[s]=wr(t,e,n,r[s]);return s(...o)}}(t,e.parent,n,s.value,s.deps);case 2048:return wr(t,e.parent,n,s.deps[0]);case 256:return s.value}}function vr(t,e,n,s,r){const i=r.length;switch(i){case 0:return new s;case 1:return new s(wr(t,e,n,r[0]));case 2:return new s(wr(t,e,n,r[0]),wr(t,e,n,r[1]));case 3:return new s(wr(t,e,n,r[0]),wr(t,e,n,r[1]),wr(t,e,n,r[2]));default:const o=new Array(i);for(let s=0;s<i;s++)o[s]=wr(t,e,n,r[s]);return new s(...o)}}const br={};function wr(t,e,n,s,r=qt.THROW_IF_NOT_FOUND){if(8&s.flags)return s.token;const i=t;2&s.flags&&(r=null);const o=s.tokenKey;o===lr&&(n=!(!e||!e.element.componentView)),e&&1&s.flags&&(n=!1,e=e.parent);let a=t;for(;a;){if(e)switch(o){case sr:return Js(Cr(a,e,n));case rr:return Cr(a,e,n).renderer;case ir:return new ln(Hn(a,e.nodeIndex).renderElement);case or:return Hn(a,e.nodeIndex).viewContainer;case ar:if(e.element.template)return Hn(a,e.nodeIndex).template;break;case lr:return Ys(Cr(a,e,n));case hr:case cr:return Qs(a,e);default:const t=(n?e.element.allProviders:e.element.publicProviders)[o];if(t){let e=qn(a,t.nodeIndex);return e||(e={instance:yr(a,t)},a.nodes[t.nodeIndex]=e),e.instance}}n=ds(a),e=cs(a),a=a.parent,4&s.flags&&(a=null)}const l=i.root.injector.get(s.token,br);return l!==br||r===br?l:i.root.ngModule.injector.get(s.token,r)}function Cr(t,e,n){let s;if(n)s=Hn(t,e.nodeIndex).componentView;else for(s=t;s.parent&&!ds(s);)s=s.parent;return s}function Er(t,e,n,s,r,i){if(32768&n.flags){const e=Hn(t,n.parent.nodeIndex).componentView;2&e.def.flags&&(e.state|=8)}if(e.instance[n.bindings[s].name]=r,524288&n.flags){i=i||{};const e=He.unwrap(t.oldValues[n.bindingIndex+s]);i[n.bindings[s].nonMinifiedName]=new Ze(e,r,0!=(2&t.state))}return t.oldValues[n.bindingIndex+s]=r,i}function Sr(t,e){if(!(t.def.nodeFlags&e))return;const n=t.def.nodes;let s=0;for(let r=0;r<n.length;r++){const i=n[r];let o=i.parent;for(!o&&i.flags&e&&Tr(t,r,i.flags&e,s++),0==(i.childFlags&e)&&(r+=i.childCount);o&&1&o.flags&&r===o.nodeIndex+o.childCount;)o.directChildFlags&e&&(s=xr(t,o,e,s)),o=o.parent}}function xr(t,e,n,s){for(let r=e.nodeIndex+1;r<=e.nodeIndex+e.childCount;r++){const e=t.def.nodes[r];e.flags&n&&Tr(t,r,e.flags&n,s++),r+=e.childCount}return s}function Tr(t,e,n,s){const r=qn(t,e);if(!r)return;const i=r.instance;i&&(Kn.setCurrentNode(t,e),1048576&n&&zn(t,512,s)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&zn(t,768,s)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}const Ar=new Tt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>ie}),Dr={},kr=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}(),Rr=void 0;var Ir=["en",[["a","p"],["AM","PM"],Rr],[["AM","PM"],Rr,Rr],[["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"]],Rr,[["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"]],Rr,[["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}",Rr,"{1} 'at' {0}",Rr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];function Or(t){const e=t.toLowerCase().replace(/_/g,"-");let n=Dr[e];if(n)return n;const s=e.split("-")[0];if(n=Dr[s])return n;if("en"===s)return Ir;throw new Error(`Missing locale data for the locale "${t}".`)}let Pr="en-US";class Nr extends A{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let s,r=t=>null,i=()=>null;t&&"object"==typeof t?(s=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(r=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(i=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(s,r,i);return t instanceof d&&t.add(o),o}}function Mr(){return this._results[Ue()]()}class Fr{constructor(){this.dirty=!0,this._results=[],this.changes=new Nr,this.length=0;const t=Ue(),e=Fr.prototype;e[t]||(e[t]=Mr)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let s=0;s<e.length;s++){let r=e[s];Array.isArray(r)?(n===e&&(n=e.slice(0,s)),t(r,n)):n!==e&&n.push(r)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}const Vr=new Tt("Application Initializer");let Lr=(()=>(class{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();We(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}))();const jr=new Tt("AppId");function $r(){return`${Ur()}${Ur()}${Ur()}`}function Ur(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const zr=new Tt("Platform Initializer"),Br=new Tt("Platform ID"),Hr=new Tt("appBootstrapListener");let qr=(()=>(class{log(t){console.log(t)}warn(t){console.warn(t)}}))();const Yr=new Tt("LocaleId");function Wr(){throw new Error("Runtime compiler is not loaded")}const Kr=Wr,Zr=Wr,Qr=Wr,Gr=Wr;let Xr,Jr,ti=(()=>(class{constructor(){this.compileModuleSync=Kr,this.compileModuleAsync=Zr,this.compileModuleAndAllComponentsSync=Qr,this.compileModuleAndAllComponentsAsync=Gr}clearCache(){}clearCacheFor(t){}getModuleId(t){}}))();class ei{}function ni(){const t=xt.wtf;return!(!t||!(Xr=t.trace)||(Jr=Xr.events,0))}const si=ni();function ri(t,e){return null}const ii=si?function(t,e=null){return Jr.createScope(t,e)}:(t,e)=>ri,oi=si?function(t,e){return Xr.leaveScope(t,e),e}:(t,e)=>e,ai=(()=>Promise.resolve(0))();function li(t){"undefined"==typeof Zone?ai.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class hi{constructor({enableLongStackTrace:t=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Nr(!1),this.onMicrotaskEmpty=new Nr(!1),this.onStable=new Nr(!1),this.onError=new Nr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var e;Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(e=this)._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,n,s,r,i,o)=>{try{return pi(e),t.invokeTask(s,r,i,o)}finally{fi(e)}},onInvoke:(t,n,s,r,i,o,a)=>{try{return pi(e),t.invoke(s,r,i,o,a)}finally{fi(e)}},onHasTask:(t,n,s,r)=>{t.hasTask(s,r),n===s&&("microTask"==r.change?(e.hasPendingMicrotasks=r.microTask,di(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:(t,n,s,r)=>(t.handleError(s,r),e.runOutsideAngular(()=>e.onError.emit(r)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!hi.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(hi.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,s){const r=this._inner,i=r.scheduleEventTask("NgZoneEvent: "+s,t,ui,ci,ci);try{return r.runTask(i,e,n)}finally{r.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function ci(){}const ui={};function di(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function pi(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function fi(t){t._nesting--,di(t)}class mi{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Nr,this.onMicrotaskEmpty=new Nr,this.onStable=new Nr,this.onError=new Nr}run(t){return t()}runGuarded(t){return t()}runOutsideAngular(t){return t()}runTask(t){return t()}}let gi=(()=>(class{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{hi.assertNotInAngularZone(),li(()=>{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())li(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let s=-1;e&&e>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==s),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}))(),_i=(()=>{class t{constructor(){this._applications=new Map,bi.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return bi.findTestabilityInTree(this,t,e)}}return t.ctorParameters=()=>[],t})();class yi{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let vi,bi=new yi,wi=function(t){return t instanceof sn};const Ci=new Tt("AllowMultipleToken");class Ei{constructor(t,e){this.name=t,this.token=e}}function Si(t,e,n=[]){const s=`Platform: ${e}`,r=new Tt(s);return(e=[])=>{let i=xi();if(!i||i.injector.get(Ci,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0});!function(t){if(vi&&!vi.destroyed&&!vi.injector.get(Ci,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");vi=t.get(Ti);const e=t.get(zr,null);e&&e.forEach(t=>t())}(qt.create({providers:t,name:s}))}return function(t){const e=xi();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function xi(){return vi&&!vi.destroyed?vi:null}let Ti=(()=>(class{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n="noop"===(r=e?e.ngZone:void 0)?new mi:("zone.js"===r?void 0:r)||new hi({enableLongStackTrace:le()}),s=[{provide:hi,useValue:n}];var r;return n.run(()=>{const e=qt.create({providers:s,parent:this.injector,name:t.moduleType.name}),r=t.create(e),i=r.injector.get(Ve,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return function(t){Pr=t.toLowerCase().replace(/_/g,"-")}(r.injector.get(Yr,"en-US")),r.onDestroy(()=>ki(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{i.handleError(t)}})),function(t,e,n){try{const s=n();return We(s)?s.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):s}catch(s){throw e.runOutsideAngular(()=>t.handleError(s)),s}}(i,n,()=>{const t=r.injector.get(Lr);return t.runInitializers(),t.donePromise.then(()=>(this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Ai({},e);return function(t,e,n){return t.get(ei).createCompiler([e]).compileModuleAsync(n)}(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Di);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${_t(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}))();function Ai(t,e){return Array.isArray(e)?e.reduce(Ai,t):Object.assign({},t,e)}let Di=(()=>{class t{constructor(t,e,n,s,r,i){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=r,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=le(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new w(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new w(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{hi.assertNotInAngularZone(),li(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{hi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=X(o,a.pipe(t=>J()(function(t,e){return function(e){let n;n="function"==typeof t?t:function(){return t};const s=Object.create(e,st);return s.source=e,s.subjectFactory=n,s}}(it)(t))))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Ge?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const s=wi(n)?null:this._injector.get(rn),r=n.create(qt.NULL,[],e||n.selector,s);r.onDestroy(()=>{this._unloadComponent(r)});const i=r.injector.get(gi,null);return i&&r.injector.get(_i).registerApplication(r.location.nativeElement,i),this._loadComponent(r),le()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const e=t._tickScope();try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,oi(e)}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;ki(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Hr,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),ki(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t._tickScope=ii("ApplicationRef#tick()"),t})();function ki(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Ri{}class Ii{}const Oi={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Pi=(()=>(class{constructor(t,e){this._compiler=t,this._config=e||Oi}load(t){return this._compiler instanceof ti?this.loadFactory(t):this.loadAndCompile(t)}loadAndCompile(t){let[e,s]=t.split("#");return void 0===s&&(s="default"),n("zn8P")(e).then(t=>t[s]).then(t=>Ni(t,e,s)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,s]=t.split("#"),r="NgFactory";return void 0===s&&(s="default",r=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[s+r]).then(t=>Ni(t,e,s))}}))();function Ni(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class Mi{constructor(t,e){this.name=t,this.callback=e}}class Fi{constructor(t,e,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=t,e&&e instanceof Vi&&e.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Vi extends Fi{constructor(t,e,n){super(t,e,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=t}addChild(t){t&&(this.childNodes.push(t),t.parent=this)}removeChild(t){const e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))}insertChildrenAfter(t,e){const n=this.childNodes.indexOf(t);-1!==n&&(this.childNodes.splice(n+1,0,...e),e.forEach(e=>{e.parent&&e.parent.removeChild(e),t.parent=this}))}insertBefore(t,e){const n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))}query(t){return this.queryAll(t)[0]||null}queryAll(t){const e=[];return function t(e,n,s){e.childNodes.forEach(e=>{e instanceof Vi&&(n(e)&&s.push(e),t(e,n,s))})}(this,t,e),e}queryAllNodes(t){const e=[];return function t(e,n,s){e instanceof Vi&&e.childNodes.forEach(e=>{n(e)&&s.push(e),e instanceof Vi&&t(e,n,s)})}(this,t,e),e}get children(){return this.childNodes.filter(t=>t instanceof Vi)}triggerEventHandler(t,e){this.listeners.forEach(n=>{n.name==t&&n.callback(e)})}}const Li=new Map,ji=function(t){return Li.get(t)||null};function $i(t){Li.set(t.nativeNode,t)}const Ui=Si(null,"core",[{provide:Br,useValue:"unknown"},{provide:Ti,deps:[qt]},{provide:_i,deps:[]},{provide:qr,deps:[]}]);function zi(){return On}function Bi(){return Pn}function Hi(t){return t||"en-US"}function qi(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}let Yi=(()=>(class{constructor(t){}}))();function Wi(t,e,n,s,r,i){t|=1;const{matchedQueries:o,references:a,matchedQueryIds:l}=ms(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:l,references:a,ngContentIndex:n,childCount:s,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?vs(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:r||Zn},provider:null,text:null,query:null,ngContent:null}}function Ki(t,e,n,s,r,i,o=[],a,l,h,c,u){h||(h=Zn);const{matchedQueries:d,references:p,matchedQueryIds:f}=ms(n);let m=null,g=null;i&&([m,g]=Ts(i)),a=a||[];const _=new Array(a.length);for(let b=0;b<a.length;b++){const[t,e,n]=a[b],[s,r]=Ts(e);let i=void 0,o=void 0;switch(15&t){case 4:o=n;break;case 1:case 8:i=n}_[b]={flags:t,ns:s,name:r,nonMinifiedName:r,securityContext:i,suffix:o}}l=l||[];const y=new Array(l.length);for(let b=0;b<l.length;b++){const[t,e]=l[b];y[b]={type:0,target:t,eventName:e,propName:null}}const v=(o=o||[]).map(([t,e])=>{const[n,s]=Ts(t);return[n,s,e]});return u=function(t){if(t&&t.id===Jn){const e=null!=t.encapsulation&&t.encapsulation!==re.None||t.styles.length||Object.keys(t.data).length;t.id=e?`c${ns++}`:ts}return t&&t.id===ts&&(t=null),t||null}(u),c&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:s,childCount:r,bindings:_,bindingFlags:As(_),outputs:y,element:{ns:m,name:g,attrs:v,template:null,componentProvider:null,componentView:c||null,componentRendererType:u,publicProviders:null,allProviders:null,handleEvent:h||Zn},provider:null,text:null,query:null,ngContent:null}}function Zi(t,e,n){const s=n.element,r=t.root.selectorOrNode,i=t.renderer;let o;if(t.parent||!r){o=s.name?i.createElement(s.name,s.ns):i.createComment("");const r=_s(t,e,n);r&&i.appendChild(r,o)}else o=i.selectRootElement(r,!!s.componentRendererType&&s.componentRendererType.encapsulation===re.ShadowDom);if(s.attrs)for(let a=0;a<s.attrs.length;a++){const[t,e,n]=s.attrs[a];i.setAttribute(o,e,n,t)}return o}function Qi(t,e,n,s){for(let o=0;o<n.outputs.length;o++){const a=n.outputs[o],l=Gi(t,n.nodeIndex,(i=a.eventName,(r=a.target)?`${r}:${i}`:i));let h=a.target,c=t;"component"===a.target&&(h=null,c=e);const u=c.renderer.listen(h||s,a.eventName,l);t.disposables[n.outputIndex+o]=u}var r,i}function Gi(t,e,n){return s=>ls(t,e,n,s)}function Xi(t,e,n,s){if(!rs(t,e,n,s))return!1;const r=e.bindings[n],i=Hn(t,e.nodeIndex),o=i.renderElement,a=r.name;switch(15&r.flags){case 1:!function(t,e,n,s,r,i){const o=e.securityContext;let a=o?t.root.sanitizer.sanitize(o,i):i;a=null!=a?a.toString():null;const l=t.renderer;null!=i?l.setAttribute(n,r,a,s):l.removeAttribute(n,r,s)}(t,r,o,r.ns,a,s);break;case 2:!function(t,e,n,s){const r=t.renderer;s?r.addClass(e,n):r.removeClass(e,n)}(t,o,a,s);break;case 4:!function(t,e,n,s,r){let i=t.root.sanitizer.sanitize(Re.STYLE,r);if(null!=i){i=i.toString();const t=e.suffix;null!=t&&(i+=t)}else i=null;const o=t.renderer;null!=i?o.setStyle(n,s,i):o.removeStyle(n,s)}(t,r,o,a,s);break;case 8:!function(t,e,n,s,r){const i=e.securityContext;let o=i?t.root.sanitizer.sanitize(i,r):r;t.renderer.setProperty(n,s,o)}(33554432&e.flags&&32&r.flags?i.componentView:t,r,o,a,s)}return!0}function Ji(t,e,n){let s=[];for(let r in n)s.push({propName:r,bindingType:n[r]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:fs(e),bindings:s},ngContent:null}}function to(t){const e=t.def.nodeMatchedQueries;for(;t.parent&&ps(t);){let n=t.parentNodeDef;t=t.parent;const s=n.nodeIndex+n.childCount;for(let r=0;r<=s;r++){const s=t.def.nodes[r];67108864&s.flags&&536870912&s.flags&&(s.query.filterId&e)===s.query.filterId&&Wn(t,r).setDirty(),!(1&s.flags&&r+s.childCount<n.nodeIndex)&&67108864&s.childFlags&&536870912&s.childFlags||(r+=s.childCount)}}if(134217728&t.def.nodeFlags)for(let n=0;n<t.def.nodes.length;n++){const e=t.def.nodes[n];134217728&e.flags&&536870912&e.flags&&Wn(t,n).setDirty(),n+=e.childCount}}function eo(t,e){const n=Wn(t,e.nodeIndex);if(!n.dirty)return;let s,r=void 0;if(67108864&e.flags){const n=e.parent.parent;r=no(t,n.nodeIndex,n.nodeIndex+n.childCount,e.query,[]),s=qn(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(r=no(t,0,t.def.nodes.length-1,e.query,[]),s=t.component);n.reset(r);const i=e.query.bindings;let o=!1;for(let a=0;a<i.length;a++){const t=i[a];let e;switch(t.bindingType){case 0:e=n.first;break;case 1:e=n,o=!0}s[t.propName]=e}o&&n.notifyOnChanges()}function no(t,e,n,s,r){for(let i=e;i<=n;i++){const e=t.def.nodes[i],n=e.matchedQueries[s.id];if(null!=n&&r.push(so(t,e,n)),1&e.flags&&e.element.template&&(e.element.template.nodeMatchedQueries&s.filterId)===s.filterId){const n=Hn(t,i);if((e.childMatchedQueries&s.filterId)===s.filterId&&(no(t,i+1,i+e.childCount,s,r),i+=e.childCount),16777216&e.flags){const t=n.viewContainer._embeddedViews;for(let e=0;e<t.length;e++){const i=t[e],o=hs(i);o&&o===n&&no(i,0,i.def.nodes.length-1,s,r)}}const o=n.template._projectedViews;if(o)for(let t=0;t<o.length;t++){const e=o[t];no(e,0,e.def.nodes.length-1,s,r)}}(e.childMatchedQueries&s.filterId)!==s.filterId&&(i+=e.childCount)}return r}function so(t,e,n){if(null!=n)switch(n){case 1:return Hn(t,e.nodeIndex).renderElement;case 0:return new ln(Hn(t,e.nodeIndex).renderElement);case 2:return Hn(t,e.nodeIndex).template;case 3:return Hn(t,e.nodeIndex).viewContainer;case 4:return qn(t,e.nodeIndex).instance}}function ro(t,e){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function io(t,e,n){const s=_s(t,e,n);s&&Cs(t,n.ngContent.index,1,s,null,void 0)}function oo(t,e){return function(t,e,n){const s=new Array(n.length);for(let r=0;r<n.length;r++){const t=n[r];s[r]={flags:8,name:t,ns:null,nonMinifiedName:t,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:128,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:s,bindingFlags:As(s),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}(0,t,new Array(e+1))}function ao(t,e,n){const s=new Array(n.length-1);for(let r=1;r<n.length;r++)s[r-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[r]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:s,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function lo(t,e,n){let s;const r=t.renderer;s=r.createText(n.text.prefix);const i=_s(t,e,n);return i&&r.appendChild(i,s),{renderText:s}}function ho(t,e){return(null!=t?t.toString():"")+e.suffix}function co(t,e,n,s){let r=0,i=0,o=0,a=0,l=0,h=null,c=null,u=!1,d=!1,p=null;for(let f=0;f<e.length;f++){const t=e[f];if(t.nodeIndex=f,t.parent=h,t.bindingIndex=r,t.outputIndex=i,t.renderParent=c,o|=t.flags,l|=t.matchedQueryIds,t.element){const e=t.element;e.publicProviders=h?h.element.publicProviders:Object.create(null),e.allProviders=e.publicProviders,u=!1,d=!1,t.element.template&&(l|=t.element.template.nodeMatchedQueries)}if(po(h,t,e.length),r+=t.bindings.length,i+=t.outputs.length,!c&&3&t.flags&&(p=t),20224&t.flags){u||(u=!0,h.element.publicProviders=Object.create(h.element.publicProviders),h.element.allProviders=h.element.publicProviders);const e=0!=(32768&t.flags);0==(8192&t.flags)||e?h.element.publicProviders[Gn(t.provider.token)]=t:(d||(d=!0,h.element.allProviders=Object.create(h.element.publicProviders)),h.element.allProviders[Gn(t.provider.token)]=t),e&&(h.element.componentProvider=t)}if(h?(h.childFlags|=t.flags,h.directChildFlags|=t.flags,h.childMatchedQueries|=t.matchedQueryIds,t.element&&t.element.template&&(h.childMatchedQueries|=t.element.template.nodeMatchedQueries)):a|=t.flags,t.childCount>0)h=t,uo(t)||(c=t);else for(;h&&f===h.nodeIndex+h.childCount;){const t=h.parent;t&&(t.childFlags|=h.childFlags,t.childMatchedQueries|=h.childMatchedQueries),c=(h=t)&&uo(h)?h.renderParent:h}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:l,flags:t,nodes:e,updateDirectives:n||Zn,updateRenderer:s||Zn,handleEvent:(t,n,s,r)=>e[n].element.handleEvent(t,s,r),bindingCount:r,outputCount:i,lastRenderRootNode:p}}function uo(t){return 0!=(1&t.flags)&&null===t.element.name}function po(t,e,n){const s=e.element&&e.element.template;if(s){if(!s.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(s.lastRenderRootNode&&16777216&s.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${e.nodeIndex}!`)}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${e.nodeIndex}!`);if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${e.nodeIndex}!`);if(134217728&e.flags&&t)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${e.nodeIndex}!`)}if(e.childCount){const s=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=s&&e.nodeIndex+e.childCount>s)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${e.nodeIndex}!`)}}function fo(t,e,n,s){const r=_o(t.root,t.renderer,t,e,n);return yo(r,t.component,s),vo(r),r}function mo(t,e,n){const s=_o(t,t.renderer,null,null,e);return yo(s,n,n),vo(s),s}function go(t,e,n,s){const r=e.element.componentRendererType;let i;return i=r?t.root.rendererFactory.createRenderer(s,r):t.root.renderer,_o(t.root,i,t,e.element.componentProvider,n)}function _o(t,e,n,s,r){const i=new Array(r.nodes.length),o=r.outputCount?new Array(r.outputCount):null;return{def:r,parent:n,viewContainerParent:null,parentNodeDef:s,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(r.bindingCount),disposables:o,initIndex:-1}}function yo(t,e,n){t.component=e,t.context=n}function vo(t){let e;ds(t)&&(e=Hn(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);const n=t.def,s=t.nodes;for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];let o;switch(Kn.setCurrentNode(t,r),201347067&i.flags){case 1:const n=Zi(t,e,i);let a=void 0;if(33554432&i.flags){const e=vs(i.element.componentView);a=Kn.createComponentView(t,i,e,n)}Qi(t,a,i,n),o={renderElement:n,componentView:a,viewContainer:null,template:i.element.template?Ks(t,i):void 0},16777216&i.flags&&(o.viewContainer=Hs(t,i,o));break;case 2:o=lo(t,e,i);break;case 512:case 1024:case 2048:case 256:(o=s[r])||4096&i.flags||(o={instance:fr(t,i)});break;case 16:o={instance:mr(t,i)};break;case 16384:(o=s[r])||(o={instance:gr(t,i)}),32768&i.flags&&yo(Hn(t,i.parent.nodeIndex).componentView,o.instance,o.instance);break;case 32:case 64:case 128:o={value:void 0};break;case 67108864:case 134217728:o=new Fr;break;case 8:io(t,e,i),o=void 0}s[r]=o}Do(t,Ao.CreateViewNodes),Oo(t,201326592,268435456,0)}function bo(t){Eo(t),Kn.updateDirectives(t,1),ko(t,Ao.CheckNoChanges),Kn.updateRenderer(t,1),Do(t,Ao.CheckNoChanges),t.state&=-97}function wo(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Un(t,0,256),Eo(t),Kn.updateDirectives(t,0),ko(t,Ao.CheckAndUpdate),Oo(t,67108864,536870912,0);let e=Un(t,256,512);Sr(t,2097152|(e?1048576:0)),Kn.updateRenderer(t,0),Do(t,Ao.CheckAndUpdate),Oo(t,134217728,536870912,0),Sr(t,8388608|((e=Un(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,Un(t,768,1024)}function Co(t,e,n,s,r,i,o,a,l,h,c,u,d){return 0===n?function(t,e,n,s,r,i,o,a,l,h,c,u){switch(201347067&e.flags){case 1:return function(t,e,n,s,r,i,o,a,l,h,c,u){const d=e.bindings.length;let p=!1;return d>0&&Xi(t,e,0,n)&&(p=!0),d>1&&Xi(t,e,1,s)&&(p=!0),d>2&&Xi(t,e,2,r)&&(p=!0),d>3&&Xi(t,e,3,i)&&(p=!0),d>4&&Xi(t,e,4,o)&&(p=!0),d>5&&Xi(t,e,5,a)&&(p=!0),d>6&&Xi(t,e,6,l)&&(p=!0),d>7&&Xi(t,e,7,h)&&(p=!0),d>8&&Xi(t,e,8,c)&&(p=!0),d>9&&Xi(t,e,9,u)&&(p=!0),p}(t,e,n,s,r,i,o,a,l,h,c,u);case 2:return function(t,e,n,s,r,i,o,a,l,h,c,u){let d=!1;const p=e.bindings,f=p.length;if(f>0&&rs(t,e,0,n)&&(d=!0),f>1&&rs(t,e,1,s)&&(d=!0),f>2&&rs(t,e,2,r)&&(d=!0),f>3&&rs(t,e,3,i)&&(d=!0),f>4&&rs(t,e,4,o)&&(d=!0),f>5&&rs(t,e,5,a)&&(d=!0),f>6&&rs(t,e,6,l)&&(d=!0),f>7&&rs(t,e,7,h)&&(d=!0),f>8&&rs(t,e,8,c)&&(d=!0),f>9&&rs(t,e,9,u)&&(d=!0),d){let d=e.text.prefix;f>0&&(d+=ho(n,p[0])),f>1&&(d+=ho(s,p[1])),f>2&&(d+=ho(r,p[2])),f>3&&(d+=ho(i,p[3])),f>4&&(d+=ho(o,p[4])),f>5&&(d+=ho(a,p[5])),f>6&&(d+=ho(l,p[6])),f>7&&(d+=ho(h,p[7])),f>8&&(d+=ho(c,p[8])),f>9&&(d+=ho(u,p[9]));const m=Bn(t,e.nodeIndex).renderText;t.renderer.setValue(m,d)}return d}(t,e,n,s,r,i,o,a,l,h,c,u);case 16384:return function(t,e,n,s,r,i,o,a,l,h,c,u){const d=qn(t,e.nodeIndex),p=d.instance;let f=!1,m=void 0;const g=e.bindings.length;return g>0&&ss(t,e,0,n)&&(f=!0,m=Er(t,d,e,0,n,m)),g>1&&ss(t,e,1,s)&&(f=!0,m=Er(t,d,e,1,s,m)),g>2&&ss(t,e,2,r)&&(f=!0,m=Er(t,d,e,2,r,m)),g>3&&ss(t,e,3,i)&&(f=!0,m=Er(t,d,e,3,i,m)),g>4&&ss(t,e,4,o)&&(f=!0,m=Er(t,d,e,4,o,m)),g>5&&ss(t,e,5,a)&&(f=!0,m=Er(t,d,e,5,a,m)),g>6&&ss(t,e,6,l)&&(f=!0,m=Er(t,d,e,6,l,m)),g>7&&ss(t,e,7,h)&&(f=!0,m=Er(t,d,e,7,h,m)),g>8&&ss(t,e,8,c)&&(f=!0,m=Er(t,d,e,8,c,m)),g>9&&ss(t,e,9,u)&&(f=!0,m=Er(t,d,e,9,u,m)),m&&p.ngOnChanges(m),65536&e.flags&&zn(t,256,e.nodeIndex)&&p.ngOnInit(),262144&e.flags&&p.ngDoCheck(),f}(t,e,n,s,r,i,o,a,l,h,c,u);case 32:case 64:case 128:return function(t,e,n,s,r,i,o,a,l,h,c,u){const d=e.bindings;let p=!1;const f=d.length;if(f>0&&rs(t,e,0,n)&&(p=!0),f>1&&rs(t,e,1,s)&&(p=!0),f>2&&rs(t,e,2,r)&&(p=!0),f>3&&rs(t,e,3,i)&&(p=!0),f>4&&rs(t,e,4,o)&&(p=!0),f>5&&rs(t,e,5,a)&&(p=!0),f>6&&rs(t,e,6,l)&&(p=!0),f>7&&rs(t,e,7,h)&&(p=!0),f>8&&rs(t,e,8,c)&&(p=!0),f>9&&rs(t,e,9,u)&&(p=!0),p){const p=Yn(t,e.nodeIndex);let m;switch(201347067&e.flags){case 32:m=new Array(d.length),f>0&&(m[0]=n),f>1&&(m[1]=s),f>2&&(m[2]=r),f>3&&(m[3]=i),f>4&&(m[4]=o),f>5&&(m[5]=a),f>6&&(m[6]=l),f>7&&(m[7]=h),f>8&&(m[8]=c),f>9&&(m[9]=u);break;case 64:m={},f>0&&(m[d[0].name]=n),f>1&&(m[d[1].name]=s),f>2&&(m[d[2].name]=r),f>3&&(m[d[3].name]=i),f>4&&(m[d[4].name]=o),f>5&&(m[d[5].name]=a),f>6&&(m[d[6].name]=l),f>7&&(m[d[7].name]=h),f>8&&(m[d[8].name]=c),f>9&&(m[d[9].name]=u);break;case 128:const t=n;switch(f){case 1:m=t.transform(n);break;case 2:m=t.transform(s);break;case 3:m=t.transform(s,r);break;case 4:m=t.transform(s,r,i);break;case 5:m=t.transform(s,r,i,o);break;case 6:m=t.transform(s,r,i,o,a);break;case 7:m=t.transform(s,r,i,o,a,l);break;case 8:m=t.transform(s,r,i,o,a,l,h);break;case 9:m=t.transform(s,r,i,o,a,l,h,c);break;case 10:m=t.transform(s,r,i,o,a,l,h,c,u)}}p.value=m}return p}(t,e,n,s,r,i,o,a,l,h,c,u);default:throw"unreachable"}}(t,e,s,r,i,o,a,l,h,c,u,d):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){let s=!1;for(let r=0;r<n.length;r++)Xi(t,e,r,n[r])&&(s=!0);return s}(t,e,n);case 2:return function(t,e,n){const s=e.bindings;let r=!1;for(let i=0;i<n.length;i++)rs(t,e,i,n[i])&&(r=!0);if(r){let r="";for(let t=0;t<n.length;t++)r+=ho(n[t],s[t]);r=e.text.prefix+r;const i=Bn(t,e.nodeIndex).renderText;t.renderer.setValue(i,r)}return r}(t,e,n);case 16384:return function(t,e,n){const s=qn(t,e.nodeIndex),r=s.instance;let i=!1,o=void 0;for(let a=0;a<n.length;a++)ss(t,e,a,n[a])&&(i=!0,o=Er(t,s,e,a,n[a],o));return o&&r.ngOnChanges(o),65536&e.flags&&zn(t,256,e.nodeIndex)&&r.ngOnInit(),262144&e.flags&&r.ngDoCheck(),i}(t,e,n);case 32:case 64:case 128:return function(t,e,n){const s=e.bindings;let r=!1;for(let i=0;i<n.length;i++)rs(t,e,i,n[i])&&(r=!0);if(r){const r=Yn(t,e.nodeIndex);let i;switch(201347067&e.flags){case 32:i=n;break;case 64:i={};for(let r=0;r<n.length;r++)i[s[r].name]=n[r];break;case 128:const t=n[0],e=n.slice(1);i=t.transform(...e)}r.value=i}return r}(t,e,n);default:throw"unreachable"}}(t,e,s)}function Eo(t){const e=t.def;if(4&e.nodeFlags)for(let n=0;n<e.nodes.length;n++){const s=e.nodes[n];if(4&s.flags){const e=Hn(t,n).template._projectedViews;if(e)for(let n=0;n<e.length;n++){const s=e[n];s.state|=32,as(s,t)}}else 0==(4&s.childFlags)&&(n+=s.childCount)}}function So(t,e,n,s,r,i,o,a,l,h,c,u,d){return 0===n?function(t,e,n,s,r,i,o,a,l,h,c,u){const d=e.bindings.length;d>0&&is(t,e,0,n),d>1&&is(t,e,1,s),d>2&&is(t,e,2,r),d>3&&is(t,e,3,i),d>4&&is(t,e,4,o),d>5&&is(t,e,5,a),d>6&&is(t,e,6,l),d>7&&is(t,e,7,h),d>8&&is(t,e,8,c),d>9&&is(t,e,9,u)}(t,e,s,r,i,o,a,l,h,c,u,d):function(t,e,n){for(let s=0;s<n.length;s++)is(t,e,s,n[s])}(t,e,s),!1}function xo(t,e){if(Wn(t,e.nodeIndex).dirty)throw Ln(Kn.createDebugContext(t,e.nodeIndex),`Query ${e.query.id} not dirty`,`Query ${e.query.id} dirty`,0!=(1&t.state))}function To(t){if(!(128&t.state)){if(ko(t,Ao.Destroy),Do(t,Ao.Destroy),Sr(t,131072),t.disposables)for(let e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(!(16&t.state))return;const e=hs(t);if(e){const n=e.template._projectedViews;n&&(js(n,n.indexOf(t)),Kn.dirtyParentQueries(t))}}(t),t.renderer.destroyNode&&function(t){const e=t.def.nodes.length;for(let n=0;n<e;n++){const e=t.def.nodes[n];1&e.flags?t.renderer.destroyNode(Hn(t,n).renderElement):2&e.flags?t.renderer.destroyNode(Bn(t,n).renderText):(67108864&e.flags||134217728&e.flags)&&Wn(t,n).destroy()}}(t),ds(t)&&t.renderer.destroy(),t.state|=128}}const Ao=function(){var t={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return t[t.CreateViewNodes]="CreateViewNodes",t[t.CheckNoChanges]="CheckNoChanges",t[t.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",t[t.Destroy]="Destroy",t}();function Do(t,e){const n=t.def;if(33554432&n.nodeFlags)for(let s=0;s<n.nodes.length;s++){const r=n.nodes[s];33554432&r.flags?Ro(Hn(t,s).componentView,e):0==(33554432&r.childFlags)&&(s+=r.childCount)}}function ko(t,e){const n=t.def;if(16777216&n.nodeFlags)for(let s=0;s<n.nodes.length;s++){const r=n.nodes[s];if(16777216&r.flags){const n=Hn(t,s).viewContainer._embeddedViews;for(let t=0;t<n.length;t++)Ro(n[t],e)}else 0==(16777216&r.childFlags)&&(s+=r.childCount)}}function Ro(t,e){const n=t.state;switch(e){case Ao.CheckNoChanges:0==(128&n)&&(12==(12&n)?bo(t):64&n&&Io(t,Ao.CheckNoChangesProjectedViews));break;case Ao.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?bo(t):64&n&&Io(t,e));break;case Ao.CheckAndUpdate:0==(128&n)&&(12==(12&n)?wo(t):64&n&&Io(t,Ao.CheckAndUpdateProjectedViews));break;case Ao.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?wo(t):64&n&&Io(t,e));break;case Ao.Destroy:To(t);break;case Ao.CreateViewNodes:vo(t)}}function Io(t,e){ko(t,e),Do(t,e)}function Oo(t,e,n,s){if(!(t.def.nodeFlags&e&&t.def.nodeFlags&n))return;const r=t.def.nodes.length;for(let i=0;i<r;i++){const r=t.def.nodes[i];if(r.flags&e&&r.flags&n)switch(Kn.setCurrentNode(t,r.nodeIndex),s){case 0:eo(t,r);break;case 1:xo(t,r)}r.childFlags&e&&r.childFlags&n||(i+=r.childCount)}}let Po=!1;function No(t,e,n,s,r,i){const o=r.injector.get(un);return mo(Fo(t,r,o,e,n),s,i)}function Mo(t,e,n,s,r,i){const o=r.injector.get(un),a=Fo(t,r,new fa(o),e,n),l=Yo(s);return da(Xo.create,mo,null,[a,l,i])}function Fo(t,e,n,s,r){const i=e.injector.get(Ie),o=e.injector.get(Ve),a=n.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:s,selectorOrNode:r,sanitizer:i,rendererFactory:n,renderer:a,errorHandler:o}}function Vo(t,e,n,s){const r=Yo(n);return da(Xo.create,fo,null,[t,e,r,s])}function Lo(t,e,n,s){return n=zo.get(e.element.componentProvider.provider.token)||Yo(n),da(Xo.create,go,null,[t,e,n,s])}function jo(t,e,n,s){return er(t,e,n,function(t){const{hasOverrides:e,hasDeprecatedOverrides:n}=function(t){let e=!1,n=!1;return 0===$o.size?{hasOverrides:e,hasDeprecatedOverrides:n}:(t.providers.forEach(t=>{const s=$o.get(t.token);3840&t.flags&&s&&(e=!0,n=n||s.deprecatedBehavior)}),t.modules.forEach(t=>{Uo.forEach((s,r)=>{mt(r).providedIn===t&&(e=!0,n=n||s.deprecatedBehavior)})}),{hasOverrides:e,hasDeprecatedOverrides:n})}(t);return e?(function(t){for(let e=0;e<t.providers.length;e++){const s=t.providers[e];n&&(s.flags|=4096);const r=$o.get(s.token);r&&(s.flags=-3841&s.flags|r.flags,s.deps=gs(r.deps),s.value=r.value)}if(Uo.size>0){let e=new Set(t.modules);Uo.forEach((s,r)=>{if(e.has(mt(r).providedIn)){let e={token:r,flags:s.flags|(n?4096:0),deps:gs(s.deps),value:s.value,index:t.providers.length};t.providers.push(e),t.providersByKey[Gn(r)]=e}})}}(t=t.factory(()=>Zn)),t):t}(s))}const $o=new Map,Uo=new Map,zo=new Map;function Bo(t){let e;$o.set(t.token,t),"function"==typeof t.token&&(e=mt(t.token))&&"function"==typeof e.providedIn&&Uo.set(t.token,t)}function Ho(t,e){const n=vs(e.viewDefFactory),s=vs(n.nodes[0].element.componentView);zo.set(t,s)}function qo(){$o.clear(),Uo.clear(),zo.clear()}function Yo(t){if(0===$o.size)return t;const e=function(t){const e=[];let n=null;for(let s=0;s<t.nodes.length;s++){const r=t.nodes[s];1&r.flags&&(n=r),n&&3840&r.flags&&$o.has(r.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(()=>Zn);for(let s=0;s<e.length;s++)n(t,e[s]);return t;function n(t,e){for(let n=e+1;n<t.nodes.length;n++){const e=t.nodes[n];if(1&e.flags)return;if(3840&e.flags){const t=e.provider,n=$o.get(t.token);n&&(e.flags=-3841&e.flags|n.flags,t.deps=gs(n.deps),t.value=n.value)}}}}function Wo(t,e,n,s,r,i,o,a,l,h,c,u,d){const p=t.def.nodes[e];return Co(t,p,n,s,r,i,o,a,l,h,c,u,d),224&p.flags?Yn(t,e).value:void 0}function Ko(t,e,n,s,r,i,o,a,l,h,c,u,d){const p=t.def.nodes[e];return So(t,p,n,s,r,i,o,a,l,h,c,u,d),224&p.flags?Yn(t,e).value:void 0}function Zo(t){return da(Xo.detectChanges,wo,null,[t])}function Qo(t){return da(Xo.checkNoChanges,bo,null,[t])}function Go(t){return da(Xo.destroy,To,null,[t])}const Xo=function(){var t={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return t[t.create]="create",t[t.detectChanges]="detectChanges",t[t.checkNoChanges]="checkNoChanges",t[t.destroy]="destroy",t[t.handleEvent]="handleEvent",t}();let Jo,ta,ea;function na(t,e){ta=t,ea=e}function sa(t,e,n,s){return na(t,e),da(Xo.handleEvent,t.def.handleEvent,null,[t,e,n,s])}function ra(t,e){if(128&t.state)throw $n(Xo[Jo]);return na(t,la(t,0)),t.def.updateDirectives((function(t,n,s,...r){const i=t.def.nodes[n];return 0===e?oa(t,i,s,r):aa(t,i,s,r),16384&i.flags&&na(t,la(t,n)),224&i.flags?Yn(t,i.nodeIndex).value:void 0}),t)}function ia(t,e){if(128&t.state)throw $n(Xo[Jo]);return na(t,ha(t,0)),t.def.updateRenderer((function(t,n,s,...r){const i=t.def.nodes[n];return 0===e?oa(t,i,s,r):aa(t,i,s,r),3&i.flags&&na(t,ha(t,n)),224&i.flags?Yn(t,i.nodeIndex).value:void 0}),t)}function oa(t,e,n,s){if(Co(t,e,n,...s)){const o=1===n?s[0]:s;if(16384&e.flags){const n={};for(let t=0;t<e.bindings.length;t++){const s=e.bindings[t],a=o[t];8&s.flags&&(n[(r=s.nonMinifiedName,i=void 0,i=r.replace(/[$@]/g,"_"),`ng-reflect-${r=i.replace(Le,(...t)=>"-"+t[1].toLowerCase())}`)]=je(a))}const s=e.parent,a=Hn(t,s.nodeIndex).renderElement;if(s.element.name)for(let e in n){const s=n[e];null!=s?t.renderer.setAttribute(a,e,s):t.renderer.removeAttribute(a,e)}else t.renderer.setValue(a,`bindings=${JSON.stringify(n,null,2)}`)}}var r,i}function aa(t,e,n,s){So(t,e,n,...s)}function la(t,e){for(let n=e;n<t.def.nodes.length;n++){const e=t.def.nodes[n];if(16384&e.flags&&e.bindings&&e.bindings.length)return n}return null}function ha(t,e){for(let n=e;n<t.def.nodes.length;n++){const e=t.def.nodes[n];if(3&e.flags&&e.bindings&&e.bindings.length)return n}return null}class ca{constructor(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];let n=this.nodeDef,s=t;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&s;)n=cs(s),s=s.parent;this.elDef=n,this.elView=s}get elOrCompView(){return Hn(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return Qs(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const t=[];if(this.elDef)for(let e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){const n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t}get references(){const t={};if(this.elDef){ua(this.elView,this.elDef,t);for(let e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){const n=this.elView.def.nodes[e];20224&n.flags&&ua(this.elView,n,t),e+=n.childCount}}return t}get componentRenderElement(){const t=function(t){for(;t&&!ds(t);)t=t.parent;return t.parent?Hn(t.parent,cs(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?us(this.view,this.nodeDef):us(this.elView,this.elDef)}logError(t,...e){let n,s;2&this.nodeDef.flags?(n=this.view.def,s=this.nodeDef.nodeIndex):(n=this.elView.def,s=this.elDef.nodeIndex);const r=function(t,e){let n=-1;for(let s=0;s<=e;s++)3&t.nodes[s].flags&&n++;return n}(n,s);let i=-1;n.factory(()=>++i===r?t.error.bind(t,...e):Zn),i<r&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error(...e))}}function ua(t,e,n){for(let s in e.references)n[s]=so(t,e,e.references[s])}function da(t,e,n,s){const r=Jo,i=ta,o=ea;try{Jo=t;const a=e.apply(n,s);return ta=i,ea=o,Jo=r,a}catch(a){if(Ne(a)||!ta)throw a;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),jn(t,e),t}(a,pa())}}function pa(){return ta?new ca(ta,ea):null}class fa{constructor(t){this.delegate=t}createRenderer(t,e){return new ma(this.delegate.createRenderer(t,e))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class ma{constructor(t){this.delegate=t,this.debugContextFactory=pa,this.data=this.delegate.data}createDebugContext(t){return this.debugContextFactory(t)}destroyNode(t){!function(t){Li.delete(t.nativeNode)}(ji(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)}destroy(){this.delegate.destroy()}createElement(t,e){const n=this.delegate.createElement(t,e),s=this.createDebugContext(n);if(s){const e=new Vi(n,null,s);e.name=t,$i(e)}return n}createComment(t){const e=this.delegate.createComment(t),n=this.createDebugContext(e);return n&&$i(new Fi(e,null,n)),e}createText(t){const e=this.delegate.createText(t),n=this.createDebugContext(e);return n&&$i(new Fi(e,null,n)),e}appendChild(t,e){const n=ji(t),s=ji(e);n&&s&&n instanceof Vi&&n.addChild(s),this.delegate.appendChild(t,e)}insertBefore(t,e,n){const s=ji(t),r=ji(e),i=ji(n);s&&r&&s instanceof Vi&&s.insertBefore(i,r),this.delegate.insertBefore(t,e,n)}removeChild(t,e){const n=ji(t),s=ji(e);n&&s&&n instanceof Vi&&n.removeChild(s),this.delegate.removeChild(t,e)}selectRootElement(t,e){const n=this.delegate.selectRootElement(t,e),s=pa();return s&&$i(new Vi(n,null,s)),n}setAttribute(t,e,n,s){const r=ji(t);r&&r instanceof Vi&&(r.attributes[s?s+":"+e:e]=n),this.delegate.setAttribute(t,e,n,s)}removeAttribute(t,e,n){const s=ji(t);s&&s instanceof Vi&&(s.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)}addClass(t,e){const n=ji(t);n&&n instanceof Vi&&(n.classes[e]=!0),this.delegate.addClass(t,e)}removeClass(t,e){const n=ji(t);n&&n instanceof Vi&&(n.classes[e]=!1),this.delegate.removeClass(t,e)}setStyle(t,e,n,s){const r=ji(t);r&&r instanceof Vi&&(r.styles[e]=n),this.delegate.setStyle(t,e,n,s)}removeStyle(t,e,n){const s=ji(t);s&&s instanceof Vi&&(s.styles[e]=null),this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){const s=ji(t);s&&s instanceof Vi&&(s.properties[e]=n),this.delegate.setProperty(t,e,n)}listen(t,e,n){if("string"!=typeof t){const s=ji(t);s&&s.listeners.push(new Mi(e,n))}return this.delegate.listen(t,e,n)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setValue(t,e){return this.delegate.setValue(t,e)}}function ga(t,e,n){return new _a(t,e,n)}class _a extends on{constructor(t,e,n){super(),this.moduleType=t,this._bootstrapComponents=e,this._ngModuleDefFactory=n}create(t){!function(){if(Po)return;Po=!0;const t=le()?{setCurrentNode:na,createRootView:Mo,createEmbeddedView:Vo,createComponentView:Lo,createNgModuleRef:jo,overrideProvider:Bo,overrideComponentView:Ho,clearOverrides:qo,checkAndUpdateView:Zo,checkNoChangesView:Qo,destroyView:Go,createDebugContext:(t,e)=>new ca(t,e),handleEvent:sa,updateDirectives:ra,updateRenderer:ia}:{setCurrentNode:()=>{},createRootView:No,createEmbeddedView:fo,createComponentView:go,createNgModuleRef:er,overrideProvider:Zn,overrideComponentView:Zn,clearOverrides:Zn,checkAndUpdateView:wo,checkNoChangesView:bo,destroyView:To,createDebugContext:(t,e)=>new ca(t,e),handleEvent:(t,e,n,s)=>t.def.handleEvent(t,e,n,s),updateDirectives:(t,e)=>t.def.updateDirectives(0===e?Wo:Ko,t),updateRenderer:(t,e)=>t.def.updateRenderer(0===e?Wo:Ko,t)};Kn.setCurrentNode=t.setCurrentNode,Kn.createRootView=t.createRootView,Kn.createEmbeddedView=t.createEmbeddedView,Kn.createComponentView=t.createComponentView,Kn.createNgModuleRef=t.createNgModuleRef,Kn.overrideProvider=t.overrideProvider,Kn.overrideComponentView=t.overrideComponentView,Kn.clearOverrides=t.clearOverrides,Kn.checkAndUpdateView=t.checkAndUpdateView,Kn.checkNoChangesView=t.checkNoChangesView,Kn.destroyView=t.destroyView,Kn.resolveDep=wr,Kn.createDebugContext=t.createDebugContext,Kn.handleEvent=t.handleEvent,Kn.updateDirectives=t.updateDirectives,Kn.updateRenderer=t.updateRenderer,Kn.dirtyParentQueries=to}();const e=function(t){const e=Array.from(t.providers),n=Array.from(t.modules),s={};for(const r in t.providersByKey)s[r]=t.providersByKey[r];return{factory:t.factory,isRoot:t.isRoot,providers:e,modules:n,providersByKey:s}}(vs(this._ngModuleDefFactory));return Kn.createNgModuleRef(this.moduleType,t||qt.NULL,this._bootstrapComponents,e)}}class ya{constructor(){this.title="Invoice"}}class va{constructor(){}}class ba{constructor(t,e,n){this.http=t,this.router=e,this.route=n,this.invoices=new Array,this.bills=new Array,this.dtyPallets=new Array,this.fdyPallets=new Array,this.colorSellingRatios=new Array,this.colorAlerts=new Array,this.dtyPalletPoints=new Array,this.fdyPalletPoints=new Array,this.points=new Array,this.billPoints=new Array}ngOnInit(){this.http.get("/api/Dashboard/GetInvoices").toPromise().then(t=>{this.invoices=t;var e=0;for(let r of this.invoices){var n=0;for(let t of r.Elements)n+=t.TotalUsd;var s=new va;s.y=n/1e3,s.x=e,s.month=r.Key,this.points.push(s),e+=50}}),this.http.get("/api/Dashboard/GetExpenses").toPromise().then(t=>{this.bills=t;var e=0;for(let r of this.bills){var n=0;for(let t of r.Elements)n=n+t.UsdAmount+t.Amount/t.ExchangeRate;var s=new va;s.y=n/1e3,s.x=e,s.month=r.Key,this.billPoints.push(s),e+=50}}),this.http.get("/api/Dashboard/GetInventoryDTY").toPromise().then(t=>{this.dtyPallets=t;var e=0;for(let r of this.dtyPallets){var n=0;for(let t of r.Elements)n+=t.RemainWeight;var s=new va;s.y=n/1e3,s.x=e,s.month=r.Key,this.dtyPalletPoints.push(s),e+=50}}),this.http.get("/api/Dashboard/GetInventoryFDY").toPromise().then(t=>{this.fdyPallets=t;var e=0;for(let r of this.fdyPallets){var n=0;for(let t of r.Elements)n+=t.RemainWeight;var s=new va;s.y=n/1e3,s.x=e,s.month=r.Key,this.fdyPalletPoints.push(s),e+=50}}),this.http.get("/api/Dashboard/SellRatio").toPromise().then(t=>{this.colorSellingRatios=t}),this.http.get("/api/Dashboard/InventoryLowAlert").toPromise().then(t=>{this.colorAlerts=t})}}class wa{}const Ca=new Tt("Location Initialized");class Ea{}const Sa=new Tt("appBaseHref");let xa=(()=>{class t{constructor(e,n){this._subject=new Nr,this._urlChangeListeners=[],this._platformStrategy=e;const s=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=t.stripTrailingSlash(Ta(s)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+t.normalizeQueryParams(n))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Ta(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(e,n="",s=null){this._platformStrategy.pushState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+t.normalizeQueryParams(n)),s)}replaceState(e,n="",s=null){this._platformStrategy.replaceState(s,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+t.normalizeQueryParams(n)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}static normalizeQueryParams(t){return t&&"?"!==t[0]?"?"+t:t}static joinWithSlash(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}static stripTrailingSlash(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}}return t})();function Ta(t){return t.replace(/\/index.html$/,"")}let Aa=(()=>(class extends Ea{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=xa.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,s){let r=this.prepareExternalUrl(n+xa.normalizeQueryParams(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,s){let r=this.prepareExternalUrl(n+xa.normalizeQueryParams(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}))(),Da=(()=>(class extends Ea{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return xa.joinWithSlash(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+xa.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,s){const r=this.prepareExternalUrl(n+xa.normalizeQueryParams(s));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,s){const r=this.prepareExternalUrl(n+xa.normalizeQueryParams(s));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}))();const ka=function(){var t={Decimal:0,Percent:1,Currency:2,Scientific:3};return t[t.Decimal]="Decimal",t[t.Percent]="Percent",t[t.Currency]="Currency",t[t.Scientific]="Scientific",t}(),Ra=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),Ia=function(){var t={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return t[t.Decimal]="Decimal",t[t.Group]="Group",t[t.List]="List",t[t.PercentSign]="PercentSign",t[t.PlusSign]="PlusSign",t[t.MinusSign]="MinusSign",t[t.Exponential]="Exponential",t[t.SuperscriptingExponent]="SuperscriptingExponent",t[t.PerMille]="PerMille",t[t.Infinity]="Infinity",t[t.NaN]="NaN",t[t.TimeSeparator]="TimeSeparator",t[t.CurrencyDecimal]="CurrencyDecimal",t[t.CurrencyGroup]="CurrencyGroup",t}();function Oa(t,e){const n=Or(t),s=n[kr.NumberSymbols][e];if(void 0===s){if(e===Ia.CurrencyDecimal)return n[kr.NumberSymbols][Ia.Decimal];if(e===Ia.CurrencyGroup)return n[kr.NumberSymbols][Ia.Group]}return s}const Pa=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Na=22,Ma=".",Fa="0",Va=";",La=",",ja="#";function $a(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}const Ua=new Tt("UseV4Plurals");class za{}let Ba=(()=>(class extends za{constructor(t,e){super(),this.locale=t,this.deprecatedPluralFn=e}getPluralCategory(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return Or(t)[kr.PluralCase]}(e||this.locale)(t)){case Ra.Zero:return"zero";case Ra.One:return"one";case Ra.Two:return"two";case Ra.Few:return"few";case Ra.Many:return"many";default:return"other"}}}))();function Ha(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[s,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(s.trim()===e)return decodeURIComponent(r)}return null}class qa{}let Ya=(()=>(class{constructor(t,e,n,s){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=s,this._initialClasses=[]}getValue(){return null}setClass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}setNgClass(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&&(qe(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}applyChanges(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${_t(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}))(),Wa=(()=>{class t{constructor(t){this._delegate=t}getValue(){return this._delegate.getValue()}}return t.ngDirectiveDef=void 0,t})(),Ka=(()=>(class extends Wa{constructor(t){super(t)}set klass(t){this._delegate.setClass(t)}set ngClass(t){this._delegate.setNgClass(t)}ngDoCheck(){this._delegate.applyChanges()}}))();class Za{constructor(t,e,n,s){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Qa=(()=>(class{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){le()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,s)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Za(null,this._ngForOf,-1,-1),s),r=new Ga(t,n);e.push(r)}else if(null==s)this._viewContainer.remove(n);else{const r=this._viewContainer.get(n);this._viewContainer.move(r,s);const i=new Ga(t,r);e.push(i)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,s=this._viewContainer.length;n<s;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=s,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}))();class Ga{constructor(t,e){this.record=t,this.view=e}}let Xa=(()=>(class{constructor(t,e){this._viewContainer=t,this._context=new Ja,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){tl("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){tl("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)))}}))();class Ja{constructor(){this.$implicit=null,this.ngIf=null}}function tl(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${_t(e)}'.`)}class el{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let nl=(()=>(class{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}))(),sl=(()=>(class{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new el(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}))(),rl=(()=>{class t{constructor(t){this._locale=t}transform(e,n,s){if(function(t){return null==t||""===t||t!=t}(e))return null;s=s||this._locale;try{return function(t,e,n){return function(t,e,n,s,r,i,o=!1){let a="",l=!1;if(isFinite(t)){let h=function(t){let e,n,s,r,i,o=Math.abs(t)+"",a=0;for((n=o.indexOf(Ma))>-1&&(o=o.replace(Ma,"")),(s=o.search(/e/i))>0?(n<0&&(n=s),n+=+o.slice(s+1),o=o.substring(0,s)):n<0&&(n=o.length),s=0;o.charAt(s)===Fa;s++);if(s===(i=o.length))e=[0],n=1;else{for(i--;o.charAt(i)===Fa;)i--;for(n-=s,e=[],r=0;s<=i;s++,r++)e[r]=Number(o.charAt(s))}return n>Na&&(e=e.splice(0,Na-1),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(h=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(h));let c=e.minInt,u=e.minFrac,d=e.maxFrac;if(i){const t=i.match(Pa);if(null===t)throw new Error(`${i} is not a valid digit info`);const e=t[1],n=t[3],s=t[5];null!=e&&(c=$a(e)),null!=n&&(u=$a(n)),null!=s?d=$a(s):null!=n&&u>d&&(d=u)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let s=t.digits,r=s.length-t.integerLen;const i=Math.min(Math.max(e,r),n);let o=i+t.integerLen,a=s[o];if(o>0){s.splice(Math.max(t.integerLen,o));for(let t=o;t<s.length;t++)s[t]=0}else{r=Math.max(0,r),t.integerLen=1,s.length=Math.max(1,o=i+1),s[0]=0;for(let t=1;t<o;t++)s[t]=0}if(a>=5)if(o-1<0){for(let e=0;e>o;e--)s.unshift(0),t.integerLen++;s.unshift(1),t.integerLen++}else s[o-1]++;for(;r<Math.max(0,i);r++)s.push(0);let l=0!==i;const h=e+t.integerLen,c=s.reduceRight((function(t,e,n,s){return s[n]=(e+=t)<10?e:e-10,l&&(0===s[n]&&n>=h?s.pop():l=!1),e>=10?1:0}),0);c&&(s.unshift(c),t.integerLen++)}(h,u,d);let p=h.digits,f=h.integerLen;const m=h.exponent;let g=[];for(l=p.every(t=>!t);f<c;f++)p.unshift(0);for(;f<0;f++)p.unshift(0);f>0?g=p.splice(f,p.length):(g=p,p=[0]);const _=[];for(p.length>=e.lgSize&&_.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)_.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&_.unshift(p.join("")),a=_.join(Oa(n,s)),g.length&&(a+=Oa(n,r)+g.join("")),m&&(a+=Oa(n,Ia.Exponential)+"+"+m)}else a=Oa(n,Ia.Infinity);return t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf}(t,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},s=t.split(Va),r=s[0],i=s[1],o=-1!==r.indexOf(Ma)?r.split(Ma):[r.substring(0,r.lastIndexOf(Fa)+1),r.substring(r.lastIndexOf(Fa)+1)],a=o[0],l=o[1]||"";n.posPre=a.substr(0,a.indexOf(ja));for(let c=0;c<l.length;c++){const t=l.charAt(c);t===Fa?n.minFrac=n.maxFrac=c+1:t===ja?n.maxFrac=c+1:n.posSuf+=t}const h=a.split(La);if(n.gSize=h[1]?h[1].length:0,n.lgSize=h[2]||h[1]?(h[2]||h[1]).length:0,i){const t=r.length-n.posPre.length-n.posSuf.length,e=i.indexOf(ja);n.negPre=i.substr(0,e).replace(/'/g,""),n.negSuf=i.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(function(t,e){return Or(t)[kr.NumberFormats][e]}(e,ka.Decimal),Oa(e,Ia.MinusSign)),e,Ia.Group,Ia.Decimal,n)}(function(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}(e),s,n)}catch(r){throw function(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${_t(t)}'`)}(t,r.message)}}}return t})(),il=(()=>(class{}))();const ol=new Tt("DocumentToken"),al="browser";let ll=(()=>{class t{}return t.ngInjectableDef=ft({token:t,providedIn:"root",factory:()=>new hl(jt(ol),window,jt(Ve))}),t})();class hl{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector(`#${t}`);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],s-r[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}const cl=new w(t=>t.complete());function ul(t){return t?function(t){return new w(e=>t.schedule(()=>e.complete()))}(t):cl}function dl(t){const e=new w(e=>{e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}function pl(...t){let e=t[t.length-1];switch(k(e)?t.pop():e=void 0,t.length){case 0:return ul(e);case 1:return e?q(t,e):dl(t[0]);default:return q(t,e)}}class fl extends A{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new S;return this._value}next(t){super.next(this._value=t)}}function ml(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}ml.prototype=Object.create(Error.prototype);const gl=ml,_l={};class yl{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new vl(t,this.resultSelector))}}class vl extends U{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(_l),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++){const e=t[n];this.add($(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,s,r){const i=this.values,o=this.toRespond?i[n]===_l?--this.toRespond:this.toRespond:0;i[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function bl(t){return new w(e=>{let n;try{n=t()}catch(s){return void e.error(s)}return(n?Y(n):ul()).subscribe(e)})}function wl(){return G(1)}function Cl(t,e){return function(n){return n.lift(new El(t,e))}}class El{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Sl(t,this.predicate,this.thisArg))}}class Sl extends m{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}function xl(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}xl.prototype=Object.create(Error.prototype);const Tl=xl;function Al(t){return function(e){return 0===t?ul():e.lift(new Dl(t))}}class Dl{constructor(t){if(this.total=t,this.total<0)throw new Tl}call(t,e){return e.subscribe(new kl(t,this.total))}}class kl extends m{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,s=this.count++;e.length<n?e.push(t):e[s%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,s=this.ring;for(let r=0;r<n;r++){const r=e++%n;t.next(s[r])}}t.complete()}}function Rl(t,e,n){return function(s){return s.lift(new Il(t,e,n))}}class Il{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Ol(t,this.nextOrObserver,this.error,this.complete))}}class Ol extends m{constructor(t,e,n,r){super(t),this._tapNext=y,this._tapError=y,this._tapComplete=y,this._tapError=n||y,this._tapComplete=r||y,s(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||y,this._tapError=e.error||y,this._tapComplete=e.complete||y)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const Pl=(t=Nl)=>Rl({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw t()}});function Nl(){return new gl}function Ml(t=null){return e=>e.lift(new Fl(t))}class Fl{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Vl(t,this.defaultValue))}}class Vl extends m{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Ll(t,e){const n=arguments.length>=2;return s=>s.pipe(t?Cl((e,n)=>t(e,n,s)):Q,Al(1),n?Ml(e):Pl(()=>new gl))}function jl(t){return function(e){const n=new $l(t),s=e.lift(n);return n.caught=s}}class $l{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Ul(t,this.selector,this.caught))}}class Ul extends U{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const s=new R(this,void 0,void 0);this.add(s),$(this,n,void 0,void 0,s)}}}function zl(t){return e=>0===t?ul():e.lift(new Bl(t))}class Bl{constructor(t){if(this.total=t,this.total<0)throw new Tl}call(t,e){return e.subscribe(new Hl(t,this.total))}}class Hl extends m{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function ql(t,e){const n=arguments.length>=2;return s=>s.pipe(t?Cl((e,n)=>t(e,n,s)):Q,zl(1),n?Ml(e):Pl(()=>new gl))}class Yl{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new Wl(t,this.predicate,this.thisArg,this.source))}}class Wl extends m{constructor(t,e,n,s){super(t),this.predicate=e,this.thisArg=n,this.source=s,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Kl(t,e){return"function"==typeof e?n=>n.pipe(Kl((n,s)=>Y(t(n,s)).pipe(z((t,r)=>e(n,t,s,r))))):e=>e.lift(new Zl(t))}class Zl{constructor(t){this.project=t}call(t,e){return e.subscribe(new Ql(t,this.project))}}class Ql extends U{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(s){return void this.destination.error(s)}this._innerSub(e,t,n)}_innerSub(t,e,n){const s=this.innerSubscription;s&&s.unsubscribe();const r=new R(this,void 0,void 0);this.destination.add(r),this.innerSubscription=$(this,t,e,n,r)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,s,r){this.destination.next(e)}}function Gl(...t){return e=>{let n=t[t.length-1];k(n)?t.pop():n=null;const s=t.length;return function(...t){return wl()(pl(...t))}(1!==s||n?s>0?q(t,n):ul(n):dl(t[0]),e)}}function Xl(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(s){return s.lift(new Jl(t,e,n))}}class Jl{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new th(t,this.accumulator,this.seed,this.hasSeed))}}class th extends m{constructor(t,e,n,s){super(t),this.accumulator=e,this._seed=n,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(s){this.destination.error(s)}this.seed=n,this.destination.next(n)}}function eh(t,e){return W(t,e,1)}class nh{constructor(t){this.callback=t}call(t,e){return e.subscribe(new sh(t,this.callback))}}class sh extends m{constructor(t,e){super(t),this.add(new d(e))}}let rh=null;function ih(){return rh}class oh{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(t){this._attrToPropMap=t}}class ah extends oh{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const t=this.createElement("div",document);if(null!=this.getStyle(t,"animationName"))this._animationPrefix="";else{const e=["Webkit","Moz","O","ms"];for(let n=0;n<e.length;n++)if(null!=this.getStyle(t,e[n]+"AnimationName")){this._animationPrefix="-"+e[n].toLowerCase()+"-";break}}const e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(e).forEach(n=>{null!=this.getStyle(t,n)&&(this._transitionEnd=e[n])})}catch(t){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(t){return t.getDistributedNodes()}resolveAndSetHref(t,e,n){t.href=null==n?e:e+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}const lh={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},hh=3,ch={"\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"},uh={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"},dh=(()=>{if(xt.Node)return xt.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))}})();class ph extends ah{parse(t){throw new Error("parse not implemented")}static makeCurrent(){var t;t=new ph,rh||(rh=t)}hasProperty(t,e){return e in t}setProperty(t,e,n){t[e]=n}getProperty(t,e){return t[e]}invoke(t,e,n){t[e](...n)}logError(t){window.console&&(console.error?console.error(t):console.log(t))}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return lh}contains(t,e){return dh.call(t,e)}querySelector(t,e){return t.querySelector(e)}querySelectorAll(t,e){return t.querySelectorAll(e)}on(t,e,n){t.addEventListener(e,n,!1)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}createMouseEvent(t){const e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e}createEvent(t){const e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e}preventDefault(t){t.preventDefault(),t.returnValue=!1}isPrevented(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue}getInnerHTML(t){return t.innerHTML}getTemplateContent(t){return"content"in t&&this.isTemplateElement(t)?t.content:null}getOuterHTML(t){return t.outerHTML}nodeName(t){return t.nodeName}nodeValue(t){return t.nodeValue}type(t){return t.type}content(t){return this.hasProperty(t,"content")?t.content:t}firstChild(t){return t.firstChild}nextSibling(t){return t.nextSibling}parentElement(t){return t.parentNode}childNodes(t){return t.childNodes}childNodesAsList(t){const e=t.childNodes,n=new Array(e.length);for(let s=0;s<e.length;s++)n[s]=e[s];return n}clearNodes(t){for(;t.firstChild;)t.removeChild(t.firstChild)}appendChild(t,e){t.appendChild(e)}removeChild(t,e){t.removeChild(e)}replaceChild(t,e,n){t.replaceChild(e,n)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}insertBefore(t,e,n){t.insertBefore(n,e)}insertAllBefore(t,e,n){n.forEach(n=>t.insertBefore(n,e))}insertAfter(t,e,n){t.insertBefore(n,e.nextSibling)}setInnerHTML(t,e){t.innerHTML=e}getText(t){return t.textContent}setText(t,e){t.textContent=e}getValue(t){return t.value}setValue(t,e){t.value=e}getChecked(t){return t.checked}setChecked(t,e){t.checked=e}createComment(t){return this.getDefaultDocument().createComment(t)}createTemplate(t){const e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createElementNS(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)}createTextNode(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)}createScriptTag(t,e,n){const s=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return s.setAttribute(t,e),s}createStyleElement(t,e){const n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),n}createShadowRoot(t){return t.createShadowRoot()}getShadowRoot(t){return t.shadowRoot}getHost(t){return t.host}clone(t){return t.cloneNode(!0)}getElementsByClassName(t,e){return t.getElementsByClassName(e)}getElementsByTagName(t,e){return t.getElementsByTagName(e)}classList(t){return Array.prototype.slice.call(t.classList,0)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}hasClass(t,e){return t.classList.contains(e)}setStyle(t,e,n){t.style[e]=n}removeStyle(t,e){t.style[e]=""}getStyle(t,e){return t.style[e]}hasStyle(t,e,n){const s=this.getStyle(t,e)||"";return n?s==n:s.length>0}tagName(t){return t.tagName}attributeMap(t){const e=new Map,n=t.attributes;for(let s=0;s<n.length;s++){const t=n.item(s);e.set(t.name,t.value)}return e}hasAttribute(t,e){return t.hasAttribute(e)}hasAttributeNS(t,e,n){return t.hasAttributeNS(e,n)}getAttribute(t,e){return t.getAttribute(e)}getAttributeNS(t,e,n){return t.getAttributeNS(e,n)}setAttribute(t,e,n){t.setAttribute(e,n)}setAttributeNS(t,e,n,s){t.setAttributeNS(e,n,s)}removeAttribute(t,e){t.removeAttribute(e)}removeAttributeNS(t,e,n){t.removeAttributeNS(e,n)}templateAwareRoot(t){return this.isTemplateElement(t)?this.content(t):t}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}getBoundingClientRect(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}}getTitle(t){return t.title}setTitle(t,e){t.title=e||""}elementMatches(t,e){return!!this.isElementNode(t)&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))}isTemplateElement(t){return this.isElementNode(t)&&"TEMPLATE"===t.nodeName}isTextNode(t){return t.nodeType===Node.TEXT_NODE}isCommentNode(t){return t.nodeType===Node.COMMENT_NODE}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}hasShadowRoot(t){return null!=t.shadowRoot&&t instanceof HTMLElement}isShadowRoot(t){return t instanceof DocumentFragment}importIntoDoc(t){return document.importNode(this.templateAwareRoot(t),!0)}adoptNode(t){return document.adoptNode(t)}getHref(t){return t.getAttribute("href")}getEventKey(t){let e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),t.location===hh&&uh.hasOwnProperty(e)&&(e=uh[e]))}return ch[e]||e}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=mh||(mh=document.querySelector("base"))?mh.getAttribute("href"):null;return null==e?null:(n=e,fh||(fh=document.createElement("a")),fh.setAttribute("href",n),"/"===fh.pathname.charAt(0)?fh.pathname:"/"+fh.pathname);var n}resetBaseElement(){mh=null}getUserAgent(){return window.navigator.userAgent}setData(t,e,n){this.setAttribute(t,"data-"+e,n)}getData(t,e){return this.getAttribute(t,"data-"+e)}getComputedStyle(t){return getComputedStyle(t)}supportsWebAnimation(){return"function"==typeof Element.prototype.animate}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Ha(document.cookie,t)}setCookie(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)}}let fh,mh=null;function gh(){return!!window.history.pushState}let _h=(()=>{class t extends wa{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=ih().getLocation(),this._history=ih().getHistory()}getBaseHrefFromDOM(){return ih().getBaseHref(this._doc)}onPopState(t){ih().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){ih().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){gh()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){gh()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.ctorParameters=()=>[{type:void 0,decorators:[{type:lt,args:[ol]}]}],t})();const yh=new Tt("TRANSITION_ID"),vh=[{provide:Vr,useFactory:function(t,e,n){return()=>{n.get(Lr).donePromise.then(()=>{const n=ih();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(e=>n.getAttribute(e,"ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[yh,ol,qt],multi:!0}];class bh{static init(){var t;t=new bh,bi=t}addToWindow(t){xt.getAngularTestability=(e,n=!0)=>{const s=t.findTestabilityInTree(e,n);if(null==s)throw new Error("Could not find testability for element.");return s},xt.getAllAngularTestabilities=()=>t.getAllTestabilities(),xt.getAllAngularRootElements=()=>t.getAllRootElements(),xt.frameworkStabilizers||(xt.frameworkStabilizers=[]),xt.frameworkStabilizers.push(t=>{const e=xt.getAllAngularTestabilities();let n=e.length,s=!1;const r=function(e){s=s||e,0==--n&&t(s)};e.forEach((function(t){t.whenStable(r)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?ih().isShadowRoot(e)?this.findTestabilityInTree(t,ih().getHost(e),!0):this.findTestabilityInTree(t,ih().parentElement(e),!0):null}}function wh(t,e){"undefined"!=typeof COMPILED&&COMPILED||((xt.ng=xt.ng||{})[t]=e)}const Ch=(()=>({ApplicationRef:Di,NgZone:hi}))();function Eh(t){return ji(t)}const Sh=new Tt("EventManagerPlugins");let xh=(()=>(class{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let s=0;s<n.length;s++){const e=n[s];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}))();class Th{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const s=ih().getGlobalEventTarget(this._doc,t);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,n)}}let Ah=(()=>(class{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}))(),Dh=(()=>(class extends Ah{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>ih().remove(t))}}))();const kh={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/"},Rh=/%COMP%/g,Ih="_nghost-%COMP%",Oh="_ngcontent-%COMP%";function Ph(t,e,n){for(let s=0;s<e.length;s++){let r=e[s];Array.isArray(r)?Ph(t,r,n):(r=r.replace(Rh,t),n.push(r))}return n}function Nh(t){return e=>{!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Mh=(()=>(class{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Fh(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case re.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new jh(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case re.Native:case re.ShadowDom:return new $h(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Ph(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}))();class Fh{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(kh[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,s){if(s){e=s+":"+e;const r=kh[s];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const s=kh[n];s?t.removeAttributeNS(s,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,s){s&dn.DashCase?t.style.setProperty(e,n,s&dn.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&dn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){Lh(e,"property"),t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return Lh(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Nh(n)):this.eventManager.addEventListener(t,e,Nh(n))}}const Vh=(()=>"@".charCodeAt(0))();function Lh(t,e){if(t.charCodeAt(0)===Vh)throw new Error(`Found the synthetic ${e} ${t}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class jh extends Fh{constructor(t,e,n,s){super(t),this.component=n;const r=Ph(s+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr=Oh.replace(Rh,s+"-"+n.id),this.hostAttr=function(t){return Ih.replace(Rh,t)}(s+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class $h extends Fh{constructor(t,e,n,s){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===re.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=Ph(s.id,s.styles,[]);for(let i=0;i<r.length;i++){const t=document.createElement("style");t.textContent=r[i],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}const Uh=(()=>"undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t})(),zh=Uh("addEventListener"),Bh=Uh("removeEventListener"),Hh={},qh="__zone_symbol__propagationStopped",Yh=(()=>{const t="undefined"!=typeof Zone&&Zone[Uh("BLACK_LISTED_EVENTS")];if(t){const e={};return t.forEach(t=>{e[t]=t}),e}})(),Wh=function(t){return!!Yh&&Yh.hasOwnProperty(t)},Kh=function(t){const e=Hh[t.type];if(!e)return;const n=this[e];if(!n)return;const s=[t];if(1===n.length){const t=n[0];return t.zone!==Zone.current?t.zone.run(t.handler,this,s):t.handler.apply(this,s)}{const e=n.slice();for(let n=0;n<e.length&&!0!==t[qh];n++){const t=e[n];t.zone!==Zone.current?t.zone.run(t.handler,this,s):t.handler.apply(this,s)}}};let Zh=(()=>(class extends Th{constructor(t,e,n){super(t),this.ngZone=e,n&&function(t){return"server"===t}(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype.__zone_symbol__stopImmediatePropagation)return;const t=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[qh]=!0),t&&t.apply(this,arguments)}}supports(t){return!0}addEventListener(t,e,n){let s=n;if(!t[zh]||hi.isInAngularZone()&&!Wh(e))t.addEventListener(e,s,!1);else{let n=Hh[e];n||(n=Hh[e]=Uh("ANGULAR"+e+"FALSE"));let r=t[n];const i=r&&r.length>0;r||(r=t[n]=[]);const o=Wh(e)?Zone.root:Zone.current;if(0===r.length)r.push({zone:o,handler:s});else{let t=!1;for(let e=0;e<r.length;e++)if(r[e].handler===s){t=!0;break}t||r.push({zone:o,handler:s})}i||t[zh](e,Kh,!1)}return()=>this.removeEventListener(t,e,s)}removeEventListener(t,e,n){let s=t[Bh];if(!s)return t.removeEventListener.apply(t,[e,n,!1]);let r=Hh[e],i=r&&t[r];if(!i)return t.removeEventListener.apply(t,[e,n,!1]);let o=!1;for(let a=0;a<i.length;a++)if(i[a].handler===n){o=!0,i.splice(a,1);break}o?0===i.length&&s.apply(t,[e,Kh,!1]):t.removeEventListener.apply(t,[e,n,!1])}}))();const Qh={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Gh=new Tt("HammerGestureConfig"),Xh=new Tt("HammerLoader");let Jh=(()=>(class{constructor(){this.events=[],this.overrides={}}buildHammer(t){const e=new Hammer(t,this.options);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(const n in this.overrides)e.get(n).set(this.overrides[n]);return e}}))(),tc=(()=>(class extends Th{constructor(t,e,n,s){super(t),this._config=e,this.console=n,this.loader=s}supports(t){return!(!Qh.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${t}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),1))}addEventListener(t,e,n){const s=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){let s=!1,r=()=>{s=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(r=()=>{});s||(r=this.addEventListener(t,e,n))}).catch(()=>{this.console.warn(`The "${e}" event cannot be bound because the custom `+"Hammer.JS loader failed."),r=()=>{}}),()=>{r()}}return s.runOutsideAngular(()=>{const r=this._config.buildHammer(t),i=function(t){s.runGuarded((function(){n(t)}))};return r.on(e,i),()=>{r.off(e,i),"function"==typeof r.destroy&&r.destroy()}})}isCustomEvent(t){return this._config.events.indexOf(t)>-1}}))();const ec=["alt","control","meta","shift"],nc={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let sc=(()=>{class t extends Th{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const r=t.parseEventName(n),i=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ih().onAndCancel(e,r.domEventName,i))}static parseEventName(e){const n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const r=t._normalizeKey(n.pop());let i="";if(ec.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=s,o.fullKey=i,o}static getEventFullKey(t){let e="",n=ih().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ec.forEach(s=>{s!=n&&(0,nc[s])(t)&&(e+=s+".")}),e+=n}static eventCallback(e,n,s){return r=>{t.getEventFullKey(r)===e&&s.runGuarded(()=>n(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t})();class rc{}let ic=(()=>(class extends rc{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Re.NONE:return e;case Re.HTML:return e instanceof ac?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){let n=null;try{De=De||new he(t);let s=e?String(e):"";n=De.getInertBodyElement(s);let r=5,i=s;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,s=i,i=n.innerHTML,n=De.getInertBodyElement(s)}while(s!==i);const o=new Se,a=o.sanitizeChildren(ke(n)||n);return le()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=ke(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(this._doc,String(e)));case Re.STYLE:return e instanceof lc?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";const e=t.match(Pe);return e&&de(e[1])===e[1]||t.match(Oe)&&function(t){let e=!0,n=!0;for(let s=0;s<t.length;s++){const r=t.charAt(s);"'"===r&&n?e=!e:'"'===r&&e&&(n=!n)}return e&&n}(t)?t:(le()&&console.warn(`WARNING: sanitizing unsafe style value ${t} (see http://g.co/ng/security#xss).`),"unsafe")}(e));case Re.SCRIPT:if(e instanceof hc)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case Re.URL:return e instanceof uc||e instanceof cc?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),de(String(e)));case Re.RESOURCE_URL:if(e instanceof uc)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}checkNotSafeValue(t,e){if(t instanceof oc)throw new Error(`Required a safe ${e}, got a ${t.getTypeName()} `+"(see http://g.co/ng/security#xss)")}bypassSecurityTrustHtml(t){return new ac(t)}bypassSecurityTrustStyle(t){return new lc(t)}bypassSecurityTrustScript(t){return new hc(t)}bypassSecurityTrustUrl(t){return new cc(t)}bypassSecurityTrustResourceUrl(t){return new uc(t)}}))();class oc{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class ac extends oc{getTypeName(){return"HTML"}}class lc extends oc{getTypeName(){return"Style"}}class hc extends oc{getTypeName(){return"Script"}}class cc extends oc{getTypeName(){return"URL"}}class uc extends oc{getTypeName(){return"ResourceURL"}}const dc=Si(Ui,"browser",[{provide:Br,useValue:al},{provide:zr,useValue:function(){ph.makeCurrent(),bh.init()},multi:!0},{provide:wa,useClass:_h,deps:[ol]},{provide:ol,useFactory:function(){return document},deps:[]}]);function pc(){return new Ve}let fc=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:jr,useValue:e.appId},{provide:yh,useExisting:jr},vh]}}}return t})();"undefined"!=typeof window&&window;class mc{constructor(t,e){this.id=t,this.url=e}}class gc extends mc{constructor(t,e,n="imperative",s=null){super(t,e),this.navigationTrigger=n,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class _c extends mc{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class yc extends mc{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class vc extends mc{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class bc extends mc{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wc extends mc{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cc extends mc{constructor(t,e,n,s,r){super(t,e),this.urlAfterRedirects=n,this.state=s,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ec extends mc{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sc extends mc{constructor(t,e,n,s){super(t,e),this.urlAfterRedirects=n,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xc{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Tc{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ac{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Dc{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kc{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rc{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ic{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Oc=(()=>(class{}))();const Pc="primary";class Nc{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Mc(t){return new Nc(t)}const Fc="ngNavigationCancelingError";function Vc(t){const e=Error("NavigationCancelingError: "+t);return e[Fc]=!0,e}function Lc(t,e,n){const s=n.path.split("/");if(s.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||s.length<t.length))return null;const r={};for(let i=0;i<s.length;i++){const e=s[i],n=t[i];if(e.startsWith(":"))r[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,s.length),posParams:r}}class jc{constructor(t,e){this.routes=t,this.module=e}}function $c(t,e=""){for(let n=0;n<t.length;n++){const s=t[n];Uc(s,zc(e,s))}}function Uc(t,e){if(!t)throw new Error(`\n      Invalid configuration of route '${e}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&t.outlet!==Pc)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&$c(t.children,e)}function zc(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Bc(t){const e=t.children&&t.children.map(Bc),n=e?Object.assign({},t,{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==Pc&&(n.component=Oc),n}function Hc(t,e){const n=Object.keys(t),s=Object.keys(e);if(!n||!s||n.length!=s.length)return!1;let r;for(let i=0;i<n.length;i++)if(t[r=n[i]]!==e[r])return!1;return!0}function qc(t){return Array.prototype.concat.apply([],t)}function Yc(t){return t.length>0?t[t.length-1]:null}function Wc(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Kc(t){return Ke(t)?t:We(t)?Y(Promise.resolve(t)):pl(t)}function Zc(t,e,n){return n?function(t,e){return Hc(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Jc(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const s in n.children){if(!e.children[s])return!1;if(!t(e.children[s],n.children[s]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>e[n]===t[n])}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,s,r){if(n.segments.length>r.length)return!!Jc(n.segments.slice(0,r.length),r)&&!s.hasChildren();if(n.segments.length===r.length){if(!Jc(n.segments,r))return!1;for(const e in s.children){if(!n.children[e])return!1;if(!t(n.children[e],s.children[e]))return!1}return!0}{const t=r.slice(0,n.segments.length),i=r.slice(n.segments.length);return!!Jc(n.segments,t)&&!!n.children[Pc]&&e(n.children[Pc],s,i)}}(e,n,n.segments)}(t.root,e.root)}class Qc{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Mc(this.queryParams)),this._queryParamMap}toString(){return su.serialize(this)}}class Gc{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Wc(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ru(this)}}class Xc{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Mc(this.parameters)),this._parameterMap}toString(){return cu(this)}}function Jc(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function tu(t,e){let n=[];return Wc(t.children,(t,s)=>{s===Pc&&(n=n.concat(e(t,s)))}),Wc(t.children,(t,s)=>{s!==Pc&&(n=n.concat(e(t,s)))}),n}class eu{}class nu{parse(t){const e=new mu(t);return new Qc(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,n){if(!e.hasChildren())return ru(e);if(n){const n=e.children[Pc]?t(e.children[Pc],!1):"",s=[];return Wc(e.children,(e,n)=>{n!==Pc&&s.push(`${n}:${t(e,!1)}`)}),s.length>0?`${n}(${s.join("//")})`:n}{const n=tu(e,(n,s)=>s===Pc?[t(e.children[Pc],!1)]:[`${s}:${t(n,!1)}`]);return`${ru(e)}/(${n.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${ou(e)}=${ou(t)}`).join("&"):`${ou(e)}=${ou(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const su=new nu;function ru(t){return t.segments.map(t=>cu(t)).join("/")}function iu(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ou(t){return iu(t).replace(/%3B/gi,";")}function au(t){return iu(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lu(t){return decodeURIComponent(t)}function hu(t){return lu(t.replace(/\+/g,"%20"))}function cu(t){return`${au(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${au(t)}=${au(e[t])}`).join("")}`;var e}const uu=/^[^\/()?;=#]+/;function du(t){const e=t.match(uu);return e?e[0]:""}const pu=/^[^=?&#]+/,fu=/^[^?&#]+/;class mu{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Gc([],{}):new Gc([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Pc]=new Gc(t,e)),n}parseSegment(){const t=du(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Xc(lu(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=du(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=du(this.remaining);t&&this.capture(n=t)}t[lu(e)]=lu(n)}parseQueryParam(t){const e=function(t){const e=t.match(pu);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(fu);return e?e[0]:""}(this.remaining);t&&this.capture(n=t)}const s=hu(e),r=hu(n);if(t.hasOwnProperty(s)){let e=t[s];Array.isArray(e)||(t[s]=e=[e]),e.push(r)}else t[s]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=du(this.remaining),s=this.remaining[n.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=Pc);const i=this.parseChildren();e[r]=1===Object.keys(i).length?i[Pc]:new Gc([],i),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class gu{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=_u(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=_u(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=yu(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return yu(t,this._root).map(t=>t.value)}}function _u(t,e){if(t===e.value)return e;for(const n of e.children){const e=_u(t,n);if(e)return e}return null}function yu(t,e){if(t===e.value)return[e];for(const n of e.children){const s=yu(t,n);if(s.length)return s.unshift(e),s}return[]}class vu{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function bu(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class wu extends gu{constructor(t,e){super(t),this.snapshot=e,Au(this,t)}toString(){return this.snapshot.toString()}}function Cu(t,e){const n=function(t,e){const n=new xu([],{},{},"",{},Pc,e,null,t.root,-1,{});return new Tu("",new vu(n,[]))}(t,e),s=new fl([new Xc("",{})]),r=new fl({}),i=new fl({}),o=new fl({}),a=new fl(""),l=new Eu(s,r,o,a,i,Pc,e,n.root);return l.snapshot=n.root,new wu(new vu(l,[]),n)}class Eu{constructor(t,e,n,s,r,i,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=i,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(z(t=>Mc(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(z(t=>Mc(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Su(t,e="emptyOnly"){const n=t.pathFromRoot;let s=0;if("always"!==e)for(s=n.length-1;s>=1;){const t=n[s],e=n[s-1];if(t.routeConfig&&""===t.routeConfig.path)s--;else{if(e.component)break;s--}}return function(t){return t.reduce((t,e)=>({params:Object.assign({},t.params,e.params),data:Object.assign({},t.data,e.data),resolve:Object.assign({},t.resolve,e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(s))}class xu{constructor(t,e,n,s,r,i,o,a,l,h,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=s,this.data=r,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=h,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Mc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Mc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Tu extends gu{constructor(t,e){super(e),this.url=t,Au(this,e)}toString(){return Du(this._root)}}function Au(t,e){e.value._routerState=t,e.children.forEach(e=>Au(t,e))}function Du(t){const e=t.children.length>0?` { ${t.children.map(Du).join(", ")} } `:"";return`${t.value}${e}`}function ku(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Hc(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Hc(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!Hc(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Hc(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Ru(t,e){var n,s;return Hc(t.params,e.params)&&Jc(n=t.url,s=e.url)&&n.every((t,e)=>Hc(t.parameters,s[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Ru(t.parent,e.parent))}function Iu(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Ou(t,e,n,s,r){let i={};return s&&Wc(s,(t,e)=>{i[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Qc(n.root===t?e:function t(e,n,s){const r={};return Wc(e.children,(e,i)=>{r[i]=e===n?s:t(e,n,s)}),new Gc(e.segments,r)}(n.root,t,e),i,r)}class Pu{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Iu(n[0]))throw new Error("Root segment cannot have matrix parameters");const s=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(s&&s!==Yc(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Nu{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Mu(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Pc]:`${t}`}function Fu(t,e,n){if(t||(t=new Gc([],{})),0===t.segments.length&&t.hasChildren())return Vu(t,e,n);const s=function(t,e,n){let s=0,r=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(s>=n.length)return i;const e=t.segments[r],o=Mu(n[s]),a=s<n.length-1?n[s+1]:null;if(r>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!Uu(o,a,e))return i;s+=2}else{if(!Uu(o,{},e))return i;s++}r++}return{match:!0,pathIndex:r,commandIndex:s}}(t,e,n),r=n.slice(s.commandIndex);if(s.match&&s.pathIndex<t.segments.length){const e=new Gc(t.segments.slice(0,s.pathIndex),{});return e.children[Pc]=new Gc(t.segments.slice(s.pathIndex),t.children),Vu(e,0,r)}return s.match&&0===r.length?new Gc(t.segments,{}):s.match&&!t.hasChildren()?Lu(t,e,n):s.match?Vu(t,0,r):Lu(t,e,n)}function Vu(t,e,n){if(0===n.length)return new Gc(t.segments,{});{const s=function(t){return"object"!=typeof t[0]?{[Pc]:t}:void 0===t[0].outlets?{[Pc]:t}:t[0].outlets}(n),r={};return Wc(s,(n,s)=>{null!==n&&(r[s]=Fu(t.children[s],e,n))}),Wc(t.children,(t,e)=>{void 0===s[e]&&(r[e]=t)}),new Gc(t.segments,r)}}function Lu(t,e,n){const s=t.segments.slice(0,e);let r=0;for(;r<n.length;){if("object"==typeof n[r]&&void 0!==n[r].outlets){const t=ju(n[r].outlets);return new Gc(s,t)}if(0===r&&Iu(n[0])){s.push(new Xc(t.segments[e].path,n[0])),r++;continue}const i=Mu(n[r]),o=r<n.length-1?n[r+1]:null;i&&o&&Iu(o)?(s.push(new Xc(i,$u(o))),r+=2):(s.push(new Xc(i,{})),r++)}return new Gc(s,{})}function ju(t){const e={};return Wc(t,(t,n)=>{null!==t&&(e[n]=Lu(new Gc([],{}),0,t))}),e}function $u(t){const e={};return Wc(t,(t,n)=>e[n]=`${t}`),e}function Uu(t,e,n){return t==n.path&&Hc(e,n.parameters)}const zu=(t,e,n)=>z(s=>(new Bu(e,s.targetRouterState,s.currentRouterState,n).activate(t),s));class Bu{constructor(t,e,n,s){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=s}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),ku(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const s=bu(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,s[e],n),delete s[e]}),Wc(s,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const s=t.value,r=e?e.value:null;if(s===r)if(s.component){const r=n.getContext(s.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:s})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const s=bu(t),r=t.value.component?n.children:e;Wc(s,(t,e)=>this.deactivateRouteAndItsChildren(t,r)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const s=bu(e);t.children.forEach(t=>{this.activateRoutes(t,s[t.value.outlet],n),this.forwardEvent(new Rc(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Dc(t.value.snapshot))}activateRoutes(t,e,n){const s=t.value,r=e?e.value:null;if(ku(s),s===r)if(s.component){const r=n.getOrCreateContext(s.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(s.component){const e=n.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const t=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Hu(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(s.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=s,e.resolver=r,e.outlet&&e.outlet.activateWith(s,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Hu(t){ku(t.value),t.children.forEach(Hu)}function qu(t){return"function"==typeof t}function Yu(t){return t instanceof Qc}class Wu{constructor(t){this.segmentGroup=t||null}}class Ku{constructor(t){this.urlTree=t}}function Zu(t){return new w(e=>e.error(new Wu(t)))}function Qu(t){return new w(e=>e.error(new Ku(t)))}function Gu(t){return new w(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Xu{constructor(t,e,n,s,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=s,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(rn)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Pc).pipe(z(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(jl(t=>{if(t instanceof Ku)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Wu)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Pc).pipe(z(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(jl(t=>{if(t instanceof Wu)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const s=t.segments.length>0?new Gc([],{[Pc]:t}):t;return new Qc(s,e,n)}expandSegmentGroup(t,e,n,s){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(z(t=>new Gc([],t))):this.expandSegment(t,n,e,n.segments,s,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return pl({});const n=[],s=[],r={};return Wc(t,(t,i)=>{const o=e(i,t).pipe(z(t=>r[i]=t));i===Pc?n.push(o):s.push(o)}),pl.apply(null,n.concat(s)).pipe(wl(),Ll(),z(()=>r))}(n.children,(n,s)=>this.expandSegmentGroup(t,e,s,n))}expandSegment(t,e,n,s,r,i){return pl(...n).pipe(z(o=>this.expandSegmentAgainstRoute(t,e,n,o,s,r,i).pipe(jl(t=>{if(t instanceof Wu)return pl(null);throw t}))),wl(),ql(t=>!!t),jl((t,n)=>{if(t instanceof gl||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,s,r))return pl(new Gc([],{}));throw new Wu(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,s,r,i,o){return nd(s)!==i?Zu(e):void 0===s.redirectTo?this.matchSegmentAgainstRoute(t,e,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,s,r,i):Zu(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,s,r,i){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,s,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,s,r,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,s){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Qu(r):this.lineralizeSegments(n,r).pipe(W(n=>{const r=new Gc(n,{});return this.expandSegment(t,r,e,n,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,s,r,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:h}=Ju(e,s,r);if(!o)return Zu(e);const c=this.applyRedirectCommands(a,s.redirectTo,h);return s.redirectTo.startsWith("/")?Qu(c):this.lineralizeSegments(s,c).pipe(W(s=>this.expandSegment(t,e,n,s.concat(r.slice(l)),i,!1)))}matchSegmentAgainstRoute(t,e,n,s){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(z(t=>(n._loadedConfig=t,new Gc(s,{})))):pl(new Gc(s,{}));const{matched:r,consumedSegments:i,lastChild:o}=Ju(e,n,s);if(!r)return Zu(e);const a=s.slice(o);return this.getChildConfig(t,n,s).pipe(W(t=>{const n=t.module,s=t.routes,{segmentGroup:r,slicedSegments:o}=function(t,e,n,s){return n.length>0&&function(t,e,n){return n.some(n=>ed(t,e,n)&&nd(n)!==Pc)}(t,n,s)?{segmentGroup:td(new Gc(e,function(t,e){const n={};n[Pc]=e;for(const s of t)""===s.path&&nd(s)!==Pc&&(n[nd(s)]=new Gc([],{}));return n}(s,new Gc(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>ed(t,e,n))}(t,n,s)?{segmentGroup:td(new Gc(t.segments,function(t,e,n,s){const r={};for(const i of n)ed(t,e,i)&&!s[nd(i)]&&(r[nd(i)]=new Gc([],{}));return Object.assign({},s,r)}(t,n,s,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,i,a,s);return 0===o.length&&r.hasChildren()?this.expandChildren(n,s,r).pipe(z(t=>new Gc(i,t))):0===s.length&&0===o.length?pl(new Gc(i,{})):this.expandSegment(n,r,s,o,Pc,!0).pipe(z(t=>new Gc(i.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?pl(new jc(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?pl(e._loadedConfig):function(t,e,n){const s=e.canLoad;return s&&0!==s.length?Y(s).pipe(z(s=>{const r=t.get(s);let i;if(function(t){return t&&qu(t.canLoad)}(r))i=r.canLoad(e,n);else{if(!qu(r))throw new Error("Invalid CanLoad guard");i=r(e,n)}return Kc(i)})).pipe(wl(),(r=t=>!0===t,t=>t.lift(new Yl(r,void 0,t)))):pl(!0);var r}(t.injector,e,n).pipe(W(n=>n?this.configLoader.load(t.injector,e).pipe(z(t=>(e._loadedConfig=t,t))):function(t){return new w(e=>e.error(Vc(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):pl(new jc([],t))}lineralizeSegments(t,e){let n=[],s=e.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return pl(n);if(s.numberOfChildren>1||!s.children[Pc])return Gu(t.redirectTo);s=s.children[Pc]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,s){const r=this.createSegmentGroup(t,e.root,n,s);return new Qc(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Wc(t,(t,s)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[s]=e[r]}else n[s]=t}),n}createSegmentGroup(t,e,n,s){const r=this.createSegments(t,e.segments,n,s);let i={};return Wc(e.children,(e,r)=>{i[r]=this.createSegmentGroup(t,e,n,s)}),new Gc(r,i)}createSegments(t,e,n,s){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,s):this.findOrReturn(e,n))}findPosParam(t,e,n){const s=n[e.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return s}findOrReturn(t,e){let n=0;for(const s of e){if(s.path===t.path)return e.splice(n),s;n++}return t}}function Ju(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const s=(e.matcher||Lc)(n,t,e);return s?{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,positionalParamSegments:s.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function td(t){if(1===t.numberOfChildren&&t.children[Pc]){const e=t.children[Pc];return new Gc(t.segments.concat(e.segments),e.children)}return t}function ed(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function nd(t){return t.outlet||Pc}class sd{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class rd{constructor(t,e){this.component=t,this.route=e}}function id(t,e,n){const s=t._root;return function t(e,n,s,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=bu(n);return e.children.forEach(e=>{!function(e,n,s,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,l=s?s.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const h=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Jc(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Jc(t.url,e.url)||!Hc(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ru(t,e)||!Hc(t.queryParams,e.queryParams);case"paramsChange":default:return!Ru(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);h?i.canActivateChecks.push(new sd(r)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?l?l.children:null:s,r,i),h&&i.canDeactivateChecks.push(new rd(l&&l.outlet&&l.outlet.component||null,a))}else a&&ad(n,l,i),i.canActivateChecks.push(new sd(r)),t(e,null,o.component?l?l.children:null:s,r,i)}(e,o[e.value.outlet],s,r.concat([e.value]),i),delete o[e.value.outlet]}),Wc(o,(t,e)=>ad(t,s.getContext(e),i)),i}(s,e?e._root:null,n,[s.value])}function od(t,e,n){const s=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(s?s.module.injector:n).get(t)}function ad(t,e,n){const s=bu(t),r=t.value;Wc(s,(t,s)=>{ad(t,r.component?e?e.children.getContext(s):null:e,n)}),n.canDeactivateChecks.push(new rd(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}const ld=Symbol("INITIAL_VALUE");function hd(){return Kl(t=>(function(...t){let e=null,n=null;return k(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),q(t,n).lift(new yl(e))})(...t.map(t=>t.pipe(zl(1),Gl(ld)))).pipe(Xl((t,e)=>{let n=!1;return e.reduce((t,s,r)=>{if(t!==ld)return t;if(s===ld&&(n=!0),!n){if(!1===s)return s;if(r===e.length-1||Yu(s))return s}return t},t)},ld),Cl(t=>t!==ld),z(t=>Yu(t)?t:!0===t),zl(1)))}function cd(t,e){return null!==t&&e&&e(new kc(t)),pl(!0)}function ud(t,e){return null!==t&&e&&e(new Ac(t)),pl(!0)}function dd(t,e,n){const s=e.routeConfig?e.routeConfig.canActivate:null;return s&&0!==s.length?pl(s.map(s=>bl(()=>{const r=od(s,e,n);let i;if(function(t){return t&&qu(t.canActivate)}(r))i=Kc(r.canActivate(e,t));else{if(!qu(r))throw new Error("Invalid CanActivate guard");i=Kc(r(e,t))}return i.pipe(ql())}))).pipe(hd()):pl(!0)}function pd(t,e,n){const s=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>(function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null})(t)).filter(t=>null!==t).map(e=>bl(()=>pl(e.guards.map(r=>{const i=od(r,e.node,n);let o;if(function(t){return t&&qu(t.canActivateChild)}(i))o=Kc(i.canActivateChild(s,t));else{if(!qu(i))throw new Error("Invalid CanActivateChild guard");o=Kc(i(s,t))}return o.pipe(ql())})).pipe(hd())));return pl(r).pipe(hd())}class fd{}class md{constructor(t,e,n,s,r,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=s,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=i}recognize(){try{const t=yd(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Pc),n=new xu([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Pc,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new vu(n,e),r=new Tu(this.url,s);return this.inheritParamsAndData(r._root),pl(r)}catch(t){return new w(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Su(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=tu(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),s=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${s}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>t.value.outlet===Pc?-1:e.value.outlet===Pc?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,s){for(const i of t)try{return this.processSegmentAgainstRoute(i,e,n,s)}catch(r){if(!(r instanceof fd))throw r}if(this.noLeftoversInUrl(e,n,s))return[];throw new fd}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,s){if(t.redirectTo)throw new fd;if((t.outlet||Pc)!==s)throw new fd;let r,i=[],o=[];if("**"===t.path){const i=n.length>0?Yc(n).parameters:{};r=new xu(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wd(t),s,t.component,t,gd(e),_d(e)+n.length,Cd(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new fd;return{consumedSegments:[],lastChild:0,parameters:{}}}const s=(e.matcher||Lc)(n,t,e);if(!s)throw new fd;const r={};Wc(s.posParams,(t,e)=>{r[e]=t.path});const i=s.consumed.length>0?Object.assign({},r,s.consumed[s.consumed.length-1].parameters):r;return{consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:i}}(e,t,n);i=a.consumedSegments,o=n.slice(a.lastChild),r=new xu(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,wd(t),s,t.component,t,gd(e),_d(e)+i.length,Cd(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:h}=yd(e,i,o,a,this.relativeLinkResolution);if(0===h.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new vu(r,t)]}if(0===a.length&&0===h.length)return[new vu(r,[])];const c=this.processSegment(a,l,h,Pc);return[new vu(r,c)]}}function gd(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function _d(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function yd(t,e,n,s,r){if(n.length>0&&function(t,e,n){return n.some(n=>vd(t,e,n)&&bd(n)!==Pc)}(t,n,s)){const r=new Gc(e,function(t,e,n,s){const r={};r[Pc]=s,s._sourceSegment=t,s._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&bd(i)!==Pc){const n=new Gc([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[bd(i)]=n}return r}(t,e,s,new Gc(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>vd(t,e,n))}(t,n,s)){const i=new Gc(t.segments,function(t,e,n,s,r,i){const o={};for(const a of s)if(vd(t,n,a)&&!r[bd(a)]){const n=new Gc([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[bd(a)]=n}return Object.assign({},r,o)}(t,e,n,s,t.children,r));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new Gc(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function vd(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function bd(t){return t.outlet||Pc}function wd(t){return t.data||{}}function Cd(t){return t.resolve||{}}function Ed(t,e,n,s){const r=od(t,e,s);return Kc(r.resolve?r.resolve(e,n):r(e,n))}function Sd(t){return function(e){return e.pipe(Kl(e=>{const n=t(e);return n?Y(n).pipe(z(()=>e)):Y([e])}))}}class xd{}class Td{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const Ad=new Tt("ROUTES");class Dd{constructor(t,e,n,s){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=s}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(z(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const s=n.create(t);return new jc(qc(s.injector.get(Ad)).map(Bc),s)}))}loadModuleFactory(t){return"string"==typeof t?Y(this.loader.load(t)):Kc(t()).pipe(W(t=>t instanceof on?pl(t):Y(this.compiler.compileModuleAsync(t))))}}class kd{}class Rd{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Id(t){throw t}function Od(t,e,n){return e.parse("/")}function Pd(t,e){return pl(null)}class Nd{constructor(t,e,n,s,r,i,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=s,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new A,this.errorHandler=Id,this.malformedUriErrorHandler=Od,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Pd,afterPreactivation:Pd},this.urlHandlingStrategy=new Rd,this.routeReuseStrategy=new Td,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=r.get(rn),this.console=r.get(qr);const l=r.get(hi);this.isNgZoneEnabled=l instanceof hi,this.resetConfig(a),this.currentUrlTree=new Qc(new Gc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Dd(i,o,t=>this.triggerEvent(new xc(t)),t=>this.triggerEvent(new Tc(t))),this.routerState=Cu(this.currentUrlTree,this.rootComponentType),this.transitions=new fl({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Cl(t=>0!==t.id),z(t=>Object.assign({},t,{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Kl(t=>{let n=!1,s=!1;return pl(t).pipe(Rl(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Kl(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return pl(t).pipe(Kl(t=>{const n=this.transitions.getValue();return e.next(new gc(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?cl:[t]}),Kl(t=>Promise.resolve(t)),function(t,e,n,s){return function(r){return r.pipe(Kl(r=>(function(t,e,n,s,r){return new Xu(t,e,n,s,r).apply()})(t,e,n,r.extractedUrl,s).pipe(z(t=>Object.assign({},r,{urlAfterRedirects:t})))))}}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Rl(t=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function(t,e,n,s,r){return function(i){return i.pipe(W(i=>(function(t,e,n,s,r="emptyOnly",i="legacy"){return new md(t,e,n,s,r,i).recognize()})(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),s,r).pipe(z(t=>Object.assign({},i,{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Rl(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Rl(t=>{const n=new bc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:s,source:r,restoredState:i,extras:o}=t,a=new gc(n,this.serializeUrl(s),r,i);e.next(a);const l=Cu(s,this.rootComponentType).snapshot;return pl(Object.assign({},t,{targetSnapshot:l,urlAfterRedirects:s,extras:Object.assign({},o,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),cl}),Sd(t=>{const{targetSnapshot:e,id:n,extractedUrl:s,rawUrl:r,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:s,rawUrlTree:r,skipLocationChange:!!i,replaceUrl:!!o})}),Rl(t=>{const e=new wc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),z(t=>Object.assign({},t,{guards:id(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(W(n=>{const{targetSnapshot:s,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?pl(Object.assign({},n,{guardsResult:!0})):function(t,e,n,s){return Y(t).pipe(W(t=>(function(t,e,n,s,r){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?pl(i.map(i=>{const o=od(i,e,r);let a;if(function(t){return t&&qu(t.canDeactivate)}(o))a=Kc(o.canDeactivate(t,e,n,s));else{if(!qu(o))throw new Error("Invalid CanDeactivate guard");a=Kc(o(t,e,n,s))}return a.pipe(ql())})).pipe(hd()):pl(!0)})(t.component,t.route,n,e,s)),ql(t=>!0!==t,!0))}(o,s,r,t).pipe(W(n=>n&&function(t){return"boolean"==typeof t}(n)?function(t,e,n,s){return Y(e).pipe(eh(e=>Y([ud(e.route.parent,s),cd(e.route,s),pd(t,e.path,n),dd(t,e.route,n)]).pipe(wl(),ql(t=>!0!==t,!0))),ql(t=>!0!==t,!0))}(s,i,t,e):pl(n)),z(t=>Object.assign({},n,{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Rl(t=>{if(Yu(t.guardsResult)){const e=Vc(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Rl(t=>{const e=new Cc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Cl(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new yc(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Sd(t=>{if(t.guards.canActivateChecks.length)return pl(t).pipe(Rl(t=>{const e=new Ec(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),function(t,e){return function(n){return n.pipe(W(n=>{const{targetSnapshot:s,guards:{canActivateChecks:r}}=n;return r.length?Y(r).pipe(eh(n=>(function(t,e,n,s){return function(t,e,n,s){const r=Object.keys(t);if(0===r.length)return pl({});if(1===r.length){const i=r[0];return Ed(t[i],e,n,s).pipe(z(t=>({[i]:t})))}const i={};return Y(r).pipe(W(r=>Ed(t[r],e,n,s).pipe(z(t=>(i[r]=t,t))))).pipe(Ll(),z(()=>i))}(t._resolve,t,e,s).pipe(z(e=>(t._resolvedData=e,t.data=Object.assign({},t.data,Su(t,n).resolve),null)))})(n.route,s,t,e)),function(t,e){return arguments.length>=2?function(n){return v(Xl(t,e),Al(1),Ml(e))(n)}:function(e){return v(Xl((e,n,s)=>t(e,n,s+1)),Al(1))(e)}}((t,e)=>t),z(t=>n)):pl(n)}))}}(this.paramsInheritanceStrategy,this.ngModule.injector),Rl(t=>{const e=new Sc(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Sd(t=>{const{targetSnapshot:e,id:n,extractedUrl:s,rawUrl:r,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:s,rawUrlTree:r,skipLocationChange:!!i,replaceUrl:!!o})}),z(t=>{const e=function(t,e,n){const s=function t(e,n,s){if(s&&e.shouldReuseRoute(n.value,s.value.snapshot)){const r=s.value;r._futureSnapshot=n.value;const i=function(e,n,s){return n.children.map(n=>{for(const r of s.children)if(e.shouldReuseRoute(r.value.snapshot,n.value))return t(e,n,r);return t(e,n)})}(e,n,s);return new vu(r,i)}{const s=e.retrieve(n.value);if(s){const t=s.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let s=0;s<e.children.length;++s)t(e.children[s],n.children[s])}(n,t),t}{const s=new Eu(new fl((r=n.value).url),new fl(r.params),new fl(r.queryParams),new fl(r.fragment),new fl(r.data),r.outlet,r.component,r),i=n.children.map(n=>t(e,n));return new vu(s,i)}}var r}(t,e._root,n?n._root:void 0);return new wu(s,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign({},t,{targetRouterState:e})}),Rl(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),zu(this.rootContexts,this.routeReuseStrategy,t=>this.triggerEvent(t)),Rl({next(){n=!0},complete(){n=!0}}),function(t){return e=>e.lift(new nh(t))}(()=>{if(!n&&!s){this.resetUrlToCurrentUrlTree();const n=new yc(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),jl(n=>{if(s=!0,function(t){return t&&t[Fc]}(n)){const s=Yu(n.url);s||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new yc(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),t.resolve(!1),s&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const s=new vc(t.id,this.serializeUrl(t.extractedUrl),n);e.next(s);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}return cl}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign({},this.getTransition(),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",s=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,s,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){$c(t),this.config=t.map(Bc),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:s,fragment:r,preserveQueryParams:i,queryParamsHandling:o,preserveFragment:a}=e;le()&&i&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,h=a?this.currentUrlTree.fragment:r;let c=null;if(o)switch(o){case"merge":c=Object.assign({},this.currentUrlTree.queryParams,s);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=s||null}else c=i?this.currentUrlTree.queryParams:s||null;return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,s,r){if(0===n.length)return Ou(e.root,e.root,e,s,r);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Pu(!0,0,t);let e=0,n=!1;const s=t.reduce((t,s,r)=>{if("object"==typeof s&&null!=s){if(s.outlets){const e={};return Wc(s.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(s.segmentPath)return[...t,s.segmentPath]}return"string"!=typeof s?[...t,s]:0===r?(s.split("/").forEach((s,r)=>{0==r&&"."===s||(0==r&&""===s?n=!0:".."===s?e++:""!=s&&t.push(s))}),t):[...t,s]},[]);return new Pu(n,e,s)}(n);if(i.toRoot())return Ou(e.root,new Gc([],{}),e,s,r);const o=function(t,e,n){if(t.isAbsolute)return new Nu(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Nu(n.snapshot._urlSegment,!0,0);const s=Iu(t.commands[0])?0:1;return function(t,e,n){let s=t,r=e,i=n;for(;i>r;){if(i-=r,!(s=s.parent))throw new Error("Invalid number of '../'");r=s.segments.length}return new Nu(s,!1,r-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+s,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?Vu(o.segmentGroup,o.index,i.commands):Fu(o.segmentGroup,o.index,i.commands);return Ou(o.segmentGroup,a,e,s,r)}(l,this.currentUrlTree,t,c,h)}navigateByUrl(t,e={skipLocationChange:!1}){le()&&this.isNgZoneEnabled&&!hi.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Yu(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(Yu(t))return Zc(this.currentUrlTree,t,e);const n=this.parseUrl(t);return Zc(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const s=t[n];return null!=s&&(e[n]=s),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new _c(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,s){const r=this.getTransition();if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"popstate"==e&&"hashchange"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);let i=null,o=null;const a=new Promise((t,e)=>{i=t,o=e}),l=++this.navigationId;return this.setTransition({id:l,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:s,resolve:i,reject:o,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,s){const r=this.urlSerializer.serialize(t);s=s||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign({},s,{navigationId:n})):this.location.go(r,"",Object.assign({},s,{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class Md{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Fd,this.attachRef=null}}class Fd{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Md,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let Vd=(()=>(class{constructor(t,e,n,s,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new Nr,this.deactivateEvents=new Nr,this.name=s||Pc,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,r=new Ld(t,s,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}))();class Ld{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Eu?this.route:t===Fd?this.childContexts:this.parent.get(t,e)}}class jd{}class $d{preload(t,e){return e().pipe(jl(()=>pl(null)))}}class Ud{preload(t,e){return pl(null)}}let zd=(()=>(class{constructor(t,e,n,s,r){this.router=t,this.injector=s,this.preloadingStrategy=r,this.loader=new Dd(e,n,e=>t.triggerEvent(new xc(e)),e=>t.triggerEvent(new Tc(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Cl(t=>t instanceof _c),eh(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(rn);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const s of e)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const t=s._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else s.loadChildren&&!s.canLoad?n.push(this.preloadConfig(t,s)):s.children&&n.push(this.processRoutes(t,s.children));return Y(n).pipe(G(),z(t=>void 0))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(W(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}))();class Bd{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof gc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof _c&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Ic&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Ic(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const Hd=new Tt("ROUTER_CONFIGURATION"),qd=new Tt("ROUTER_FORROOT_GUARD"),Yd=[xa,{provide:eu,useClass:nu},{provide:Nd,useFactory:Jd,deps:[Di,eu,Fd,xa,qt,Ri,ti,Ad,Hd,[kd,new ht],[xd,new ht]]},Fd,{provide:Eu,useFactory:tp,deps:[Nd]},{provide:Ri,useClass:Pi},zd,Ud,$d,{provide:Hd,useValue:{enableTracing:!1}}];function Wd(){return new Ei("Router",Nd)}let Kd=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Yd,Xd(e),{provide:qd,useFactory:Gd,deps:[[Nd,new ht,new ut]]},{provide:Hd,useValue:n||{}},{provide:Ea,useFactory:Qd,deps:[wa,[new lt(Sa),new ht],Hd]},{provide:Bd,useFactory:Zd,deps:[Nd,ll,Hd]},{provide:jd,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Ud},{provide:Ei,multi:!0,useFactory:Wd},[ep,{provide:Vr,multi:!0,useFactory:np,deps:[ep]},{provide:rp,useFactory:sp,deps:[ep]},{provide:Hr,multi:!0,useExisting:rp}]]}}static forChild(e){return{ngModule:t,providers:[Xd(e)]}}}return t})();function Zd(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Bd(t,e,n)}function Qd(t,e,n={}){return n.useHash?new Aa(t,e):new Da(t,e)}function Gd(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Xd(t){return[{provide:se,multi:!0,useValue:t},{provide:Ad,multi:!0,useValue:t}]}function Jd(t,e,n,s,r,i,o,a,l={},h,c){const u=new Nd(null,e,n,s,r,i,o,qc(a));if(h&&(u.urlHandlingStrategy=h),c&&(u.routeReuseStrategy=c),l.errorHandler&&(u.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(u.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){const t=ih();u.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return l.onSameUrlNavigation&&(u.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(u.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(u.relativeLinkResolution=l.relativeLinkResolution),u}function tp(t){return t.routerState.root}let ep=(()=>(class{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new A}appInitializer(){return this.injector.get(Ca,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Nd),s=this.injector.get(Hd);if(this.isLegacyDisabled(s)||this.isLegacyEnabled(s))t(!0);else if("disabled"===s.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==s.initialNavigation)throw new Error(`Invalid initialNavigation options: '${s.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?pl(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Hd),n=this.injector.get(zd),s=this.injector.get(Bd),r=this.injector.get(Nd),i=this.injector.get(Di);t===i.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),n.setUpPreloading(),s.init(),r.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}))();function np(t){return t.appInitializer.bind(t)}function sp(t){return t.bootstrapListener.bind(t)}const rp=new Tt("Router Initializer");class ip{}class op{}class ap{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),s=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,s),this.headers.has(s)?this.headers.get(s).push(r):this.headers.set(s,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const s=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof ap?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new ap;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ap?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const s=("a"===t.op?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;0===(t=t.filter(t=>-1===r.indexOf(t))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class lp{encodeKey(t){return hp(t)}encodeValue(t){return hp(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function hp(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class cp{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new lp,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const s=t.indexOf("="),[r,i]=-1==s?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,s)),e.decodeValue(t.slice(s+1))],o=n.get(r)||[];o.push(i),n.set(r,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).join("&")}clone(t){const e=new cp({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function up(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function dp(t){return"undefined"!=typeof Blob&&t instanceof Blob}function pp(t){return"undefined"!=typeof FormData&&t instanceof FormData}class fp{constructor(t,e,n,s){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==n?n:null,r=s):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new ap),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new cp,this.urlWithParams=e}serializeBody(){return null===this.body?null:up(this.body)||dp(this.body)||pp(this.body)||"string"==typeof this.body?this.body:this.body instanceof cp?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body?null:pp(this.body)?null:dp(this.body)?this.body.type||null:up(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof cp?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,s=t.responseType||this.responseType,r=void 0!==t.body?t.body:this.body,i=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new fp(e,n,r,{params:l,headers:a,reportProgress:o,responseType:s,withCredentials:i})}}const mp=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class gp{constructor(t,e=200,n="OK"){this.headers=t.headers||new ap,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class _p extends gp{constructor(t={}){super(t),this.type=mp.ResponseHeader}clone(t={}){return new _p({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class yp extends gp{constructor(t={}){super(t),this.type=mp.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new yp({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class vp extends gp{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function bp(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let wp=(()=>(class{constructor(t){this.handler=t}request(t,e,n={}){let s;if(t instanceof fp)s=t;else{let r=void 0;r=n.headers instanceof ap?n.headers:new ap(n.headers);let i=void 0;n.params&&(i=n.params instanceof cp?n.params:new cp({fromObject:n.params})),s=new fp(t,e,void 0!==n.body?n.body:null,{headers:r,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=pl(s).pipe(eh(t=>this.handler.handle(t)));if(t instanceof fp||"events"===n.observe)return r;const i=r.pipe(Cl(t=>t instanceof yp));switch(n.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return i.pipe(z(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return i.pipe(z(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return i.pipe(z(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return i.pipe(z(t=>t.body))}case"response":return i;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new cp).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,bp(n,e))}post(t,e,n={}){return this.request("POST",t,bp(n,e))}put(t,e,n={}){return this.request("PUT",t,bp(n,e))}}))();class Cp{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Ep=new Tt("HTTP_INTERCEPTORS");let Sp=(()=>(class{intercept(t,e){return e.handle(t)}}))();const xp=/^\)\]\}',?\n/;class Tp{}let Ap=(()=>(class{constructor(){}build(){return new XMLHttpRequest}}))(),Dp=(()=>(class{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new w(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const s=t.serializeBody();let r=null;const i=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,s=n.statusText||"OK",i=new ap(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new _p({headers:i,status:e,statusText:s,url:o})},o=()=>{let{headers:s,status:r,statusText:o,url:a}=i(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let h=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(xp,"");try{l=""!==l?JSON.parse(l):null}catch(c){l=t,h&&(h=!1,l={error:c,text:l})}}h?(e.next(new yp({body:l,headers:s,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new vp({error:l,headers:s,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:s}=i(),r=new vp({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:s||void 0});e.error(r)};let l=!1;const h=s=>{l||(e.next(i()),l=!0);let r={type:mp.DownloadProgress,loaded:s.loaded};s.lengthComputable&&(r.total=s.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},c=t=>{let n={type:mp.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",h),null!==s&&n.upload&&n.upload.addEventListener("progress",c)),n.send(s),e.next({type:mp.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",h),null!==s&&n.upload&&n.upload.removeEventListener("progress",c)),n.abort()}})}}))();const kp=new Tt("XSRF_COOKIE_NAME"),Rp=new Tt("XSRF_HEADER_NAME");class Ip{}let Op=(()=>(class{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ha(t,this.cookieName),this.lastCookieString=t),this.lastToken}}))(),Pp=(()=>(class{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const s=this.tokenService.getToken();return null===s||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,s)})),e.handle(t)}}))(),Np=(()=>(class{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Ep,[]);this.chain=t.reduceRight((t,e)=>new Cp(t,e),this.backend)}return this.chain.handle(t)}}))(),Mp=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Pp,useClass:Sp}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:kp,useValue:e.cookieName}:[],e.headerName?{provide:Rp,useValue:e.headerName}:[]]}}}return t})(),Fp=(()=>(class{}))(),Vp=(()=>{class t{constructor(t,e){this.router=t,this.http=e}canActivate(t,e){return this.http.get(window.location.origin+"/api/check/").toPromise().then().catch(t=>{t.url.includes("Account/Login")&&(window.location.href=window.location.origin+"/Account/Login")}),!0}}return t.ngInjectableDef=ft({factory:function(){return new t(jt(Nd),jt(wp))},token:t,providedIn:"root"}),t})();class Lp{}class jp{}class $p{constructor(t,e){this.shareService=t,this.http=e,this.menus=Array(),this.toggleMenu=!1}ngOnInit(){this.http.get("/api/nav/").toPromise().then(t=>{for(var e=0;e<t.length;e++){var n=new jp;n.Text=t[e],n.Url="/"+t[e]+"/Index/index.html",this.menus.push(n)}}).catch(t=>{200==t.status&&(window.location.href=window.location.origin+"/Account/login")}),this.shareService.currentMessage.subscribe(t=>this.toggleMenu=t)}}class Up{constructor(t,e){this.shareService=t,this.http=e,this.toggleButton=!0}ngOnInit(){this.shareService.changeMessage(this.toggleButton)}toggle(){this.toggleButton=!this.toggleButton,this.shareService.changeMessage(this.toggleButton)}signOut(){this.http.post("/Account/Logout",null).toPromise().then(t=>{window.location.href=window.location.origin+"/Account/Login"}).catch(()=>{window.location.href=window.location.origin+"/Account/Login"})}}var zp=es({encapsulation:2,styles:[],data:{}});function Bp(t){return co(0,[(t()(),Ki(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ur(1,212992,null,0,Vd,[Fd,Fn,en,[8,null],kn],null,null)],(function(t,e){t(e,1,0)}),null)}function Hp(t){return co(0,[(t()(),Ki(0,0,null,null,1,"ng-component",[],null,null,null,Bp,zp)),ur(1,49152,null,0,Oc,[],null,null)],null,null)}var qp=Us("ng-component",Oc,Hp,{},{},[]);class Yp{}class Wp{}const Kp="*";function Zp(t,e=null){return{type:2,steps:t,options:e}}function Qp(t){return{type:6,styles:t,offset:null}}function Gp(t){Promise.resolve(null).then(t)}class Xp{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Gp(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Jp{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,s=0;const r=this.players.length;0==r?Gp(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++n==r&&this._onDestroy()}),t.onStart(()=>{++s==r&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const tf="!";function ef(){throw Error("Host already has a portal attached")}class nf{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&ef(),this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class sf extends nf{constructor(t,e,n,s){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=s}}class rf extends nf{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class of{constructor(){this._isDisposed=!1}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&ef(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof sf?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof rf?(this._attachedPortal=t,this.attachTemplatePortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class af extends of{constructor(t,e,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.detectChanges(),n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let lf=(()=>(class extends of{constructor(t,e){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new Nr}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),s=e.createComponent(n,e.length,t.injector||e.injector);return super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}}))(),hf=(()=>(class{}))();class cf{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}const uf=27,df=new Tt("cdk-dir-doc",{providedIn:"root",factory:function(){return $t(ol)}});let pf=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Nr,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.ngInjectableDef=ft({factory:function(){return new t(jt(df,8))},token:t,providedIn:"root"}),t})(),ff=(()=>(class{}))();function mf(t){return null!=t&&"false"!==`${t}`}function gf(t){return Array.isArray(t)?t:[t]}function _f(t){return null==t?"":"string"==typeof t?t:`${t}px`}function yf(t){return t instanceof ln?t.nativeElement:t}function vf(t,e,n,r){return s(n)&&(r=n,n=void 0),r?vf(t,e,n).pipe(z(t=>l(t)?r(...t):r(t))):new w(s=>{!function t(e,n,s,r,i){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,s,i),o=()=>t.removeEventListener(n,s,i)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,s),o=()=>t.off(n,s)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,s),o=()=>t.removeListener(n,s)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,s,r,i)}r.add(o)}(t,e,(function(t){s.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),s,n)})}class bf extends d{constructor(t,e){super()}schedule(t,e=0){return this}}class wf extends bf{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,s=void 0;try{this.work(t)}catch(r){n=!0,s=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),s}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let Cf=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class Ef extends Cf{constructor(t,e=Cf.now){super(t,()=>Ef.delegate&&Ef.delegate!==this?Ef.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Ef.delegate&&Ef.delegate!==this?Ef.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const Sf=new Ef(wf);class xf{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Tf(t,this.durationSelector))}}class Tf extends U{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const s=$(this,n);!s||s.closed?this.clearThrottle():this.add(this.throttled=s)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,s){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Af(t){return!l(t)&&t-parseFloat(t)+1>=0}function Df(t){const{index:e,period:n,subscriber:s}=t;if(s.next(e),!s.closed){if(-1===n)return s.complete();t.index=e+1,this.schedule(t,n)}}function kf(t,e=Sf){return n=()=>(function(t=0,e,n){let s=-1;return Af(e)?s=Number(e)<1?1:Number(e):k(e)&&(n=e),k(n)||(n=Sf),new w(e=>{const r=Af(t)?t:+t-n.now();return n.schedule(Df,r,{index:0,period:s,subscriber:e})})})(t,e),function(t){return t.lift(new xf(n))};var n}class Rf{constructor(t){this.notifier=t}call(t,e){const n=new If(t),s=$(n,this.notifier);return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class If extends U{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,s,r){this.seenValue=!0,this.complete()}notifyComplete(){}}let Of;try{Of="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Fw){Of=!1}let Pf,Nf=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?this._platformId===al:"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&&!Of)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.ngInjectableDef=ft({factory:function(){return new t(jt(Br,8))},token:t,providedIn:"root"}),t})(),Mf=(()=>(class{}))();function Ff(t){return function(){if(null==Pf&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Pf=!0}))}finally{Pf=Pf||!1}return Pf}()?t:!!t.capture}const Vf=20;let Lf=(()=>{class t{constructor(t,e){this._ngZone=t,this._platform=e,this._scrolled=new A,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=Vf){return this._platform.isBrowser?new w(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(kf(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):pl()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Cl(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,s)=>{this._scrollableContainsElement(s,t)&&e.push(s)}),e}_scrollableContainsElement(t,e){let n=e.nativeElement,s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>vf(window.document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.ngInjectableDef=ft({factory:function(){return new t(jt(hi),jt(Nf))},token:t,providedIn:"root"}),t})(),jf=(()=>(class{}))();const $f=20;let Uf=(()=>{class t{constructor(t,e){this._platform=t,e.runOutsideAngular(()=>{this._change=t.isBrowser?X(vf(window,"resize"),vf(window,"orientationchange")):pl(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=document.documentElement,e=t.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||t.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||t.scrollLeft||0}}change(t=$f){return t>0?this._change.pipe(kf(t)):this._change}_updateViewportSize(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}}}return t.ngInjectableDef=ft({factory:function(){return new t(jt(Nf),jt(hi))},token:t,providedIn:"root"}),t})();class zf{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=_f(-this._previousScrollPosition.left),t.style.top=_f(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,s=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=s,n.scrollBehavior=r}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function Bf(){return Error("Scroll strategy has already been attached.")}class Hf{constructor(t,e,n,s){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw Bf();this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class qf{enable(){}disable(){}attach(){}}function Yf(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function Wf(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class Kf{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=s,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw Bf();this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();Yf(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Zf=(()=>{class t{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new qf,this.close=t=>new Hf(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new zf(this._viewportRuler,this._document),this.reposition=t=>new Kf(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=s}}return t.ngInjectableDef=ft({factory:function(){return new t(jt(Lf),jt(Uf),jt(hi),jt(ol))},token:t,providedIn:"root"}),t})();class Qf{constructor(t){if(this.scrollStrategy=new qf,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class Gf{constructor(t,e,n,s,r){this.offsetX=n,this.offsetY=s,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}let Xf=(()=>(class{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}))();function Jf(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "top", "bottom" or "center".')}function tm(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "start", "end" or "center".')}let em=(()=>{class t{constructor(t){this._attachedOverlays=[],this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEventSubscriptions>0){e[n]._keydownEvents.next(t);break}},this._document=t}ngOnDestroy(){this._detach()}add(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.ngInjectableDef=ft({factory:function(){return new t(jt(ol))},token:t,providedIn:"root"}),t})(),nm=(()=>{class t{constructor(t){this._document=t}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.getElementsByClassName("cdk-overlay-container");for(let n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);const e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),this._document.body.appendChild(e),this._containerElement=e}}return t.ngInjectableDef=ft({factory:function(){return new t(jt(ol))},token:t,providedIn:"root"}),t})();class sm{constructor(t,e,n,s,r,i,o,a){this._portalOutlet=t,this._host=e,this._pane=n,this._config=s,this._ngZone=r,this._keyboardDispatcher=i,this._document=o,this._location=a,this._backdropElement=null,this._backdropClick=new A,this._attachments=new A,this._detachments=new A,this._locationChanges=d.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEventsObservable=new w(t=>{const e=this._keydownEvents.subscribe(t);return this._keydownEventSubscriptions++,()=>{e.unsubscribe(),this._keydownEventSubscriptions--}}),this._keydownEvents=new A,this._keydownEventSubscriptions=0,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(zl(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEventsObservable}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign({},this._config,t),this._updateElementSize()}setDirection(t){this._config=Object.assign({},this._config,{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=_f(this._config.width),t.height=_f(this._config.height),t.minWidth=_f(this._config.minWidth),t.minHeight=_f(this._config.minHeight),t.maxWidth=_f(this._config.maxWidth),t.maxHeight=_f(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){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("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const s=t.classList;gf(e).forEach(t=>{t&&(n?s.add(t):s.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(function(t){return e=>e.lift(new Rf(t))}(X(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const rm="cdk-overlay-connected-position-bounding-box";class im{constructor(t,e,n,s,r){this._viewportRuler=e,this._document=n,this._platform=s,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new A,this._resizeSubscription=d.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add(rm),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,s=[];let r;for(let i of this._preferredPositions){let o=this._getOriginPoint(t,i),a=this._getOverlayPoint(o,e,i),l=this._getOverlayFit(a,e,n,i);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(i,o);this._canFitWithFlexibleDimensions(l,a,n)?s.push({position:i,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,i)}):(!r||r.overlayFit.visibleArea<l.visibleArea)&&(r={overlayFit:l,overlayPoint:a,originPoint:o,position:i,overlayRect:e})}if(s.length){let t=null,e=-1;for(const n of s){const s=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);s>e&&(e=s,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&om(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(rm),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,s;if("center"==e.originX)n=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?s:r}return{x:n,y:s="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}_getOverlayPoint(t,e,n){let s,r;return s="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+s,y:t.y+(r="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}}_getOverlayFit(t,e,n,s){let{x:r,y:i}=t,o=this._getOffset(s,"x"),a=this._getOffset(s,"y");o&&(r+=o),a&&(i+=a);let l=0-i,h=i+e.height-n.height,c=this._subtractOverflows(e.width,0-r,r+e.width-n.width),u=this._subtractOverflows(e.height,l,h),d=c*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:c==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const s=n.bottom-e.y,r=n.right-e.x,i=this._overlayRef.getConfig().minHeight,o=this._overlayRef.getConfig().minWidth,a=t.fitsInViewportHorizontally||null!=o&&o<=r;return(t.fitsInViewportVertically||null!=i&&i<=s)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const s=this._viewportRect,r=Math.max(t.x+e.width-s.right,0),i=Math.max(t.y+e.height-s.bottom,0),o=Math.max(s.top-n.top-t.y,0),a=Math.max(s.left-n.left-t.x,0);let l=0,h=0;return this._previousPushAmount={x:l=e.width<=s.width?a||-r:t.x<this._viewportMargin?s.left-n.left-t.x:0,y:h=e.height<=s.height?o||-i:t.y<this._viewportMargin?s.top-n.top-t.y:0},{x:t.x+l,y:t.y+h}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new Xf(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,s=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${n} ${s}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,s=this._isRtl();let r,i,o,a,l,h;if("top"===e.overlayY)r=n.height-(i=t.y)+this._viewportMargin;else if("bottom"===e.overlayY)r=n.height-(o=n.height-t.y+2*this._viewportMargin)+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),s=this._lastBoundingBoxSize.height;i=t.y-e,(r=2*e)>s&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-s/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)h=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),s=this._lastBoundingBoxSize.width;l=t.x-e,(a=2*e)>s&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-s/2)}return{top:i,left:l,bottom:o,right:h,width:a,height:r}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right="",s.width=s.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;s.height=_f(n.height),s.top=_f(n.top),s.bottom=_f(n.bottom),s.width=_f(n.width),s.left=_f(n.left),s.right=_f(n.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(s.maxHeight=_f(t)),r&&(s.maxWidth=_f(r))}this._lastBoundingBoxSize=n,om(this._boundingBox.style,s)}_resetBoundingBoxStyles(){om(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){om(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={};if(this._hasExactPosition()){const s=this._viewportRuler.getViewportScrollPosition();om(n,this._getExactOverlayY(e,t,s)),om(n,this._getExactOverlayX(e,t,s))}else n.position="static";let s="",r=this._getOffset(e,"x"),i=this._getOffset(e,"y");r&&(s+=`translateX(${r}px) `),i&&(s+=`translateY(${i}px)`),n.transform=s.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),om(this._pane.style,n)}_getExactOverlayY(t,e,n){let s={top:null,bottom:null},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let i=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=i,"bottom"===t.overlayY?s.bottom=`${this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)}px`:s.top=_f(r.y),s}_getExactOverlayX(t,e,n){let s,r={left:null,right:null},i=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n)),"right"==(s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?r.right=`${this._document.documentElement.clientWidth-(i.x+this._overlayRect.width)}px`:r.left=_f(i.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Wf(t,n),isOriginOutsideView:Yf(t,n),isOverlayClipped:Wf(e,n),isOverlayOutsideView:Yf(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{tm("originX",t.originX),Jf("originY",t.originY),tm("overlayX",t.overlayX),Jf("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&gf(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof ln)return t.nativeElement.getBoundingClientRect();if(t instanceof HTMLElement)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function om(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}class am{constructor(t,e,n,s,r,i,o){this._preferredPositions=[],this._positionStrategy=new im(n,s,r,i,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,s){const r=new Gf(t,e,n,s);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const lm="cdk-global-overlay-wrapper";class hm{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(lm),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig();t.position=this._cssPosition,t.marginLeft="100%"===n.width?"0":this._leftOffset,t.marginTop="100%"===n.height?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,"100%"===n.width?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems="100%"===n.height?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(lm),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let cm=(()=>{class t{constructor(t,e,n,s){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=s}global(){return new hm}connectedTo(t,e,n){return new am(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new im(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.ngInjectableDef=ft({factory:function(){return new t(jt(Uf),jt(ol),jt(Nf),jt(nm))},token:t,providedIn:"root"}),t})(),um=0,dm=(()=>(class{constructor(t,e,n,s,r,i,o,a,l,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=s,this._keyboardDispatcher=r,this._injector=i,this._ngZone=o,this._document=a,this._directionality=l,this._location=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),s=this._createPortalOutlet(n),r=new Qf(t);return r.direction=r.direction||this._directionality.value,new sm(s,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id=`cdk-overlay-${um++}`,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Di)),new af(t,this._componentFactoryResolver,this._appRef,this._injector)}}))();const pm=new Tt("cdk-connected-overlay-scroll-strategy");function fm(t){return()=>t.scrollStrategies.reposition()}let mm=(()=>(class{}))();class gm{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}function _m(){throw Error("Attempting to attach dialog content after content is already attached")}let ym=(()=>(class extends of{constructor(t,e,n,s,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._document=s,this._config=r,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new Nr,this._ariaLabelledBy=r.ariaLabelledBy||null}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&_m(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&_m(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)}_trapFocus(){const t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const e=this._document.activeElement;e===t||t.contains(e)||t.focus()}}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;this._config.restoreFocus&&t&&"function"==typeof t.focus&&t.focus(),this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_onAnimationDone(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}))(),vm=0;class bm{constructor(t,e,n,s=`mat-dialog-${vm++}`){this._overlayRef=t,this._containerInstance=e,this.id=s,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new A,this._afterClosed=new A,this._beforeClosed=new A,this._state=0,e._id=s,e._animationStateChanged.pipe(Cl(t=>"done"===t.phaseName&&"enter"===t.toState),zl(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Cl(t=>"done"===t.phaseName&&"exit"===t.toState),zl(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._overlayRef.dispose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Cl(t=>t.keyCode===uf&&!this.disableClose&&!function(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(t))).subscribe(t=>{t.preventDefault(),this.close()})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Cl(t=>"start"===t.phaseName),zl(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._state=2,this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},e.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}afterOpen(){return this.afterOpened()}beforeClose(){return this.beforeClosed()}getState(){return this._state}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}const wm=new Tt("MatDialogData"),Cm=new Tt("mat-dialog-default-options"),Em=new Tt("mat-dialog-scroll-strategy");function Sm(t){return()=>t.scrollStrategies.block()}let xm=(()=>(class{constructor(t,e,n,s,r,i,o){this._overlay=t,this._injector=e,this._location=n,this._defaultOptions=s,this._parentDialog=i,this._overlayContainer=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new A,this._afterOpenedAtThisLevel=new A,this._ariaHiddenElements=new Map,this.afterAllClosed=bl(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(Gl(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}get afterOpen(){return this.afterOpened}get _afterAllClosed(){const t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}open(t,e){if((e=function(t,e){return Object.assign({},e,t)}(e,this._defaultOptions||new gm)).id&&this.getDialogById(e.id))throw Error(`Dialog with id "${e.id}" exists already. The dialog id must be unique.`);const n=this._createOverlay(e),s=this._attachDialogContainer(n,e),r=this._attachDialogContent(t,s,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new Qf({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=new cf(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[gm,e]])),s=new sf(ym,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(s).instance}_attachDialogContent(t,e,n,s){const r=new bm(n,e,this._location,s.id);if(s.hasBackdrop&&n.backdropClick().subscribe(()=>{r.disableClose||r.close()}),t instanceof Nn)e.attachTemplatePortal(new rf(t,null,{$implicit:s.data,dialogRef:r}));else{const n=this._createInjector(s,r,e),i=e.attachComponentPortal(new sf(t,void 0,n));r.componentInstance=i.instance}return r.updateSize(s.width,s.height).updatePosition(s.position),r}_createInjector(t,e,n){const s=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=new WeakMap([[ym,n],[wm,t.data],[bm,e]]);return!t.direction||s&&s.get(pf,null)||r.set(pf,{value:t.direction,change:pl()}),new cf(s||this._injector,r)}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let s=e[n];s===t||"SCRIPT"===s.nodeName||"STYLE"===s.nodeName||s.hasAttribute("aria-live")||(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}))(),Tm=(()=>(class{}))();const Am=new mn("8.2.3");let Dm=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(Fw){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===Rm(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===t)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}let s=t.nodeName.toLowerCase(),r=Rm(t);if(t.hasAttribute("contenteditable"))return-1!==r;if("iframe"===s)return!1;if("audio"===s){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===s){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==s||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}isFocusable(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||km(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}return t.ngInjectableDef=ft({factory:function(){return new t(jt(Nf))},token:t,providedIn:"root"}),t})();function km(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Rm(t){if(!km(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Im{constructor(t,e,n,s,r=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}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(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], `+`[cdkFocusRegion${t}], `+`[cdk-focus-${t}]`);for(let n=0;n<e.length;n++)e[n].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', `+`use 'cdkFocusRegion${t}' instead. The deprecated `+"attribute will be removed in 8.0.0.",e[n]):e[n].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', `+`use 'cdkFocusRegion${t}' instead. The deprecated attribute `+"will be removed in 8.0.0.",e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return t?(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),le()&&!this._checker.isFocusable(t)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",t),t.focus(),!0):this.focusFirstTabbableElement()}focusFirstTabbableElement(){const t=this._getRegionBoundary("start");return t&&t.focus(),!!t}focusLastTabbableElement(){const t=this._getRegionBoundary("end");return t&&t.focus(),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=0;n<e.length;n++){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=e.length-1;n>=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(zl(1)).subscribe(t)}}let Om=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new Im(t,this._checker,this._ngZone,this._document,e)}}return t.ngInjectableDef=ft({factory:function(){return new t(jt(Dm),jt(hi),jt(ol))},token:t,providedIn:"root"}),t})(),Pm=(()=>(class{constructor(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=mf(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=mf(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}}))();const Nm=new Tt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Mm=new Tt("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Fm=(()=>{class t{constructor(t,e,n,s){this._ngZone=e,this._defaultOptions=s,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let s,r;return 1===e.length&&"number"==typeof e[0]?r=e[0]:[s,r]=e,this.clear(),clearTimeout(this._previousTimeout),s||(s=n&&n.politeness?n.politeness:"polite"),null==r&&n&&(r=n.duration),this._liveElement.setAttribute("aria-live",s),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e}}return t.ngInjectableDef=ft({factory:function(){return new t(jt(Nm,8),jt(hi),jt(ol),jt(Mm,8))},token:t,providedIn:"root"}),t})(),Vm=(()=>(class{constructor(t,e,n,s){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=n,this._ngZone=s,this._politeness="off"}get politeness(){return this._politeness}set politeness(t){this._politeness="polite"===t||"assertive"===t?t:"off","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}))();const Lm=650,jm=Ff({passive:!0,capture:!0});let $m=(()=>{class t{constructor(t,e){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=()=>{this._lastTouchTarget||this._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=t.composedPath?t.composedPath()[0]:t.target,this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,Lm)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)}}monitor(t,e=!1){if(!this._platform.isBrowser)return pl(null);const n=yf(t);if(this._elementInfo.has(n)){let t=this._elementInfo.get(n);return t.checkChildren=e,t.subject.asObservable()}let s={unlisten:()=>{},checkChildren:e,subject:new A};this._elementInfo.set(n,s),this._incrementMonitoredElementCount();let r=t=>this._onFocus(t,n),i=t=>this._onBlur(t,n);return this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",r,!0),n.addEventListener("blur",i,!0)}),s.unlisten=()=>{n.removeEventListener("focus",r,!0),n.removeEventListener("blur",i,!0)},s.subject.asObservable()}stopMonitoring(t){const e=yf(t),n=this._elementInfo.get(e);n&&(n.unlisten(),n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}focusVia(t,e,n){const s=yf(t);this._setOriginForCurrentEventQueue(e),"function"==typeof s.focus&&s.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_setClasses(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originTimeoutId=setTimeout(()=>this._origin=null,1)})}_wasCausedByTouch(t){let e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==t.target)return;let s=this._origin;s||(s=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,s),this._emitOrigin(n.subject,s),this._lastFocusOrigin=s}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_incrementMonitoredElementCount(){1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular(()=>{document.addEventListener("keydown",this._documentKeydownListener,jm),document.addEventListener("mousedown",this._documentMousedownListener,jm),document.addEventListener("touchstart",this._documentTouchstartListener,jm),window.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){--this._monitoredElementCount||(document.removeEventListener("keydown",this._documentKeydownListener,jm),document.removeEventListener("mousedown",this._documentMousedownListener,jm),document.removeEventListener("touchstart",this._documentTouchstartListener,jm),window.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId))}}return t.ngInjectableDef=ft({factory:function(){return new t(jt(hi),jt(Nf))},token:t,providedIn:"root"}),t})(),Um=(()=>(class{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new Nr,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}))(),zm=(()=>(class{}))();const Bm=new mn("8.2.3"),Hm=new Tt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let qm=(()=>(class{constructor(t,e){this._sanityChecksEnabled=t,this._hammerLoader=e,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_areChecksEnabled(){return this._sanityChecksEnabled&&le()&&!this._isTestEnv()}_isTestEnv(){const t=this._window;return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._document||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){Bm.full!==Am.full&&console.warn("The Angular Material version ("+Bm.full+") does not match the Angular CDK version ("+Am.full+").\nPlease ensure the versions of these two packages exactly match.")}_checkHammerIsAvailable(){!this._hasCheckedHammer&&this._window&&(!this._areChecksEnabled()||this._window.Hammer||this._hammerLoader||console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)}}))();function Ym(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=mf(t)}}}function Wm(t,e){return class extends t{get color(){return this._color}set color(t){const n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}constructor(...t){super(...t),this.color=e}}}function Km(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=mf(t)}}}const Zm=new Tt("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return $t(Yr)}});class Qm{constructor(){this._localeChanges=new A}get localeChanges(){return this._localeChanges}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),s=this.isValid(e);return n&&s?!this.compareDate(t,e):n==s}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const Gm=new Tt("mat-date-formats");let Xm;try{Xm="undefined"!=typeof Intl}catch(Fw){Xm=!1}const Jm={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},tg=sg(31,t=>String(t+1)),eg={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},ng=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function sg(t,e){const n=Array(t);for(let s=0;s<t;s++)n[s]=e(s);return n}let rg=(()=>(class extends Qm{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(Xm){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return sg(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return Jm[t]}getDateNames(){if(Xm){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return sg(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return tg}getDayOfWeekNames(t){if(Xm){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return sg(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return eg[t]}getYearName(t){if(Xm){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,n){if(e<0||e>11)throw Error(`Invalid month index "${e}". Month index has to be between 0 and 11.`);if(n<1)throw Error(`Invalid date "${n}". Date has to be greater than 0.`);let s=this._createDateWithOverflow(t,e,n);if(s.getMonth()!=e)throw Error(`Invalid date "${n}" for month with index "${e}".`);return s}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Xm){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign({},e,{timeZone:"utc"});const n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(ng.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,n){const s=new Date(t,e,n);return t>=0&&t<100&&s.setFullYear(this.getYear(s)-1900),s}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)}}))();const ig={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let og=(()=>(class{}))(),ag=(()=>(class{}))(),lg=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.ngInjectableDef=ft({factory:function(){return new t},token:t,providedIn:"root"}),t})();const hg=function(){var t={FADING_IN:0,VISIBLE:1,FADING_OUT:2,HIDDEN:3};return t[t.FADING_IN]="FADING_IN",t[t.VISIBLE]="VISIBLE",t[t.FADING_OUT]="FADING_OUT",t[t.HIDDEN]="HIDDEN",t}();class cg{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=hg.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const ug={enterDuration:450,exitDuration:400},dg=800,pg=Ff({passive:!0});class fg{constructor(t,e,n,s){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=t=>{const e=function(t){return 0===t.buttons}(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+dg;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))},this._onTouchStart=t=>{if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}},this._onPointerUp=()=>{this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(t.state===hg.VISIBLE||t.config.terminateOnPointerUp&&t.state===hg.FADING_IN)&&t.fadeOut()}))},s.isBrowser&&(this._containerElement=yf(n),this._triggerEvents.set("mousedown",this._onMousedown).set("mouseup",this._onPointerUp).set("mouseleave",this._onPointerUp).set("touchstart",this._onTouchStart).set("touchend",this._onPointerUp).set("touchcancel",this._onPointerUp))}fadeInRipple(t,e,n={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign({},ug,n.animation);n.centered&&(t=s.left+s.width/2,e=s.top+s.height/2);const i=n.radius||function(t,e,n){const s=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(s*s+r*r)}(t,e,s),o=t-s.left,a=e-s.top,l=r.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=`${o-i}px`,h.style.top=`${a-i}px`,h.style.height=`${2*i}px`,h.style.width=`${2*i}px`,h.style.backgroundColor=n.color||null,h.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(h),window.getComputedStyle(h).getPropertyValue("opacity"),h.style.transform="scale(1)";const c=new cg(this,h,n);return c.state=hg.FADING_IN,this._activeRipples.add(c),n.persistent||(this._mostRecentTransientRipple=c),this._runTimeoutOutsideZone(()=>{const t=c===this._mostRecentTransientRipple;c.state=hg.VISIBLE,n.persistent||t&&this._isPointerDown||c.fadeOut()},l),c}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,s=Object.assign({},ug,t.config.animation);n.style.transitionDuration=`${s.exitDuration}ms`,n.style.opacity="0",t.state=hg.FADING_OUT,this._runTimeoutOutsideZone(()=>{t.state=hg.HIDDEN,n.parentNode.removeChild(n)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=yf(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(()=>{this._triggerEvents.forEach((t,n)=>{e.addEventListener(n,t,pg)})}),this._triggerElement=e)}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_removeTriggerEvents(){this._triggerElement&&this._triggerEvents.forEach((t,e)=>{this._triggerElement.removeEventListener(e,t,pg)})}}const mg=new Tt("mat-ripple-global-options");let gg=(()=>(class{constructor(t,e,n,s,r){this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new fg(this,e,t,n),"NoopAnimations"===r&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign({},this._globalOptions.animation,this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign({},this.rippleConfig,n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign({},this.rippleConfig,t))}}))(),_g=(()=>(class{}))(),yg=(()=>(class{}))(),vg=(()=>(class{}))();var bg=es({encapsulation:2,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}@media (-ms-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;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{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"dialogContainer",definitions:[{type:0,name:"void, exit",styles:{type:6,styles:{opacity:0,transform:"scale(0.7)"},offset:null},options:void 0},{type:0,name:"enter",styles:{type:6,styles:{transform:"none"},offset:null},options:void 0},{type:1,expr:"* => enter",animation:{type:4,styles:{type:6,styles:{transform:"none",opacity:1},offset:null},timings:"150ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void, * => exit",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"75ms cubic-bezier(0.4, 0.0, 0.2, 1)"},options:null}],options:{}}]}});function wg(t){return co(0,[(t()(),Wi(0,null,null,0))],null,null)}function Cg(t){return co(0,[Ji(402653184,1,{_portalOutlet:0}),(t()(),Wi(16777216,null,null,1,null,wg)),ur(2,212992,[[1,4]],0,lf,[en,Fn],{portal:[0,"portal"]},null)],(function(t,e){t(e,2,0,"")}),null)}function Eg(t){return co(0,[(t()(),Ki(0,0,null,null,1,"mat-dialog-container",[["aria-modal","true"],["class","mat-dialog-container"],["tabindex","-1"]],[[1,"id",0],[1,"role",0],[1,"aria-labelledby",0],[1,"aria-label",0],[1,"aria-describedby",0],[40,"@dialogContainer",0]],[["component","@dialogContainer.start"],["component","@dialogContainer.done"]],(function(t,e,n){var s=!0;return"component:@dialogContainer.start"===e&&(s=!1!==Xs(t,1)._onAnimationStart(n)&&s),"component:@dialogContainer.done"===e&&(s=!1!==Xs(t,1)._onAnimationDone(n)&&s),s}),Cg,bg)),ur(1,49152,null,0,ym,[ln,Om,kn,[2,ol],gm],null,null)],null,(function(t,e){t(e,0,0,Xs(e,1)._id,Xs(e,1)._config.role,Xs(e,1)._config.ariaLabel?null:Xs(e,1)._ariaLabelledBy,Xs(e,1)._config.ariaLabel,Xs(e,1)._config.ariaDescribedBy||null,Xs(e,1)._state)}))}var Sg=Us("mat-dialog-container",ym,Eg,{},{},[]);class xg extends U{constructor(t,e){super(t),this.sources=e,this.completed=0,this.haveValues=0;const n=e.length;this.values=new Array(n);for(let s=0;s<n;s++){const t=$(this,e[s],null,s);t&&this.add(t)}}notifyNext(t,e,n,s,r){this.values[n]=e,r._hasValue||(r._hasValue=!0,this.haveValues++)}notifyComplete(t){const{destination:e,haveValues:n,values:s}=this,r=s.length;t._hasValue?(this.completed++,this.completed===r&&(n===r&&e.next(s),e.complete())):e.complete()}}class Tg{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Ag extends Tg{get formDirective(){return null}get path(){return null}}let Dg=(()=>(class extends class{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}{constructor(t){super(t)}}))();function kg(t){return null==t||0===t.length}const Rg=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[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 Ig{static min(t){return e=>{if(kg(e.value)||kg(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(kg(e.value)||kg(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return kg(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return kg(t.value)?null:Rg.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(kg(e.value))return null;const n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}}static maxLength(t){return e=>{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return Ig.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(kg(t.value))return null;const s=t.value;return e.test(s)?null:{pattern:{requiredPattern:n,actualValue:s}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(Og);return 0==e.length?null:function(t){return Ng(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(Og);return 0==e.length?null:function(t){return function t(...e){let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&l(e[0])&&(e=e[0]),0===e.length?cl:n?t(e).pipe(z(t=>n(...t))):new w(t=>new xg(t,e))}(function(t,e){return e.map(e=>e(t))}(t,e).map(Pg)).pipe(z(Ng))}}}function Og(t){return null!=t}function Pg(t){const e=We(t)?Y(t):t;if(!Ke(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Ng(t){const e=t.reduce((t,e)=>null!=e?Object.assign({},t,e):t,{});return 0===Object.keys(e).length?null:e}function Mg(t){return t.validate?e=>t.validate(e):t}function Fg(t){return t.validate?e=>t.validate(e):t}let Vg=(()=>(class{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}))();function Lg(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function jg(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function $g(t){return null!=t?Ig.compose(t.map(Mg)):null}function Ug(t){return null!=t?Ig.composeAsync(t.map(Fg)):null}const zg="VALID",Bg="INVALID",Hg="PENDING",qg="DISABLED";function Yg(t){const e=Kg(t)?t.validators:t;return Array.isArray(e)?$g(e):e||null}function Wg(t,e){const n=Kg(e)?e.asyncValidators:t;return Array.isArray(n)?Ug(n):n||null}function Kg(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Zg{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return this.status===zg}get invalid(){return this.status===Bg}get pending(){return this.status==Hg}get disabled(){return this.status===qg}get enabled(){return this.status!==qg}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=Yg(t)}setAsyncValidators(t){this.asyncValidator=Wg(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Hg,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=qg,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},t,{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=zg,this._forEachChild(e=>{e.enable(Object.assign({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign({},t,{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==zg&&this.status!==Hg||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?qg:zg}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Hg;const e=Pg(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce((t,e)=>t instanceof Gg?t.controls.hasOwnProperty(e)?t.controls[e]:null:t instanceof Xg&&t.at(e)||null,t))}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Nr,this.statusChanges=new Nr}_calculateStatus(){return this._allControlsDisabled()?qg:this.errors?Bg:this._anyControlsHaveStatus(Hg)?Hg:this._anyControlsHaveStatus(Bg)?Bg:zg}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Kg(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Qg extends Zg{constructor(t=null,e,n){super(Yg(e),Wg(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Gg extends Zg{constructor(t,e,n){super(Yg(e),Wg(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,s)=>{n.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Qg?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((n,s)=>{e=e||this.contains(s)&&t(n)}),e}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,s)=>{n=e(n,t,s)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Xg extends Zg{constructor(t,e,n){super(Yg(e),Wg(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,s)=>{n.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Qg?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Jg=(()=>Promise.resolve(null))();let t_=(()=>(class extends Ag{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Nr,this.form=new Gg({},$g(t),Ug(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Jg.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),function(t,e){t||jg(e,"Cannot find control with"),e.valueAccessor||jg(e,"No value accessor for form control with"),t.validator=Ig.compose([t.validator,e.validator]),t.asyncValidator=Ig.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Lg(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Lg(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Jg.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this._directives,t)})}addFormGroup(t){Jg.then(()=>{const e=this._findContainer(t.path),n=new Gg({});(function(t,e){null==t&&jg(e,"Cannot find control with"),t.validator=Ig.compose([t.validator,e.validator]),t.asyncValidator=Ig.composeAsync([t.asyncValidator,e.asyncValidator])})(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Jg.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Jg.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}))();const e_=new Tt("NgFormSelectorWarning");let n_=(()=>(class{}))();const s_=new Tt("NgModelWithFormControlWarning");let r_=(()=>(class{}))(),i_=(()=>(class{group(t,e=null){const n=this._reduceControls(t);let s=null,r=null,i=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new Gg(n,{asyncValidators:r,updateOn:i,validators:s})}control(t,e,n){return new Qg(t,e,n)}array(t,e,n){const s=t.map(t=>this._createControl(t));return new Xg(s,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof Qg||t instanceof Gg||t instanceof Xg?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}))(),o_=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:e_,useValue:e.warnOnDeprecatedNgFormSelector}]}}}return t})(),a_=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:s_,useValue:e.warnOnNgModelWithFormControl}]}}}return t})();function l_(t){return Error(`MatDatepicker: No provider found for ${t}. You must import one of the following `+"modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}let h_=(()=>{class t{constructor(){this.changes=new A,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.ngInjectableDef=ft({factory:function(){return new t},token:t,providedIn:"root"}),t})();class c_{constructor(t,e,n,s,r){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=s,this.cssClasses=r}}let u_=(()=>(class{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new Nr}_cellClicked(t){t.enabled&&this.selectedValueChange.emit(t.value)}ngOnChanges(t){const e=t.numCols,{rows:n,numCols:s}=this;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?s-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/s}%`),!e&&this._cellWidth||(this._cellWidth=`${100/s}%`)}_isActiveCell(t,e){let n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}_focusActiveCell(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(zl(1)).subscribe(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&t.focus()})})}}))(),d_=(()=>(class{constructor(t,e,n,s){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=s,this.selectedChange=new Nr,this._userSelection=new Nr,this.activeDateChange=new Nr,!this._dateAdapter)throw l_("DateAdapter");if(!this._dateFormats)throw l_("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedDate=this._getDateInCurrentMonth(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._init()}_dateSelected(t){if(this._selectedDate!=t){const e=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.createDate(e,n,t);this.selectedChange.emit(s)}this._userSelection.emit()}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-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=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),t.preventDefault()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let n=this._dateAdapter.getDayOfWeekNames("long").map((t,n)=>({long:t,narrow:e[n]}));this._weekdays=n.slice(t).concat(n.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let n=0,s=this._firstWeekOffset;n<t;n++,s++){7==s&&(this._weeks.push([]),s=0);const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),r=this._shouldEnableDate(t),i=this._dateAdapter.format(t,this._dateFormats.display.dateA11yLabel),o=this.dateClass?this.dateClass(t):void 0;this._weeks[this._weeks.length-1].push(new c_(n+1,e[n],i,r,o))}}_shouldEnableDate(t){return!!t&&(!this.dateFilter||this.dateFilter(t))&&(!this.minDate||this._dateAdapter.compareDate(t,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}))();const p_=24;let f_=(()=>(class{constructor(t,e,n){if(this._changeDetectorRef=t,this._dateAdapter=e,this._dir=n,this.selectedChange=new Nr,this.yearSelected=new Nr,this.activeDateChange=new Nr,!this._dateAdapter)throw l_("DateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),m_(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._init()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-g_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,n=[];e<p_;e++)n.push(t+e),4==n.length&&(this._years.push(n.map(t=>this._createCellForYear(t))),n=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));let e=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,e,1));this.selectedChange.emit(this._dateAdapter.createDate(t,e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-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,-g_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,p_-g_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10*-p_:-p_);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10*p_:p_);break;case 13:case 32:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return g_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){let e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new c_(t,e,e,this._shouldEnableYear(t))}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let e=this._dateAdapter.createDate(t,0,1);this._dateAdapter.getYear(e)==t;e=this._dateAdapter.addCalendarDays(e,1))if(this.dateFilter(e))return!0;return!1}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}))();function m_(t,e,n,s,r){const i=t.getYear(e),o=t.getYear(n),a=__(t,s,r);return Math.floor((i-a)/p_)===Math.floor((o-a)/p_)}function g_(t,e,n,s){return((t.getYear(e)-__(t,n,s))%(r=p_)+r)%r;var r}function __(t,e,n){let s=0;return n?s=t.getYear(n)-p_+1:e&&(s=t.getYear(e)),s}let y_=(()=>(class{constructor(t,e,n,s){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=s,this.selectedChange=new Nr,this.monthSelected=new Nr,this.activeDateChange=new Nr,!this._dateAdapter)throw l_("DateAdapter");if(!this._dateFormats)throw l_("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedMonth=this._getMonthInCurrentYear(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._init()}_monthSelected(t){const e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(e);const n=this._dateAdapter.getNumDaysInMonth(e);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._monthSelected(this._dateAdapter.getMonth(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){let n=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),this._dateFormats.display.monthYearA11yLabel);return new c_(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t))}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let n=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(n)==t;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const n=this._dateAdapter.getYear(this.maxDate),s=this._dateAdapter.getMonth(this.maxDate);return t>n||t===n&&e>s}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const n=this._dateAdapter.getYear(this.minDate),s=this._dateAdapter.getMonth(this.minDate);return t<n||t===n&&e<s}return!1}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}))(),v_=(()=>(class{constructor(t,e,n,s,r){this._intl=t,this.calendar=e,this._dateAdapter=n,this._dateFormats=s,this.calendar.stateChanges.subscribe(()=>r.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-g_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+p_-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),s=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(n,s)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-p_)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:p_)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):m_(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}))(),b_=(()=>(class{constructor(t,e,n,s){if(this._dateAdapter=e,this._dateFormats=n,this._changeDetectorRef=s,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Nr,this.yearSelected=new Nr,this.monthSelected=new Nr,this._userSelection=new Nr,this.stateChanges=new A,!this._dateAdapter)throw l_("DateAdapter");if(!this._dateFormats)throw l_("MAT_DATE_FORMATS");this._intlChanges=t.changes.subscribe(()=>{s.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new sf(this.headerComponent||v_),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}updateTodaysDate(){("month"==this.currentView?this.monthView:"year"==this.currentView?this.yearView:this.multiYearView).ngAfterContentInit()}_dateSelected(t){this._dateAdapter.sameDate(t,this.selected)||this.selectedChange.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_userSelected(){this._userSelection.emit()}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}))();const w_=new Tt("mat-datepicker-scroll-strategy");function C_(t){return()=>t.scrollStrategies.reposition()}class E_{constructor(t){this._elementRef=t}}const S_=Wm(E_);let x_=(()=>(class extends S_{constructor(t){super(t)}ngAfterViewInit(){this._calendar.focusActiveCell()}}))(),T_=(()=>(class{}))(),A_=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.ngInjectableDef=ft({factory:function(){return new t},token:t,providedIn:"root"}),t})(),D_=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=yf(t);return new w(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new A,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.ngInjectableDef=ft({factory:function(){return new t(jt(A_))},token:t,providedIn:"root"}),t})(),k_=(()=>(class{}))();const R_=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class I_{constructor(t){this._elementRef=t}}const O_=Wm(Ym(Km(I_)));let P_=(()=>(class extends O_{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of R_)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}))(),N_=(()=>(class{}))();function M_(){return"undefined"!=typeof process}function F_(t){switch(t.length){case 0:return new Xp;case 1:return t[0];default:return new Jp(t)}}function V_(t,e,n,s,r={},i={}){const o=[],a=[];let l=-1,h=null;if(s.forEach(t=>{const n=t.offset,s=n==l,c=s&&h||{};Object.keys(t).forEach(n=>{let s=n,a=t[n];if("offset"!==n)switch(s=e.normalizePropertyName(s,o),a){case tf:a=r[n];break;case Kp:a=i[n];break;default:a=e.normalizeStyleValue(n,s,a,o)}c[s]=a}),s||a.push(c),h=c,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function L_(t,e,n,s){switch(e){case"start":t.onStart(()=>s(n&&j_(n,"start",t)));break;case"done":t.onDone(()=>s(n&&j_(n,"done",t)));break;case"destroy":t.onDestroy(()=>s(n&&j_(n,"destroy",t)))}}function j_(t,e,n){const s=n.totalTime,r=$_(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==s?t.totalTime:s,!!n.disabled),i=t._data;return null!=i&&(r._data=i),r}function $_(t,e,n,s,r="",i=0,o){return{element:t,triggerName:e,fromState:n,toState:s,phaseName:r,totalTime:i,disabled:!!o}}function U_(t,e,n){let s;return t instanceof Map?(s=t.get(e))||t.set(e,s=n):(s=t[e])||(s=t[e]=n),s}function z_(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let B_=(t,e)=>!1,H_=(t,e)=>!1,q_=(t,e,n)=>[];const Y_=M_();(Y_||"undefined"!=typeof Element)&&(B_=(t,e)=>t.contains(e),H_=(()=>{if(Y_||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):H_}})(),q_=(t,e,n)=>{let s=[];if(n)s.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&s.push(n)}return s});let W_=null,K_=!1;function Z_(t){W_||(W_=("undefined"!=typeof document?document.body:null)||{},K_=!!W_.style&&"WebkitAppearance"in W_.style);let e=!0;return W_.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in W_.style)&&K_&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in W_.style),e}const Q_=H_,G_=B_,X_=q_;function J_(t){const e={};return Object.keys(t).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[s]=t[n]}),e}let ty=(()=>(class{validateStyleProperty(t){return Z_(t)}matchesElement(t,e){return Q_(t,e)}containsElement(t,e){return G_(t,e)}query(t,e,n){return X_(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,s,r,i=[],o){return new Xp(n,s)}}))(),ey=(()=>{class t{}return t.NOOP=new ty,t})();const ny=1e3,sy="{{",ry="ng-enter",iy="ng-leave",oy="ng-trigger",ay=".ng-trigger",ly="ng-animating",hy=".ng-animating";function cy(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:uy(parseFloat(e[1]),e[2])}function uy(t,e){switch(e){case"s":return t*ny;default:return t}}function dy(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let s,r=0,i="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};s=uy(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=uy(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else s=t;if(!n){let n=!1,i=e.length;s<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(i,0,`The provided timing value "${t}" is invalid.`)}return{duration:s,delay:r,easing:i}}(t,e,n)}function py(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function fy(t,e,n={}){if(e)for(let s in t)n[s]=t[s];else py(t,n);return n}function my(t,e,n){return n?e+":"+n+";":""}function gy(t){let e="";for(let n=0;n<t.style.length;n++){const s=t.style.item(n);e+=my(0,s,t.style.getPropertyValue(s))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=my(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function _y(t,e,n){t.style&&(Object.keys(e).forEach(s=>{const r=xy(s);n&&!n.hasOwnProperty(s)&&(n[s]=t.style[r]),t.style[r]=e[s]}),M_()&&gy(t))}function yy(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=xy(e);t.style[n]=""}),M_()&&gy(t))}function vy(t){return Array.isArray(t)?1==t.length?t[0]:Zp(t):t}const by=new RegExp(`${sy}\\s*(.+?)\\s*}}`,"g");function wy(t){let e=[];if("string"==typeof t){const n=t.toString();let s;for(;s=by.exec(n);)e.push(s[1]);by.lastIndex=0}return e}function Cy(t,e,n){const s=t.toString(),r=s.replace(by,(t,s)=>{let r=e[s];return e.hasOwnProperty(s)||(n.push(`Please provide a value for the animation param ${s}`),r=""),r.toString()});return r==s?t:r}function Ey(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Sy=/-+([a-z0-9])/g;function xy(t){return t.replace(Sy,(...t)=>t[1].toUpperCase())}function Ty(t,e){return 0===t||0===e}function Ay(t,e,n){const s=Object.keys(n);if(s.length&&e.length){let i=e[0],o=[];if(s.forEach(t=>{i.hasOwnProperty(t)||o.push(t),i[t]=n[t]}),o.length)for(var r=1;r<e.length;r++){let n=e[r];o.forEach((function(e){n[e]=ky(t,e)}))}}return e}function Dy(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error(`Unable to resolve animation metadata node #${e.type}`)}}function ky(t,e){return window.getComputedStyle(t)[e]}const Ry="*";function Iy(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>(function(t,e,n){if(":"==t[0]){const s=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof s)return void e.push(s);t=s}const s=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const r=s[1],i=s[2],o=s[3];e.push(Ny(r,o)),"<"!=i[0]||r==Ry&&o==Ry||e.push(Ny(o,r))})(t,n,e)):n.push(t),n}const Oy=new Set(["true","1"]),Py=new Set(["false","0"]);function Ny(t,e){const n=Oy.has(t)||Py.has(t),s=Oy.has(e)||Py.has(e);return(r,i)=>{let o=t==Ry||t==r,a=e==Ry||e==i;return!o&&n&&"boolean"==typeof r&&(o=r?Oy.has(t):Py.has(t)),!a&&s&&"boolean"==typeof i&&(a=i?Oy.has(e):Py.has(e)),o&&a}}const My=":self",Fy=new RegExp(`s*${My}s*,?`,"g");function Vy(t,e,n){return new jy(t).build(e,n)}const Ly="";class jy{constructor(t){this._driver=t}build(t,e){const n=new $y(e);return this._resetContextStyleTimingState(n),Dy(this,vy(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector=Ly,t.collectedStyles={},t.collectedStyles[Ly]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,s=e.depCount=0;const r=[],i=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,s=n.name;s.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,r.push(this.visitState(n,e))}),n.name=s}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,s+=r.depCount,i.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:i,queryCount:n,depCount:s,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),s=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,i=s||{};if(n.styles.forEach(t=>{if(Uy(t)){const e=t;Object.keys(e).forEach(t=>{wy(e[t]).forEach(t=>{i.hasOwnProperty(t)||r.add(t)})})}}),r.size){const n=Ey(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:s?{params:s}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Dy(this,vy(t.animation),e);return{type:1,matchers:Iy(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:zy(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Dy(this,t,e)),options:zy(t.options)}}visitGroup(t,e){const n=e.currentTime;let s=0;const r=t.steps.map(t=>{e.currentTime=n;const r=Dy(this,t,e);return s=Math.max(s,e.currentTime),r});return e.currentTime=s,{type:3,steps:r,options:zy(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return By(dy(t,e).duration,0,"");const s=t;if(s.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=By(0,0,"");return t.dynamic=!0,t.strValue=s,t}return By((n=n||dy(s,e)).duration,n.delay,n.easing)}(t.timings,e.errors);let s;e.currentAnimateTimings=n;let r=t.styles?t.styles:Qp({});if(5==r.type)s=this.visitKeyframes(r,e);else{let r=t.styles,i=!1;if(!r){i=!0;const t={};n.easing&&(t.easing=n.easing),r=Qp(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,e);o.isEmptyStep=i,s=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==Kp?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let s=!1,r=null;return n.forEach(t=>{if(Uy(t)){const e=t,n=e.easing;if(n&&(r=n,delete e.easing),!s)for(let t in e)if(e[t].toString().indexOf(sy)>=0){s=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let s=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=e.collectedStyles[e.currentQuerySelector],o=i[n];let a=!0;o&&(r!=s&&r>=o.startTime&&s<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${s}ms"`),a=!1),r=o.startTime),a&&(i[n]={startTime:r,endTime:s}),e.options&&function(t,e,n){const s=e.params||{},r=wy(t);r.length&&r.forEach(t=>{s.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const r=[];let i=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Uy(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Uy(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),h=0;return null!=l&&(s++,h=n.offset=l),o=o||h<0||h>1,i=i||h<a,a=h,r.push(h),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),i&&e.errors.push("Please ensure that all keyframe offsets are in order");const h=t.steps.length;let c=0;s>0&&s<h?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(c=1/(h-1));const u=h-1,d=e.currentTime,p=e.currentAnimateTimings,f=p.duration;return l.forEach((t,s)=>{const i=c>0?s==u?1:c*s:r[s],o=i*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=i,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Dy(this,vy(t.animation),e),options:zy(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:zy(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:zy(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,s=t.options||{};e.queryCount++,e.currentQuery=t;const[r,i]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>t==My);return e&&(t=t.replace(Fy,"")),[t=t.replace(/@\*/g,ay).replace(/@\w+/g,t=>ay+"-"+t.substr(1)).replace(/:animating/g,hy),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,U_(e.collectedStyles,e.currentQuerySelector,{});const o=Dy(this,vy(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:i,animation:o,originalSelector:t.selector,options:zy(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:dy(t.timings,e.errors,!0);return{type:12,animation:Dy(this,vy(t.animation),e),timings:n,options:null}}}class $y{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Uy(t){return!Array.isArray(t)&&"object"==typeof t}function zy(t){var e;return t?(t=py(t)).params&&(t.params=(e=t.params)?py(e):null):t={},t}function By(t,e,n){return{duration:t,delay:e,easing:n}}function Hy(t,e,n,s,r,i,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:s,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:a}}class qy{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Yy=1,Wy=new RegExp(":enter","g"),Ky=new RegExp(":leave","g");function Zy(t,e,n,s,r,i={},o={},a,l,h=[]){return(new Qy).buildKeyframes(t,e,n,s,r,i,o,a,l,h)}class Qy{buildKeyframes(t,e,n,s,r,i,o,a,l,h=[]){l=l||new qy;const c=new Xy(t,e,l,s,r,h,[]);c.options=a,c.currentTimeline.setStyles([i],null,c.errors,a),Dy(this,n,c);const u=c.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,c.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[Hy(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const s=e.createSubContext(t.options),r=e.currentTimeline.currentTime,i=this._visitSubInstructions(n,s,s.options);r!=i&&e.transformIntoNewTimeline(i)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let s=e.currentTimeline.currentTime;const r=null!=n.duration?cy(n.duration):null,i=null!=n.delay?cy(n.delay):null;return 0!==r&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,r,i);s=Math.max(s,n.duration+n.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),Dy(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let s=e;const r=t.options;if(r&&(r.params||r.delay)&&((s=e.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Gy);const t=cy(r.delay);s.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Dy(this,t,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let s=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?cy(t.options.delay):0;t.steps.forEach(i=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),Dy(this,i,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(s),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return dy(e.params?Cy(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=s&&s.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,s=e.currentTimeline.duration,r=n.duration,i=e.createSubContext().currentTimeline;i.easing=n.easing,t.styles.forEach(t=>{i.forwardTime((t.offset||0)*r),i.setStyles(t.styles,t.easing,e.errors,e.options),i.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(i),e.transformIntoNewTimeline(s+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,s=t.options||{},r=s.delay?cy(s.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Gy);let i=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{e.currentQueryIndex=s;const o=e.createSubContext(t.options,n);r&&o.delayNextStep(r),n===e.element&&(a=o.currentTimeline),Dy(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(i),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,s=e.currentTimeline,r=t.timings,i=Math.abs(r.duration),o=i*(e.currentQueryTotal-1);let a=i*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const h=l.currentTime;Dy(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=s.currentTime-h+(s.startTime-n.currentTimeline.startTime)}}const Gy={};class Xy{constructor(t,e,n,s,r,i,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=r,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Jy(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let s=this.options;null!=n.duration&&(s.duration=cy(n.duration)),null!=n.delay&&(s.delay=cy(n.delay));const r=n.params;if(r){let t=s.params;t||(t=this.options.params={}),Object.keys(r).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=Cy(r[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const s=e||this.element,r=new Xy(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=Gy,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const s={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new tv(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,s,t.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,s,r,i){let o=[];if(s&&o.push(this.element),t.length>0){t=(t=t.replace(Wy,"."+this._enterClassName)).replace(Ky,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return r||0!=o.length||i.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class Jy{constructor(t,e,n,s){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Jy(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Yy,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Kp,this._currentKeyframe[t]=Kp}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,s){e&&(this._previousKeyframe.easing=e);const r=s&&s.params||{},i=function(t,e){const n={};let s;return t.forEach(t=>{"*"===t?(s=s||Object.keys(e)).forEach(t=>{n[t]=Kp}):fy(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(i).forEach(t=>{const e=Cy(i[t],r,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Kp),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],s=t._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((r,i)=>{const o=fy(r,!0);Object.keys(o).forEach(n=>{const s=o[n];s==tf?t.add(n):s==Kp&&e.add(n)}),n||(o.offset=i/this.duration),s.push(o)});const r=t.size?Ey(t.values()):[],i=e.size?Ey(e.values()):[];if(n){const t=s[0],e=py(t);t.offset=0,e.offset=1,s=[t,e]}return Hy(this.element,s,r,i,this.duration,this.startTime,this.easing,!1)}}class tv extends Jy{constructor(t,e,n,s,r,i,o=!1){super(t,e,i.delay),this.element=e,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],i=n+e,o=e/i,a=fy(t[0],!1);a.offset=0,r.push(a);const l=fy(t[0],!1);l.offset=ev(o),r.push(l);const h=t.length-1;for(let s=1;s<=h;s++){let o=fy(t[s],!1);o.offset=ev((e+o.offset*n)/i),r.push(o)}n=i,e=0,s="",t=r}return Hy(this.element,t,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function ev(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class nv{}class sv extends nv{normalizePropertyName(t,e){return xy(t)}normalizeStyleValue(t,e,n,s){let r="";const i=n.toString().trim();if(rv[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&s.push(`Please provide a CSS unit value for ${t}:${n}`)}return i+r}}const rv=(()=>(function(t){const e={};return t.forEach(t=>e[t]=!0),e})("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function iv(t,e,n,s,r,i,o,a,l,h,c,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:i,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:d}}const ov={};class av{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,s){return function(t,e,n,s,r){return t.some(t=>t(e,n,s,r))}(this.ast.matchers,t,e,n,s)}buildStyles(t,e,n){const s=this._stateStyles["*"],r=this._stateStyles[t],i=s?s.buildStyles(e,n):{};return r?r.buildStyles(e,n):i}build(t,e,n,s,r,i,o,a,l,h){const c=[],u=this.ast.options&&this.ast.options.params||ov,d=this.buildStyles(n,o&&o.params||ov,c),p=a&&a.params||ov,f=this.buildStyles(s,p,c),m=new Set,g=new Map,_=new Map,y="void"===s,v={params:Object.assign({},u,p)},b=h?[]:Zy(t,e,this.ast.animation,r,i,d,f,v,l,c);let w=0;if(b.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),c.length)return iv(e,this._triggerName,n,s,y,d,f,[],[],g,_,w,c);b.forEach(t=>{const n=t.element,s=U_(g,n,{});t.preStyleProps.forEach(t=>s[t]=!0);const r=U_(_,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&m.add(n)});const C=Ey(m.values());return iv(e,this._triggerName,n,s,y,d,f,b,C,g,_,w)}}class lv{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},s=py(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(s[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach(t=>{let i=r[t];i.length>1&&(i=Cy(i,s,e)),n[t]=i})}}),n}}class hv{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new lv(t.style,t.options&&t.options.params||{})}),cv(this.states,"true","1"),cv(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new av(t,e,this.states))}),this.fallbackTransition=new av(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,s){return this.transitionFactories.find(r=>r.match(t,e,n,s))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function cv(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const uv=new qy;class dv{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],s=Vy(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=s}_buildPlayer(t,e,n){const s=t.element,r=V_(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(s,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const s=[],r=this._animations[t];let i;const o=new Map;if(r?(i=Zy(this._driver,e,r,ry,iy,{},{},n,uv,s)).forEach(t=>{const e=U_(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)}):(s.push("The requested animation doesn't exist or has already been destroyed"),i=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Kp)})});const a=F_(i.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,s){const r=$_(e,"","","");return L_(this._getPlayer(t),n,r,s),()=>{}}command(t,e,n,s){if("register"==n)return void this.register(t,s[0]);if("create"==n)return void this.create(t,e,s[0]||{});const r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(t)}}}const pv="ng-animate-queued",fv=".ng-animate-queued",mv="ng-animate-disabled",gv=".ng-animate-disabled",_v="ng-star-inserted",yv=".ng-star-inserted",vv=[],bv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},wv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Cv="__ng_removed";class Ev{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(s=n?t.value:t)?s:null,n){const e=py(t);delete e.value,this.options=e}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Sv="void",xv=new Ev(Sv);class Tv{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Nv(e,this._hostClassName)}listen(t,e,n,s){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var r;const i=U_(this._elementListeners,t,[]),o={name:e,phase:n,callback:s};i.push(o);const a=U_(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Nv(t,oy),Nv(t,oy+"-"+e),a[e]=xv),()=>{this._engine.afterFlush(()=>{const t=i.indexOf(o);t>=0&&i.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,s=!0){const r=this._getTrigger(e),i=new Dv(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Nv(t,oy),Nv(t,oy+"-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new Ev(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=xv),l.value!==Sv&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),s=Object.keys(e);if(n.length!=s.length)return!1;for(let r=0;r<n.length;r++){const s=n[r];if(!e.hasOwnProperty(s)||t[s]!==e[s])return!1}return!0}(a.params,l.params)){const e=[],n=r.matchStyles(a.value,a.params,e),s=r.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{yy(t,n),_y(t,s)})}return}const h=U_(this._engine.playersByElement,t,[]);h.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let c=r.matchTransition(a.value,l.value,t,l.params),u=!1;if(!c){if(!s)return;c=r.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:c,fromState:a,toState:l,player:i,isFallbackTransition:u}),u||(Nv(t,pv),i.onStart(()=>{Mv(t,pv)})),i.onDone(()=>{let e=this.players.indexOf(i);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(i);t>=0&&n.splice(t,1)}}),this.players.push(i),h.push(i),i}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e,n=!1){this._engine.driver.query(t,ay,!0).forEach(t=>{if(t[Cv])return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)})}triggerLeaveAnimation(t,e,n,s){const r=this._engine.statesByElement.get(t);if(r){const i=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Sv,s);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&F_(i).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const r=this._triggers[s].fallbackTransition,i=this._engine.statesByElement.get(t)[s]||xv,o=new Ev(Sv),a=new Dv(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:r,fromState:i,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e,!0),this.triggerLeaveAnimation(t,e,!0))return;let s=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)s=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){s=!0;break}}}this.prepareLeaveAnimationListeners(t),s?n.markElementAsRemoved(this.id,t,!1,e):(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}insertNode(t,e){Nv(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const r=n.element,i=this._elementListeners.get(r);i&&i.forEach(e=>{if(e.name==n.triggerName){const s=$_(r,n.triggerName,n.fromState.value,n.toState.value);s._data=t,L_(n.player,e.phase,s,e.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,s=e.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(e=>e.element===t)||e}}class Av{constructor(t,e,n){this.bodyNode=t,this.driver=e,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Tv(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),s=!0;break}s||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let s=this._namespaceLookup[t];s&&s.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let s=0;s<t.length;s++){const r=n[t[s]].namespaceId;if(r){const t=this._fetchNamespace(r);t&&e.add(t)}}}return e}trigger(t,e,n,s){if(kv(e)){const r=this._fetchNamespace(t);if(r)return r.trigger(e,n,s),!0}return!1}insertNode(t,e,n,s){if(!kv(e))return;const r=e[Cv];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,n)}s&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Nv(t,mv)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Mv(t,mv))}removeNode(t,e,n,s){if(kv(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,s):this.markElementAsRemoved(t,e,!1,s),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(t,e,n,s){this.collectedLeaveElements.push(e),e[Cv]={namespaceId:t,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,s,r){return kv(e)?this._fetchNamespace(t).listen(e,n,s,r):()=>{}}_buildInstruction(t,e,n,s,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,s,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,ay,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,hy,!0)).forEach(t=>this.finishActiveQueriedAnimationOnElement(t))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return F_(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[Cv];if(e&&e.setForRemoval){if(t[Cv]=bv,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,gv)&&this.markElementAsDisabled(t,!1),this.driver.query(t,gv,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Nv(this.collectedEnterElements[n],_v);if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?F_(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new qy,s=[],r=new Map,i=[],o=new Map,a=new Map,l=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,fv,!0);for(let n=0;n<e.length;n++)h.add(e[n])});const c=this.bodyNode,u=Array.from(this.statesByElement.keys()),d=Ov(u,this.collectedEnterElements),p=new Map;let f=0;d.forEach((t,e)=>{const n=ry+f++;p.set(e,n),t.forEach(t=>Nv(t,n))});const m=[],g=new Set,_=new Set;for(let R=0;R<this.collectedLeaveElements.length;R++){const t=this.collectedLeaveElements[R],e=t[Cv];e&&e.setForRemoval&&(m.push(t),g.add(t),e.hasAnimation?this.driver.query(t,yv,!0).forEach(t=>g.add(t)):_.add(t))}const y=new Map,v=Ov(u,Array.from(g));v.forEach((t,e)=>{const n=iy+f++;y.set(e,n),t.forEach(t=>Nv(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Mv(t,n))}),v.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>Mv(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const b=[],w=[];for(let R=this._namespaceList.length-1;R>=0;R--)this._namespaceList[R].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(b.push(e),this.collectedEnterElements.length){const t=r[Cv];if(t&&t.setForMove)return void e.destroy()}const h=!c||!this.driver.containsElement(c,r),u=y.get(r),d=p.get(r),f=this._buildInstruction(t,n,d,u,h);if(!f.errors||!f.errors.length)return h?(e.onStart(()=>yy(r,f.fromStyles)),e.onDestroy(()=>_y(r,f.toStyles)),void s.push(e)):t.isFallbackTransition?(e.onStart(()=>yy(r,f.fromStyles)),e.onDestroy(()=>_y(r,f.toStyles)),void s.push(e)):(f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(r,f.timelines),i.push({instruction:f,player:e,element:r}),f.queriedElements.forEach(t=>U_(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),void f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let s=l.get(e);s||l.set(e,s=new Set),n.forEach(t=>s.add(t))}));w.push(f)});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,E=new Map;i.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),s.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{U_(C,e,[]).push(t),t.destroy()})});const S=m.filter(t=>Vv(t,a,l)),x=new Map;Iv(x,this.driver,_,l,Kp).forEach(t=>{Vv(t,a,l)&&S.push(t)});const T=new Map;d.forEach((t,e)=>{Iv(T,this.driver,new Set(t),a,tf)}),S.forEach(t=>{const e=x.get(t),n=T.get(t);x.set(t,Object.assign({},e,n))});const A=[],D=[],k={};i.forEach(t=>{const{element:e,player:i,instruction:o}=t;if(n.has(e)){if(h.has(e))return i.onDestroy(()=>_y(e,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void s.push(i);let t=k;if(E.size>1){let n=e;const s=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}s.push(n)}s.forEach(e=>E.set(e,t))}const n=this._buildAnimation(i.namespaceId,o,C,r,T,x);if(i.setRealPlayer(n),t===k)A.push(i);else{const e=this.playersByElement.get(t);e&&e.length&&(i.parentPlayer=F_(e)),s.push(i)}}else yy(e,o.fromStyles),i.onDestroy(()=>_y(e,o.toStyles)),D.push(i),h.has(e)&&s.push(i)}),D.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const n=F_(e);t.setRealPlayer(n)}}),s.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let R=0;R<m.length;R++){const t=m[R],e=t[Cv];if(Mv(t,iy),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,hy,!0);for(let t=0;t<s.length;t++){let e=o.get(s[t]);e&&e.length&&n.push(...e)}}const s=n.filter(t=>!t.destroyed);s.length?Fv(this,t,s):this.processLeaveNode(t)}return m.length=0,A.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),A}elementContainsData(t,e){let n=!1;const s=e[Cv];return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,s,r){let i=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(i=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||r==Sv;e.forEach(e=>{e.queued||(t||e.triggerName==s)&&i.push(e)})}}return(n||s)&&(i=i.filter(t=>!(n&&n!=t.namespaceId||s&&s!=t.triggerName))),i}_beforeAnimationBuild(t,e,n){const s=e.element,r=e.isRemovalTransition?void 0:t,i=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==s,l=U_(n,t,[]);this._getPreviousPlayers(t,a,r,i,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}yy(s,e.fromStyles)}_buildAnimation(t,e,n,s,r,i){const o=e.triggerName,a=e.element,l=[],h=new Set,c=new Set,u=e.timelines.map(e=>{const u=e.element;h.add(u);const d=u[Cv];if(d&&d.removedBeforeQueried)return new Xp(e.duration,e.delay);const p=u!==a,f=function(t){const e=[];return function t(e,n){for(let s=0;s<e.length;s++){const r=e[s];r instanceof Jp?t(r.players,n):n.push(r)}}(t,e),e}((n.get(u)||vv).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),m=r.get(u),g=i.get(u),_=V_(0,this._normalizer,0,e.keyframes,m,g),y=this._buildPlayer(e,_,f);if(e.subTimeline&&s&&c.add(u),p){const e=new Dv(t,o,u);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{U_(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>(function(t,e,n){let s;if(t instanceof Map){if(s=t.get(e)){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&t.delete(e)}}else if(s=t[e]){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&delete t[e]}return s})(this.playersByQueriedElement,t.element,t))}),h.forEach(t=>Nv(t,ly));const d=F_(u);return d.onDestroy(()=>{h.forEach(t=>Mv(t,ly)),_y(a,e.toStyles)}),c.forEach(t=>{U_(s,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Xp(t.duration,t.delay)}}class Dv{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Xp,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>L_(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){U_(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function kv(t){return t&&1===t.nodeType}function Rv(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Iv(t,e,n,s,r){const i=[];n.forEach(t=>i.push(Rv(t)));const o=[];s.forEach((n,s)=>{const i={};n.forEach(t=>{const n=i[t]=e.computeStyle(s,t,r);n&&0!=n.length||(s[Cv]=wv,o.push(s))}),t.set(s,i)});let a=0;return n.forEach(t=>Rv(t,i[a++])),o}function Ov(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const s=new Set(e),r=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let i=r.get(e);if(i)return i;const o=e.parentNode;return i=n.has(o)?o:s.has(o)?1:t(o),r.set(e,i),i}(t);1!==e&&n.get(e).push(t)}),n}const Pv="$$classes";function Nv(t,e){if(t.classList)t.classList.add(e);else{let n=t[Pv];n||(n=t[Pv]={}),n[e]=!0}}function Mv(t,e){if(t.classList)t.classList.remove(e);else{let n=t[Pv];n&&delete n[e]}}function Fv(t,e,n){F_(n).onDone(()=>t.processLeaveNode(e))}function Vv(t,e,n){const s=n.get(t);if(!s)return!1;let r=e.get(t);return r?s.forEach(t=>r.add(t)):e.set(t,s),n.delete(t),!0}class Lv{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Av(t,e,n),this._timelineEngine=new dv(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,s,r){const i=t+"-"+s;let o=this._triggerCache[i];if(!o){const t=[],e=Vy(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new hv(t,e)}(s,e),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(e,s,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,s){this._transitionEngine.insertNode(t,e,n,s)}onRemove(t,e,n,s){this._transitionEngine.removeNode(t,e,s||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,s){if("@"==n.charAt(0)){const[t,r]=z_(n);this._timelineEngine.command(t,e,r,s)}else this._transitionEngine.trigger(t,e,n,s)}listen(t,e,n,s,r){if("@"==n.charAt(0)){const[t,s]=z_(n);return this._timelineEngine.listen(t,e,s,r)}return this._transitionEngine.listen(t,e,n,s,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function jv(t,e){let n=null,s=null;return Array.isArray(e)&&e.length?(n=Uv(e[0]),e.length>1&&(s=Uv(e[e.length-1]))):e&&(n=Uv(e)),n||s?new $v(t,n,s):null}let $v=(()=>{class t{constructor(e,n,s){this._element=e,this._startStyles=n,this._endStyles=s,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&_y(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(_y(this._element,this._initialStyles),this._endStyles&&(_y(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(yy(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(yy(this._element,this._endStyles),this._endStyles=null),_y(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Uv(t){let e=null;const n=Object.keys(t);for(let s=0;s<n.length;s++){const r=n[s];zv(r)&&((e=e||{})[r]=t[r])}return e}function zv(t){return"display"===t||"position"===t}const Bv=3,Hv="animation",qv="animationend",Yv=1e3;class Wv{constructor(t,e,n,s,r,i,o){this._element=t,this._name=e,this._duration=n,this._delay=s,this._easing=r,this._fillMode=i,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Jv(t,"").trim();n.length&&(function(t,e){let n=0;for(let s=0;s<t.length;s++)","===t.charAt(s)&&n++}(n),e=`${n}, ${e}`),Xv(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Gv(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Kv(this._element,this._name,"paused")}resume(){Kv(this._element,this._name,"running")}setPosition(t){const e=Zv(this._element,this._name);this._position=t*this._duration,Xv(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=parseFloat(t.elapsedTime.toFixed(Bv))*Yv;t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Gv(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Jv(t,"").split(","),s=Qv(n,e);s>=0&&(n.splice(s,1),Xv(t,"",n.join(",")))}(this._element,this._name))}}function Kv(t,e,n){Xv(t,"PlayState",n,Zv(t,e))}function Zv(t,e){const n=Jv(t,"");return n.indexOf(",")>0?Qv(n.split(","),e):Qv([n],e)}function Qv(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Gv(t,e,n){n?t.removeEventListener(qv,e):t.addEventListener(qv,e)}function Xv(t,e,n,s){const r=Hv+e;if(null!=s){const e=t.style[r];if(e.length){const t=e.split(",");t[s]=n,n=t.join(",")}}t.style[r]=n}function Jv(t,e){return t.style[Hv+e]}const tb="forwards",eb="linear";class nb{constructor(t,e,n,s,r,i,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=s,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||eb,this.totalTime=s+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Wv(this.element,this.animationName,this._duration,this._delay,this.easing,tb,()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:ky(this.element,n))})}this.currentSnapshot=t}}class sb extends Xp{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=J_(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}const rb="gen_css_kf_",ib=" ";class ob{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return Z_(t)}matchesElement(t,e){return Q_(t,e)}containsElement(t,e){return G_(t,e)}query(t,e,n){return X_(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>J_(t));let s=`@keyframes ${e} {\n`,r="";n.forEach(t=>{r=ib;const e=parseFloat(t.offset);s+=`${r}${100*e}% {\n`,r+=ib,Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(s+=`${r}animation-timing-function: ${n};\n`));default:return void(s+=`${r}${e}: ${n};\n`)}}),s+=`${r}}\n`}),s+="}\n";const i=document.createElement("style");return i.innerHTML=s,i}animate(t,e,n,s,r,i=[],o){o&&this._notifyFaultyScrubber();const a=i.filter(t=>t instanceof nb),l={};Ty(n,s)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Ay(t,e,l));if(0==n)return new sb(t,h);const c=`${rb}${this._count++}`,u=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(u);const d=jv(t,e),p=new nb(t,e,c,n,s,r,h,d);return p.onDestroy(()=>(function(t){t.parentNode.removeChild(t)})(u)),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n","  visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class ab{constructor(t,e,n,s){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:ky(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class lb{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(hb().toString()),this._cssKeyframesDriver=new ob}validateStyleProperty(t){return Z_(t)}matchesElement(t,e){return Q_(t,e)}containsElement(t,e){return G_(t,e)}query(t,e,n){return X_(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,s,r,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,s,r,i);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};r&&(a.easing=r);const l={},h=i.filter(t=>t instanceof ab);Ty(n,s)&&h.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=jv(t,e=Ay(t,e=e.map(t=>fy(t,!1)),l));return new ab(t,e,a,c)}}function hb(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let cb=(()=>(class extends Yp{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:re.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Zp(t):t;return pb(this._renderer,null,e,"register",[n]),new ub(e,this._renderer)}}))();class ub extends Wp{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new db(this._id,t,e||{},this._renderer)}}class db{constructor(t,e,n,s){this.id=t,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return pb(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function pb(t,e,n,s,r){return t.setProperty(e,`@@${n}:${s}`,r)}const fb="@",mb="@.disabled";let gb=(()=>(class{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new _b("",n,this.engine),this._rendererCache.set(n,t)),t}const s=e.id,r=e.id+"-"+this._currentId;return this._currentId++,this.engine.register(r,t),e.data.animation.forEach(e=>this.engine.registerTrigger(s,r,t,e.name,e)),new yb(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}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()}}))();class _b{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,s){this.delegate.setAttribute(t,e,n,s)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,s){this.delegate.setStyle(t,e,n,s)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==fb&&e==mb?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class yb extends _b{constructor(t,e,n,s){super(e,n,s),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==fb?"."==e.charAt(1)&&e==mb?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==fb){const s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),i="";return r.charAt(0)!=fb&&([r,i]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,s,r,i,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let vb=(()=>(class extends Lv{constructor(t,e,n){super(t.body,e,n)}}))();function bb(){return"function"==typeof hb()?new lb:new ob}function wb(){return new sv}function Cb(t,e,n){return new gb(t,e,n)}const Eb=new Tt("AnimationModuleType");let Sb=(()=>(class{}))();var xb=es({encapsulation:2,styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media (hover:none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-flat-button,.mat-icon-button,.mat-stroked-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;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-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-flat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-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,.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{opacity:.12}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;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 .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-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-focus-overlay,.mat-stroked-button .mat-button-ripple.mat-ripple{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;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 .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,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[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;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 .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,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[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 .mat-icon,.mat-icon-button i{line-height:24px}.mat-button-focus-overlay,.mat-button-ripple.mat-ripple{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 .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}@media (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:#fff}}@media (-ms-high-contrast:black-on-white){.mat-button-focus-overlay{background-color:#000}}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .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:block;font-size:inherit;width:2.5em;height:2.5em}@media (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],data:{}});function Tb(t){return co(2,[Ji(671088640,1,{ripple:0}),(t()(),Ki(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),ro(null,0),(t()(),Ki(3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),ur(4,212992,[[1,4]],0,gg,[ln,hi,Nf,[2,mg],[2,Eb]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(t()(),Ki(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],(function(t,e){var n=e.component;t(e,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())}),(function(t,e){var n=e.component;t(e,3,0,n.isRoundButton||n.isIconButton,Xs(e,4).unbounded)}))}var Ab=es({encapsulation:2,styles:[],data:{}});function Db(t){return co(2,[(t()(),Ki(0,0,null,null,12,"div",[["class","mat-calendar-header"]],null,null,null,null,null)),(t()(),Ki(1,0,null,null,11,"div",[["class","mat-calendar-controls"]],null,null,null,null,null)),(t()(),Ki(2,0,null,null,4,"button",[["cdkAriaLive","polite"],["class","mat-calendar-period-button"],["mat-button",""],["type","button"]],[[1,"aria-label",0],[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var s=!0;return"click"===e&&(s=!1!==t.component.currentPeriodClicked()&&s),s}),Tb,xb)),ur(3,180224,null,0,P_,[ln,$m,[2,Eb]],null,null),ur(4,147456,null,0,Vm,[ln,Fm,D_,hi],{politeness:[0,"politeness"]},null),(t()(),ao(5,0,["",""])),(t()(),Ki(6,0,null,0,0,"div",[["class","mat-calendar-arrow"]],[[2,"mat-calendar-invert",null]],null,null,null,null)),(t()(),Ki(7,0,null,null,0,"div",[["class","mat-calendar-spacer"]],null,null,null,null,null)),ro(null,0),(t()(),Ki(9,0,null,null,1,"button",[["class","mat-calendar-previous-button"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var s=!0;return"click"===e&&(s=!1!==t.component.previousClicked()&&s),s}),Tb,xb)),ur(10,180224,null,0,P_,[ln,$m,[2,Eb]],{disabled:[0,"disabled"]},null),(t()(),Ki(11,0,null,null,1,"button",[["class","mat-calendar-next-button"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(t,e,n){var s=!0;return"click"===e&&(s=!1!==t.component.nextClicked()&&s),s}),Tb,xb)),ur(12,180224,null,0,P_,[ln,$m,[2,Eb]],{disabled:[0,"disabled"]},null)],(function(t,e){var n=e.component;t(e,4,0,"polite"),t(e,10,0,!n.previousEnabled()),t(e,12,0,!n.nextEnabled())}),(function(t,e){var n=e.component;t(e,2,0,n.periodButtonLabel,Xs(e,3).disabled||null,"NoopAnimations"===Xs(e,3)._animationMode),t(e,5,0,n.periodButtonText),t(e,6,0,"month"!=n.calendar.currentView),t(e,9,0,n.prevButtonLabel,Xs(e,10).disabled||null,"NoopAnimations"===Xs(e,10)._animationMode),t(e,11,0,n.nextButtonLabel,Xs(e,12).disabled||null,"NoopAnimations"===Xs(e,12)._animationMode)}))}function kb(t){return co(0,[(t()(),Ki(0,0,null,null,1,"mat-calendar-header",[],null,null,null,Db,Ab)),ur(1,49152,null,0,v_,[h_,b_,[2,Qm],[2,Gm],kn],null,null)],null,null)}var Rb=Us("mat-calendar-header",v_,kb,{},{},["*"]),Ib=es({encapsulation:2,styles:[".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:0}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-next-button,.mat-calendar-previous-button{position:relative}.mat-calendar-next-button::after,.mat-calendar-previous-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:'';margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-next-button,[dir=rtl] .mat-calendar-previous-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:'';position:absolute;top:0;left:-8px;right:-8px;height:1px}"],data:{}});function Ob(t){return co(0,[(t()(),Wi(0,null,null,0))],null,null)}function Pb(t){return co(0,[(t()(),Ki(0,0,null,null,1,"mat-month-view",[],null,[[null,"activeDateChange"],[null,"selectedChange"],[null,"_userSelection"]],(function(t,e,n){var s=!0,r=t.component;return"activeDateChange"===e&&(s=!1!==(r.activeDate=n)&&s),"selectedChange"===e&&(s=!1!==r._dateSelected(n)&&s),"_userSelection"===e&&(s=!1!==r._userSelected()&&s),s}),Zb,Wb)),ur(1,1097728,[[1,4]],0,d_,[kn,[2,Gm],[2,Qm],[2,pf]],{activeDate:[0,"activeDate"],selected:[1,"selected"],minDate:[2,"minDate"],maxDate:[3,"maxDate"],dateFilter:[4,"dateFilter"],dateClass:[5,"dateClass"]},{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"})],(function(t,e){var n=e.component;t(e,1,0,n.activeDate,n.selected,n.minDate,n.maxDate,n.dateFilter,n.dateClass)}),null)}function Nb(t){return co(0,[(t()(),Ki(0,0,null,null,1,"mat-year-view",[],null,[[null,"activeDateChange"],[null,"monthSelected"],[null,"selectedChange"]],(function(t,e,n){var s=!0,r=t.component;return"activeDateChange"===e&&(s=!1!==(r.activeDate=n)&&s),"monthSelected"===e&&(s=!1!==r._monthSelectedInYearView(n)&&s),"selectedChange"===e&&(s=!1!==r._goToDateInView(n,"month")&&s),s}),Gb,Qb)),ur(1,1097728,[[2,4]],0,y_,[kn,[2,Gm],[2,Qm],[2,pf]],{activeDate:[0,"activeDate"],selected:[1,"selected"],minDate:[2,"minDate"],maxDate:[3,"maxDate"],dateFilter:[4,"dateFilter"]},{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"})],(function(t,e){var n=e.component;t(e,1,0,n.activeDate,n.selected,n.minDate,n.maxDate,n.dateFilter)}),null)}function Mb(t){return co(0,[(t()(),Ki(0,0,null,null,1,"mat-multi-year-view",[],null,[[null,"activeDateChange"],[null,"yearSelected"],[null,"selectedChange"]],(function(t,e,n){var s=!0,r=t.component;return"activeDateChange"===e&&(s=!1!==(r.activeDate=n)&&s),"yearSelected"===e&&(s=!1!==r._yearSelectedInMultiYearView(n)&&s),"selectedChange"===e&&(s=!1!==r._goToDateInView(n,"year")&&s),s}),Jb,Xb)),ur(1,1097728,[[3,4]],0,f_,[kn,[2,Qm],[2,pf]],{activeDate:[0,"activeDate"],selected:[1,"selected"],minDate:[2,"minDate"],maxDate:[3,"maxDate"],dateFilter:[4,"dateFilter"]},{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"})],(function(t,e){var n=e.component;t(e,1,0,n.activeDate,n.selected,n.minDate,n.maxDate,n.dateFilter)}),null)}function Fb(t){return co(2,[Ji(671088640,1,{monthView:0}),Ji(671088640,2,{yearView:0}),Ji(671088640,3,{multiYearView:0}),(t()(),Wi(16777216,null,null,1,null,Ob)),ur(4,212992,null,0,lf,[en,Fn],{portal:[0,"portal"]},null),(t()(),Ki(5,0,null,null,8,"div",[["cdkMonitorSubtreeFocus",""],["class","mat-calendar-content"],["tabindex","-1"]],null,null,null,null,null)),ur(6,16384,null,0,nl,[],{ngSwitch:[0,"ngSwitch"]},null),ur(7,147456,null,0,Um,[ln,$m],null,null),(t()(),Wi(16777216,null,null,1,null,Pb)),ur(9,278528,null,0,sl,[Fn,Nn,nl],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Wi(16777216,null,null,1,null,Nb)),ur(11,278528,null,0,sl,[Fn,Nn,nl],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Wi(16777216,null,null,1,null,Mb)),ur(13,278528,null,0,sl,[Fn,Nn,nl],{ngSwitchCase:[0,"ngSwitchCase"]},null)],(function(t,e){var n=e.component;t(e,4,0,n._calendarHeaderPortal),t(e,6,0,n.currentView),t(e,9,0,"month"),t(e,11,0,"year"),t(e,13,0,"multi-year")}),null)}var Vb=es({encapsulation:2,styles:[".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.71429%;padding-right:4.71429%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:0;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}@media (-ms-high-contrast:active){.mat-calendar-body-cell-content{border:none}}@media (-ms-high-contrast:active){.mat-calendar-body-selected,.mat-datepicker-popup:not(:empty){outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}}[dir=rtl] .mat-calendar-body-label{text-align:right}"],data:{}});function Lb(t){return co(0,[(t()(),Ki(0,0,null,null,2,"tr",[["aria-hidden","true"]],null,null,null,null,null)),(t()(),Ki(1,0,null,null,1,"td",[["class","mat-calendar-body-label"]],[[1,"colspan",0],[4,"paddingTop",null],[4,"paddingBottom",null]],null,null,null,null)),(t()(),ao(2,null,["",""]))],null,(function(t,e){var n=e.component;t(e,1,0,n.numCols,n._cellPadding,n._cellPadding),t(e,2,0,n.label)}))}function jb(t){return co(0,[(t()(),Ki(0,0,null,null,1,"td",[["aria-hidden","true"],["class","mat-calendar-body-label"]],[[1,"colspan",0],[4,"paddingTop",null],[4,"paddingBottom",null]],null,null,null,null)),(t()(),ao(1,null,["",""]))],null,(function(t,e){var n=e.component;t(e,0,0,n._firstRowOffset,n._cellPadding,n._cellPadding),t(e,1,0,n._firstRowOffset>=n.labelMinRequiredCells?n.label:"")}))}function $b(t){return co(0,[(t()(),Ki(0,0,null,null,4,"td",[["class","mat-calendar-body-cell"],["role","button"]],[[8,"tabIndex",0],[2,"mat-calendar-body-disabled",null],[2,"mat-calendar-body-active",null],[1,"aria-label",0],[1,"aria-disabled",0],[1,"aria-selected",0],[4,"width",null],[4,"paddingTop",null],[4,"paddingBottom",null]],[[null,"click"]],(function(t,e,n){var s=!0;return"click"===e&&(s=!1!==t.component._cellClicked(t.context.$implicit)&&s),s}),null,null)),dr(512,null,qa,Ya,[An,Dn,ln,pn]),ur(2,278528,null,0,Ka,[qa],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),Ki(3,0,null,null,1,"div",[["class","mat-calendar-body-cell-content"]],[[2,"mat-calendar-body-selected",null],[2,"mat-calendar-body-today",null]],null,null,null,null)),(t()(),ao(4,null,["",""]))],(function(t,e){t(e,2,0,"mat-calendar-body-cell",e.context.$implicit.cssClasses)}),(function(t,e){var n=e.component;t(e,0,0,n._isActiveCell(e.parent.context.index,e.context.index)?0:-1,!e.context.$implicit.enabled,n._isActiveCell(e.parent.context.index,e.context.index),e.context.$implicit.ariaLabel,!e.context.$implicit.enabled||null,n.selectedValue===e.context.$implicit.value,n._cellWidth,n._cellPadding,n._cellPadding),t(e,3,0,n.selectedValue===e.context.$implicit.value,n.todayValue===e.context.$implicit.value),t(e,4,0,e.context.$implicit.displayValue)}))}function Ub(t){return co(0,[(t()(),Ki(0,0,null,null,4,"tr",[["role","row"]],null,null,null,null,null)),(t()(),Wi(16777216,null,null,1,null,jb)),ur(2,16384,null,0,Xa,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(t()(),Wi(16777216,null,null,1,null,$b)),ur(4,278528,null,0,Qa,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){t(e,2,0,0===e.context.index&&e.component._firstRowOffset),t(e,4,0,e.context.$implicit)}),null)}function zb(t){return co(2,[(t()(),Wi(16777216,null,null,1,null,Lb)),ur(1,16384,null,0,Xa,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(t()(),Wi(16777216,null,null,1,null,Ub)),ur(3,278528,null,0,Qa,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){var n=e.component;t(e,1,0,n._firstRowOffset<n.labelMinRequiredCells),t(e,3,0,n.rows)}),null)}var Bb=es({encapsulation:2,styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation:landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation:portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}"],data:{animation:[{type:7,name:"transformPanel",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(1, 0.8)"},offset:null},options:void 0},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1, 1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms linear"},options:null}],options:{}},{type:7,name:"fadeInCalendar",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:0,name:"enter",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:1,expr:"void => *",animation:{type:4,styles:null,timings:"120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"},options:null}],options:{}}]}});function Hb(t){return co(2,[Ji(671088640,1,{_calendar:0}),(t()(),Ki(1,0,null,null,4,"mat-calendar",[["cdkTrapFocus",""],["class","mat-calendar"]],[[8,"id",0],[24,"@fadeInCalendar",0]],[[null,"selectedChange"],[null,"yearSelected"],[null,"monthSelected"],[null,"_userSelection"]],(function(t,e,n){var s=!0,r=t.component;return"selectedChange"===e&&(s=!1!==r.datepicker.select(n)&&s),"yearSelected"===e&&(s=!1!==r.datepicker._selectYear(n)&&s),"monthSelected"===e&&(s=!1!==r.datepicker._selectMonth(n)&&s),"_userSelection"===e&&(s=!1!==r.datepicker.close()&&s),s}),Fb,Ib)),dr(512,null,qa,Ya,[An,Dn,ln,pn]),ur(3,278528,null,0,Ka,[qa],{ngClass:[0,"ngClass"]},null),ur(4,1458176,null,0,Pm,[ln,Om,ol],{enabled:[0,"enabled"]},null),ur(5,10141696,[[1,4]],0,b_,[h_,[2,Qm],[2,Gm],kn],{headerComponent:[0,"headerComponent"],startAt:[1,"startAt"],startView:[2,"startView"],selected:[3,"selected"],minDate:[4,"minDate"],maxDate:[5,"maxDate"],dateFilter:[6,"dateFilter"],dateClass:[7,"dateClass"]},{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"})],(function(t,e){var n=e.component;t(e,3,0,n.datepicker.panelClass),t(e,4,0,""),t(e,5,0,n.datepicker.calendarHeaderComponent,n.datepicker.startAt,n.datepicker.startView,n.datepicker._selected,n.datepicker._minDate,n.datepicker._maxDate,n.datepicker._dateFilter,n.datepicker.dateClass)}),(function(t,e){t(e,1,0,e.component.datepicker.id,"enter")}))}function qb(t){return co(0,[(t()(),Ki(0,0,null,null,1,"mat-datepicker-content",[["class","mat-datepicker-content"]],[[40,"@transformPanel",0],[2,"mat-datepicker-content-touch",null]],null,null,Hb,Bb)),ur(1,4243456,null,0,x_,[ln],null,null)],null,(function(t,e){t(e,0,0,"enter",Xs(e,1).datepicker.touchUi)}))}var Yb=Us("mat-datepicker-content",x_,qb,{color:"color"},{},[]),Wb=es({encapsulation:2,styles:[],data:{}});function Kb(t){return co(0,[(t()(),Ki(0,0,null,null,1,"th",[["scope","col"]],[[1,"aria-label",0]],null,null,null,null)),(t()(),ao(1,null,["",""]))],null,(function(t,e){t(e,0,0,e.context.$implicit.long),t(e,1,0,e.context.$implicit.narrow)}))}function Zb(t){return co(2,[Ji(671088640,1,{_matCalendarBody:0}),(t()(),Ki(1,0,null,null,8,"table",[["class","mat-calendar-table"],["role","presentation"]],null,null,null,null,null)),(t()(),Ki(2,0,null,null,5,"thead",[["class","mat-calendar-table-header"]],null,null,null,null,null)),(t()(),Ki(3,0,null,null,2,"tr",[],null,null,null,null,null)),(t()(),Wi(16777216,null,null,1,null,Kb)),ur(5,278528,null,0,Qa,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null),(t()(),Ki(6,0,null,null,1,"tr",[],null,null,null,null,null)),(t()(),Ki(7,0,null,null,0,"th",[["aria-hidden","true"],["class","mat-calendar-table-header-divider"],["colspan","7"]],null,null,null,null,null)),(t()(),Ki(8,0,null,null,1,"tbody",[["aria-readonly","true"],["class","mat-calendar-body"],["mat-calendar-body",""],["role","grid"]],null,[[null,"selectedValueChange"],[null,"keydown"]],(function(t,e,n){var s=!0,r=t.component;return"selectedValueChange"===e&&(s=!1!==r._dateSelected(n)&&s),"keydown"===e&&(s=!1!==r._handleCalendarBodyKeydown(n)&&s),s}),zb,Vb)),ur(9,573440,[[1,4]],0,u_,[ln,hi],{label:[0,"label"],rows:[1,"rows"],todayValue:[2,"todayValue"],selectedValue:[3,"selectedValue"],labelMinRequiredCells:[4,"labelMinRequiredCells"],activeCell:[5,"activeCell"]},{selectedValueChange:"selectedValueChange"})],(function(t,e){var n=e.component;t(e,5,0,n._weekdays),t(e,9,0,n._monthLabel,n._weeks,n._todayDate,n._selectedDate,3,n._dateAdapter.getDate(n.activeDate)-1)}),null)}var Qb=es({encapsulation:2,styles:[],data:{}});function Gb(t){return co(2,[Ji(671088640,1,{_matCalendarBody:0}),(t()(),Ki(1,0,null,null,5,"table",[["class","mat-calendar-table"],["role","presentation"]],null,null,null,null,null)),(t()(),Ki(2,0,null,null,2,"thead",[["class","mat-calendar-table-header"]],null,null,null,null,null)),(t()(),Ki(3,0,null,null,1,"tr",[],null,null,null,null,null)),(t()(),Ki(4,0,null,null,0,"th",[["class","mat-calendar-table-header-divider"],["colspan","4"]],null,null,null,null,null)),(t()(),Ki(5,0,null,null,1,"tbody",[["aria-readonly","true"],["class","mat-calendar-body"],["mat-calendar-body",""],["role","grid"]],null,[[null,"selectedValueChange"],[null,"keydown"]],(function(t,e,n){var s=!0,r=t.component;return"selectedValueChange"===e&&(s=!1!==r._monthSelected(n)&&s),"keydown"===e&&(s=!1!==r._handleCalendarBodyKeydown(n)&&s),s}),zb,Vb)),ur(6,573440,[[1,4]],0,u_,[ln,hi],{label:[0,"label"],rows:[1,"rows"],todayValue:[2,"todayValue"],selectedValue:[3,"selectedValue"],labelMinRequiredCells:[4,"labelMinRequiredCells"],numCols:[5,"numCols"],activeCell:[6,"activeCell"],cellAspectRatio:[7,"cellAspectRatio"]},{selectedValueChange:"selectedValueChange"})],(function(t,e){var n=e.component;t(e,6,0,n._yearLabel,n._months,n._todayMonth,n._selectedMonth,2,4,n._dateAdapter.getMonth(n.activeDate),4/7)}),null)}var Xb=es({encapsulation:2,styles:[],data:{}});function Jb(t){return co(2,[Ji(671088640,1,{_matCalendarBody:0}),(t()(),Ki(1,0,null,null,5,"table",[["class","mat-calendar-table"],["role","presentation"]],null,null,null,null,null)),(t()(),Ki(2,0,null,null,2,"thead",[["class","mat-calendar-table-header"]],null,null,null,null,null)),(t()(),Ki(3,0,null,null,1,"tr",[],null,null,null,null,null)),(t()(),Ki(4,0,null,null,0,"th",[["class","mat-calendar-table-header-divider"],["colspan","4"]],null,null,null,null,null)),(t()(),Ki(5,0,null,null,1,"tbody",[["aria-readonly","true"],["class","mat-calendar-body"],["mat-calendar-body",""],["role","grid"]],null,[[null,"selectedValueChange"],[null,"keydown"]],(function(t,e,n){var s=!0,r=t.component;return"selectedValueChange"===e&&(s=!1!==r._yearSelected(n)&&s),"keydown"===e&&(s=!1!==r._handleCalendarBodyKeydown(n)&&s),s}),zb,Vb)),ur(6,573440,[[1,4]],0,u_,[ln,hi],{rows:[0,"rows"],todayValue:[1,"todayValue"],selectedValue:[2,"selectedValue"],numCols:[3,"numCols"],activeCell:[4,"activeCell"],cellAspectRatio:[5,"cellAspectRatio"]},{selectedValueChange:"selectedValueChange"})],(function(t,e){var n=e.component;t(e,6,0,n._years,n._todayYear,n._selectedYear,4,n._getActiveCell(),4/7)}),null)}var tw=es({encapsulation:0,styles:[[""]],data:{}});function ew(t){return co(0,[(t()(),Ki(0,0,null,null,6,":svg:g",[],null,null,null,null,null)),(t()(),Ki(1,0,null,null,2,":svg:text",[["transform","scale(1,1)"]],[[1,"y",0],[1,"x",0]],null,null,null,null)),(t()(),ao(2,null,["$","K"])),oo(3,2),(t()(),Ki(4,0,null,null,0,":svg:rect",[["style","fill:#f90;stroke-width:1;stroke:rgb(0,0,0)"],["transform","translate(25 32)"],["width","10"]],[[1,"y",0],[1,"x",0],[1,"height",0]],null,null,null,null)),(t()(),Ki(5,0,null,null,1,":svg:text",[["font-size","smaller"],["transform","scale(1,1)"]],[[1,"y",0],[1,"x",0]],null,null,null,null)),(t()(),ao(6,null,["",""]))],null,(function(t,e){t(e,1,0,240-e.context.$implicit.y,e.context.$implicit.x+17);var n=Xn(e,2,0,t(e,3,0,Xs(e.parent,0),e.context.$implicit.y,"0.2-2"));t(e,2,0,n),t(e,4,0,210-e.context.$implicit.y,e.context.$implicit.x,e.context.$implicit.y),t(e,5,0,260,e.context.$implicit.x+20),t(e,6,0,e.context.$implicit.month)}))}function nw(t){return co(0,[(t()(),Ki(0,0,null,null,6,":svg:g",[],null,null,null,null,null)),(t()(),Ki(1,0,null,null,2,":svg:text",[["transform","scale(1,1)"]],[[1,"y",0],[1,"x",0]],null,null,null,null)),(t()(),ao(2,null,["$","K"])),oo(3,2),(t()(),Ki(4,0,null,null,0,":svg:rect",[["style","fill:#f90;stroke-width:1;stroke:rgb(0,0,0)"],["transform","translate(25 32)"],["width","10"]],[[1,"y",0],[1,"x",0],[1,"height",0]],null,null,null,null)),(t()(),Ki(5,0,null,null,1,":svg:text",[["font-size","smaller"],["transform","scale(1,1)"]],[[1,"y",0],[1,"x",0]],null,null,null,null)),(t()(),ao(6,null,["",""]))],null,(function(t,e){t(e,1,0,240-e.context.$implicit.y,e.context.$implicit.x+17);var n=Xn(e,2,0,t(e,3,0,Xs(e.parent,0),e.context.$implicit.y,"0.2-2"));t(e,2,0,n),t(e,4,0,210-e.context.$implicit.y,e.context.$implicit.x,e.context.$implicit.y),t(e,5,0,260,e.context.$implicit.x+20),t(e,6,0,e.context.$implicit.month)}))}function sw(t){return co(0,[(t()(),Ki(0,0,null,null,6,":svg:g",[],null,null,null,null,null)),(t()(),Ki(1,0,null,null,2,":svg:text",[["transform","scale(1,1)"]],[[1,"y",0],[1,"x",0]],null,null,null,null)),(t()(),ao(2,null,["",""])),oo(3,2),(t()(),Ki(4,0,null,null,0,":svg:rect",[["style","fill:#f90;stroke-width:1;stroke:rgb(0,0,0)"],["transform","translate(25 32)"],["width","10"]],[[1,"y",0],[1,"x",0],[1,"height",0]],null,null,null,null)),(t()(),Ki(5,0,null,null,1,":svg:text",[["font-size","smaller"],["transform","scale(1,1)"]],[[1,"y",0],[1,"x",0]],null,null,null,null)),(t()(),ao(6,null,["",""]))],null,(function(t,e){t(e,1,0,240-e.context.$implicit.y,e.context.$implicit.x+17);var n=Xn(e,2,0,t(e,3,0,Xs(e.parent,0),e.context.$implicit.y,"0.2-2"));t(e,2,0,n),t(e,4,0,210-e.context.$implicit.y,e.context.$implicit.x,e.context.$implicit.y),t(e,5,0,260,e.context.$implicit.x+20),t(e,6,0,e.context.$implicit.month)}))}function rw(t){return co(0,[(t()(),Ki(0,0,null,null,6,":svg:g",[],null,null,null,null,null)),(t()(),Ki(1,0,null,null,2,":svg:text",[["transform","scale(1,1)"]],[[1,"y",0],[1,"x",0]],null,null,null,null)),(t()(),ao(2,null,["",""])),oo(3,2),(t()(),Ki(4,0,null,null,0,":svg:rect",[["style","fill:#f90;stroke-width:1;stroke:rgb(0,0,0)"],["transform","translate(25 32)"],["width","10"]],[[1,"y",0],[1,"x",0],[1,"height",0]],null,null,null,null)),(t()(),Ki(5,0,null,null,1,":svg:text",[["font-size","smaller"],["transform","scale(1,1)"]],[[1,"y",0],[1,"x",0]],null,null,null,null)),(t()(),ao(6,null,["",""]))],null,(function(t,e){t(e,1,0,240-e.context.$implicit.y,e.context.$implicit.x+17);var n=Xn(e,2,0,t(e,3,0,Xs(e.parent,0),e.context.$implicit.y,"0.2-2"));t(e,2,0,n),t(e,4,0,210-e.context.$implicit.y,e.context.$implicit.x,e.context.$implicit.y),t(e,5,0,260,e.context.$implicit.x+20),t(e,6,0,e.context.$implicit.month)}))}function iw(t){return co(0,[(t()(),Ki(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),ao(-1,null,["-"]))],null,null)}function ow(t){return co(0,[(t()(),Ki(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),ao(-1,null,["-"]))],null,null)}function aw(t){return co(0,[(t()(),Ki(0,0,null,null,11,"tr",[],null,null,null,null,null)),(t()(),Ki(1,0,null,null,7,"td",[],null,null,null,null,null)),(t()(),ao(2,null,["",""])),(t()(),Wi(16777216,null,null,1,null,iw)),ur(4,16384,null,0,Xa,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(t()(),ao(5,null,["",""])),(t()(),Wi(16777216,null,null,1,null,ow)),ur(7,16384,null,0,Xa,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(t()(),ao(8,null,["",""])),(t()(),Ki(9,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),ao(10,null,["",""])),oo(11,2)],(function(t,e){t(e,4,0,e.context.$implicit.Intermingle),t(e,7,0,e.context.$implicit.BobbinSize)}),(function(t,e){t(e,2,0,e.context.$implicit.ColorCode),t(e,5,0,e.context.$implicit.Intermingle),t(e,8,0,e.context.$implicit.BobbinSize);var n=Xn(e,10,0,t(e,11,0,Xs(e.parent,0),e.context.$implicit.Weight,"1.2-3"));t(e,10,0,n)}))}function lw(t){return co(0,[(t()(),Ki(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),ao(-1,null,["-"]))],null,null)}function hw(t){return co(0,[(t()(),Ki(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),ao(-1,null,["-"]))],null,null)}function cw(t){return co(0,[(t()(),Ki(0,0,null,null,11,"tr",[],null,null,null,null,null)),(t()(),Ki(1,0,null,null,7,"td",[],null,null,null,null,null)),(t()(),ao(2,null,["",""])),(t()(),Wi(16777216,null,null,1,null,lw)),ur(4,16384,null,0,Xa,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(t()(),ao(5,null,["",""])),(t()(),Wi(16777216,null,null,1,null,hw)),ur(7,16384,null,0,Xa,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(t()(),ao(8,null,["",""])),(t()(),Ki(9,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),ao(10,null,["",""])),oo(11,2)],(function(t,e){t(e,4,0,e.context.$implicit.Intermingle),t(e,7,0,e.context.$implicit.BobbinSize)}),(function(t,e){t(e,2,0,e.context.$implicit.ColorCode),t(e,5,0,e.context.$implicit.Intermingle),t(e,8,0,e.context.$implicit.BobbinSize);var n=Xn(e,10,0,t(e,11,0,Xs(e.parent,0),e.context.$implicit.Weight,"1.2-3"));t(e,10,0,n)}))}function uw(t){return co(0,[(e=0,n=rl,s=[Yr],pr(-1,e|=16,null,0,n,n,s)),(t()(),Ki(1,0,null,null,78,"div",[["class"," box-header with-border small"]],null,null,null,null,null)),(t()(),Ki(2,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),ao(-1,null,["Sales:"])),(t()(),Ki(4,0,null,null,10,":svg:svg",[["class","img-fluid"],["style","width: 100%;height:auto"],["transform","scale(1,1)"],["viewBox","0 0 1200 300"]],null,null,null,null,null)),(t()(),Wi(16777216,null,null,1,null,ew)),ur(6,278528,null,0,Qa,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null),(t()(),Ki(7,0,null,null,3,":svg:g",[],null,null,null,null,null)),(t()(),Ki(8,0,null,null,0,":svg:line",[["style","stroke:rgb(255,0,0);stroke-width:3"],["x1","0"],["x2","800"],["y1","270"],["y2","270"]],null,null,null,null,null)),(t()(),Ki(9,0,null,null,1,":svg:text",[["font-size","smaller"],["transform","scale(1,1)"],["x","820"],["y","0"]],null,null,null,null,null)),(t()(),ao(-1,null,["Month/Year"])),(t()(),Ki(11,0,null,null,3,":svg:g",[],null,null,null,null,null)),(t()(),Ki(12,0,null,null,0,":svg:line",[["style","stroke:rgb(255,0,0);stroke-width:6"],["x1","0"],["x2","0"],["y1","0"],["y2","270"]],null,null,null,null,null)),(t()(),Ki(13,0,null,null,1,":svg:text",[["transform","scale(1,1)"],["x","800"],["y","280"]],null,null,null,null,null)),(t()(),ao(-1,null,["USD"])),(t()(),Ki(15,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),ao(-1,null,["Expenses:"])),(t()(),Ki(17,0,null,null,10,":svg:svg",[["class","img-fluid"],["style","width: 100%;height:auto"],["transform","scale(1,1)"],["viewBox","0 0 1200 300"]],null,null,null,null,null)),(t()(),Wi(16777216,null,null,1,null,nw)),ur(19,278528,null,0,Qa,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null),(t()(),Ki(20,0,null,null,3,":svg:g",[],null,null,null,null,null)),(t()(),Ki(21,0,null,null,0,":svg:line",[["style","stroke:rgb(255,0,0);stroke-width:3"],["x1","0"],["x2","800"],["y1","270"],["y2","270"]],null,null,null,null,null)),(t()(),Ki(22,0,null,null,1,":svg:text",[["transform","scale(1,1)"],["x","820"],["y","0"]],null,null,null,null,null)),(t()(),ao(-1,null,["Month/Year"])),(t()(),Ki(24,0,null,null,3,":svg:g",[],null,null,null,null,null)),(t()(),Ki(25,0,null,null,0,":svg:line",[["style","stroke:rgb(255,0,0);stroke-width:6"],["x1","0"],["x2","0"],["y1","0"],["y2","270"]],null,null,null,null,null)),(t()(),Ki(26,0,null,null,1,":svg:text",[["font-size","smaller"],["transform","scale(1,1)"],["x","800"],["y","280"]],null,null,null,null,null)),(t()(),ao(-1,null,["USD"])),(t()(),Ki(28,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),ao(-1,null,["Pallets DTY:"])),(t()(),Ki(30,0,null,null,10,":svg:svg",[["class","img-fluid"],["style","width: 100%;height:auto"],["transform","scale(1,1)"],["viewBox","0 0 1200 300"]],null,null,null,null,null)),(t()(),Wi(16777216,null,null,1,null,sw)),ur(32,278528,null,0,Qa,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null),(t()(),Ki(33,0,null,null,3,":svg:g",[],null,null,null,null,null)),(t()(),Ki(34,0,null,null,0,":svg:line",[["style","stroke:rgb(255,0,0);stroke-width:3"],["x1","0"],["x2","800"],["y1","270"],["y2","270"]],null,null,null,null,null)),(t()(),Ki(35,0,null,null,1,":svg:text",[["transform","scale(1,1)"],["x","820"],["y","0"]],null,null,null,null,null)),(t()(),ao(-1,null,["Color"])),(t()(),Ki(37,0,null,null,3,":svg:g",[],null,null,null,null,null)),(t()(),Ki(38,0,null,null,0,":svg:line",[["style","stroke:rgb(255,0,0);stroke-width:6"],["x1","0"],["x2","0"],["y1","0"],["y2","270"]],null,null,null,null,null)),(t()(),Ki(39,0,null,null,1,":svg:text",[["transform","scale(1,1)"],["x","0"],["y","280"]],null,null,null,null,null)),(t()(),ao(-1,null,["Tons"])),(t()(),Ki(41,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),ao(-1,null,["Pallets FDY:"])),(t()(),Ki(43,0,null,null,10,":svg:svg",[["class","img-fluid"],["style","width: 100%;height:auto"],["transform","scale(1,1)"],["viewBox","0 0 1200 300"]],null,null,null,null,null)),(t()(),Wi(16777216,null,null,1,null,rw)),ur(45,278528,null,0,Qa,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null),(t()(),Ki(46,0,null,null,3,":svg:g",[],null,null,null,null,null)),(t()(),Ki(47,0,null,null,0,":svg:line",[["style","stroke:rgb(255,0,0);stroke-width:3"],["x1","0"],["x2","800"],["y1","270"],["y2","270"]],null,null,null,null,null)),(t()(),Ki(48,0,null,null,1,":svg:text",[["transform","scale(1,1)"],["x","820"],["y","0"]],null,null,null,null,null)),(t()(),ao(-1,null,["Color"])),(t()(),Ki(50,0,null,null,3,":svg:g",[],null,null,null,null,null)),(t()(),Ki(51,0,null,null,0,":svg:line",[["style","stroke:rgb(255,0,0);stroke-width:6"],["x1","0"],["x2","0"],["y1","0"],["y2","270"]],null,null,null,null,null)),(t()(),Ki(52,0,null,null,1,":svg:text",[["transform","scale(1,1)"],["x","0"],["y","280"]],null,null,null,null,null)),(t()(),ao(-1,null,["Tons"])),(t()(),Ki(54,0,null,null,1,"h1",[["class","mt-5"]],null,null,null,null,null)),(t()(),ao(-1,null,["Alerts:"])),(t()(),Ki(56,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),ao(-1,null,["These pallets are selling well and we don't have enough of them in our stock:"])),(t()(),Ki(58,0,null,null,9,"table",[["class","table"]],null,null,null,null,null)),(t()(),Ki(59,0,null,null,5,"thead",[],null,null,null,null,null)),(t()(),Ki(60,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),Ki(61,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(t()(),ao(-1,null,["Color Code"])),(t()(),Ki(63,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(t()(),ao(-1,null,["Ratio Of Selling"])),(t()(),Ki(65,0,null,null,2,"tbody",[],null,null,null,null,null)),(t()(),Wi(16777216,null,null,1,null,aw)),ur(67,278528,null,0,Qa,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null),(t()(),Ki(68,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),ao(-1,null,["Color selling ratio:"])),(t()(),Ki(70,0,null,null,9,"table",[["class","table"]],null,null,null,null,null)),(t()(),Ki(71,0,null,null,5,"thead",[],null,null,null,null,null)),(t()(),Ki(72,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),Ki(73,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(t()(),ao(-1,null,["Color Code"])),(t()(),Ki(75,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(t()(),ao(-1,null,["Ratio Of Selling"])),(t()(),Ki(77,0,null,null,2,"tbody",[],null,null,null,null,null)),(t()(),Wi(16777216,null,null,1,null,cw)),ur(79,278528,null,0,Qa,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){var n=e.component;t(e,6,0,n.points),t(e,19,0,n.billPoints),t(e,32,0,n.dtyPalletPoints),t(e,45,0,n.fdyPalletPoints),t(e,67,0,n.colorAlerts),t(e,79,0,n.colorSellingRatios)}),null);var e,n,s}function dw(t){return co(0,[(t()(),Ki(0,0,null,null,1,"app-home",[],null,null,null,uw,tw)),ur(1,114688,null,0,ba,[wp,Nd,Eu],null,null)],(function(t,e){t(e,1,0)}),null)}var pw=Us("app-home",ba,dw,{},{},[]),fw=es({encapsulation:0,styles:[[""]],data:{}});function mw(t){return co(0,[(t()(),Ki(0,0,null,null,3,"section",[["class","content"]],null,null,null,null,null)),(t()(),Ki(1,0,null,null,2,"div",[["class","box"]],null,null,null,null,null)),(t()(),Ki(2,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ur(3,212992,null,0,Vd,[Fd,Fn,en,[8,null],kn],null,null)],(function(t,e){t(e,3,0)}),null)}function gw(t){return co(0,[(t()(),Ki(0,0,null,null,1,"app-root",[],null,null,null,mw,fw)),ur(1,49152,null,0,ya,[],null,null)],null,null)}var _w=Us("app-root",ya,gw,{},{},[]);let yw=(()=>{class t{constructor(){this.messageSource=new fl(!1),this.currentMessage=this.messageSource.asObservable()}changeMessage(t){this.messageSource.next(t)}}return t.ngInjectableDef=ft({factory:function(){return new t},token:t,providedIn:"root"}),t})();var vw=es({encapsulation:0,styles:[[""]],data:{}});function bw(t){return co(0,[(t()(),Ki(0,0,null,null,2,"li",[["class","nav-item ml-3 mr-3 mt-1 mb-1"]],null,null,null,null,null)),(t()(),Ki(1,0,null,null,1,"a",[["class","btn btn-dark w-100 text-left"]],[[8,"href",4]],null,null,null,null)),(t()(),ao(2,null,[" "," "]))],null,(function(t,e){var n;t(e,1,0,""+(null!=(n=e.context.$implicit.Url)?n.toString():"")),t(e,2,0,e.context.$implicit.Text)}))}function ww(t){return co(0,[(t()(),Ki(0,0,null,null,3,"div",[["class","col-md d-md-block  sidebar-sticky sticky-top mt-4 "]],null,null,null,null,null)),(t()(),Ki(1,0,null,null,2,"ul",[["class","nav flex-column"]],null,null,null,null,null)),(t()(),Wi(16777216,null,null,1,null,bw)),ur(3,278528,null,0,Qa,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){t(e,3,0,e.component.menus)}),null)}function Cw(t){return co(0,[(t()(),Wi(16777216,null,null,1,null,ww)),ur(1,16384,null,0,Xa,[Fn,Nn],{ngIf:[0,"ngIf"]},null)],(function(t,e){t(e,1,0,e.component.toggleMenu)}),null)}function Ew(t){return co(0,[(t()(),Ki(0,0,null,null,1,"app-nav",[],null,null,null,Cw,vw)),ur(1,114688,null,0,$p,[yw,wp],null,null)],(function(t,e){t(e,1,0)}),null)}var Sw=Us("app-nav",$p,Ew,{},{},[]),xw=es({encapsulation:0,styles:[[""]],data:{}});function Tw(t){return co(0,[(t()(),Ki(0,0,null,null,17,"nav",[["class","navbar navbar-dark sticky-top flex-md-nowrap p-0 shadow lg-6"],["style","background-color:#ff6600"]],null,null,null,null,null)),(t()(),Ki(1,0,null,null,2,"button",[["class","navbar-brand btn d-none d-sm-block"]],null,[[null,"click"]],(function(t,e,n){var s=!0;return"click"===e&&(s=!1!==t.component.toggle()&&s),s}),null,null)),(t()(),Ki(2,0,null,null,1,":svg:svg",[["class","bi bi-list"],["fill","currentColor"],["height","1em"],["viewBox","0 0 16 16"],["width","1em"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(t()(),Ki(3,0,null,null,0,":svg:path",[["d","M2.5 11.5A.5.5 0 0 1 3 11h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4A.5.5 0 0 1 3 3h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"],["fill-rule","evenodd"]],null,null,null,null,null)),(t()(),Ki(4,0,null,null,1,"a",[["class","navbar-brand d-none d-sm-block"],["href","#"]],null,null,null,null,null)),(t()(),ao(-1,null,["NewKi"])),(t()(),Ki(6,0,null,null,1,"button",[["class","navbar-toggler position-absolute d-md-none collapsed"],["type","button"]],null,[[null,"click"]],(function(t,e,n){var s=!0;return"click"===e&&(s=!1!==t.component.toggle()&&s),s}),null,null)),(t()(),Ki(7,0,null,null,0,"span",[["class","navbar-toggler-icon"]],null,null,null,null,null)),(t()(),Ki(8,0,null,null,9,"ul",[["class","navbar-nav px-3 mr-0 ml-auto"]],null,null,null,null,null)),(t()(),Ki(9,0,null,null,8,"form",[["asp-action","Logout"],["asp-area",""],["asp-controller","Account"],["id","logoutForm"],["method","post"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(t,e,n){var s=!0;return"submit"===e&&(s=!1!==Xs(t,11).onSubmit(n)&&s),"reset"===e&&(s=!1!==Xs(t,11).onReset()&&s),s}),null,null)),ur(10,16384,null,0,n_,[],null,null),ur(11,4210688,null,0,t_,[[8,null],[8,null]],null,null),dr(2048,null,Ag,null,[t_]),ur(13,16384,null,0,Dg,[[4,Ag]],null,null),(t()(),Ki(14,0,null,null,3,"li",[["class","nav-item text-nowrap"]],null,null,null,null,null)),(t()(),Ki(15,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),Ki(16,0,null,null,1,"button",[["class","btn"],["type","button"]],null,[[null,"click"]],(function(t,e,n){var s=!0;return"click"===e&&(s=!1!==t.component.signOut()&&s),s}),null,null)),(t()(),ao(-1,null,["Sign out"]))],null,(function(t,e){t(e,9,0,Xs(e,13).ngClassUntouched,Xs(e,13).ngClassTouched,Xs(e,13).ngClassPristine,Xs(e,13).ngClassDirty,Xs(e,13).ngClassValid,Xs(e,13).ngClassInvalid,Xs(e,13).ngClassPending)}))}function Aw(t){return co(0,[(t()(),Ki(0,0,null,null,1,"app-header",[],null,null,null,Tw,xw)),ur(1,114688,null,0,Up,[yw,wp],null,null)],(function(t,e){t(e,1,0)}),null)}var Dw=Us("app-header",Up,Aw,{},{},[]);const kw=new Tt("mat-autocomplete-scroll-strategy");function Rw(t){return()=>t.scrollStrategies.reposition()}let Iw=(()=>(class{}))(),Ow=(()=>(class{}))(),Pw=(()=>(class{}))(),Nw=(()=>(class{}))();var Mw=ga(Lp,[ya,$p,Up],(function(t){return function(t){const e={},n=[];let s=!1;for(let r=0;r<t.length;r++){const i=t[r];i.token===Bt&&!0===i.value&&(s=!0),1073741824&i.flags&&n.push(i.token),i.index=r,e[Gn(i.token)]=i}return{factory:null,providersByKey:e,providers:t,modules:n,isRoot:s}}([Os(512,en,nn,[[8,[qp,Sg,Yb,Rb,pw,_w,Sw,Dw]],[3,en],rn]),Os(5120,Yr,Hi,[[3,Yr]]),Os(4608,za,Ba,[Yr,[2,Ua]]),Os(5120,Ar,qi,[hi]),Os(5120,jr,$r,[]),Os(5120,An,zi,[]),Os(5120,Dn,Bi,[]),Os(4608,rc,ic,[ol]),Os(6144,Ie,null,[rc]),Os(4608,Gh,Jh,[]),Os(5120,Sh,(function(t,e,n,s,r,i,o,a){return[new Zh(t,e,n),new sc(s),new tc(r,i,o,a)]}),[ol,hi,Br,ol,ol,Gh,qr,[2,Xh]]),Os(4608,xh,xh,[Sh,hi]),Os(135680,Dh,Dh,[ol]),Os(4608,Mh,Mh,[xh,Dh,jr]),Os(5120,ey,bb,[]),Os(5120,nv,wb,[]),Os(4608,Lv,vb,[ol,ey,nv]),Os(5120,un,Cb,[Mh,Lv,hi]),Os(6144,Ah,null,[Dh]),Os(4608,gi,gi,[hi]),Os(4608,Ip,Op,[ol,Br,kp]),Os(4608,Pp,Pp,[Ip,Rp]),Os(5120,Ep,(function(t){return[t]}),[Pp]),Os(4608,Ap,Ap,[]),Os(6144,Tp,null,[Ap]),Os(4608,Dp,Dp,[Tp]),Os(6144,op,null,[Dp]),Os(4608,ip,Np,[op,qt]),Os(4608,wp,wp,[ip]),Os(4608,A_,A_,[]),Os(4608,dm,dm,[Zf,nm,en,cm,em,qt,hi,ol,pf,[2,xa]]),Os(5120,pm,fm,[dm]),Os(5120,kw,Rw,[dm]),Os(5120,Em,Sm,[dm]),Os(135680,xm,xm,[dm,qt,[2,xa],[2,Cm],Em,[3,xm],nm]),Os(4608,h_,h_,[]),Os(5120,w_,C_,[dm]),Os(4608,Qm,rg,[[2,Zm],Nf]),Os(4608,Vg,Vg,[]),Os(4608,Yp,cb,[un,ol]),Os(4608,lg,lg,[]),Os(4608,i_,i_,[]),Os(5120,Eu,tp,[Nd]),Os(4608,Ud,Ud,[]),Os(6144,jd,null,[Ud]),Os(135680,zd,zd,[Nd,Ri,ti,qt,jd]),Os(4608,$d,$d,[]),Os(5120,Bd,Zd,[Nd,ll,Hd]),Os(5120,rp,sp,[ep]),Os(5120,Hr,(function(t){return[t]}),[rp]),Os(4608,yw,yw,[]),Os(1073742336,il,il,[]),Os(1024,Ve,pc,[]),Os(1024,Ei,(function(){return[Wd()]}),[]),Os(512,ep,ep,[qt]),Os(1024,Vr,(function(t,e){return[(n=t,wh("probe",Eh),wh("coreTokens",Object.assign({},Ch,(n||[]).reduce((t,e)=>(t[e.name]=e.token,t),{}))),()=>Eh),np(e)];var n}),[[2,Ei],ep]),Os(512,Lr,Lr,[[2,Vr]]),Os(131584,Di,Di,[hi,qr,qt,Ve,en,Lr]),Os(1073742336,Yi,Yi,[Di]),Os(1073742336,fc,fc,[[3,fc]]),Os(1024,qd,Gd,[[3,Nd]]),Os(512,eu,nu,[]),Os(512,Fd,Fd,[]),Os(256,Hd,{useHash:!0},[]),Os(1024,Ea,Qd,[wa,[2,Sa],Hd]),Os(512,xa,xa,[Ea,wa]),Os(512,ti,ti,[]),Os(512,Ri,Pi,[ti,[2,Ii]]),Os(1024,Ad,(function(){return[[{path:"home",component:ba,canActivate:[Vp]},{path:"",redirectTo:"/home",pathMatch:"full"},{path:"**",component:ya}]]}),[]),Os(1024,Nd,Jd,[Di,eu,Fd,xa,qt,Ri,ti,Ad,Hd,[2,kd],[2,xd]]),Os(1073742336,Kd,Kd,[[2,qd],[2,Nd]]),Os(1073742336,Mp,Mp,[]),Os(1073742336,Fp,Fp,[]),Os(1073742336,k_,k_,[]),Os(1073742336,Ow,Ow,[]),Os(1073742336,ff,ff,[]),Os(1073742336,qm,qm,[[2,Hm],[2,Xh]]),Os(1073742336,Mf,Mf,[]),Os(1073742336,_g,_g,[]),Os(1073742336,yg,yg,[]),Os(1073742336,vg,vg,[]),Os(1073742336,hf,hf,[]),Os(1073742336,jf,jf,[]),Os(1073742336,mm,mm,[]),Os(1073742336,Iw,Iw,[]),Os(1073742336,N_,N_,[]),Os(1073742336,Tm,Tm,[]),Os(1073742336,zm,zm,[]),Os(1073742336,T_,T_,[]),Os(1073742336,og,og,[]),Os(1073742336,ag,ag,[]),Os(1073742336,r_,r_,[]),Os(1073742336,o_,o_,[]),Os(1073742336,Sb,Sb,[]),Os(1073742336,Pw,Pw,[]),Os(1073742336,Nw,Nw,[]),Os(1073742336,a_,a_,[]),Os(1073742336,Lp,Lp,[]),Os(256,Bt,!0,[]),Os(256,kp,"XSRF-TOKEN",[]),Os(256,Rp,"X-XSRF-TOKEN",[]),Os(256,Gm,ig,[]),Os(256,Eb,"BrowserAnimations",[])])}));(function(){if(ae)throw new Error("Cannot enable prod mode after platform setup.");oe=!1})(),dc().bootstrapModuleFactory(Mw).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);