text: (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},yLV6:function(e,t,n){var i;!function(s,r,o,l){"use strict";var a,u=["","webkit","Moz","MS","ms","o"],c=r.createElement("div"),h="function",d=Math.round,p=Math.abs,m=Date.now;function f(e,t,n){return setTimeout(C(e,n),t)}function g(e,t,n){return!!Array.isArray(e)&&(_(e,n[t],n),!0)}function _(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==l)for(i=0;i<e.length;)t.call(n,e[i],i,e),i++;else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function y(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=s.console&&(s.console.warn||s.console.log);return r&&r.call(s.console,i,n),e.apply(this,arguments)}}a="function"!=typeof Object.assign?function(e){if(e===l||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==l&&null!==i)for(var s in i)i.hasOwnProperty(s)&&(t[s]=i[s])}return t}:Object.assign;var v=y((function(e,t,n){for(var i=Object.keys(t),s=0;s<i.length;)(!n||n&&e[i[s]]===l)&&(e[i[s]]=t[i[s]]),s++;return e}),"extend","Use `assign`."),b=y((function(e,t){return v(e,t,!0)}),"merge","Use `assign`.");function w(e,t,n){var i,s=t.prototype;(i=e.prototype=Object.create(s)).constructor=e,i._super=s,n&&a(i,n)}function C(e,t){return function(){return e.apply(t,arguments)}}function S(e,t){return typeof e==h?e.apply(t&&t[0]||l,t):e}function E(e,t){return e===l?t:e}function x(e,t,n){_(T(t),(function(t){e.addEventListener(t,n,!1)}))}function k(e,t,n){_(T(t),(function(t){e.removeEventListener(t,n,!1)}))}function A(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function D(e,t){return e.indexOf(t)>-1}function T(e){return e.trim().split(/\s+/g)}function I(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function O(e){return Array.prototype.slice.call(e,0)}function R(e,t,n){for(var i=[],s=[],r=0;r<e.length;){var o=t?e[r][t]:e[r];I(s,o)<0&&i.push(e[r]),s[r]=o,r++}return n&&(i=t?i.sort((function(e,n){return e[t]>n[t]})):i.sort()),i}function P(e,t){for(var n,i,s=t[0].toUpperCase()+t.slice(1),r=0;r<u.length;){if((i=(n=u[r])?n+s:t)in e)return i;r++}return l}var N=1;function M(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||s}var F="ontouchstart"in s,V=P(s,"PointerEvent")!==l,L=F&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),U=25,B=1,j=2,z=4,$=8,H=1,q=2,Y=4,W=8,G=16,K=q|Y,Z=W|G,Q=K|Z,X=["x","y"],J=["clientX","clientY"];function ee(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){S(e.options.enable,[e])&&n.handler(t)},this.init()}function te(e,t,n){var i=n.pointers.length,s=n.changedPointers.length,r=t&B&&i-s==0,o=t&(z|$)&&i-s==0;n.isFirst=!!r,n.isFinal=!!o,r&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,i=t.pointers,s=i.length;n.firstInput||(n.firstInput=ne(t)),s>1&&!n.firstMultiple?n.firstMultiple=ne(t):1===s&&(n.firstMultiple=!1);var r=n.firstInput,o=n.firstMultiple,a=o?o.center:r.center,u=t.center=ie(i);t.timeStamp=m(),t.deltaTime=t.timeStamp-r.timeStamp,t.angle=le(a,u),t.distance=oe(a,u),function(e,t){var n=t.center,i=e.offsetDelta||{},s=e.prevDelta||{},r=e.prevInput||{};t.eventType!==B&&r.eventType!==z||(s=e.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=s.x+(n.x-i.x),t.deltaY=s.y+(n.y-i.y)}(n,t),t.offsetDirection=re(t.deltaX,t.deltaY);var c,h,d=se(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=d.x,t.overallVelocityY=d.y,t.overallVelocity=p(d.x)>p(d.y)?d.x:d.y,t.scale=o?(c=o.pointers,oe((h=i)[0],h[1],J)/oe(c[0],c[1],J)):1,t.rotation=o?function(e,t){return le(t[1],t[0],J)+le(e[1],e[0],J)}(o.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,i,s,r,o=e.lastInterval||t,a=t.timeStamp-o.timeStamp;if(t.eventType!=$&&(a>U||o.velocity===l)){var u=t.deltaX-o.deltaX,c=t.deltaY-o.deltaY,h=se(a,u,c);i=h.x,s=h.y,n=p(h.x)>p(h.y)?h.x:h.y,r=re(u,c),e.lastInterval=t}else n=o.velocity,i=o.velocityX,s=o.velocityY,r=o.direction;t.velocity=n,t.velocityX=i,t.velocityY=s,t.direction=r}(n,t);var f=e.element;A(t.srcEvent.target,f)&&(f=t.srcEvent.target),t.target=f}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function ne(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:d(e.pointers[n].clientX),clientY:d(e.pointers[n].clientY)},n++;return{timeStamp:m(),pointers:t,center:ie(t),deltaX:e.deltaX,deltaY:e.deltaY}}function ie(e){var t=e.length;if(1===t)return{x:d(e[0].clientX),y:d(e[0].clientY)};for(var n=0,i=0,s=0;s<t;)n+=e[s].clientX,i+=e[s].clientY,s++;return{x:d(n/t),y:d(i/t)}}function se(e,t,n){return{x:t/e||0,y:n/e||0}}function re(e,t){return e===t?H:p(e)>=p(t)?e<0?q:Y:t<0?W:G}function oe(e,t,n){n||(n=X);var i=t[n[0]]-e[n[0]],s=t[n[1]]-e[n[1]];return Math.sqrt(i*i+s*s)}function le(e,t,n){return n||(n=X),180*Math.atan2(t[n[1]]-e[n[1]],t[n[0]]-e[n[0]])/Math.PI}ee.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&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(M(this.element),this.evWin,this.domHandler)}};var ae={mousedown:B,mousemove:j,mouseup:z},ue="mousedown",ce="mousemove mouseup";function he(){this.evEl=ue,this.evWin=ce,this.pressed=!1,ee.apply(this,arguments)}w(he,ee,{handler:function(e){var t=ae[e.type];t&B&&0===e.button&&(this.pressed=!0),t&j&&1!==e.which&&(t=z),this.pressed&&(t&z&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var de={pointerdown:B,pointermove:j,pointerup:z,pointercancel:$,pointerout:$},pe={2:"touch",3:"pen",4:"mouse",5:"kinect"},me="pointerdown",fe="pointermove pointerup pointercancel";function ge(){this.evEl=me,this.evWin=fe,ee.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}s.MSPointerEvent&&!s.PointerEvent&&(me="MSPointerDown",fe="MSPointerMove MSPointerUp MSPointerCancel"),w(ge,ee,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),s=de[i],r=pe[e.pointerType]||e.pointerType,o="touch"==r,l=I(t,e.pointerId,"pointerId");s&B&&(0===e.button||o)?l<0&&(t.push(e),l=t.length-1):s&(z|$)&&(n=!0),l<0||(t[l]=e,this.callback(this.manager,s,{pointers:t,changedPointers:[e],pointerType:r,srcEvent:e}),n&&t.splice(l,1))}});var _e={touchstart:B,touchmove:j,touchend:z,touchcancel:$},ye="touchstart",ve="touchstart touchmove touchend touchcancel";function be(){this.evTarget=ye,this.evWin=ve,this.started=!1,ee.apply(this,arguments)}function we(e,t){var n=O(e.touches),i=O(e.changedTouches);return t&(z|$)&&(n=R(n.concat(i),"identifier",!0)),[n,i]}w(be,ee,{handler:function(e){var t=_e[e.type];if(t===B&&(this.started=!0),this.started){var n=we.call(this,e,t);t&(z|$)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var Ce={touchstart:B,touchmove:j,touchend:z,touchcancel:$},Se="touchstart touchmove touchend touchcancel";function Ee(){this.evTarget=Se,this.targetIds={},ee.apply(this,arguments)}function xe(e,t){var n=O(e.touches),i=this.targetIds;if(t&(B|j)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var s,r,o=O(e.changedTouches),l=[],a=this.target;if(r=n.filter((function(e){return A(e.target,a)})),t===B)for(s=0;s<r.length;)i[r[s].identifier]=!0,s++;for(s=0;s<o.length;)i[o[s].identifier]&&l.push(o[s]),t&(z|$)&&delete i[o[s].identifier],s++;return l.length?[R(r.concat(l),"identifier",!0),l]:void 0}w(Ee,ee,{handler:function(e){var t=Ce[e.type],n=xe.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});var ke=2500,Ae=25;function De(){ee.apply(this,arguments);var e=C(this.handler,this);this.touch=new Ee(this.manager,e),this.mouse=new he(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function Te(e,t){e&B?(this.primaryTouch=t.changedPointers[0].identifier,Ie.call(this,t)):e&(z|$)&&Ie.call(this,t)}function Ie(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)}),ke)}}function Oe(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var s=this.lastTouches[i],r=Math.abs(t-s.x),o=Math.abs(n-s.y);if(r<=Ae&&o<=Ae)return!0}return!1}w(De,ee,{handler:function(e,t,n){var i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)Te.call(this,t,n);else if(i&&Oe.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Re=P(c.style,"touchAction"),Pe=Re!==l,Ne=function(){if(!Pe)return!1;var e={},t=s.CSS&&s.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||s.CSS.supports("touch-action",n)})),e}();function Me(e,t){this.manager=e,this.set(t)}Me.prototype={set:function(e){"compute"==e&&(e=this.compute()),Pe&&this.manager.element.style&&Ne[e]&&(this.manager.element.style[Re]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return _(this.manager.recognizers,(function(t){S(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(D(e,"none"))return"none";var t=D(e,"pan-x"),n=D(e,"pan-y");return t&&n?"none":t||n?t?"pan-x":"pan-y":D(e,"manipulation")?"manipulation":"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,s=D(i,"none")&&!Ne.none,r=D(i,"pan-y")&&!Ne["pan-y"],o=D(i,"pan-x")&&!Ne["pan-x"];if(s&&1===e.pointers.length&&e.distance<2&&e.deltaTime<250)return;if(!o||!r)return s||r&&n&K||o&&n&Z?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Fe=1,Ve=2,Le=4,Ue=8,Be=Ue,je=16;function ze(e){this.options=a({},this.defaults,e||{}),this.id=N++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=Fe,this.simultaneous={},this.requireFail=[]}function $e(e){return e&je?"cancel":e&Ue?"end":e&Le?"move":e&Ve?"start":""}function He(e){return e==G?"down":e==W?"up":e==q?"left":e==Y?"right":""}function qe(e,t){var n=t.manager;return n?n.get(e):e}function Ye(){ze.apply(this,arguments)}function We(){Ye.apply(this,arguments),this.pX=null,this.pY=null}function Ge(){Ye.apply(this,arguments)}function Ke(){ze.apply(this,arguments),this._timer=null,this._input=null}function Ze(){Ye.apply(this,arguments)}function Qe(){Ye.apply(this,arguments)}function Xe(){ze.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Je(e,t){return(t=t||{}).recognizers=E(t.recognizers,Je.defaults.preset),new et(e,t)}function et(e,t){var n;this.options=a({},Je.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(V?ge:L?Ee:F?De:he))(n,te),this.touchAction=new Me(this,this.options.touchAction),tt(this,!0),_(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function tt(e,t){var n,i=e.element;i.style&&(_(e.options.cssProps,(function(s,r){n=P(i.style,r),t?(e.oldCssProps[n]=i.style[n],i.style[n]=s):i.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}ze.prototype={defaults:{},set:function(e){return a(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(g(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=qe(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return g(e,"dropRecognizeWith",this)?this:(e=qe(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(g(e,"requireFailure",this))return this;var t=this.requireFail;return-1===I(t,e=qe(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(g(e,"dropRequireFailure",this))return this;e=qe(e,this);var t=I(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<Ue&&i(t.options.event+$e(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=Ue&&i(t.options.event+$e(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(32|Fe)))return!1;e++}return!0},recognize:function(e){var t=a({},e);if(!S(this.options.enable,[this,t]))return this.reset(),void(this.state=32);this.state&(Be|je|32)&&(this.state=Fe),this.state=this.process(t),this.state&(Ve|Le|Ue|je)&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},w(Ye,ze,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=t&(Ve|Le),s=this.attrTest(e);return i&&(n&$||!s)?t|je:i||s?n&z?t|Ue:t&Ve?t|Le:Ve:32}}),w(We,Ye,{defaults:{event:"pan",threshold:10,pointers:1,direction:Q},getTouchAction:function(){var e=this.options.direction,t=[];return e&K&&t.push("pan-y"),e&Z&&t.push("pan-x"),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,s=e.direction,r=e.deltaX,o=e.deltaY;return s&t.direction||(t.direction&K?(s=0===r?H:r<0?q:Y,n=r!=this.pX,i=Math.abs(e.deltaX)):(s=0===o?H:o<0?W:G,n=o!=this.pY,i=Math.abs(e.deltaY))),e.direction=s,n&&i>t.threshold&&s&t.direction},attrTest:function(e){return Ye.prototype.attrTest.call(this,e)&&(this.state&Ve||!(this.state&Ve)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=He(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(Ge,Ye,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&Ve)},emit:function(e){1!==e.scale&&(e.additionalEvent=this.options.event+(e.scale<1?"in":"out")),this._super.emit.call(this,e)}}),w(Ke,ze,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,s=e.deltaTime>t.time;if(this._input=e,!i||!n||e.eventType&(z|$)&&!s)this.reset();else if(e.eventType&B)this.reset(),this._timer=f((function(){this.state=Be,this.tryEmit()}),t.time,this);else if(e.eventType&z)return Be;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===Be&&(e&&e.eventType&z?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=m(),this.manager.emit(this.options.event,this._input)))}}),w(Ze,Ye,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&Ve)}}),w(Qe,Ye,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:K|Z,pointers:1},getTouchAction:function(){return We.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(K|Z)?t=e.overallVelocity:n&K?t=e.overallVelocityX:n&Z&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&p(t)>this.options.velocity&&e.eventType&z},emit:function(e){var t=He(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(Xe,ze,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,s=e.deltaTime<t.time;if(this.reset(),e.eventType&B&&0===this.count)return this.failTimeout();if(i&&s&&n){if(e.eventType!=z)return this.failTimeout();var r=!this.pTime||e.timeStamp-this.pTime<t.interval,o=!this.pCenter||oe(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,o&&r?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=f((function(){this.state=Be,this.tryEmit()}),t.interval,this),Ve):Be}return 32},failTimeout:function(){return this._timer=f((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Be&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Je.VERSION="2.0.7",Je.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Ze,{enable:!1}],[Ge,{enable:!1},["rotate"]],[Qe,{direction:K}],[We,{direction:K},["swipe"]],[Xe],[Xe,{event:"doubletap",taps:2},["tap"]],[Ke]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},et.prototype={set:function(e){return a(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,s=t.curRecognizer;(!s||s&&s.state&Be)&&(s=t.curRecognizer=null);for(var r=0;r<i.length;)n=i[r],2===t.stopped||s&&n!=s&&!n.canRecognizeWith(s)?n.reset():n.recognize(e),!s&&n.state&(Ve|Le|Ue)&&(s=t.curRecognizer=n),r++}},get:function(e){if(e instanceof ze)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(g(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(g(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=I(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==l&&t!==l){var n=this.handlers;return _(T(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==l){var n=this.handlers;return _(T(e),(function(e){t?n[e]&&n[e].splice(I(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=r.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](t),i++}},destroy:function(){this.element&&tt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},a(Je,{INPUT_START:B,INPUT_MOVE:j,INPUT_END:z,INPUT_CANCEL:$,STATE_POSSIBLE:Fe,STATE_BEGAN:Ve,STATE_CHANGED:Le,STATE_ENDED:Ue,STATE_RECOGNIZED:Be,STATE_CANCELLED:je,STATE_FAILED:32,DIRECTION_NONE:H,DIRECTION_LEFT:q,DIRECTION_RIGHT:Y,DIRECTION_UP:W,DIRECTION_DOWN:G,DIRECTION_HORIZONTAL:K,DIRECTION_VERTICAL:Z,DIRECTION_ALL:Q,Manager:et,Input:ee,TouchAction:Me,TouchInput:Ee,MouseInput:he,PointerEventInput:ge,TouchMouseInput:De,SingleTouchInput:be,Recognizer:ze,AttrRecognizer:Ye,Tap:Xe,Pan:We,Swipe:Qe,Pinch:Ge,Rotate:Ze,Press:Ke,on:x,off:k,each:_,merge:b,extend:v,assign:a,inherit:w,bindFn:C,prefixed:P}),(void 0!==s?s:"undefined"!=typeof self?self:{}).Hammer=Je,(i=(function(){return Je}).call(t,n,t,e))===l||(e.exports=i)}(window,document)},zUnb:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.r(t),n("yLV6");let s=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function o(e){setTimeout(()=>{throw e})}const l={closed:!0,next(e){},error(e){if(r.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},a=Array.isArray||(e=>e&&"number"==typeof e.length);function u(e){return null!==e&&"object"==typeof e}function c(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}c.prototype=Object.create(Error.prototype);const h=c;let d=(()=>{class e{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:s,_unsubscribe:r,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let l=-1,c=s?s.length:0;for(;n;)n.remove(this),n=++l<c&&s[l]||null;if(i(r))try{r.call(this)}catch(d){t=!0,e=d instanceof h?p(d.errors):[d]}if(a(o))for(l=-1,c=o.length;++l<c;){const n=o[l];if(u(n))try{n.unsubscribe()}catch(d){t=!0,e=e||[],d instanceof h?e=e.concat(p(d.errors)):e.push(d)}}if(t)throw new h(e)}add(t){let n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:if(!t)return e.EMPTY;throw new Error("unrecognized teardown "+t+" added to Subscription.")}if(n._addParent(this)){const e=this._subscriptions;e?e.push(n):this._subscriptions=[n]}return n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}_addParent(e){let{_parent:t,_parents:n}=this;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function p(e){return e.reduce((e,t)=>e.concat(t instanceof h?t.errors:t),[])}const m="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class f extends d{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!e){this.destination=l;break}if("object"==typeof e){e instanceof f?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,e,t,n)}}[m](){return this}static create(e,t,n){const i=new f(e,t,n);return i.syncErrorThrowable=!1,i}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class g extends f{constructor(e,t,n,s){let r;super(),this._parentSubscriber=e;let o=this;i(t)?r=t:t&&(r=t.next,n=t.error,s=t.complete,t!==l&&(o=Object.create(t),i(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(o(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const _="function"==typeof Symbol&&Symbol.observable||"@@observable";function y(){}function v(...e){return b(e)}function b(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:y}let w=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:i}=this,s=function(e,t,n){if(e){if(e instanceof f)return e;if(e[m])return e[m]()}return e||t||n?new f(e,t,n):new f(l)}(e,t,n);if(s.add(i?i.call(s,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),r.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){r.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:i}=e;if(t||i)return!1;e=n&&n instanceof f?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=C(t))((t,n)=>{let i;i=this.subscribe(t=>{try{e(t)}catch(s){n(s),i&&i.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[_](){return this}pipe(...e){return 0===e.length?this:b(e)(this)}toPromise(e){return new(e=C(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function C(e){if(e||(e=r.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function S(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}S.prototype=Object.create(Error.prototype);const E=S;class x extends d{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class k extends f{constructor(e){super(e),this.destination=e}}let A=(()=>{class e extends w{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[m](){return new k(this)}lift(e){const t=new D(this,this);return t.operator=e,t}next(e){if(this.closed)throw new E;if(!this.isStopped){const{observers:t}=this,n=t.length,i=t.slice();for(let s=0;s<n;s++)i[s].next(e)}}error(e){if(this.closed)throw new E;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,i=t.slice();for(let s=0;s<n;s++)i[s].error(e);this.observers.length=0}complete(){if(this.closed)throw new E;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let i=0;i<t;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new E;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new E;return this.hasError?(e.error(this.thrownError),d.EMPTY):this.isStopped?(e.complete(),d.EMPTY):(this.observers.push(e),new x(this,e))}asObservable(){const e=new w;return e.source=this,e}}return e.create=(e,t)=>new D(e,t),e})();class D extends A{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):d.EMPTY}}function T(e){return e&&"function"==typeof e.schedule}class I extends f{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const O=e=>t=>{for(let n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()},R=e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);function P(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const N=P(),M=e=>t=>{const n=e[N]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t},F=e=>t=>{const n=e[_]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},V=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function L(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const U=e=>{if(e instanceof w)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[_])return F(e);if(V(e))return O(e);if(L(e))return R(e);if(e&&"function"==typeof e[N])return M(e);{const t=u(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function B(e,t,n,i,s=new I(e,n,i)){if(!s.closed)return U(t)(s)}class j extends f{notifyNext(e,t,n,i,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function z(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new $(e,t))}}class ${constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new H(e,this.project,this.thisArg))}}class H extends f{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function q(e,t){return new w(t?n=>{const i=new d;let s=0;return i.add(t.schedule((function(){s!==e.length?(n.next(e[s++]),n.closed||i.add(this.schedule())):n.complete()}))),i}:O(e))}function Y(e,t){if(!t)return e instanceof w?e:new w(U(e));if(null!=e){if(function(e){return e&&"function"==typeof e[_]}(e))return function(e,t){return new w(t?n=>{const i=new d;return i.add(t.schedule(()=>{const s=e[_]();i.add(s.subscribe({next(e){i.add(t.schedule(()=>n.next(e)))},error(e){i.add(t.schedule(()=>n.error(e)))},complete(){i.add(t.schedule(()=>n.complete()))}}))})),i}:F(e))}(e,t);if(L(e))return function(e,t){return new w(t?n=>{const i=new d;return i.add(t.schedule(()=>e.then(e=>{i.add(t.schedule(()=>{n.next(e),i.add(t.schedule(()=>n.complete()))}))},e=>{i.add(t.schedule(()=>n.error(e)))}))),i}:R(e))}(e,t);if(V(e))return q(e,t);if(function(e){return e&&"function"==typeof e[N]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new w(t?n=>{const i=new d;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(t.schedule(()=>{s=e[N](),i.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=s.next();e=n.value,t=n.done}catch(i){return void n.error(i)}t?n.complete():(n.next(e),this.schedule())})))})),i}:M(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function W(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(W((n,i)=>Y(e(n,i)).pipe(z((e,s)=>t(n,e,i,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new G(e,n)))}class G{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new K(e,this.project,this.concurrent))}}class K extends j{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t,e,n)}_innerSub(e,t,n){const i=new I(this,void 0,void 0);this.destination.add(i),B(this,e,t,n,i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,i,s){this.destination.next(t)}notifyComplete(e){const t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Z(e){return e}function Q(e=Number.POSITIVE_INFINITY){return W(Z,e)}function X(...e){let t=Number.POSITIVE_INFINITY,n=null,i=e[e.length-1];return T(i)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof i&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof w?e[0]:Q(t)(q(e,n))}function J(){return function(e){return e.lift(new ee(e))}}class ee{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const i=new te(e,n),s=t.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class te extends f{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}const ne=class extends w{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new d,e.add(this.source.subscribe(new se(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e}refCount(){return J()(this)}}.prototype,ie={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ne._subscribe},_isComplete:{value:ne._isComplete,writable:!0},getSubject:{value:ne.getSubject},connect:{value:ne.connect},refCount:{value:ne.refCount}};class se extends k{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function re(){return new A}const oe="__parameters__";function le(e,t,n){const i=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function s(...e){if(this instanceof s)return i.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,i){const s=e.hasOwnProperty(oe)?e[oe]:Object.defineProperty(e,oe,{value:[]})[oe];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}const ae=le("Inject",e=>({token:e})),ue=le("Optional"),ce=le("Self"),he=le("SkipSelf");var de=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function pe(e){for(let t in e)if(e[t]===pe)return t;throw Error("Could not find renamed property on target object.")}function me(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function fe(e){const t=e[ge];return t&&t.token===e?t:null}const ge=pe({ngInjectableDef:pe});function _e(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(_e).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const ye=pe({__forward_ref__:pe});function ve(e){return e.__forward_ref__=ve,e.toString=function(){return _e(this())},e}function be(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(ye)&&t.__forward_ref__===ve?t():e}const we="undefined"!=typeof globalThis&&globalThis,Ce="undefined"!=typeof window&&window,Se="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ee="undefined"!=typeof global&&global,xe=we||Ee||Ce||Se;class ke{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=me({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Ae=new ke("INJECTOR",-1),De=new Object,Te="ngTempTokenPath",Ie="ngTokenPath",Oe=/\n/gm,Re="\u0275",Pe="__source",Ne=pe({provide:String,useValue:pe});let Me,Fe=void 0;function Ve(e){const t=Fe;return Fe=e,t}function Le(e,t=de.Default){if(void 0===Fe)throw new Error("inject() must be called from an injection context");return null===Fe?function(e,t,n){const i=fe(e);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&de.Optional)return null;throw new Error(`Injector: NOT_FOUND [${_e(e)}]`)}(e,0,t):Fe.get(e,t&de.Optional?null:void 0,t)}function Ue(e,t=de.Default){return(Me||Le)(e,t)}const Be=Ue;class je{get(e,t=De){if(t===De){const t=new Error(`NullInjectorError: No provider for ${_e(e)}!`);throw t.name="NullInjectorError",t}return t}}function ze(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Re?e.substr(2):e;let s=_e(t);if(t instanceof Array)s=t.map(_e).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let i=t[n];e.push(n+":"+("string"==typeof i?JSON.stringify(i):_e(i)))}s=`{${e.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${e.replace(Oe,"\n  ")}`}const $e=new ke("The presence of this token marks an injector as being the root injector."),He=function(e,t,n){return new Qe(e,t,n)};let qe=(()=>{class e{static create(e,t){return Array.isArray(e)?He(e,t,""):He(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=De,e.NULL=new je,e.ngInjectableDef=me({token:e,providedIn:"any",factory:()=>Ue(Ae)}),e.__NG_ELEMENT_ID__=-1,e})();const Ye=function(e){return e},We=[],Ge=Ye,Ke=function(){return Array.prototype.slice.call(arguments)},Ze="\u0275";class Qe{constructor(e,t=qe.NULL,n=null){this.parent=t,this.source=n;const i=this._records=new Map;i.set(qe,{token:qe,fn:Ye,deps:We,value:this,useNew:!1}),i.set(Ae,{token:Ae,fn:Ye,deps:We,value:this,useNew:!1}),function e(t,n){if(n)if((n=be(n))instanceof Array)for(let i=0;i<n.length;i++)e(t,n[i]);else{if("function"==typeof n)throw Je("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Je("Unexpected provider",n);{let e=be(n.provide);const i=function(e){const t=function(e){let t=We;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e<n.length;e++){let i=6,s=be(n[e]);if(s instanceof Array)for(let e=0,t=s;e<t.length;e++){const n=t[e];n instanceof ue||n==ue?i|=1:n instanceof he||n==he?i&=-3:n instanceof ce||n==ce?i&=-5:s=n instanceof ae?n.token:be(n)}t.push({token:s,options:i})}}else if(e.useExisting)t=[{token:be(e.useExisting),options:6}];else if(!(n||Ne in e))throw Je("'deps' required",e);return t}(e);let n=Ye,i=We,s=!1,r=be(e.provide);if(Ne in e)i=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)s=!0,n=be(e.useClass);else{if("function"!=typeof r)throw Je("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);s=!0,n=r}return{deps:t,fn:n,useNew:s,value:i}}(n);if(!0===n.multi){let i=t.get(e);if(i){if(i.fn!==Ke)throw Xe(e)}else t.set(e,i={token:n.provide,deps:[],useNew:!1,fn:Ke,value:We});e=n,i.deps.push({token:e,options:6})}const s=t.get(e);if(s&&s.fn==Ke)throw Xe(e);t.set(e,i)}}}(i,e)}get(e,t,n=de.Default){const i=this._records.get(e);try{return function e(t,n,i,s,r,o){try{return function(t,n,i,s,r,o){let l;if(!n||o&de.SkipSelf)o&de.Self||(l=s.get(t,r,de.Default));else{if(l=n.value,l==Ge)throw Error(Ze+"Circular dependency");if(l===We){n.value=Ge;let t=void 0,r=n.useNew,o=n.fn,a=n.deps,u=We;if(a.length){u=[];for(let t=0;t<a.length;t++){const n=a[t],r=n.options,o=2&r?i.get(n.token):void 0;u.push(e(n.token,o,i,o||4&r?s:qe.NULL,1&r?null:qe.THROW_IF_NOT_FOUND,de.Default))}}n.value=l=r?new o(...u):o.apply(t,u)}}return l}(t,n,i,s,r,o)}catch(l){throw l instanceof Error||(l=new Error(l)),(l[Te]=l[Te]||[]).unshift(t),n&&n.value==Ge&&(n.value=We),l}}(e,i,this._records,this.parent,t,n)}catch(s){return function(e,t,n,i){const s=e[Te];throw t[Pe]&&s.unshift(t[Pe]),e.message=ze("\n"+e.message,s,"StaticInjectorError",i),e[Ie]=s,e[Te]=null,e}(s,e,0,this.source)}}toString(){const e=[];return this._records.forEach((t,n)=>e.push(_e(n))),`StaticInjector[${e.join(", ")}]`}}function Xe(e){return Je("Cannot mix multi providers and regular providers",e)}function Je(e,t){return new Error(ze(e,t,"StaticInjectorError"))}const et="ngDebugContext",tt="ngOriginalError",nt="ngErrorLogger",it=new ke("AnalyzeForEntryComponents"),st=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),rt=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(xe))();let ot=!0,lt=!1;function at(){return lt=!0,ot}class ut{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.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(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(i){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e="<body><remove></remove>"+e+"</body>";try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let i=t.length-1;0<i;i--){const n=t.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const ct=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ht=/^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 dt(e){return(e=String(e)).match(ct)||e.match(ht)?e:(at()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function pt(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function mt(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const ft=pt("area,br,col,hr,img,wbr"),gt=pt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_t=pt("rp,rt"),yt=mt(_t,gt),vt=mt(ft,mt(gt,pt("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")),mt(_t,pt("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")),yt),bt=pt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wt=pt("srcset"),Ct=mt(bt,wt,pt("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"),pt("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")),St=pt("script,style,template");class Et{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!vt.hasOwnProperty(t))return this.sanitizedSomething=!0,!St.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let s=0;s<n.length;s++){const e=n.item(s),t=e.name,r=t.toLowerCase();if(!Ct.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=e.value;bt[r]&&(o=dt(o)),wt[r]&&(i=o,o=(i=String(i)).split(",").map(e=>dt(e.trim())).join(", ")),this.buf.push(" ",t,'="',At(o),'"')}var i;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();vt.hasOwnProperty(t)&&!ft.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(At(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const xt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kt=/([^\#-~ |!])/g;function At(e){return e.replace(/&/g,"&amp;").replace(xt,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(kt,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Dt;function Tt(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const It=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();class Ot{}const Rt=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"),Pt=/^url\(([^)]+)\)$/;function Nt(e){return e[et]}function Mt(e){return e[tt]}function Ft(e,...t){e.error(...t)}class Vt{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e[nt]||Ft}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Nt(e)?Nt(e):this._findContext(Mt(e)):null}_findOriginalError(e){let t=Mt(e);for(;t&&Mt(t);)t=Mt(t);return t}}const Lt=/([A-Z])/g;function Ut(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}let Bt=null;function jt(){if(!Bt){const e=xe.Symbol;if(e&&e.iterator)Bt=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Bt=n)}}}return Bt}function zt(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function $t(e,t){const n=qt(e),i=qt(t);if(n&&i)return function(e,t,n){const i=e[jt()](),s=t[jt()]();for(;;){const e=i.next(),t=s.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,$t);{const s=e&&("object"==typeof e||"function"==typeof e),r=t&&("object"==typeof t||"function"==typeof t);return!(n||!s||i||!r)||zt(e,t)}}class Ht{constructor(e){this.wrapped=e}static wrap(e){return new Ht(e)}static unwrap(e){return Ht.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof Ht}}function qt(e){return!!Yt(e)&&(Array.isArray(e)||!(e instanceof Map)&&jt()in e)}function Yt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Wt(e){return!!e&&"function"==typeof e.then}function Gt(e){return!!e&&"function"==typeof e.subscribe}class Kt{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}class Zt{}class Qt{}function Xt(e){const t=Error(`No component factory found for ${_e(e)}. Did you add it to @NgModule.entryComponents?`);return t[Jt]=e,t}const Jt="ngComponent";class en{resolveComponentFactory(e){throw Xt(e)}}let tn=(()=>{class e{}return e.NULL=new en,e})();class nn{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let i=0;i<e.length;i++){const t=e[i];this._factories.set(t.componentType,t)}}resolveComponentFactory(e){let t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw Xt(e);return new sn(t,this._ngModule)}}class sn extends Qt{constructor(e,t){super(),this.factory=e,this.ngModule=t,this.selector=e.selector,this.componentType=e.componentType,this.ngContentSelectors=e.ngContentSelectors,this.inputs=e.inputs,this.outputs=e.outputs}create(e,t,n,i){return this.factory.create(e,t,n,i||this.ngModule)}}class rn{}class on{}function ln(...e){}let an=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>un(e),e})();const un=ln;class cn{}class hn{}const dn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let pn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>mn(),e})();const mn=ln;class fn{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const gn=new fn("8.1.3");class _n{constructor(){}supports(e){return qt(e)}create(e){return new vn(e)}}const yn=(e,t)=>t;class vn{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||yn}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,i=0,s=null;for(;t||n;){const r=!n||t&&t.currentIndex<Sn(n,i,s)?t:n,o=Sn(r,i,s),l=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(t=t._next,null==r.previousIndex)i++;else{s||(s=[]);const e=o-i,t=l-i;if(e!=t){for(let n=0;n<e;n++){const i=n<s.length?s[n]:s[n]=0,r=i+n;t<=r&&r<e&&(s[n]=i+1)}s[r.previousIndex]=t-e}}o!==l&&e(r,o,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!qt(e))throw new Error(`Error trying to diff '${_e(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,i,s=this._itHead,r=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],i=this._trackByFn(t,n),null!==s&&zt(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,n,i,t)),zt(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,i,t),r=!0),s=s._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[jt()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(e,e=>{i=this._trackByFn(t,e),null!==s&&zt(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,e,i,t)),zt(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,i,t),r=!0),s=s._next,t++}),this.length=t;return this._truncate(s),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,i){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(zt(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,i)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(zt(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,i)):e=this._addAfter(new bn(t,n),s,i),e}_verifyReinsertion(e,t,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}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(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,s=e._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Cn),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Cn),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class bn{constructor(e,t){this.item=e,this.trackById=t,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(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&zt(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class Cn{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new wn,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sn(e,t,n){const i=e.previousIndex;if(null===i)return i;let s=0;return n&&i<n.length&&(s=n[i]),i+t+s}class En{constructor(){}supports(e){return e instanceof Map||Yt(e)}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(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Yt(e)))throw new Error(`Error trying to diff '${_e(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new kn(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){zt(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class kn{constructor(e){this.key=e,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 e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new he,new ue]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=me({token:e,providedIn:"root",factory:()=>new e([new _n])}),e})(),Dn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new he,new ue]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=me({token:e,providedIn:"root",factory:()=>new e([new En])}),e})(),Tn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>In(),e})();const In=(...e)=>{},On=[new En],Rn=new An([new _n]),Pn=new Dn(On);let Nn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Mn(e,an),e})();const Mn=ln;let Fn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Vn(e,an),e})();const Vn=ln;function Ln(e,t,n,i){let s=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return i&&(s+=" 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(e,t){const n=new Error(e);return Un(n,t),n}(s,e)}function Un(e,t){e[et]=t,e[nt]=t.logError.bind(t)}function Bn(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function jn(e,t,n){const i=e.state,s=1792&i;return s===t?(e.state=-1793&i|n,e.initIndex=-1,!0):s===n}function zn(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function $n(e,t){return e.nodes[t]}function Hn(e,t){return e.nodes[t]}function qn(e,t){return e.nodes[t]}function Yn(e,t){return e.nodes[t]}function Wn(e,t){return e.nodes[t]}const Gn={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},Kn=()=>{},Zn=new Map;function Qn(e){let t=Zn.get(e);return t||(t=_e(e)+"_"+Zn.size,Zn.set(e,t)),t}function Xn(e,t,n,i){if(Ht.isWrapped(i)){i=Ht.unwrap(i);const s=e.def.nodes[t].bindingIndex+n,r=Ht.unwrap(e.oldValues[s]);e.oldValues[s]=new Ht(r)}return i}const Jn="$$undefined",ei="$$empty";function ti(e){return{id:Jn,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let ni=0;function ii(e,t,n,i){return!(!(2&e.state)&&zt(e.oldValues[t.bindingIndex+n],i))}function si(e,t,n,i){return!!ii(e,t,n,i)&&(e.oldValues[t.bindingIndex+n]=i,!0)}function ri(e,t,n,i){const s=e.oldValues[t.bindingIndex+n];if(1&e.state||!$t(s,i)){const r=t.bindings[n].name;throw Ln(Gn.createDebugContext(e,t.nodeIndex),`${r}: ${s}`,`${r}: ${i}`,0!=(1&e.state))}}function oi(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function li(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function ai(e,t,n,i){try{return oi(33554432&e.def.nodes[t].flags?Hn(e,t).componentView:e),Gn.handleEvent(e,t,n,i)}catch(s){e.root.errorHandler.handleError(s)}}function ui(e){return e.parent?Hn(e.parent,e.parentNodeDef.nodeIndex):null}function ci(e){return e.parent?e.parentNodeDef.parent:null}function hi(e,t){switch(201347067&t.flags){case 1:return Hn(e,t.nodeIndex).renderElement;case 2:return $n(e,t.nodeIndex).renderText}}function di(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function pi(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function mi(e){return 1<<e%32}function fi(e){const t={};let n=0;const i={};return e&&e.forEach(([e,s])=>{"number"==typeof e?(t[e]=s,n|=mi(e)):i[e]=s}),{matchedQueries:t,references:i,matchedQueryIds:n}}function gi(e,t){return e.map(e=>{let n,i;return Array.isArray(e)?[i,n]=e:(i=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,Pe,{value:t,configurable:!0}),{flags:i,token:n,tokenKey:Qn(n)}})}function _i(e,t,n){let i=n.renderParent;return i?0==(1&i.flags)||0==(33554432&i.flags)||i.element.componentRendererType&&i.element.componentRendererType.encapsulation===st.Native?Hn(e,n.renderParent.nodeIndex).renderElement:void 0:t}const yi=new WeakMap;function vi(e){let t=yi.get(e);return t||(t=e(()=>Kn),t.factory=e,yi.set(e,t)),t}function bi(e,t,n,i,s){3===t&&(n=e.renderer.parentNode(hi(e,e.def.lastRenderRootNode))),wi(e,t,0,e.def.nodes.length-1,n,i,s)}function wi(e,t,n,i,s,r,o){for(let l=n;l<=i;l++){const n=e.def.nodes[l];11&n.flags&&Si(e,n,t,s,r,o),l+=n.childCount}}function Ci(e,t,n,i,s,r){let o=e;for(;o&&!di(o);)o=o.parent;const l=o.parent,a=ci(o),u=a.nodeIndex+a.childCount;for(let c=a.nodeIndex+1;c<=u;c++){const e=l.def.nodes[c];e.ngContentIndex===t&&Si(l,e,n,i,s,r),c+=e.childCount}if(!l.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t<o.length;t++)Ei(e,o[t],n,i,s,r)}}function Si(e,t,n,i,s,r){if(8&t.flags)Ci(e,t.ngContent.index,n,i,s,r);else{const o=hi(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&Ei(e,o,n,i,s,r),32&t.bindingFlags&&Ei(Hn(e,t.nodeIndex).componentView,o,n,i,s,r)):Ei(e,o,n,i,s,r),16777216&t.flags){const o=Hn(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<o.length;e++)bi(o[e],n,i,s,r)}1&t.flags&&!t.element.name&&wi(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,i,s,r)}}function Ei(e,t,n,i,s,r){const o=e.renderer;switch(n){case 1:o.appendChild(i,t);break;case 2:o.insertBefore(i,t,s);break;case 3:o.removeChild(i,t);break;case 0:r.push(t)}}const xi=/^:([^:]+):(.+)$/;function ki(e){if(":"===e[0]){const t=e.match(xi);return[t[1],t[2]]}return["",e]}function Ai(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}function Di(e,t,n,i,s,r,o,l,a,u,c,h,d,p,m,f,g,_,y,v){switch(e){case 1:return t+Ti(n)+i;case 2:return t+Ti(n)+i+Ti(s)+r;case 3:return t+Ti(n)+i+Ti(s)+r+Ti(o)+l;case 4:return t+Ti(n)+i+Ti(s)+r+Ti(o)+l+Ti(a)+u;case 5:return t+Ti(n)+i+Ti(s)+r+Ti(o)+l+Ti(a)+u+Ti(c)+h;case 6:return t+Ti(n)+i+Ti(s)+r+Ti(o)+l+Ti(a)+u+Ti(c)+h+Ti(d)+p;case 7:return t+Ti(n)+i+Ti(s)+r+Ti(o)+l+Ti(a)+u+Ti(c)+h+Ti(d)+p+Ti(m)+f;case 8:return t+Ti(n)+i+Ti(s)+r+Ti(o)+l+Ti(a)+u+Ti(c)+h+Ti(d)+p+Ti(m)+f+Ti(g)+_;case 9:return t+Ti(n)+i+Ti(s)+r+Ti(o)+l+Ti(a)+u+Ti(c)+h+Ti(d)+p+Ti(m)+f+Ti(g)+_+Ti(y)+v;default:throw new Error("Does not support more than 9 expressions")}}function Ti(e){return null!=e?e.toString():""}const Ii=new Object,Oi=Qn(qe),Ri=Qn(Ae),Pi=Qn(rn);function Ni(e,t,n,i){return n=be(n),{index:-1,deps:gi(i,_e(t)),flags:e,token:t,value:n}}function Mi(e,t,n=qe.THROW_IF_NOT_FOUND){const i=Ve(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const o=t.tokenKey;switch(o){case Oi:case Ri:case Pi:return e}const l=e._def.providersByKey[o];let a;if(l){let t=e._providers[l.index];return void 0===t&&(t=e._providers[l.index]=Fi(e,l)),t===Ii?void 0:t}if((a=fe(t.token))&&(s=e,null!=(r=a).providedIn&&(function(e,t){return e._def.modules.indexOf(t)>-1}(s,r.providedIn)||"root"===r.providedIn&&s._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:a.factory,deps:[],index:n,token:t.token},e._providers[n]=Ii,e._providers[n]=Fi(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Ve(i)}var s,r}function Fi(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const i=n.length;switch(i){case 0:return new t;case 1:return new t(Mi(e,n[0]));case 2:return new t(Mi(e,n[0]),Mi(e,n[1]));case 3:return new t(Mi(e,n[0]),Mi(e,n[1]),Mi(e,n[2]));default:const s=new Array(i);for(let t=0;t<i;t++)s[t]=Mi(e,n[t]);return new t(...s)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const i=n.length;switch(i){case 0:return t();case 1:return t(Mi(e,n[0]));case 2:return t(Mi(e,n[0]),Mi(e,n[1]));case 3:return t(Mi(e,n[0]),Mi(e,n[1]),Mi(e,n[2]));default:const s=Array(i);for(let t=0;t<i;t++)s[t]=Mi(e,n[t]);return t(...s)}}(e,t.value,t.deps);break;case 2048:n=Mi(e,t.deps[0]);break;case 256:n=t.value}return n===Ii||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Ii:n}function Vi(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const i=n[t];return i.viewContainerParent=null,ji(n,t),Gn.dirtyParentQueries(i),Ui(i),i}function Li(e,t,n){const i=t?hi(t,t.def.lastRenderRootNode):e.renderElement,s=n.renderer.parentNode(i),r=n.renderer.nextSibling(i);bi(n,2,s,r,void 0)}function Ui(e){bi(e,3,null,null,void 0)}function Bi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ji(e,t){t>=e.length-1?e.pop():e.splice(t,1)}const zi=new Object;function $i(e,t,n,i,s,r){return new Hi(e,t,n,i,s,r)}class Hi extends Qt{constructor(e,t,n,i,s,r){super(),this.selector=e,this.componentType=t,this._inputs=i,this._outputs=s,this.ngContentSelectors=r,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,i){if(!i)throw new Error("ngModule should be provided");const s=vi(this.viewDefFactory),r=s.nodes[0].element.componentProvider.nodeIndex,o=Gn.createRootView(e,t||[],n,s,i,zi),l=qn(o,r).instance;return n&&o.renderer.setAttribute(Hn(o,0).renderElement,"ng-version",gn.full),new qi(o,new Ki(o),l)}}class qi extends Zt{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new an(Hn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Ji(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Yi(e,t,n){return new Wi(e,t,n)}class Wi{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new an(this._data.renderElement)}get injector(){return new Ji(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=ci(e),e=e.parent;return e?new Ji(e,t):new Ji(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Vi(this._data,e);Gn.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Ki(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const i=e.createEmbeddedView(t||{});return this.insert(i,n),i}createComponent(e,t,n,i,s){const r=n||this.parentInjector;s||e instanceof sn||(s=r.get(rn));const o=e.create(r,i,void 0,s);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,i){let s=t.viewContainer._embeddedViews;null==n&&(n=s.length),i.viewContainerParent=e,Bi(s,n,i),function(e,t){const n=ui(t);if(!n||n===e||16&t.state)return;t.state|=16;let i=n.template._projectedViews;i||(i=n.template._projectedViews=[]),i.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,i),Gn.dirtyParentQueries(i),Li(t,n>0?s[n-1]:null,i)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const i=e.viewContainer._embeddedViews,s=i[t];ji(i,t),null==n&&(n=i.length),Bi(i,n,s),Gn.dirtyParentQueries(s),Ui(s),Li(e,n>0?i[n-1]:null,s)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Vi(this._data,e);t&&Gn.destroyView(t)}detach(e){const t=Vi(this._data,e);return t?new Ki(t):null}}function Gi(e){return new Ki(e)}class Ki{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return bi(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){oi(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{Gn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){Gn.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Gn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Ui(this._view),Gn.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function Zi(e,t){return new Qi(e,t)}class Qi extends Nn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Ki(Gn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new an(Hn(this._parentView,this._def.nodeIndex).renderElement)}}function Xi(e,t){return new Ji(e,t)}class Ji{constructor(e,t){this.view=e,this.elDef=t}get(e,t=qe.THROW_IF_NOT_FOUND){return Gn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Qn(e)},t)}}function es(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=Hn(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return $n(e,n.nodeIndex).renderText;if(20240&n.flags)return qn(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function ts(e){return new ns(e.renderer)}class ns{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,i]=ki(t),s=this.delegate.createElement(i,n);return e&&this.delegate.appendChild(e,s),s}createViewRoot(e){return e}createTemplateAnchor(e){const t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}createText(e,t){const n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}projectNodes(e,t){for(let n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])}attachViewAfter(e,t){const n=this.delegate.parentNode(e),i=this.delegate.nextSibling(e);for(let s=0;s<t.length;s++)this.delegate.insertBefore(n,t[s],i)}detachView(e){for(let t=0;t<e.length;t++){const n=e[t],i=this.delegate.parentNode(n);this.delegate.removeChild(i,n)}}destroyView(e,t){for(let n=0;n<t.length;n++)this.delegate.destroyNode(t[n])}listen(e,t,n){return this.delegate.listen(e,t,n)}listenGlobal(e,t,n){return this.delegate.listen(e,t,n)}setElementProperty(e,t,n){this.delegate.setProperty(e,t,n)}setElementAttribute(e,t,n){const[i,s]=ki(t);null!=n?this.delegate.setAttribute(e,s,n,i):this.delegate.removeAttribute(e,s,i)}setBindingDebugInfo(e,t,n){}setElementClass(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)}setElementStyle(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)}invokeElementMethod(e,t,n){e[t].apply(e,n)}setText(e,t){this.delegate.setValue(e,t)}animate(){throw new Error("Renderer.animate is no longer supported!")}}function is(e,t,n,i){return new ss(e,t,n,i)}class ss{constructor(e,t,n,i){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=i,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=new Array(t.providers.length);for(let i=0;i<t.providers.length;i++){const s=t.providers[i];4096&s.flags||void 0===n[i]&&(n[i]=Fi(e,s))}}(this)}get(e,t=qe.THROW_IF_NOT_FOUND,n=de.Default){let i=0;return n&de.SkipSelf?i|=1:n&de.Self&&(i|=4),Mi(this,{token:e,tokenKey:Qn(e),flags:i},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(tn)}destroy(){if(this._destroyed)throw new Error(`The ng module ${_e(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,i=new Set;for(let s=0;s<n.providers.length;s++)if(131072&n.providers[s].flags){const t=e._providers[s];if(t&&t!==Ii){const e=t.ngOnDestroy;"function"!=typeof e||i.has(t)||(e.apply(t),i.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const rs=Qn(cn),os=Qn(pn),ls=Qn(an),as=Qn(Fn),us=Qn(Nn),cs=Qn(Tn),hs=Qn(qe),ds=Qn(Ae);function ps(e,t,n,i,s,r,o,l){const a=[];if(o)for(let c in o){const[e,t]=o[c];a[e]={flags:8,name:c,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const u=[];if(l)for(let c in l)u.push({type:1,propName:c,target:null,eventName:l[c]});return gs(e,t|=16384,n,i,s,s,r,a,u)}function ms(e,t,n){return gs(-1,e|=16,null,0,t,t,n)}function fs(e,t,n,i,s){return gs(-1,e,t,0,n,i,s)}function gs(e,t,n,i,s,r,o,l,a){const{matchedQueries:u,references:c,matchedQueryIds:h}=fi(n);a||(a=[]),l||(l=[]),r=be(r);const d=gi(o,_e(s));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:h,references:c,ngContentIndex:-1,childCount:i,bindings:l,bindingFlags:Ai(l),outputs:a,element:null,provider:{token:s,value:r,deps:d},text:null,query:null,ngContent:null}}function _s(e,t){return ws(e,t)}function ys(e,t){let n=e;for(;n.parent&&!di(n);)n=n.parent;return Cs(n.parent,ci(n),!0,t.provider.value,t.provider.deps)}function vs(e,t){const n=Cs(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let i=0;i<t.outputs.length;i++){const s=t.outputs[i],r=n[s.propName];if(!Gt(r))throw new Error(`@Output ${s.propName} not initialized in '${n.constructor.name}'.`);{const n=r.subscribe(bs(e,t.parent.nodeIndex,s.eventName));e.disposables[t.outputIndex+i]=n.unsubscribe.bind(n)}}return n}function bs(e,t,n){return i=>ai(e,t,n,i)}function ws(e,t){const n=(8192&t.flags)>0,i=t.provider;switch(201347067&t.flags){case 512:return Cs(e,t.parent,n,i.value,i.deps);case 1024:return function(e,t,n,i,s){const r=s.length;switch(r){case 0:return i();case 1:return i(Es(e,t,n,s[0]));case 2:return i(Es(e,t,n,s[0]),Es(e,t,n,s[1]));case 3:return i(Es(e,t,n,s[0]),Es(e,t,n,s[1]),Es(e,t,n,s[2]));default:const o=Array(r);for(let i=0;i<r;i++)o[i]=Es(e,t,n,s[i]);return i(...o)}}(e,t.parent,n,i.value,i.deps);case 2048:return Es(e,t.parent,n,i.deps[0]);case 256:return i.value}}function Cs(e,t,n,i,s){const r=s.length;switch(r){case 0:return new i;case 1:return new i(Es(e,t,n,s[0]));case 2:return new i(Es(e,t,n,s[0]),Es(e,t,n,s[1]));case 3:return new i(Es(e,t,n,s[0]),Es(e,t,n,s[1]),Es(e,t,n,s[2]));default:const o=new Array(r);for(let i=0;i<r;i++)o[i]=Es(e,t,n,s[i]);return new i(...o)}}const Ss={};function Es(e,t,n,i,s=qe.THROW_IF_NOT_FOUND){if(8&i.flags)return i.token;const r=e;2&i.flags&&(s=null);const o=i.tokenKey;o===cs&&(n=!(!t||!t.element.componentView)),t&&1&i.flags&&(n=!1,t=t.parent);let l=e;for(;l;){if(t)switch(o){case rs:return ts(xs(l,t,n));case os:return xs(l,t,n).renderer;case ls:return new an(Hn(l,t.nodeIndex).renderElement);case as:return Hn(l,t.nodeIndex).viewContainer;case us:if(t.element.template)return Hn(l,t.nodeIndex).template;break;case cs:return Gi(xs(l,t,n));case hs:case ds:return Xi(l,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[o];if(e){let t=qn(l,e.nodeIndex);return t||(t={instance:ws(l,e)},l.nodes[e.nodeIndex]=t),t.instance}}n=di(l),t=ci(l),l=l.parent,4&i.flags&&(l=null)}const a=r.root.injector.get(i.token,Ss);return a!==Ss||s===Ss?a:r.root.ngModule.injector.get(i.token,s)}function xs(e,t,n){let i;if(n)i=Hn(e,t.nodeIndex).componentView;else for(i=e;i.parent&&!di(i);)i=i.parent;return i}function ks(e,t,n,i,s,r){if(32768&n.flags){const t=Hn(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[i].name]=s,524288&n.flags){r=r||{};const t=Ht.unwrap(e.oldValues[n.bindingIndex+i]);r[n.bindings[i].nonMinifiedName]=new Kt(t,s,0!=(2&e.state))}return e.oldValues[n.bindingIndex+i]=s,r}function As(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let i=0;for(let s=0;s<n.length;s++){const r=n[s];let o=r.parent;for(!o&&r.flags&t&&Ts(e,s,r.flags&t,i++),0==(r.childFlags&t)&&(s+=r.childCount);o&&1&o.flags&&s===o.nodeIndex+o.childCount;)o.directChildFlags&t&&(i=Ds(e,o,t,i)),o=o.parent}}function Ds(e,t,n,i){for(let s=t.nodeIndex+1;s<=t.nodeIndex+t.childCount;s++){const t=e.def.nodes[s];t.flags&n&&Ts(e,s,t.flags&n,i++),s+=t.childCount}return i}function Ts(e,t,n,i){const s=qn(e,t);if(!s)return;const r=s.instance;r&&(Gn.setCurrentNode(e,t),1048576&n&&zn(e,512,i)&&r.ngAfterContentInit(),2097152&n&&r.ngAfterContentChecked(),4194304&n&&zn(e,768,i)&&r.ngAfterViewInit(),8388608&n&&r.ngAfterViewChecked(),131072&n&&r.ngOnDestroy())}const Is=new ke("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>rt}),Os={},Rs=function(){var e={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 e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),Ps=void 0;var Ns=["en",[["a","p"],["AM","PM"],Ps],[["AM","PM"],Ps,Ps],[["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"]],Ps,[["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"]],Ps,[["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}",Ps,"{1} 'at' {0}",Ps],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];function Ms(e){const t=e.toLowerCase().replace(/_/g,"-");let n=Os[t];if(n)return n;const i=t.split("-")[0];if(n=Os[i],n)return n;if("en"===i)return Ns;throw new Error(`Missing locale data for the locale "${e}".`)}let Fs="en-US";class Vs extends A{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let i,s=e=>null,r=()=>null;e&&"object"==typeof e?(i=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(r=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,s,r);return e instanceof d&&e.add(o),o}}function Ls(){return this._results[jt()]()}class Us{constructor(){this.dirty=!0,this._results=[],this.changes=new Vs,this.length=0;const e=jt(),t=Us.prototype;t[e]||(t[e]=Ls)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let i=0;i<t.length;i++){let s=t[i];Array.isArray(s)?(n===t&&(n=t.slice(0,i)),e(s,n)):n!==t&&n.push(s)}return n}(e),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 Bs=new ke("Application Initializer");let js=(()=>(class{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Wt(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}))();const zs=new ke("AppId");function $s(){return`${Hs()}${Hs()}${Hs()}`}function Hs(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const qs=new ke("Platform Initializer"),Ys=new ke("Platform ID"),Ws=new ke("appBootstrapListener");let Gs=(()=>(class{log(e){console.log(e)}warn(e){console.warn(e)}}))();const Ks=new ke("LocaleId");function Zs(){throw new Error("Runtime compiler is not loaded")}const Qs=Zs,Xs=Zs,Js=Zs,er=Zs;let tr,nr,ir=(()=>(class{constructor(){this.compileModuleSync=Qs,this.compileModuleAsync=Xs,this.compileModuleAndAllComponentsSync=Js,this.compileModuleAndAllComponentsAsync=er}clearCache(){}clearCacheFor(e){}getModuleId(e){}}))();class sr{}function rr(){const e=xe.wtf;return!(!e||(tr=e.trace,!tr)||(nr=tr.events,0))}const or=rr();function lr(e,t){return null}const ar=or?function(e,t=null){return nr.createScope(e,t)}:(e,t)=>lr,ur=or?function(e,t){return tr.leaveScope(e,t),t}:(e,t)=>t,cr=(()=>Promise.resolve(0))();function hr(e){"undefined"==typeof Zone?cr.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class dr{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Vs(!1),this.onMicrotaskEmpty=new Vs(!1),this.onStable=new Vs(!1),this.onError=new Vs(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;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)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,i,s,r,o)=>{try{return gr(t),e.invokeTask(i,s,r,o)}finally{_r(t)}},onInvoke:(e,n,i,s,r,o,l)=>{try{return gr(t),e.invoke(i,s,r,o,l)}finally{_r(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t.hasPendingMicrotasks=s.microTask,fr(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!dr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(dr.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,e,mr,pr,pr);try{return s.runTask(r,t,n)}finally{s.cancelTask(r)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function pr(){}const mr={};function fr(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function gr(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function _r(e){e._nesting--,fr(e)}class yr{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Vs,this.onMicrotaskEmpty=new Vs,this.onStable=new Vs,this.onError=new Vs}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}let vr=(()=>(class{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.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:()=>{dr.assertNotInAngularZone(),hr(()=>{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())hr(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let i=-1;t&&t>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==i),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}whenStable(e,t,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(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}))(),br=(()=>{class e{constructor(){this._applications=new Map,Sr.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Sr.findTestabilityInTree(this,e,t)}}return e.ctorParameters=()=>[],e})();class wr{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let Cr,Sr=new wr,Er=function(e){return e instanceof sn};const xr=new ke("AllowMultipleToken");class kr{constructor(e,t){this.name=e,this.token=t}}function Ar(e,t,n=[]){const i=`Platform: ${t}`,s=new ke(i);return(t=[])=>{let r=Dr();if(!r||r.injector.get(xr,!1))if(e)e(n.concat(t).concat({provide:s,useValue:!0}));else{const e=n.concat(t).concat({provide:s,useValue:!0});!function(e){if(Cr&&!Cr.destroyed&&!Cr.injector.get(xr,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Cr=e.get(Tr);const t=e.get(qs,null);t&&t.forEach(e=>e())}(qe.create({providers:e,name:i}))}return function(e){const t=Dr();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(s)}}function Dr(){return Cr&&!Cr.destroyed?Cr:null}let Tr=(()=>(class{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e){let t;return t="noop"===e?new yr:("zone.js"===e?void 0:e)||new dr({enableLongStackTrace:at()}),t}(t?t.ngZone:void 0),i=[{provide:dr,useValue:n}];return n.run(()=>{const t=qe.create({providers:i,parent:this.injector,name:e.moduleType.name}),s=e.create(t),r=s.injector.get(Vt,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return function(e){Fs=e.toLowerCase().replace(/_/g,"-")}(s.injector.get(Ks,"en-US")),s.onDestroy(()=>Rr(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{r.handleError(e)}})),function(e,t,n){try{const i=n();return Wt(i)?i.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(r,n,()=>{const e=s.injector.get(js);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Ir({},t);return function(e,t,n){return e.get(sr).createCompiler([t]).compileModuleAsync(n)}(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Or);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${_e(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}))();function Ir(e,t){return Array.isArray(t)?t.reduce(Ir,e):Object.assign({},e,t)}let Or=(()=>{class e{constructor(e,t,n,i,s,r){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=at(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new w(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),l=new w(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{dr.assertNotInAngularZone(),hr(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{dr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=X(o,l.pipe(e=>J()(function(e,t){return function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,ie);return i.source=t,i.subjectFactory=n,i}}(re)(e))))}bootstrap(e,t){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=e instanceof Qt?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const i=Er(n)?null:this._injector.get(rn),s=n.create(qe.NULL,[],t||n.selector,i);s.onDestroy(()=>{this._unloadComponent(s)});const r=s.injector.get(vr,null);return r&&s.injector.get(br).registerApplication(s.location.nativeElement,r),this._loadComponent(s),at()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,ur(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Rr(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Ws,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Rr(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=ar("ApplicationRef#tick()"),e})();function Rr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Pr{}class Nr{}const Mr={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Fr=(()=>(class{constructor(e,t){this._compiler=e,this._config=t||Mr}load(e){return this._compiler instanceof ir?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,i]=e.split("#");return void 0===i&&(i="default"),n("zn8P")(t).then(e=>e[i]).then(e=>Vr(e,t,i)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,i]=e.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[i+s]).then(e=>Vr(e,t,i))}}))();function Vr(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Lr{constructor(e,t){this.name=e,this.callback=t}}class Ur{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Br&&t.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 Br extends Ur{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,i){t.childNodes.forEach(t=>{t instanceof Br&&(n(t)&&i.push(t),e(t,n,i))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,i){t instanceof Br&&t.childNodes.forEach(t=>{n(t)&&i.push(t),t instanceof Br&&e(t,n,i)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Br)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const jr=new Map,zr=function(e){return jr.get(e)||null};function $r(e){jr.set(e.nativeNode,e)}const Hr=Ar(null,"core",[{provide:Ys,useValue:"unknown"},{provide:Tr,deps:[qe]},{provide:br,deps:[]},{provide:Gs,deps:[]}]);function qr(){return Rn}function Yr(){return Pn}function Wr(e){return e||"en-US"}function Gr(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}let Kr=(()=>(class{constructor(e){}}))();function Zr(e,t,n,i,s,r){e|=1;const{matchedQueries:o,references:l,matchedQueryIds:a}=fi(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:a,references:l,ngContentIndex:n,childCount:i,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:r?vi(r):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:s||Kn},provider:null,text:null,query:null,ngContent:null}}function Qr(e,t,n,i,s,r,o=[],l,a,u,c,h){u||(u=Kn);const{matchedQueries:d,references:p,matchedQueryIds:m}=fi(n);let f=null,g=null;r&&([f,g]=ki(r)),l=l||[];const _=new Array(l.length);for(let b=0;b<l.length;b++){const[e,t,n]=l[b],[i,s]=ki(t);let r=void 0,o=void 0;switch(15&e){case 4:o=n;break;case 1:case 8:r=n}_[b]={flags:e,ns:i,name:s,nonMinifiedName:s,securityContext:r,suffix:o}}a=a||[];const y=new Array(a.length);for(let b=0;b<a.length;b++){const[e,t]=a[b];y[b]={type:0,target:e,eventName:t,propName:null}}const v=(o=o||[]).map(([e,t])=>{const[n,i]=ki(e);return[n,i,t]});return h=function(e){if(e&&e.id===Jn){const t=null!=e.encapsulation&&e.encapsulation!==st.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${ni++}`:ei}return e&&e.id===ei&&(e=null),e||null}(h),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:m,references:p,ngContentIndex:i,childCount:s,bindings:_,bindingFlags:Ai(_),outputs:y,element:{ns:f,name:g,attrs:v,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:u||Kn},provider:null,text:null,query:null,ngContent:null}}function Xr(e,t,n){const i=n.element,s=e.root.selectorOrNode,r=e.renderer;let o;if(e.parent||!s){o=i.name?r.createElement(i.name,i.ns):r.createComment("");const s=_i(e,t,n);s&&r.appendChild(s,o)}else o=r.selectRootElement(s,!!i.componentRendererType&&i.componentRendererType.encapsulation===st.ShadowDom);if(i.attrs)for(let l=0;l<i.attrs.length;l++){const[e,t,n]=i.attrs[l];r.setAttribute(o,t,n,e)}return o}function Jr(e,t,n,i){for(let o=0;o<n.outputs.length;o++){const l=n.outputs[o],a=eo(e,n.nodeIndex,(r=l.eventName,(s=l.target)?`${s}:${r}`:r));let u=l.target,c=e;"component"===l.target&&(u=null,c=t);const h=c.renderer.listen(u||i,l.eventName,a);e.disposables[n.outputIndex+o]=h}var s,r}function eo(e,t,n){return i=>ai(e,t,n,i)}function to(e,t,n,i){if(!si(e,t,n,i))return!1;const s=t.bindings[n],r=Hn(e,t.nodeIndex),o=r.renderElement,l=s.name;switch(15&s.flags){case 1:!function(e,t,n,i,s,r){const o=t.securityContext;let l=o?e.root.sanitizer.sanitize(o,r):r;l=null!=l?l.toString():null;const a=e.renderer;null!=r?a.setAttribute(n,s,l,i):a.removeAttribute(n,s,i)}(e,s,o,s.ns,l,i);break;case 2:!function(e,t,n,i){const s=e.renderer;i?s.addClass(t,n):s.removeClass(t,n)}(e,o,l,i);break;case 4:!function(e,t,n,i,s){let r=e.root.sanitizer.sanitize(It.STYLE,s);if(null!=r){r=r.toString();const e=t.suffix;null!=e&&(r+=e)}else r=null;const o=e.renderer;null!=r?o.setStyle(n,i,r):o.removeStyle(n,i)}(e,s,o,l,i);break;case 8:!function(e,t,n,i,s){const r=t.securityContext;let o=r?e.root.sanitizer.sanitize(r,s):s;e.renderer.setProperty(n,i,o)}(33554432&t.flags&&32&s.flags?r.componentView:e,s,o,l,i)}return!0}function no(e,t,n){let i=[];for(let s in n)i.push({propName:s,bindingType:n[s]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,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:t,filterId:mi(t),bindings:i},ngContent:null}}function io(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&pi(e);){let n=e.parentNodeDef;e=e.parent;const i=n.nodeIndex+n.childCount;for(let s=0;s<=i;s++){const i=e.def.nodes[s];67108864&i.flags&&536870912&i.flags&&(i.query.filterId&t)===i.query.filterId&&Wn(e,s).setDirty(),!(1&i.flags&&s+i.childCount<n.nodeIndex)&&67108864&i.childFlags&&536870912&i.childFlags||(s+=i.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const t=e.def.nodes[n];134217728&t.flags&&536870912&t.flags&&Wn(e,n).setDirty(),n+=t.childCount}}function so(e,t){const n=Wn(e,t.nodeIndex);if(!n.dirty)return;let i,s=void 0;if(67108864&t.flags){const n=t.parent.parent;s=ro(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),i=qn(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(s=ro(e,0,e.def.nodes.length-1,t.query,[]),i=e.component);n.reset(s);const r=t.query.bindings;let o=!1;for(let l=0;l<r.length;l++){const e=r[l];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,o=!0}i[e.propName]=t}o&&n.notifyOnChanges()}function ro(e,t,n,i,s){for(let r=t;r<=n;r++){const t=e.def.nodes[r],n=t.matchedQueries[i.id];if(null!=n&&s.push(oo(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&i.filterId)===i.filterId){const n=Hn(e,r);if((t.childMatchedQueries&i.filterId)===i.filterId&&(ro(e,r+1,r+t.childCount,i,s),r+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const r=e[t],o=ui(r);o&&o===n&&ro(r,0,r.def.nodes.length-1,i,s)}}const o=n.template._projectedViews;if(o)for(let e=0;e<o.length;e++){const t=o[e];ro(t,0,t.def.nodes.length-1,i,s)}}(t.childMatchedQueries&i.filterId)!==i.filterId&&(r+=t.childCount)}return s}function oo(e,t,n){if(null!=n)switch(n){case 1:return Hn(e,t.nodeIndex).renderElement;case 0:return new an(Hn(e,t.nodeIndex).renderElement);case 2:return Hn(e,t.nodeIndex).template;case 3:return Hn(e,t.nodeIndex).viewContainer;case 4:return qn(e,t.nodeIndex).instance}}function lo(e,t){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:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function ao(e,t,n){const i=_i(e,t,n);i&&Ci(e,n.ngContent.index,1,i,null,void 0)}function uo(e,t){return po(128,e,new Array(t+1))}function co(e,t){return po(32,e,new Array(t))}function ho(e,t){const n=Object.keys(t),i=n.length,s=new Array(i);for(let r=0;r<i;r++){const e=n[r];s[t[e]]=e}return po(64,e,s)}function po(e,t,n){const i=new Array(n.length);for(let s=0;s<n.length;s++){const e=n[s];i[s]={flags:8,name:e,ns:null,nonMinifiedName:e,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:i,bindingFlags:Ai(i),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function mo(e,t,n){const i=new Array(n.length-1);for(let s=1;s<n.length;s++)i[s-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[s]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:i,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function fo(e,t,n){let i;const s=e.renderer;i=s.createText(n.text.prefix);const r=_i(e,t,n);return r&&s.appendChild(r,i),{renderText:i}}function go(e,t){return(null!=e?e.toString():"")+t.suffix}function _o(e,t,n,i){let s=0,r=0,o=0,l=0,a=0,u=null,c=null,h=!1,d=!1,p=null;for(let m=0;m<t.length;m++){const e=t[m];if(e.nodeIndex=m,e.parent=u,e.bindingIndex=s,e.outputIndex=r,e.renderParent=c,o|=e.flags,a|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=u?u.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,h=!1,d=!1,e.element.template&&(a|=e.element.template.nodeMatchedQueries)}if(vo(u,e,t.length),s+=e.bindings.length,r+=e.outputs.length,!c&&3&e.flags&&(p=e),20224&e.flags){h||(h=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?u.element.publicProviders[Qn(e.provider.token)]=e:(d||(d=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[Qn(e.provider.token)]=e),t&&(u.element.componentProvider=e)}if(u?(u.childFlags|=e.flags,u.directChildFlags|=e.flags,u.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(u.childMatchedQueries|=e.element.template.nodeMatchedQueries)):l|=e.flags,e.childCount>0)u=e,yo(e)||(c=e);else for(;u&&m===u.nodeIndex+u.childCount;){const e=u.parent;e&&(e.childFlags|=u.childFlags,e.childMatchedQueries|=u.childMatchedQueries),u=e,c=u&&yo(u)?u.renderParent:u}}return{factory:null,nodeFlags:o,rootNodeFlags:l,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Kn,updateRenderer:i||Kn,handleEvent:(e,n,i,s)=>t[n].element.handleEvent(e,i,s),bindingCount:s,outputCount:r,lastRenderRootNode:p}}function yo(e){return 0!=(1&e.flags)&&null===e.element.name}function vo(e,t,n){const i=t.element&&t.element.template;if(i){if(!i.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(i.lastRenderRootNode&&16777216&i.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function bo(e,t,n,i){const s=So(e.root,e.renderer,e,t,n);return Eo(s,e.component,i),xo(s),s}function wo(e,t,n){const i=So(e,e.renderer,null,null,t);return Eo(i,n,n),xo(i),i}function Co(e,t,n,i){const s=t.element.componentRendererType;let r;return r=s?e.root.rendererFactory.createRenderer(i,s):e.root.renderer,So(e.root,r,e,t.element.componentProvider,n)}function So(e,t,n,i,s){const r=new Array(s.nodes.length),o=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:i,context:null,component:null,nodes:r,state:13,root:e,renderer:t,oldValues:new Array(s.bindingCount),disposables:o,initIndex:-1}}function Eo(e,t,n){e.component=t,e.context=n}function xo(e){let t;di(e)&&(t=Hn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,i=e.nodes;for(let s=0;s<n.nodes.length;s++){const r=n.nodes[s];let o;switch(Gn.setCurrentNode(e,s),201347067&r.flags){case 1:const n=Xr(e,t,r);let l=void 0;if(33554432&r.flags){const t=vi(r.element.componentView);l=Gn.createComponentView(e,r,t,n)}Jr(e,l,r,n),o={renderElement:n,componentView:l,viewContainer:null,template:r.element.template?Zi(e,r):void 0},16777216&r.flags&&(o.viewContainer=Yi(e,r,o));break;case 2:o=fo(e,t,r);break;case 512:case 1024:case 2048:case 256:o=i[s],o||4096&r.flags||(o={instance:_s(e,r)});break;case 16:o={instance:ys(e,r)};break;case 16384:o=i[s],o||(o={instance:vs(e,r)}),32768&r.flags&&Eo(Hn(e,r.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 Us;break;case 8:ao(e,t,r),o=void 0}i[s]=o}No(e,Po.CreateViewNodes),Lo(e,201326592,268435456,0)}function ko(e){To(e),Gn.updateDirectives(e,1),Mo(e,Po.CheckNoChanges),Gn.updateRenderer(e,1),No(e,Po.CheckNoChanges),e.state&=-97}function Ao(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,jn(e,0,256),To(e),Gn.updateDirectives(e,0),Mo(e,Po.CheckAndUpdate),Lo(e,67108864,536870912,0);let t=jn(e,256,512);As(e,2097152|(t?1048576:0)),Gn.updateRenderer(e,0),No(e,Po.CheckAndUpdate),Lo(e,134217728,536870912,0),t=jn(e,512,768),As(e,8388608|(t?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,jn(e,768,1024)}function Do(e,t,n,i,s,r,o,l,a,u,c,h,d){return 0===n?function(e,t,n,i,s,r,o,l,a,u,c,h){switch(201347067&t.flags){case 1:return function(e,t,n,i,s,r,o,l,a,u,c,h){const d=t.bindings.length;let p=!1;return d>0&&to(e,t,0,n)&&(p=!0),d>1&&to(e,t,1,i)&&(p=!0),d>2&&to(e,t,2,s)&&(p=!0),d>3&&to(e,t,3,r)&&(p=!0),d>4&&to(e,t,4,o)&&(p=!0),d>5&&to(e,t,5,l)&&(p=!0),d>6&&to(e,t,6,a)&&(p=!0),d>7&&to(e,t,7,u)&&(p=!0),d>8&&to(e,t,8,c)&&(p=!0),d>9&&to(e,t,9,h)&&(p=!0),p}(e,t,n,i,s,r,o,l,a,u,c,h);case 2:return function(e,t,n,i,s,r,o,l,a,u,c,h){let d=!1;const p=t.bindings,m=p.length;if(m>0&&si(e,t,0,n)&&(d=!0),m>1&&si(e,t,1,i)&&(d=!0),m>2&&si(e,t,2,s)&&(d=!0),m>3&&si(e,t,3,r)&&(d=!0),m>4&&si(e,t,4,o)&&(d=!0),m>5&&si(e,t,5,l)&&(d=!0),m>6&&si(e,t,6,a)&&(d=!0),m>7&&si(e,t,7,u)&&(d=!0),m>8&&si(e,t,8,c)&&(d=!0),m>9&&si(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;m>0&&(d+=go(n,p[0])),m>1&&(d+=go(i,p[1])),m>2&&(d+=go(s,p[2])),m>3&&(d+=go(r,p[3])),m>4&&(d+=go(o,p[4])),m>5&&(d+=go(l,p[5])),m>6&&(d+=go(a,p[6])),m>7&&(d+=go(u,p[7])),m>8&&(d+=go(c,p[8])),m>9&&(d+=go(h,p[9]));const f=$n(e,t.nodeIndex).renderText;e.renderer.setValue(f,d)}return d}(e,t,n,i,s,r,o,l,a,u,c,h);case 16384:return function(e,t,n,i,s,r,o,l,a,u,c,h){const d=qn(e,t.nodeIndex),p=d.instance;let m=!1,f=void 0;const g=t.bindings.length;return g>0&&ii(e,t,0,n)&&(m=!0,f=ks(e,d,t,0,n,f)),g>1&&ii(e,t,1,i)&&(m=!0,f=ks(e,d,t,1,i,f)),g>2&&ii(e,t,2,s)&&(m=!0,f=ks(e,d,t,2,s,f)),g>3&&ii(e,t,3,r)&&(m=!0,f=ks(e,d,t,3,r,f)),g>4&&ii(e,t,4,o)&&(m=!0,f=ks(e,d,t,4,o,f)),g>5&&ii(e,t,5,l)&&(m=!0,f=ks(e,d,t,5,l,f)),g>6&&ii(e,t,6,a)&&(m=!0,f=ks(e,d,t,6,a,f)),g>7&&ii(e,t,7,u)&&(m=!0,f=ks(e,d,t,7,u,f)),g>8&&ii(e,t,8,c)&&(m=!0,f=ks(e,d,t,8,c,f)),g>9&&ii(e,t,9,h)&&(m=!0,f=ks(e,d,t,9,h,f)),f&&p.ngOnChanges(f),65536&t.flags&&zn(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),m}(e,t,n,i,s,r,o,l,a,u,c,h);case 32:case 64:case 128:return function(e,t,n,i,s,r,o,l,a,u,c,h){const d=t.bindings;let p=!1;const m=d.length;if(m>0&&si(e,t,0,n)&&(p=!0),m>1&&si(e,t,1,i)&&(p=!0),m>2&&si(e,t,2,s)&&(p=!0),m>3&&si(e,t,3,r)&&(p=!0),m>4&&si(e,t,4,o)&&(p=!0),m>5&&si(e,t,5,l)&&(p=!0),m>6&&si(e,t,6,a)&&(p=!0),m>7&&si(e,t,7,u)&&(p=!0),m>8&&si(e,t,8,c)&&(p=!0),m>9&&si(e,t,9,h)&&(p=!0),p){const p=Yn(e,t.nodeIndex);let f;switch(201347067&t.flags){case 32:f=new Array(d.length),m>0&&(f[0]=n),m>1&&(f[1]=i),m>2&&(f[2]=s),m>3&&(f[3]=r),m>4&&(f[4]=o),m>5&&(f[5]=l),m>6&&(f[6]=a),m>7&&(f[7]=u),m>8&&(f[8]=c),m>9&&(f[9]=h);break;case 64:f={},m>0&&(f[d[0].name]=n),m>1&&(f[d[1].name]=i),m>2&&(f[d[2].name]=s),m>3&&(f[d[3].name]=r),m>4&&(f[d[4].name]=o),m>5&&(f[d[5].name]=l),m>6&&(f[d[6].name]=a),m>7&&(f[d[7].name]=u),m>8&&(f[d[8].name]=c),m>9&&(f[d[9].name]=h);break;case 128:const e=n;switch(m){case 1:f=e.transform(n);break;case 2:f=e.transform(i);break;case 3:f=e.transform(i,s);break;case 4:f=e.transform(i,s,r);break;case 5:f=e.transform(i,s,r,o);break;case 6:f=e.transform(i,s,r,o,l);break;case 7:f=e.transform(i,s,r,o,l,a);break;case 8:f=e.transform(i,s,r,o,l,a,u);break;case 9:f=e.transform(i,s,r,o,l,a,u,c);break;case 10:f=e.transform(i,s,r,o,l,a,u,c,h)}}p.value=f}return p}(e,t,n,i,s,r,o,l,a,u,c,h);default:throw"unreachable"}}(e,t,i,s,r,o,l,a,u,c,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let i=!1;for(let s=0;s<n.length;s++)to(e,t,s,n[s])&&(i=!0);return i}(e,t,n);case 2:return function(e,t,n){const i=t.bindings;let s=!1;for(let r=0;r<n.length;r++)si(e,t,r,n[r])&&(s=!0);if(s){let s="";for(let e=0;e<n.length;e++)s+=go(n[e],i[e]);s=t.text.prefix+s;const r=$n(e,t.nodeIndex).renderText;e.renderer.setValue(r,s)}return s}(e,t,n);case 16384:return function(e,t,n){const i=qn(e,t.nodeIndex),s=i.instance;let r=!1,o=void 0;for(let l=0;l<n.length;l++)ii(e,t,l,n[l])&&(r=!0,o=ks(e,i,t,l,n[l],o));return o&&s.ngOnChanges(o),65536&t.flags&&zn(e,256,t.nodeIndex)&&s.ngOnInit(),262144&t.flags&&s.ngDoCheck(),r}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const i=t.bindings;let s=!1;for(let r=0;r<n.length;r++)si(e,t,r,n[r])&&(s=!0);if(s){const s=Yn(e,t.nodeIndex);let r;switch(201347067&t.flags){case 32:r=n;break;case 64:r={};for(let s=0;s<n.length;s++)r[i[s].name]=n[s];break;case 128:const e=n[0],t=n.slice(1);r=e.transform(...t)}s.value=r}return s}(e,t,n);default:throw"unreachable"}}(e,t,i)}function To(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const i=t.nodes[n];if(4&i.flags){const t=Hn(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const i=t[n];i.state|=32,li(i,e)}}else 0==(4&i.childFlags)&&(n+=i.childCount)}}function Io(e,t,n,i,s,r,o,l,a,u,c,h,d){return 0===n?function(e,t,n,i,s,r,o,l,a,u,c,h){const d=t.bindings.length;d>0&&ri(e,t,0,n),d>1&&ri(e,t,1,i),d>2&&ri(e,t,2,s),d>3&&ri(e,t,3,r),d>4&&ri(e,t,4,o),d>5&&ri(e,t,5,l),d>6&&ri(e,t,6,a),d>7&&ri(e,t,7,u),d>8&&ri(e,t,8,c),d>9&&ri(e,t,9,h)}(e,t,i,s,r,o,l,a,u,c,h,d):function(e,t,n){for(let i=0;i<n.length;i++)ri(e,t,i,n[i])}(e,t,i),!1}function Oo(e,t){if(Wn(e,t.nodeIndex).dirty)throw Ln(Gn.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function Ro(e){if(!(128&e.state)){if(Mo(e,Po.Destroy),No(e,Po.Destroy),As(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(!(16&e.state))return;const t=ui(e);if(t){const n=t.template._projectedViews;n&&(ji(n,n.indexOf(e)),Gn.dirtyParentQueries(e))}}(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const t=e.def.nodes[n];1&t.flags?e.renderer.destroyNode(Hn(e,n).renderElement):2&t.flags?e.renderer.destroyNode($n(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&Wn(e,n).destroy()}}(e),di(e)&&e.renderer.destroy(),e.state|=128}}const Po=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function No(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let i=0;i<n.nodes.length;i++){const s=n.nodes[i];33554432&s.flags?Fo(Hn(e,i).componentView,t):0==(33554432&s.childFlags)&&(i+=s.childCount)}}function Mo(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let i=0;i<n.nodes.length;i++){const s=n.nodes[i];if(16777216&s.flags){const n=Hn(e,i).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)Fo(n[e],t)}else 0==(16777216&s.childFlags)&&(i+=s.childCount)}}function Fo(e,t){const n=e.state;switch(t){case Po.CheckNoChanges:0==(128&n)&&(12==(12&n)?ko(e):64&n&&Vo(e,Po.CheckNoChangesProjectedViews));break;case Po.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?ko(e):64&n&&Vo(e,t));break;case Po.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Ao(e):64&n&&Vo(e,Po.CheckAndUpdateProjectedViews));break;case Po.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Ao(e):64&n&&Vo(e,t));break;case Po.Destroy:Ro(e);break;case Po.CreateViewNodes:xo(e)}}function Vo(e,t){Mo(e,t),No(e,t)}function Lo(e,t,n,i){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const s=e.def.nodes.length;for(let r=0;r<s;r++){const s=e.def.nodes[r];if(s.flags&t&&s.flags&n)switch(Gn.setCurrentNode(e,s.nodeIndex),i){case 0:so(e,s);break;case 1:Oo(e,s)}s.childFlags&t&&s.childFlags&n||(r+=s.childCount)}}let Uo=!1;function Bo(e,t,n,i,s,r){const o=s.injector.get(hn);return wo(zo(e,s,o,t,n),i,r)}function jo(e,t,n,i,s,r){const o=s.injector.get(hn),l=zo(e,s,new bl(o),t,n),a=Xo(i);return yl(sl.create,wo,null,[l,a,r])}function zo(e,t,n,i,s){const r=t.injector.get(Ot),o=t.injector.get(Vt),l=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:i,selectorOrNode:s,sanitizer:r,rendererFactory:n,renderer:l,errorHandler:o}}function $o(e,t,n,i){const s=Xo(n);return yl(sl.create,bo,null,[e,t,s,i])}function Ho(e,t,n,i){return n=Go.get(t.element.componentProvider.provider.token)||Xo(n),yl(sl.create,Co,null,[e,t,n,i])}function qo(e,t,n,i){return is(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===Yo.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(e=>{const i=Yo.get(e.token);3840&e.flags&&i&&(t=!0,n=n||i.deprecatedBehavior)}),e.modules.forEach(e=>{Wo.forEach((i,s)=>{fe(s).providedIn===e&&(t=!0,n=n||i.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t<e.providers.length;t++){const i=e.providers[t];n&&(i.flags|=4096);const s=Yo.get(i.token);s&&(i.flags=-3841&i.flags|s.flags,i.deps=gi(s.deps),i.value=s.value)}if(Wo.size>0){let t=new Set(e.modules);Wo.forEach((i,s)=>{if(t.has(fe(s).providedIn)){let t={token:s,flags:i.flags|(n?4096:0),deps:gi(i.deps),value:i.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Qn(s)]=t}})}}(e=e.factory(()=>Kn)),e):e}(i))}const Yo=new Map,Wo=new Map,Go=new Map;function Ko(e){let t;Yo.set(e.token,e),"function"==typeof e.token&&(t=fe(e.token))&&"function"==typeof t.providedIn&&Wo.set(e.token,e)}function Zo(e,t){const n=vi(t.viewDefFactory),i=vi(n.nodes[0].element.componentView);Go.set(e,i)}function Qo(){Yo.clear(),Wo.clear(),Go.clear()}function Xo(e){if(0===Yo.size)return e;const t=function(e){const t=[];let n=null;for(let i=0;i<e.nodes.length;i++){const s=e.nodes[i];1&s.flags&&(n=s),n&&3840&s.flags&&Yo.has(s.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>Kn);for(let i=0;i<t.length;i++)n(e,t[i]);return e;function n(e,t){for(let n=t+1;n<e.nodes.length;n++){const t=e.nodes[n];if(1&t.flags)return;if(3840&t.flags){const e=t.provider,n=Yo.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=gi(n.deps),e.value=n.value)}}}}function Jo(e,t,n,i,s,r,o,l,a,u,c,h,d){const p=e.def.nodes[t];return Do(e,p,n,i,s,r,o,l,a,u,c,h,d),224&p.flags?Yn(e,t).value:void 0}function el(e,t,n,i,s,r,o,l,a,u,c,h,d){const p=e.def.nodes[t];return Io(e,p,n,i,s,r,o,l,a,u,c,h,d),224&p.flags?Yn(e,t).value:void 0}function tl(e){return yl(sl.detectChanges,Ao,null,[e])}function nl(e){return yl(sl.checkNoChanges,ko,null,[e])}function il(e){return yl(sl.destroy,Ro,null,[e])}const sl=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();let rl,ol,ll;function al(e,t){ol=e,ll=t}function ul(e,t,n,i){return al(e,t),yl(sl.handleEvent,e.def.handleEvent,null,[e,t,n,i])}function cl(e,t){if(128&e.state)throw Bn(sl[rl]);return al(e,ml(e,0)),e.def.updateDirectives((function(e,n,i,...s){const r=e.def.nodes[n];return 0===t?dl(e,r,i,s):pl(e,r,i,s),16384&r.flags&&al(e,ml(e,n)),224&r.flags?Yn(e,r.nodeIndex).value:void 0}),e)}function hl(e,t){if(128&e.state)throw Bn(sl[rl]);return al(e,fl(e,0)),e.def.updateRenderer((function(e,n,i,...s){const r=e.def.nodes[n];return 0===t?dl(e,r,i,s):pl(e,r,i,s),3&r.flags&&al(e,fl(e,n)),224&r.flags?Yn(e,r.nodeIndex).value:void 0}),e)}function dl(e,t,n,i){if(Do(e,t,n,...i)){const o=1===n?i[0]:i;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const i=t.bindings[e],l=o[e];8&i.flags&&(n[(s=i.nonMinifiedName,r=void 0,r=s.replace(/[$@]/g,"_"),`ng-reflect-${s=r.replace(Lt,(...e)=>"-"+e[1].toLowerCase())}`)]=Ut(l))}const i=t.parent,l=Hn(e,i.nodeIndex).renderElement;if(i.element.name)for(let t in n){const i=n[t];null!=i?e.renderer.setAttribute(l,t,i):e.renderer.removeAttribute(l,t)}else e.renderer.setValue(l,`bindings=${JSON.stringify(n,null,2)}`)}}var s,r}function pl(e,t,n,i){Io(e,t,n,...i)}function ml(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(16384&t.flags&&t.bindings&&t.bindings.length)return n}return null}function fl(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(3&t.flags&&t.bindings&&t.bindings.length)return n}return null}class gl{constructor(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];let n=this.nodeDef,i=e;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&i;)n=ci(i),i=i.parent;this.elDef=n,this.elView=i}get elOrCompView(){return Hn(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return Xi(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const e=[];if(this.elDef)for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}get references(){const e={};if(this.elDef){_l(this.elView,this.elDef,e);for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&_l(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!di(e);)e=e.parent;return e.parent?Hn(e.parent,ci(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?hi(this.view,this.nodeDef):hi(this.elView,this.elDef)}logError(e,...t){let n,i;2&this.nodeDef.flags?(n=this.view.def,i=this.nodeDef.nodeIndex):(n=this.elView.def,i=this.elDef.nodeIndex);const s=function(e,t){let n=-1;for(let i=0;i<=t;i++)3&e.nodes[i].flags&&n++;return n}(n,i);let r=-1;n.factory(()=>(r++,r===s?e.error.bind(e,...t):Kn)),r<s&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function _l(e,t,n){for(let i in t.references)n[i]=oo(e,t,t.references[i])}function yl(e,t,n,i){const s=rl,r=ol,o=ll;try{rl=e;const l=t.apply(n,i);return ol=r,ll=o,rl=s,l}catch(l){if(Nt(l)||!ol)throw l;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),Un(e,t),e}(l,vl())}}function vl(){return ol?new gl(ol,ll):null}class bl{constructor(e){this.delegate=e}createRenderer(e,t){return new wl(this.delegate.createRenderer(e,t))}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 wl{constructor(e){this.delegate=e,this.debugContextFactory=vl,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){!function(e){jr.delete(e.nativeNode)}(zr(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),i=this.createDebugContext(n);if(i){const t=new Br(n,null,i);t.name=e,$r(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&$r(new Ur(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&$r(new Ur(t,null,n)),t}appendChild(e,t){const n=zr(e),i=zr(t);n&&i&&n instanceof Br&&n.addChild(i),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const i=zr(e),s=zr(t),r=zr(n);i&&s&&i instanceof Br&&i.insertBefore(r,s),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=zr(e),i=zr(t);n&&i&&n instanceof Br&&n.removeChild(i),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),i=vl();return i&&$r(new Br(n,null,i)),n}setAttribute(e,t,n,i){const s=zr(e);s&&s instanceof Br&&(s.attributes[i?i+":"+t:t]=n),this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){const i=zr(e);i&&i instanceof Br&&(i.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=zr(e);n&&n instanceof Br&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=zr(e);n&&n instanceof Br&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,i){const s=zr(e);s&&s instanceof Br&&(s.styles[t]=n),this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){const i=zr(e);i&&i instanceof Br&&(i.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const i=zr(e);i&&i instanceof Br&&(i.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const i=zr(e);i&&i.listeners.push(new Lr(t,n))}return this.delegate.listen(e,t,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setValue(e,t){return this.delegate.setValue(e,t)}}function Cl(e,t,n){return new Sl(e,t,n)}class Sl extends on{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){!function(){if(Uo)return;Uo=!0;const e=at()?{setCurrentNode:al,createRootView:jo,createEmbeddedView:$o,createComponentView:Ho,createNgModuleRef:qo,overrideProvider:Ko,overrideComponentView:Zo,clearOverrides:Qo,checkAndUpdateView:tl,checkNoChangesView:nl,destroyView:il,createDebugContext:(e,t)=>new gl(e,t),handleEvent:ul,updateDirectives:cl,updateRenderer:hl}:{setCurrentNode:()=>{},createRootView:Bo,createEmbeddedView:bo,createComponentView:Co,createNgModuleRef:is,overrideProvider:Kn,overrideComponentView:Kn,clearOverrides:Kn,checkAndUpdateView:Ao,checkNoChangesView:ko,destroyView:Ro,createDebugContext:(e,t)=>new gl(e,t),handleEvent:(e,t,n,i)=>e.def.handleEvent(e,t,n,i),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?Jo:el,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?Jo:el,e)};Gn.setCurrentNode=e.setCurrentNode,Gn.createRootView=e.createRootView,Gn.createEmbeddedView=e.createEmbeddedView,Gn.createComponentView=e.createComponentView,Gn.createNgModuleRef=e.createNgModuleRef,Gn.overrideProvider=e.overrideProvider,Gn.overrideComponentView=e.overrideComponentView,Gn.clearOverrides=e.clearOverrides,Gn.checkAndUpdateView=e.checkAndUpdateView,Gn.checkNoChangesView=e.checkNoChangesView,Gn.destroyView=e.destroyView,Gn.resolveDep=Es,Gn.createDebugContext=e.createDebugContext,Gn.handleEvent=e.handleEvent,Gn.updateDirectives=e.updateDirectives,Gn.updateRenderer=e.updateRenderer,Gn.dirtyParentQueries=io}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),i={};for(const s in e.providersByKey)i[s]=e.providersByKey[s];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:i}}(vi(this._ngModuleDefFactory));return Gn.createNgModuleRef(this.moduleType,e||qe.NULL,this._bootstrapComponents,t)}}class El{constructor(){this.title="Bill"}}class xl{constructor(e,t,n){this.http=e,this.router=t,this.route=n,this.bills=new Array,this.preventSingleClick=!1,this.sortUp=new Array,this.filteredBills=new Array,this.totalRows=0,this.max=100,this.start=51,this.showLoadMore=!0}ngOnInit(){var e="/api/Bill/GetBill/0/"+this.max;this.searchText=this.route.snapshot.queryParamMap.get("search"),this.http.get(e).toPromise().then(e=>{this.bills=e.Items,this.filteredBills=this.bills,this.Count()})}LoadAll(){this.http.get("/api/Bill/GetBill/100/"+this.totalRows).toPromise().then(e=>{for(var t=0;t<e.Items.length;t++)this.bills.push(e.Items[t]),this.start++;this.showLoadMore=!1})}LoadMore(){this.start<this.totalRows?this.http.get("/api/Bill/GetBill/"+this.start+"/"+this.max).toPromise().then(e=>{for(var t=0;t<e.Items.length;t++)this.bills.push(e.Items[t]),this.start++;this.start==this.totalRows&&(this.showLoadMore=!1)}):this.showLoadMore=!1}Count(){this.http.get("/api/Bill/Count/").toPromise().then(e=>{this.totalRows=e})}doubleClick(e){this.preventSingleClick=!0,clearTimeout(this.timer),this.router.navigate(["/edit/"],{queryParams:{id:e.currentTarget.children[0].innerText}})}Sort(e){switch(e){case"BillId":this.sortUp[0]=!this.sortUp[0],this.filteredBills.sort(this.sortUp[0]?(e,t)=>e.BillId-t.BillId:(e,t)=>t.BillId-e.BillId);break;case"VendorName":this.sortUp[1]=!this.sortUp[1],this.filteredBills.sort(this.sortUp[1]?(e,t)=>e.Vendor.VendorName.toLocaleLowerCase().localeCompare(t.Vendor.VendorName.toLocaleLowerCase()):(e,t)=>t.Vendor.VendorName.toLocaleLowerCase().localeCompare(e.Vendor.VendorName.toLocaleLowerCase()));break;case"BillDate":this.sortUp[2]=!this.sortUp[2],this.filteredBills.sort(this.sortUp[2]?(e,t)=>new Date(e.BillDate).getTime()-new Date(t.BillDate).getTime():(e,t)=>new Date(t.BillDate).getTime()-new Date(e.BillDate).getTime());break;case"Amount":this.sortUp[4]=!this.sortUp[4],this.filteredBills.sort(this.sortUp[4]?(e,t)=>e.Amount-t.Amount:(e,t)=>t.Amount-e.Amount);break;case"UsdAmount":this.sortUp[4]=!this.sortUp[4],this.filteredBills.sort(this.sortUp[4]?(e,t)=>e.UsdAmount-t.UsdAmount:(e,t)=>t.UsdAmount-e.UsdAmount);break;case"Paid":this.sortUp[5]=!this.sortUp[5],this.filteredBills.sort(this.sortUp[5]?(e,t)=>e.Paid-t.Paid:(e,t)=>t.Paid-e.Paid)}}}class kl{}class Al{}class Dl{}const Tl=new ke("Location Initialized");class Il{}const Ol=new ke("appBaseHref");let Rl=(()=>{class e{constructor(t,n){this._subject=new Vs,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=e.stripTrailingSlash(Pl(i)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+e.normalizeQueryParams(n))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Pl(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(t,n="",i=null){this._platformStrategy.pushState(i,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),i)}replaceState(t,n="",i=null){this._platformStrategy.replaceState(i,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}static normalizeQueryParams(e){return e&&"?"!==e[0]?"?"+e:e}static joinWithSlash(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}static stripTrailingSlash(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}return e})();function Pl(e){return e.replace(/\/index.html$/,"")}let Nl=(()=>(class extends Il{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=Rl.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,i){let s=this.prepareExternalUrl(n+Rl.normalizeQueryParams(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,i){let s=this.prepareExternalUrl(n+Rl.normalizeQueryParams(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}))(),Ml=(()=>(class extends Il{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)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=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Rl.joinWithSlash(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+Rl.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,i){const s=this.prepareExternalUrl(n+Rl.normalizeQueryParams(i));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,i){const s=this.prepareExternalUrl(n+Rl.normalizeQueryParams(i));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}))();const Fl=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),Vl=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),Ll=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),Ul=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),Bl=function(){var e={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 e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function jl(e,t){return Yl(Ms(e)[Rs.DateFormat],t)}function zl(e,t){return Yl(Ms(e)[Rs.TimeFormat],t)}function $l(e,t){return Yl(Ms(e)[Rs.DateTimeFormat],t)}function Hl(e,t){const n=Ms(e),i=n[Rs.NumberSymbols][t];if(void 0===i){if(t===Bl.CurrencyDecimal)return n[Rs.NumberSymbols][Bl.Decimal];if(t===Bl.CurrencyGroup)return n[Rs.NumberSymbols][Bl.Group]}return i}function ql(e){if(!e[Rs.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Rs.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Yl(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function Wl(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const Gl=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Kl={},Zl=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Ql=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),Xl=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),Jl=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function ea(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function ta(e,t,n="-",i,s){let r="";(e<0||s&&e<=0)&&(s?e=1-e:(e=-e,r=n));let o=String(e);for(;o.length<t;)o="0"+o;return i&&(o=o.substr(o.length-t)),r+o}function na(e,t,n=0,i=!1,s=!1){return function(r,o){let l=function(e,t){switch(e){case Xl.FullYear:return t.getFullYear();case Xl.Month:return t.getMonth();case Xl.Date:return t.getDate();case Xl.Hours:return t.getHours();case Xl.Minutes:return t.getMinutes();case Xl.Seconds:return t.getSeconds();case Xl.FractionalSeconds:return t.getMilliseconds();case Xl.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,r);if((n>0||l>-n)&&(l+=n),e===Xl.Hours)0===l&&-12===n&&(l=12);else if(e===Xl.FractionalSeconds)return a=t,ta(l,3).substr(0,a);var a;const u=Hl(o,Bl.MinusSign);return ta(l,t,u,i,s)}}function ia(e,t,n=Vl.Format,i=!1){return function(s,r){return function(e,t,n,i,s,r){switch(n){case Jl.Months:return function(e,t,n){const i=Ms(e),s=Yl([i[Rs.MonthsFormat],i[Rs.MonthsStandalone]],t);return Yl(s,n)}(t,s,i)[e.getMonth()];case Jl.Days:return function(e,t,n){const i=Ms(e),s=Yl([i[Rs.DaysFormat],i[Rs.DaysStandalone]],t);return Yl(s,n)}(t,s,i)[e.getDay()];case Jl.DayPeriods:const o=e.getHours(),l=e.getMinutes();if(r){const e=function(e){const t=Ms(e);return ql(t),(t[Rs.ExtraData][2]||[]).map(e=>"string"==typeof e?Wl(e):[Wl(e[0]),Wl(e[1])])}(t),n=function(e,t,n){const i=Ms(e);ql(i);const s=Yl([i[Rs.ExtraData][0],i[Rs.ExtraData][1]],t)||[];return Yl(s,n)||[]}(t,s,i);let r;if(e.forEach((e,t)=>{if(Array.isArray(e)){const{hours:i,minutes:s}=e[0],{hours:a,minutes:u}=e[1];o>=i&&l>=s&&(o<a||o===a&&l<u)&&(r=n[t])}else{const{hours:i,minutes:s}=e;i===o&&s===l&&(r=n[t])}}),r)return r}return function(e,t,n){const i=Ms(e),s=Yl([i[Rs.DayPeriodsFormat],i[Rs.DayPeriodsStandalone]],t);return Yl(s,n)}(t,s,i)[o<12?0:1];case Jl.Eras:return function(e,t){return Yl(Ms(e)[Rs.Eras],t)}(t,i)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(s,r,e,t,n,i)}}function sa(e){return function(t,n,i){const s=-1*i,r=Hl(n,Bl.MinusSign),o=s>0?Math.floor(s/60):Math.ceil(s/60);switch(e){case Ql.Short:return(s>=0?"+":"")+ta(o,2,r)+ta(Math.abs(s%60),2,r);case Ql.ShortGMT:return"GMT"+(s>=0?"+":"")+ta(o,1,r);case Ql.Long:return"GMT"+(s>=0?"+":"")+ta(o,2,r)+":"+ta(Math.abs(s%60),2,r);case Ql.Extended:return 0===i?"Z":(s>=0?"+":"")+ta(o,2,r)+":"+ta(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${e}"`)}}}const ra=0,oa=4;function la(e,t=!1){return function(n,i){let s;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();s=1+Math.floor((t+e)/7)}else{const e=function(e){const t=new Date(e,ra,1).getDay();return new Date(e,0,1+(t<=oa?oa:oa+7)-t)}(n.getFullYear()),t=(r=n,new Date(r.getFullYear(),r.getMonth(),r.getDate()+(oa-r.getDay()))).getTime()-e.getTime();s=1+Math.round(t/6048e5)}var r;return ta(s,e,Hl(i,Bl.MinusSign))}}const aa={};function ua(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function ca(e){return e instanceof Date&&!isNaN(e.valueOf())}const ha=new ke("UseV4Plurals");class da{}let pa=(()=>(class extends da{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return Ms(e)[Rs.PluralCase]}(t||this.locale)(e)){case Fl.Zero:return"zero";case Fl.One:return"one";case Fl.Two:return"two";case Fl.Few:return"few";case Fl.Many:return"many";default:return"other"}}}))();function ma(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[i,s]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(i.trim()===t)return decodeURIComponent(s)}return null}class fa{}let ga=(()=>(class{constructor(e,t,n,i){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=i,this._initialClasses=[]}getValue(){return null}setClass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}setNgClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(qt(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}applyChanges(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${_e(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}))(),_a=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})(),ya=(()=>(class extends _a{constructor(e){super(e)}set klass(e){this._delegate.setClass(e)}set ngClass(e){this._delegate.setNgClass(e)}ngDoCheck(){this._delegate.applyChanges()}}))();class va{constructor(e,t,n,i){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=i}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 ba=(()=>(class{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){at()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}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(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,i)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new va(null,this._ngForOf,-1,-1),i),s=new wa(e,n);t.push(s)}else if(null==i)this._viewContainer.remove(n);else{const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new wa(e,s);t.push(r)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=i,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}))();class wa{constructor(e,t){this.record=e,this.view=t}}let Ca=(()=>(class{constructor(e,t){this._viewContainer=e,this._context=new Sa,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Ea("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Ea("ngIfElse",e),this._elseTemplateRef=e,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 Sa{constructor(){this.$implicit=null,this.ngIf=null}}function Ea(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${_e(t)}'.`)}class xa{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let ka=(()=>(class{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}))(),Aa=(()=>(class{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new xa(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}))();function Da(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${_e(e)}'`)}class Ta{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class Ia{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const Oa=new Ia,Ra=new Ta;let Pa=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):zt(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,Ht.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(Wt(t))return Oa;if(Gt(t))return Ra;throw Da(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e})(),Na=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",i,s){if(null==t||""===t||t!=t)return null;try{return function(e,t,n,i){let s=function(e){if(ca(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){const[t,n,i]=e.split("-").map(e=>+e);return new Date(t,n-1,i)}let n;if(n=e.match(Gl))return function(e){const t=new Date(0);let n=0,i=0;const s=e[8]?t.setUTCFullYear:t.setFullYear,r=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),s.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const o=Number(e[4]||0)-n,l=Number(e[5]||0)-i,a=Number(e[6]||0),u=Math.round(1e3*parseFloat("0."+(e[7]||0)));return r.call(t,o,l,a,u),t}(n)}const t=new Date(e);if(!ca(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=function e(t,n){const i=function(e){return Ms(e)[Rs.LocaleId]}(t);if(Kl[i]=Kl[i]||{},Kl[i][n])return Kl[i][n];let s="";switch(n){case"shortDate":s=jl(t,Ul.Short);break;case"mediumDate":s=jl(t,Ul.Medium);break;case"longDate":s=jl(t,Ul.Long);break;case"fullDate":s=jl(t,Ul.Full);break;case"shortTime":s=zl(t,Ul.Short);break;case"mediumTime":s=zl(t,Ul.Medium);break;case"longTime":s=zl(t,Ul.Long);break;case"fullTime":s=zl(t,Ul.Full);break;case"short":const n=e(t,"shortTime"),i=e(t,"shortDate");s=ea($l(t,Ul.Short),[n,i]);break;case"medium":const r=e(t,"mediumTime"),o=e(t,"mediumDate");s=ea($l(t,Ul.Medium),[r,o]);break;case"long":const l=e(t,"longTime"),a=e(t,"longDate");s=ea($l(t,Ul.Long),[l,a]);break;case"full":const u=e(t,"fullTime"),c=e(t,"fullDate");s=ea($l(t,Ul.Full),[u,c])}return s&&(Kl[i][n]=s),s}(n,t)||t;let r,o=[];for(;t;){if(r=Zl.exec(t),!r){o.push(t);break}{o=o.concat(r.slice(1));const e=o.pop();if(!e)break;t=e}}let l=s.getTimezoneOffset();i&&(l=ua(i,l),s=function(e,t,n){const i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(ua(t,i)-i))}(s,i));let a="";return o.forEach(e=>{const t=function(e){if(aa[e])return aa[e];let t;switch(e){case"G":case"GG":case"GGG":t=ia(Jl.Eras,Ll.Abbreviated);break;case"GGGG":t=ia(Jl.Eras,Ll.Wide);break;case"GGGGG":t=ia(Jl.Eras,Ll.Narrow);break;case"y":t=na(Xl.FullYear,1,0,!1,!0);break;case"yy":t=na(Xl.FullYear,2,0,!0,!0);break;case"yyy":t=na(Xl.FullYear,3,0,!1,!0);break;case"yyyy":t=na(Xl.FullYear,4,0,!1,!0);break;case"M":case"L":t=na(Xl.Month,1,1);break;case"MM":case"LL":t=na(Xl.Month,2,1);break;case"MMM":t=ia(Jl.Months,Ll.Abbreviated);break;case"MMMM":t=ia(Jl.Months,Ll.Wide);break;case"MMMMM":t=ia(Jl.Months,Ll.Narrow);break;case"LLL":t=ia(Jl.Months,Ll.Abbreviated,Vl.Standalone);break;case"LLLL":t=ia(Jl.Months,Ll.Wide,Vl.Standalone);break;case"LLLLL":t=ia(Jl.Months,Ll.Narrow,Vl.Standalone);break;case"w":t=la(1);break;case"ww":t=la(2);break;case"W":t=la(1,!0);break;case"d":t=na(Xl.Date,1);break;case"dd":t=na(Xl.Date,2);break;case"E":case"EE":case"EEE":t=ia(Jl.Days,Ll.Abbreviated);break;case"EEEE":t=ia(Jl.Days,Ll.Wide);break;case"EEEEE":t=ia(Jl.Days,Ll.Narrow);break;case"EEEEEE":t=ia(Jl.Days,Ll.Short);break;case"a":case"aa":case"aaa":t=ia(Jl.DayPeriods,Ll.Abbreviated);break;case"aaaa":t=ia(Jl.DayPeriods,Ll.Wide);break;case"aaaaa":t=ia(Jl.DayPeriods,Ll.Narrow);break;case"b":case"bb":case"bbb":t=ia(Jl.DayPeriods,Ll.Abbreviated,Vl.Standalone,!0);break;case"bbbb":t=ia(Jl.DayPeriods,Ll.Wide,Vl.Standalone,!0);break;case"bbbbb":t=ia(Jl.DayPeriods,Ll.Narrow,Vl.Standalone,!0);break;case"B":case"BB":case"BBB":t=ia(Jl.DayPeriods,Ll.Abbreviated,Vl.Format,!0);break;case"BBBB":t=ia(Jl.DayPeriods,Ll.Wide,Vl.Format,!0);break;case"BBBBB":t=ia(Jl.DayPeriods,Ll.Narrow,Vl.Format,!0);break;case"h":t=na(Xl.Hours,1,-12);break;case"hh":t=na(Xl.Hours,2,-12);break;case"H":t=na(Xl.Hours,1);break;case"HH":t=na(Xl.Hours,2);break;case"m":t=na(Xl.Minutes,1);break;case"mm":t=na(Xl.Minutes,2);break;case"s":t=na(Xl.Seconds,1);break;case"ss":t=na(Xl.Seconds,2);break;case"S":t=na(Xl.FractionalSeconds,1);break;case"SS":t=na(Xl.FractionalSeconds,2);break;case"SSS":t=na(Xl.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=sa(Ql.Short);break;case"ZZZZZ":t=sa(Ql.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=sa(Ql.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=sa(Ql.Long);break;default:return null}return aa[e]=t,t}(e);a+=t?t(s,n,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),a}(t,n,s||this.locale,i)}catch(r){throw Da(e,r.message)}}}return e})(),Ma=(()=>(class{}))();const Fa=new ke("DocumentToken"),Va="browser";let La=(()=>{class e{}return e.ngInjectableDef=me({token:e,providedIn:"root",factory:()=>new Ua(Ue(Fa),window,Ue(Vt))}),e})();class Ua{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const t=this.document.querySelector(`#${e}`);if(t)return void this.scrollToElement(t);const n=this.document.querySelector(`[name='${e}']`);if(n)return void this.scrollToElement(n)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}let Ba=null;function ja(){return Ba}class za{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class $a extends za{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const e=this.createElement("div",document);if(null!=this.getStyle(e,"animationName"))this._animationPrefix="";else{const t=["Webkit","Moz","O","ms"];for(let n=0;n<t.length;n++)if(null!=this.getStyle(e,t[n]+"AnimationName")){this._animationPrefix="-"+t[n].toLowerCase()+"-";break}}const t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(t).forEach(n=>{null!=this.getStyle(e,n)&&(this._transitionEnd=t[n])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+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 Ha={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},qa=3,Ya={"\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"},Wa={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"},Ga=(()=>{if(xe.Node)return xe.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class Ka extends $a{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new Ka,Ba||(Ba=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return Ha}contains(e,t){return Ga.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let i=0;i<t.length;i++)n[i]=t[i];return n}clearNodes(e){for(;e.firstChild;)e.removeChild(e.firstChild)}appendChild(e,t){e.appendChild(t)}removeChild(e,t){e.removeChild(t)}replaceChild(e,t,n){e.replaceChild(t,n)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}insertBefore(e,t,n){e.insertBefore(n,t)}insertAllBefore(e,t,n){n.forEach(n=>e.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const i=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return i.setAttribute(e,t),i}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const i=this.getStyle(e,t)||"";return n?i==n:i.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let i=0;i<n.length;i++){const e=n.item(i);t.set(e.name,e.value)}return t}hasAttribute(e,t){return e.hasAttribute(t)}hasAttributeNS(e,t,n){return e.hasAttributeNS(t,n)}getAttribute(e,t){return e.getAttribute(t)}getAttributeNS(e,t,n){return e.getAttributeNS(t,n)}setAttribute(e,t,n){e.setAttribute(t,n)}setAttributeNS(e,t,n,i){e.setAttributeNS(t,n,i)}removeAttribute(e,t){e.removeAttribute(t)}removeAttributeNS(e,t,n){e.removeAttributeNS(t,n)}templateAwareRoot(e){return this.isTemplateElement(e)?this.content(e):e}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}getBoundingClientRect(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}}getTitle(e){return e.title}setTitle(e,t){e.title=t||""}elementMatches(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))}isTemplateElement(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName}isTextNode(e){return e.nodeType===Node.TEXT_NODE}isCommentNode(e){return e.nodeType===Node.COMMENT_NODE}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}hasShadowRoot(e){return null!=e.shadowRoot&&e instanceof HTMLElement}isShadowRoot(e){return e instanceof DocumentFragment}importIntoDoc(e){return document.importNode(this.templateAwareRoot(e),!0)}adoptNode(e){return document.adoptNode(e)}getHref(e){return e.getAttribute("href")}getEventKey(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),e.location===qa&&Wa.hasOwnProperty(t)&&(t=Wa[t]))}return Ya[t]||t}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=Qa||(Qa=document.querySelector("base"),Qa)?Qa.getAttribute("href"):null;return null==t?null:(n=t,Za||(Za=document.createElement("a")),Za.setAttribute("href",n),"/"===Za.pathname.charAt(0)?Za.pathname:"/"+Za.pathname);var n}resetBaseElement(){Qa=null}getUserAgent(){return window.navigator.userAgent}setData(e,t,n){this.setAttribute(e,"data-"+t,n)}getData(e,t){return this.getAttribute(e,"data-"+t)}getComputedStyle(e){return getComputedStyle(e)}supportsWebAnimation(){return"function"==typeof Element.prototype.animate}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return ma(document.cookie,e)}setCookie(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)}}let Za,Qa=null;function Xa(){return!!window.history.pushState}let Ja=(()=>{class e extends Dl{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=ja().getLocation(),this._history=ja().getHistory()}getBaseHrefFromDOM(){return ja().getBaseHref(this._doc)}onPopState(e){ja().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){ja().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!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(e){this.location.pathname=e}pushState(e,t,n){Xa()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){Xa()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.ctorParameters=()=>[{type:void 0,decorators:[{type:ae,args:[Fa]}]}],e})();const eu=new ke("TRANSITION_ID"),tu=[{provide:Bs,useFactory:function(e,t,n){return()=>{n.get(js).donePromise.then(()=>{const n=ja();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[eu,Fa,qe],multi:!0}];class nu{static init(){var e;e=new nu,Sr=e}addToWindow(e){xe.getAngularTestability=(t,n=!0)=>{const i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},xe.getAllAngularTestabilities=()=>e.getAllTestabilities(),xe.getAllAngularRootElements=()=>e.getAllRootElements(),xe.frameworkStabilizers||(xe.frameworkStabilizers=[]),xe.frameworkStabilizers.push(e=>{const t=xe.getAllAngularTestabilities();let n=t.length,i=!1;const s=function(t){i=i||t,n--,0==n&&e(i)};t.forEach((function(e){e.whenStable(s)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const i=e.getTestability(t);return null!=i?i:n?ja().isShadowRoot(t)?this.findTestabilityInTree(e,ja().getHost(t),!0):this.findTestabilityInTree(e,ja().parentElement(t),!0):null}}function iu(e,t){"undefined"!=typeof COMPILED&&COMPILED||((xe.ng=xe.ng||{})[e]=t)}const su=(()=>({ApplicationRef:Or,NgZone:dr}))();function ru(e){return zr(e)}const ou=new ke("EventManagerPlugins");let lu=(()=>(class{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let i=0;i<n.length;i++){const t=n[i];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}))();class au{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const i=ja().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${t}`);return this.addEventListener(i,t,n)}}let uu=(()=>(class{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}))(),cu=(()=>(class extends uu{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>ja().remove(e))}}))();const hu={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/"},du=/%COMP%/g,pu="_nghost-%COMP%",mu="_ngcontent-%COMP%";function fu(e,t,n){for(let i=0;i<t.length;i++){let s=t[i];Array.isArray(s)?fu(e,s,n):(s=s.replace(du,e),n.push(s))}return n}function gu(e){return t=>{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let _u=(()=>(class{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new yu(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case st.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new wu(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case st.Native:case st.ShadowDom:return new Cu(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=fu(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}))();class yu{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(hu[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,i){if(i){t=i+":"+t;const s=hu[i];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const i=hu[n];i?e.removeAttributeNS(i,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,i){i&dn.DashCase?e.style.setProperty(t,n,i&dn.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&dn.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){bu(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return bu(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,gu(n)):this.eventManager.addEventListener(e,t,gu(n))}}const vu=(()=>"@".charCodeAt(0))();function bu(e,t){if(e.charCodeAt(0)===vu)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class wu extends yu{constructor(e,t,n,i){super(e),this.component=n;const s=fu(i+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr=mu.replace(du,i+"-"+n.id),this.hostAttr=function(e){return pu.replace(du,e)}(i+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Cu extends yu{constructor(e,t,n,i){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===st.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=fu(i.id,i.styles,[]);for(let r=0;r<s.length;r++){const e=document.createElement("style");e.textContent=s[r],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}const Su=(()=>"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),Eu=Su("addEventListener"),xu=Su("removeEventListener"),ku={},Au="__zone_symbol__propagationStopped",Du=(()=>{const e="undefined"!=typeof Zone&&Zone[Su("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),Tu=function(e){return!!Du&&Du.hasOwnProperty(e)},Iu=function(e){const t=ku[e.type];if(!t)return;const n=this[t];if(!n)return;const i=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,i):e.handler.apply(this,i)}{const t=n.slice();for(let n=0;n<t.length&&!0!==e[Au];n++){const e=t[n];e.zone!==Zone.current?e.zone.run(e.handler,this,i):e.handler.apply(this,i)}}};let Ou=(()=>(class extends au{constructor(e,t,n){super(e),this.ngZone=t,n&&function(e){return"server"===e}(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype.__zone_symbol__stopImmediatePropagation)return;const e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Au]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let i=n;if(!e[Eu]||dr.isInAngularZone()&&!Tu(t))e.addEventListener(t,i,!1);else{let n=ku[t];n||(n=ku[t]=Su("ANGULAR"+t+"FALSE"));let s=e[n];const r=s&&s.length>0;s||(s=e[n]=[]);const o=Tu(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:o,handler:i});else{let e=!1;for(let t=0;t<s.length;t++)if(s[t].handler===i){e=!0;break}e||s.push({zone:o,handler:i})}r||e[Eu](t,Iu,!1)}return()=>this.removeEventListener(e,t,i)}removeEventListener(e,t,n){let i=e[xu];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);let s=ku[t],r=s&&e[s];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);let o=!1;for(let l=0;l<r.length;l++)if(r[l].handler===n){o=!0,r.splice(l,1);break}o?0===r.length&&i.apply(e,[t,Iu,!1]):e.removeEventListener.apply(e,[t,n,!1])}}))();const Ru={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},Pu=new ke("HammerGestureConfig"),Nu=new ke("HammerLoader");let Mu=(()=>(class{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}))(),Fu=(()=>(class extends au{constructor(e,t,n,i){super(e),this._config=t,this.console=n,this.loader=i}supports(e){return!(!Ru.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not `+"loaded and no custom loader has been specified."),1))}addEventListener(e,t,n){const i=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let i=!1,s=()=>{i=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=()=>{});i||(s=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),s=()=>{}}),()=>{s()}}return i.runOutsideAngular(()=>{const s=this._config.buildHammer(e),r=function(e){i.runGuarded((function(){n(e)}))};return s.on(t,r),()=>{s.off(t,r),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}))();const Vu=["alt","control","meta","shift"],Lu={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Uu=(()=>{class e extends au{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,i){const s=e.parseEventName(n),r=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ja().onAndCancel(t,s.domEventName,r))}static parseEventName(t){const n=t.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=e._normalizeKey(n.pop());let r="";if(Vu.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),r+=e+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,o}static getEventFullKey(e){let t="",n=ja().getEventKey(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Vu.forEach(i=>{i!=n&&(0,Lu[i])(e)&&(t+=i+".")}),t+=n,t}static eventCallback(t,n,i){return s=>{e.getEventFullKey(s)===t&&i.runGuarded(()=>n(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e})();class Bu{}let ju=(()=>(class extends Bu{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case It.NONE:return t;case It.HTML:return t instanceof $u?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{Dt=Dt||new ut(e);let i=t?String(t):"";n=Dt.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=Dt.getInertBodyElement(i)}while(i!==r);const o=new Et,l=o.sanitizeChildren(Tt(n)||n);return at()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),l}finally{if(n){const e=Tt(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case It.STYLE:return t instanceof Hu?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(Pt);return t&&dt(t[1])===t[1]||e.match(Rt)&&function(e){let t=!0,n=!0;for(let i=0;i<e.length;i++){const s=e.charAt(i);"'"===s&&n?t=!t:'"'===s&&t&&(n=!n)}return t&&n}(e)?e:(at()&&console.warn(`WARNING: sanitizing unsafe style value ${e} (see http://g.co/ng/security#xss).`),"unsafe")}(t));case It.SCRIPT:if(t instanceof qu)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case It.URL:return t instanceof Wu||t instanceof Yu?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),dt(String(t)));case It.RESOURCE_URL:if(t instanceof Wu)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}checkNotSafeValue(e,t){if(e instanceof zu)throw new Error(`Required a safe ${t}, got a ${e.getTypeName()} `+"(see http://g.co/ng/security#xss)")}bypassSecurityTrustHtml(e){return new $u(e)}bypassSecurityTrustStyle(e){return new Hu(e)}bypassSecurityTrustScript(e){return new qu(e)}bypassSecurityTrustUrl(e){return new Yu(e)}bypassSecurityTrustResourceUrl(e){return new Wu(e)}}))();class zu{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class $u extends zu{getTypeName(){return"HTML"}}class Hu extends zu{getTypeName(){return"Style"}}class qu extends zu{getTypeName(){return"Script"}}class Yu extends zu{getTypeName(){return"URL"}}class Wu extends zu{getTypeName(){return"ResourceURL"}}const Gu=Ar(Hr,"browser",[{provide:Ys,useValue:Va},{provide:qs,useValue:function(){Ka.makeCurrent(),nu.init()},multi:!0},{provide:Dl,useClass:Ja,deps:[Fa]},{provide:Fa,useFactory:function(){return document},deps:[]}]);function Ku(){return new Vt}let Zu=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:zs,useValue:t.appId},{provide:eu,useExisting:zs},tu]}}}return e})();"undefined"!=typeof window&&window;const Qu=new w(e=>e.complete());function Xu(e){return e?function(e){return new w(t=>e.schedule(()=>t.complete()))}(e):Qu}class Ju extends j{constructor(e,t){super(e),this.sources=t,this.completed=0,this.haveValues=0;const n=t.length;this.values=new Array(n);for(let i=0;i<n;i++){const e=B(this,t[i],null,i);e&&this.add(e)}}notifyNext(e,t,n,i,s){this.values[n]=t,s._hasValue||(s._hasValue=!0,this.haveValues++)}notifyComplete(e){const{destination:t,haveValues:n,values:i}=this,s=i.length;e._hasValue?(this.completed++,this.completed===s&&(n===s&&t.next(i),t.complete())):t.complete()}}const ec=new ke("NgValueAccessor");let tc=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))();const nc=new ke("CompositionEventMode");let ic=(()=>(class{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=ja()?ja().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}))();class sc{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(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class rc extends sc{get formDirective(){return null}get path(){return null}}function oc(){throw new Error("unimplemented")}class lc extends sc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return oc()}get asyncValidator(){return oc()}}class ac{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let uc=(()=>(class extends ac{constructor(e){super(e)}}))(),cc=(()=>(class extends ac{constructor(e){super(e)}}))();function hc(e){return null==e||0===e.length}const dc=new ke("NgValidators"),pc=/^(?=.{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 mc{static min(e){return t=>{if(hc(t.value)||hc(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(hc(t.value)||hc(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return hc(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return hc(e.value)?null:pc.test(e.value)?null:{email:!0}}static minLength(e){return t=>{if(hc(t.value))return null;const n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}static maxLength(e){return t=>{const n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}static pattern(e){if(!e)return mc.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(hc(e.value))return null;const i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(fc);return 0==t.length?null:function(e){return _c(function(e,t){return t.map(t=>t(e))}(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(fc);return 0==t.length?null:function(e){return function e(...t){let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&a(t[0])&&(t=t[0]),0===t.length?Qu:n?e(t).pipe(z(e=>n(...e))):new w(e=>new Ju(e,t))}(function(e,t){return t.map(t=>t(e))}(e,t).map(gc)).pipe(z(_c))}}}function fc(e){return null!=e}function gc(e){const t=Wt(e)?Y(e):e;if(!Gt(t))throw new Error("Expected validator to return Promise or Observable.");return t}function _c(e){const t=e.reduce((e,t)=>null!=t?Object.assign({},e,t):e,{});return 0===Object.keys(t).length?null:t}function yc(e){return e.validate?t=>e.validate(t):e}function vc(e){return e.validate?t=>e.validate(t):e}let bc=(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),wc=(()=>(class{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}))(),Cc=(()=>(class{constructor(e,t,n,i){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(lc),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}))();const Sc={formControlName:'\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',formGroupName:'\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',formArrayName:'\n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });',ngModelGroup:'\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',ngModelWithFormGroup:'\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  '};class Ec{static controlParentException(){throw new Error(`formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      ${Sc.formControlName}`)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        ${Sc.formGroupName}\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        ${Sc.ngModelGroup}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       ${Sc.formControlName}`)}static groupParentException(){throw new Error(`formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      ${Sc.formGroupName}`)}static arrayParentException(){throw new Error(`formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        ${Sc.formArrayName}`)}static disabledAttrWarning(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")}static ngModelWarning(e){console.warn(`\n    It looks like you're using ngModel on the same form field as ${e}. \n    Support for using the ngModel input property and ngModelChange event with \n    reactive form directives has been deprecated in Angular v6 and will be removed \n    in Angular v7.\n    \n    For more information on this, see our API docs here:\n    https://angular.io/api/forms/${"formControl"===e?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n    `)}}function xc(e,t){return[...t.path,e]}function kc(e,t){e||Ic(t,"Cannot find control with"),t.valueAccessor||Ic(t,"No value accessor for form control with"),e.validator=mc.compose([e.validator,t.validator]),e.asyncValidator=mc.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Ac(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Ac(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function Ac(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Dc(e,t){null==e&&Ic(t,"Cannot find control with"),e.validator=mc.compose([e.validator,t.validator]),e.asyncValidator=mc.composeAsync([e.asyncValidator,t.asyncValidator])}function Tc(e){return Ic(e,"There is no FormControl instance attached to form control element with")}function Ic(e,t){let n;throw n=e.path.length>1?`path: '${e.path.join(" -> ")}'`:e.path[0]?`name: '${e.path}'`:"unspecified name attribute",new Error(`${t} ${n}`)}function Oc(e){return null!=e?mc.compose(e.map(yc)):null}function Rc(e){return null!=e?mc.composeAsync(e.map(vc)):null}function Pc(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!zt(t,n.currentValue)}const Nc=[tc,(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}))(),bc,(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=zt}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}))(),(()=>(class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=zt}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(t.hasOwnProperty("selectedOptions")){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const i=e.item(t),s=this._getOptionValue(i.value);n.push(s)}}else{const e=t.options;for(let t=0;t<e.length;t++){const i=e.item(t);if(i.selected){const e=this._getOptionValue(i.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}))(),Cc];function Mc(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Fc(e,t){if(!t)return null;Array.isArray(t)||Ic(e,"Value accessor was not provided as an array for form control with");let n=void 0,i=void 0,s=void 0;return t.forEach(t=>{t.constructor===ic?n=t:function(e){return Nc.some(t=>e.constructor===t)}(t)?(i&&Ic(e,"More than one built-in value accessor matches form control with"),i=t):(s&&Ic(e,"More than one custom value accessor matches form control with"),s=t)}),s||i||n||(Ic(e,"No valid value accessor for form control with"),null)}function Vc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Lc="VALID",Uc="INVALID",Bc="PENDING",jc="DISABLED";function zc(e){const t=Hc(e)?e.validators:e;return Array.isArray(t)?Oc(t):t||null}function $c(e,t){const n=Hc(t)?t.asyncValidators:e;return Array.isArray(n)?Rc(n):n||null}function Hc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class qc{constructor(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return this.status===Lc}get invalid(){return this.status===Uc}get pending(){return this.status==Bc}get disabled(){return this.status===jc}get enabled(){return this.status!==jc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this.validator=zc(e)}setAsyncValidators(e){this.asyncValidator=$c(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Bc,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=jc,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Lc,this._forEachChild(t=>{t.enable(Object.assign({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==Lc&&this.status!==Bc||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?jc:Lc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Bc;const t=gc(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>this.setErrors(t,{emitEvent:e}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce((e,t)=>e instanceof Wc?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Gc&&e.at(t)||null,e))}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Vs,this.statusChanges=new Vs}_calculateStatus(){return this._allControlsDisabled()?jc:this.errors?Uc:this._anyControlsHaveStatus(Bc)?Bc:this._anyControlsHaveStatus(Uc)?Uc:Lc}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Hc(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Yc extends qc{constructor(e=null,t,n){super(zc(t),$c(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Wc extends qc{constructor(e,t,n){super(zc(t),$c(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof Yc?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){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[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){let t=!1;return this._forEachChild((n,i)=>{t=t||this.contains(i)&&e(n)}),t}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,i)=>{n=t(n,e,i)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Gc extends qc{constructor(e,t,n){super(zc(t),$c(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Yc?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){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(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Kc=(()=>Promise.resolve(null))();let Zc=(()=>(class extends rc{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Vs,this.form=new Wc({},Oc(e),Rc(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Kc.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),kc(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Kc.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),Vc(this._directives,e)})}addFormGroup(e){Kc.then(()=>{const t=this._findContainer(e.path),n=new Wc({});Dc(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Kc.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Kc.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Mc(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}))();class Qc{static modelParentException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup's partner directive "formControlName" instead.  Example:\n\n      ${Sc.formControlName}\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      ${Sc.ngModelWithFormGroup}`)}static formGroupNameException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      ${Sc.formGroupName}\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ${Sc.ngModelGroup}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      ${Sc.formGroupName}\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ${Sc.ngModelGroup}`)}static ngFormWarning(){console.warn("\n    It looks like you're using 'ngForm'.\n\n    Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n    in Angular v9.\n\n    Use 'ng-form' instead.\n\n    Before:\n    <ngForm #myForm=\"ngForm\">\n\n    After:\n    <ng-form #myForm=\"ngForm\">\n    ")}}const Xc=new ke("NgFormSelectorWarning");class Jc extends rc{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return xc(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Oc(this._validators)}get asyncValidator(){return Rc(this._asyncValidators)}_checkParentType(){}}let eh=(()=>{class e extends Jc{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){this._parent instanceof e||this._parent instanceof Zc||Qc.modelGroupParentException()}}return e})();const th=(()=>Promise.resolve(null))();let nh=(()=>(class extends lc{constructor(e,t,n,i){super(),this.control=new Yc,this._registered=!1,this.update=new Vs,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=Fc(this,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Pc(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?xc(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Oc(this._rawValidators)}get asyncValidator(){return Rc(this._rawAsyncValidators)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){kc(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof eh)&&this._parent instanceof Jc?Qc.formGroupNameException():this._parent instanceof eh||this._parent instanceof Zc||Qc.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Qc.missingNameException()}_updateValue(e){th.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;th.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}))(),ih=(()=>(class{}))();const sh=new ke("NgModelWithFormControlWarning");let rh=(()=>{class e extends lc{constructor(e,t,n,i){super(),this._ngModelWarningConfig=i,this.update=new Vs,this._ngModelWarningSent=!1,this._rawValidators=e||[],this._rawAsyncValidators=t||[],this.valueAccessor=Fc(this,n)}set isDisabled(e){Ec.disabledAttrWarning()}ngOnChanges(t){var n,i;this._isControlChanged(t)&&(kc(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Pc(t,this.viewModel)&&("formControl",n=e,this,i=this._ngModelWarningConfig,at()&&"never"!==i&&((null!==i&&"once"!==i||n._ngModelWarningSentOnce)&&("always"!==i||this._ngModelWarningSent)||(Ec.ngModelWarning("formControl"),n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return Oc(this._rawValidators)}get asyncValidator(){return Rc(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e._ngModelWarningSentOnce=!1,e})(),oh=(()=>(class extends rc{constructor(e,t){super(),this._validators=e,this._asyncValidators=t,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new Vs}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return kc(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Vc(this.directives,e)}addFormGroup(e){const t=this.form.get(e.path);Dc(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormGroup(e){}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){const t=this.form.get(e.path);Dc(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormArray(e){}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Mc(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=this.form.get(e.path);e.control!==t&&(function(e,t){t.valueAccessor.registerOnChange(()=>Tc(t)),t.valueAccessor.registerOnTouched(()=>Tc(t)),t._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(e.control,e),t&&kc(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const e=Oc(this._validators);this.form.validator=mc.compose([this.form.validator,e]);const t=Rc(this._asyncValidators);this.form.asyncValidator=mc.composeAsync([this.form.asyncValidator,t])}_checkFormPresent(){this.form||Ec.missingFormException()}}))(),lh=(()=>(class{}))(),ah=(()=>(class{group(e,t=null){const n=this._reduceControls(e);let i=null,s=null,r=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,s=null!=t.asyncValidators?t.asyncValidators:null,r=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,s=null!=t.asyncValidator?t.asyncValidator:null)),new Wc(n,{asyncValidators:s,updateOn:r,validators:i})}control(e,t,n){return new Yc(e,t,n)}array(e,t,n){const i=e.map(e=>this._createControl(e));return new Gc(i,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof Yc||e instanceof Wc||e instanceof Gc?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}))(),uh=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Xc,useValue:t.warnOnDeprecatedNgFormSelector}]}}}return e})(),ch=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:sh,useValue:t.warnOnNgModelWithFormControl}]}}}return e})();function hh(e){const t=new w(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function dh(...e){let t=e[e.length-1];switch(T(t)?e.pop():t=void 0,e.length){case 0:return Xu(t);case 1:return t?q(e,t):hh(e[0]);default:return q(e,t)}}function ph(){return Q(1)}function mh(...e){return t=>{let n=e[e.length-1];T(n)?e.pop():n=null;const i=e.length;return function(...e){return ph()(dh(...e))}(1!==i||n?i>0?q(e,n):Xu(n):hh(e[0]),t)}}class fh{constructor(e,t,n){this.http=e,this.route=t,this.router=n,this.bill=new Al,this.showSuccess=!1,this.showError=!1,this.myControl=new Yc,this.VendorsControl=new Yc,this.vendors=new Array,this.saving=!1,this.exchangeApi="",this.errorVendor=!1,this.bill.Vendor=new kl,this.bill.Amount=0,this.bill.BillDueDate=new Date,this.bill.Paid=0,this.bill.ExchangeRate=6.5,this.bill.KDV=0}ngOnInit(){this.exchangeApi="/api/exchange/",this.http.get("/api/Vendor/").subscribe(e=>{this.vendors=e.Items,this.filteredOptions=this.VendorsControl.valueChanges.pipe(mh(""),z(e=>this._filter(e)))}),this.http.get(this.exchangeApi).subscribe(e=>{this.bill.ExchangeRate=e})}Save(e){if(this.showSuccess=!1,!e.Vendor||!e.Vendor.VendorName)return this.errorVendor=!0,void(this.saving=!1);this.errorVendor=!1,this.saving=!0,this.http.post("/api/Bill/Insert",e).toPromise().then(e=>{this.showSuccess=!0,this.saving=!1})}UpdateVendor(e){this.bill.Vendor=e}Cancel(){this.router.navigateByUrl("/home")}_filter(e){const t=e.toString().toLowerCase();return this.vendors.filter(e=>e.VendorName.toLowerCase().includes(t))}}class gh{constructor(){this.BillId=0,this.DocumentFileId=0}}class _h{constructor(){}}class yh{constructor(e,t,n,i,s){this.http=e,this.route=t,this.router=n,this.fb=i,this.location=s,this.bill=new Al,this.showSuccess=!1,this.showError=!1,this.myControl=new Yc,this.vendors=new Array,this.files=new Array,this.deletemodal=!1,this.saving=!1,this.errorVendor=!1,this.bill.Vendor=new kl,this.createForm()}createForm(){this.form=this.fb.group({name:["",mc.required],fatura:null})}ngOnInit(){this.id=this.route.snapshot.queryParamMap.get("id"),this.http.get("/api/Vendor/").subscribe(e=>{this.vendors=e.Items}),this.http.get("/api/Bill/GetBill/"+this.id).subscribe(e=>{this.bill=e;for(var t=0;t<e.Files.length;t++)this.files.push(e.Files[t])})}Delete(){this.showSuccess=!1,this.http.delete("/api/Bill/Delete/?billId="+this.bill.BillId).toPromise().then(e=>{this.showSuccess=!0,this.router.navigateByUrl("/home")})}Save(e){if(!e.Vendor||!e.Vendor.VendorName)return this.errorVendor=!0,void(this.saving=!1);this.errorVendor=!1,this.showSuccess=!1,this.saving=!0,e.Files=new Array;for(var t=0;t<this.files.length;t++){var n=new gh;n.BillId=e.BillId,n.DocumentFileId=this.files[t].DocumentFileId,n.File=new _h,n.File.FileName=this.files[t].File.FileName,e.Files.push(n)}this.http.post("/api/Bill/Update",e).toPromise().then(e=>{this.showSuccess=!0,this.saving=!1})}UpdateVendor(e){this.bill.Vendor=e}OnUploadFile(){this.form.value.fatura.filename="bill-"+this.id+"-"+this.form.value.fatura.filename;const e=this.form.value.fatura;this.uploading=!0,this.http.post("/api/AwsStorage/UploadFile/",e).toPromise().then(()=>{var e=new gh;e.BillId=Number(this.id);var t=new _h;t.FileName=this.form.value.fatura.filename,e.File=t,this.files.push(e),this.uploading=!1})}onFileChange(e){let t=new FileReader;if(e.target.files&&e.target.files.length>0){let n=e.target.files[0];t.readAsDataURL(n),t.onload=()=>{this.form.get("fatura").setValue({filename:n.name,filetype:n.type,value:t.result})}}}RemoveFileItem(e){const t=this.files.indexOf(e);-1!==t&&this.files.splice(t,1)}Cancel(){this.location.getState().navigationId>1?this.location.back():this.router.navigateByUrl("/index")}ConfirmDelete(){this.deletemodal=!0}CloseModal(){this.deletemodal=!1}}class vh extends A{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new E;return this._value}next(e){super.next(this._value=e)}}function bh(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}bh.prototype=Object.create(Error.prototype);const wh=bh,Ch={};class Sh{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new Eh(e,this.resultSelector))}}class Eh extends j{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Ch),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++){const t=e[n];this.add(B(this,t,t,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n,i,s){const r=this.values,o=this.toRespond?r[n]===Ch?--this.toRespond:this.toRespond:0;r[n]=t,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function xh(e){return new w(t=>{let n;try{n=e()}catch(i){return void t.error(i)}return(n?Y(n):Xu()).subscribe(t)})}function kh(e,t){return function(n){return n.lift(new Ah(e,t))}}class Ah{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Dh(e,this.predicate,this.thisArg))}}class Dh extends f{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function Th(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Th.prototype=Object.create(Error.prototype);const Ih=Th;function Oh(e){return function(t){return 0===e?Xu():t.lift(new Rh(e))}}class Rh{constructor(e){if(this.total=e,this.total<0)throw new Ih}call(e,t){return t.subscribe(new Ph(e,this.total))}}class Ph extends f{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;s<n;s++){const s=t++%n;e.next(i[s])}}e.complete()}}function Nh(e,t,n){return function(i){return i.lift(new Mh(e,t,n))}}class Mh{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new Fh(e,this.nextOrObserver,this.error,this.complete))}}class Fh extends f{constructor(e,t,n,s){super(e),this._tapNext=y,this._tapError=y,this._tapComplete=y,this._tapError=n||y,this._tapComplete=s||y,i(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||y,this._tapError=t.error||y,this._tapComplete=t.complete||y)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const Vh=(e=Lh)=>Nh({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw e()}});function Lh(){return new wh}function Uh(e=null){return t=>t.lift(new Bh(e))}class Bh{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new jh(e,this.defaultValue))}}class jh extends f{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function zh(e,t){const n=arguments.length>=2;return i=>i.pipe(e?kh((t,n)=>e(t,n,i)):Z,Oh(1),n?Uh(t):Vh(()=>new wh))}function $h(e){return function(t){const n=new Hh(e),i=t.lift(n);return n.caught=i}}class Hh{constructor(e){this.selector=e}call(e,t){return t.subscribe(new qh(e,this.selector,this.caught))}}class qh extends j{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const i=new I(this,void 0,void 0);this.add(i),B(this,n,void 0,void 0,i)}}}function Yh(e){return t=>0===e?Xu():t.lift(new Wh(e))}class Wh{constructor(e){if(this.total=e,this.total<0)throw new Ih}call(e,t){return t.subscribe(new Gh(e,this.total))}}class Gh extends f{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function Kh(e,t){const n=arguments.length>=2;return i=>i.pipe(e?kh((t,n)=>e(t,n,i)):Z,Yh(1),n?Uh(t):Vh(()=>new wh))}class Zh{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new Qh(e,this.predicate,this.thisArg,this.source))}}class Qh extends f{constructor(e,t,n,i){super(e),this.predicate=t,this.thisArg=n,this.source=i,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Xh(e,t){return"function"==typeof t?n=>n.pipe(Xh((n,i)=>Y(e(n,i)).pipe(z((e,s)=>t(n,e,i,s))))):t=>t.lift(new Jh(e))}class Jh{constructor(e){this.project=e}call(e,t){return t.subscribe(new ed(e,this.project))}}class ed extends j{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t,e,n)}_innerSub(e,t,n){const i=this.innerSubscription;i&&i.unsubscribe();const s=new I(this,void 0,void 0);this.destination.add(s),this.innerSubscription=B(this,e,t,n,s)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(e,t,n,i,s){this.destination.next(t)}}function td(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new nd(e,t,n))}}class nd{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new id(e,this.accumulator,this.seed,this.hasSeed))}}class id extends f{constructor(e,t,n,i){super(e),this.accumulator=t,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function sd(e,t){return W(e,t,1)}class rd{constructor(e){this.callback=e}call(e,t){return t.subscribe(new od(e,this.callback))}}class od extends f{constructor(e,t){super(e),this.add(new d(t))}}class ld{constructor(e,t){this.id=e,this.url=t}}class ad extends ld{constructor(e,t,n="imperative",i=null){super(e,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ud extends ld{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class cd extends ld{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class hd extends ld{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class dd extends ld{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pd extends ld{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class md extends ld{constructor(e,t,n,i,s){super(e,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class fd extends ld{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gd extends ld{constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _d{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class yd{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class vd{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bd{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wd{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cd{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sd{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Ed=(()=>(class{}))();const xd="primary";class kd{constructor(e){this.params=e||{}}has(e){return this.params.hasOwnProperty(e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Ad(e){return new kd(e)}const Dd="ngNavigationCancelingError";function Td(e){const t=Error("NavigationCancelingError: "+e);return t[Dd]=!0,t}function Id(e,t,n){const i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;const s={};for(let r=0;r<i.length;r++){const t=i[r],n=e[r];if(t.startsWith(":"))s[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,i.length),posParams:s}}class Od{constructor(e,t){this.routes=e,this.module=t}}function Rd(e,t=""){for(let n=0;n<e.length;n++){const i=e[n];Pd(i,Nd(t,i))}}function Pd(e,t){if(!e)throw new Error(`\n      Invalid configuration of route '${t}': 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(e))throw new Error(`Invalid configuration of route '${t}': Array cannot be specified`);if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==xd)throw new Error(`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);if(e.redirectTo&&e.children)throw new Error(`Invalid configuration of route '${t}': redirectTo and children cannot be used together`);if(e.redirectTo&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);if(e.children&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);if(e.redirectTo&&e.component)throw new Error(`Invalid configuration of route '${t}': redirectTo and component cannot be used together`);if(e.path&&e.matcher)throw new Error(`Invalid configuration of route '${t}': path and matcher cannot be used together`);if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error(`Invalid configuration of route '${t}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===e.path&&void 0===e.matcher)throw new Error(`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error(`Invalid configuration of route '${t}': path cannot start with a slash`);if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error(`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error(`Invalid configuration of route '${t}': pathMatch can only be set to 'prefix' or 'full'`);e.children&&Rd(e.children,t)}function Nd(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function Md(e){const t=e.children&&e.children.map(Md),n=t?Object.assign({},e,{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==xd&&(n.component=Ed),n}function Fd(e,t){const n=Object.keys(e),i=Object.keys(t);if(!n||!i||n.length!=i.length)return!1;let s;for(let r=0;r<n.length;r++)if(s=n[r],e[s]!==t[s])return!1;return!0}function Vd(e){return Array.prototype.concat.apply([],e)}function Ld(e){return e.length>0?e[e.length-1]:null}function Ud(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Bd(e){return Gt(e)?e:Wt(e)?Y(Promise.resolve(e)):dh(e)}function jd(e,t,n){return n?function(e,t){return Fd(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!qd(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!t.children[i])return!1;if(!e(t.children[i],n.children[i]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,i,s){if(n.segments.length>s.length)return!!qd(n.segments.slice(0,s.length),s)&&!i.hasChildren();if(n.segments.length===s.length){if(!qd(n.segments,s))return!1;for(const t in i.children){if(!n.children[t])return!1;if(!e(n.children[t],i.children[t]))return!1}return!0}{const e=s.slice(0,n.segments.length),r=s.slice(n.segments.length);return!!qd(n.segments,e)&&!!n.children[xd]&&t(n.children[xd],i,r)}}(t,n,n.segments)}(e.root,t.root)}class zd{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ad(this.queryParams)),this._queryParamMap}toString(){return Kd.serialize(this)}}class $d{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Ud(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Zd(this)}}class Hd{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Ad(this.parameters)),this._parameterMap}toString(){return np(this)}}function qd(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function Yd(e,t){let n=[];return Ud(e.children,(e,i)=>{i===xd&&(n=n.concat(t(e,i)))}),Ud(e.children,(e,i)=>{i!==xd&&(n=n.concat(t(e,i)))}),n}class Wd{}class Gd{parse(e){const t=new lp(e);return new zd(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`${`/${function e(t,n){if(!t.hasChildren())return Zd(t);if(n){const n=t.children[xd]?e(t.children[xd],!1):"",i=[];return Ud(t.children,(t,n)=>{n!==xd&&i.push(`${n}:${e(t,!1)}`)}),i.length>0?`${n}(${i.join("//")})`:n}{const n=Yd(t,(n,i)=>i===xd?[e(t.children[xd],!1)]:[`${i}:${e(n,!1)}`]);return`${Zd(t)}/(${n.join("//")})`}}(e.root,!0)}`}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Xd(t)}=${Xd(e)}`).join("&"):`${Xd(t)}=${Xd(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const Kd=new Gd;function Zd(e){return e.segments.map(e=>np(e)).join("/")}function Qd(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xd(e){return Qd(e).replace(/%3B/gi,";")}function Jd(e){return Qd(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ep(e){return decodeURIComponent(e)}function tp(e){return ep(e.replace(/\+/g,"%20"))}function np(e){return`${Jd(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Jd(e)}=${Jd(t[e])}`).join("")}`;var t}const ip=/^[^\/()?;=#]+/;function sp(e){const t=e.match(ip);return t?t[0]:""}const rp=/^[^=?&#]+/,op=/^[^?&#]+/;class lp{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $d([],{}):new $d([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[xd]=new $d(e,t)),n}parseSegment(){const e=sp(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Hd(ep(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=sp(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=sp(this.remaining);e&&(n=e,this.capture(n))}e[ep(t)]=ep(n)}parseQueryParam(e){const t=function(e){const t=e.match(rp);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(op);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const i=tp(t),s=tp(n);if(e.hasOwnProperty(i)){let t=e[i];Array.isArray(t)||(t=[t],e[i]=t),t.push(s)}else e[i]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=sp(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=xd);const r=this.parseChildren();t[s]=1===Object.keys(r).length?r[xd]:new $d([],r),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class ap{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=up(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=up(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=cp(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return cp(e,this._root).map(e=>e.value)}}function up(e,t){if(e===t.value)return t;for(const n of t.children){const t=up(e,n);if(t)return t}return null}function cp(e,t){if(e===t.value)return[t];for(const n of t.children){const i=cp(e,n);if(i.length)return i.unshift(t),i}return[]}class hp{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function dp(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class pp extends ap{constructor(e,t){super(e),this.snapshot=t,vp(this,e)}toString(){return this.snapshot.toString()}}function mp(e,t){const n=function(e,t){const n=new _p([],{},{},"",{},xd,t,null,e.root,-1,{});return new yp("",new hp(n,[]))}(e,t),i=new vh([new Hd("",{})]),s=new vh({}),r=new vh({}),o=new vh({}),l=new vh(""),a=new fp(i,s,o,l,r,xd,t,n.root);return a.snapshot=n.root,new pp(new hp(a,[]),n)}class fp{constructor(e,t,n,i,s,r,o,l){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this._futureSnapshot=l}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(e=>Ad(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(z(e=>Ad(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function gp(e,t="emptyOnly"){const n=e.pathFromRoot;let i=0;if("always"!==t)for(i=n.length-1;i>=1;){const e=n[i],t=n[i-1];if(e.routeConfig&&""===e.routeConfig.path)i--;else{if(t.component)break;i--}}return function(e){return e.reduce((e,t)=>({params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class _p{constructor(e,t,n,i,s,r,o,l,a,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=l,this._urlSegment=a,this._lastPathIndex=u,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=Ad(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ad(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class yp extends ap{constructor(e,t){super(t),this.url=e,vp(this,t)}toString(){return bp(this._root)}}function vp(e,t){t.value._routerState=e,t.children.forEach(t=>vp(e,t))}function bp(e){const t=e.children.length>0?` { ${e.children.map(bp).join(", ")} } `:"";return`${e.value}${t}`}function wp(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Fd(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Fd(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Fd(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Fd(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Cp(e,t){var n,i;return Fd(e.params,t.params)&&qd(n=e.url,i=t.url)&&n.every((e,t)=>Fd(e.parameters,i[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||Cp(e.parent,t.parent))}function Sp(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Ep(e,t,n,i,s){let r={};return i&&Ud(i,(e,t)=>{r[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new zd(n.root===e?t:function e(t,n,i){const s={};return Ud(t.children,(t,r)=>{s[r]=t===n?i:e(t,n,i)}),new $d(t.segments,s)}(n.root,e,t),r,s)}class xp{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Sp(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(i&&i!==Ld(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class kp{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function Ap(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[xd]:`${e}`}function Dp(e,t,n){if(e||(e=new $d([],{})),0===e.segments.length&&e.hasChildren())return Tp(e,t,n);const i=function(e,t,n){let i=0,s=t;const r={match:!1,pathIndex:0,commandIndex:0};for(;s<e.segments.length;){if(i>=n.length)return r;const t=e.segments[s],o=Ap(n[i]),l=i<n.length-1?n[i+1]:null;if(s>0&&void 0===o)break;if(o&&l&&"object"==typeof l&&void 0===l.outlets){if(!Pp(o,l,t))return r;i+=2}else{if(!Pp(o,{},t))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(e,t,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){const t=new $d(e.segments.slice(0,i.pathIndex),{});return t.children[xd]=new $d(e.segments.slice(i.pathIndex),e.children),Tp(t,0,s)}return i.match&&0===s.length?new $d(e.segments,{}):i.match&&!e.hasChildren()?Ip(e,t,n):i.match?Tp(e,0,s):Ip(e,t,n)}function Tp(e,t,n){if(0===n.length)return new $d(e.segments,{});{const i=function(e){return"object"!=typeof e[0]?{[xd]:e}:void 0===e[0].outlets?{[xd]:e}:e[0].outlets}(n),s={};return Ud(i,(n,i)=>{null!==n&&(s[i]=Dp(e.children[i],t,n))}),Ud(e.children,(e,t)=>{void 0===i[t]&&(s[t]=e)}),new $d(e.segments,s)}}function Ip(e,t,n){const i=e.segments.slice(0,t);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&void 0!==n[s].outlets){const e=Op(n[s].outlets);return new $d(i,e)}if(0===s&&Sp(n[0])){i.push(new Hd(e.segments[t].path,n[0])),s++;continue}const r=Ap(n[s]),o=s<n.length-1?n[s+1]:null;r&&o&&Sp(o)?(i.push(new Hd(r,Rp(o))),s+=2):(i.push(new Hd(r,{})),s++)}return new $d(i,{})}function Op(e){const t={};return Ud(e,(e,n)=>{null!==e&&(t[n]=Ip(new $d([],{}),0,e))}),t}function Rp(e){const t={};return Ud(e,(e,n)=>t[n]=`${e}`),t}function Pp(e,t,n){return e==n.path&&Fd(t,n.parameters)}const Np=(e,t,n)=>z(i=>(new Mp(t,i.targetRouterState,i.currentRouterState,n).activate(e),i));class Mp{constructor(e,t,n,i){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=i}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),wp(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const i=dp(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,i[t],n),delete i[t]}),Ud(i,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const i=e.value,s=t?t.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,n);else s&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:i})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const i=dp(e),s=e.value.component?n.children:t;Ud(i,(e,t)=>this.deactivateRouteAndItsChildren(e,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const i=dp(t);e.children.forEach(e=>{this.activateRoutes(e,i[e.value.outlet],n),this.forwardEvent(new Cd(e.value.snapshot))}),e.children.length&&this.forwardEvent(new bd(e.value.snapshot))}activateRoutes(e,t,n){const i=e.value,s=t?t.value:null;if(wp(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(i.component){const t=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const e=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),Fp(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(i.snapshot),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=i,t.resolver=s,t.outlet&&t.outlet.activateWith(i,s),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function Fp(e){wp(e.value),e.children.forEach(Fp)}function Vp(e){return"function"==typeof e}function Lp(e){return e instanceof zd}class Up{constructor(e){this.segmentGroup=e||null}}class Bp{constructor(e){this.urlTree=e}}function jp(e){return new w(t=>t.error(new Up(e)))}function zp(e){return new w(t=>t.error(new Bp(e)))}function $p(e){return new w(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Hp{constructor(e,t,n,i,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(rn)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,xd).pipe(z(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe($h(e=>{if(e instanceof Bp)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Up)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,xd).pipe(z(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe($h(e=>{if(e instanceof Up)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const i=e.segments.length>0?new $d([],{[xd]:e}):e;return new zd(i,t,n)}expandSegmentGroup(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(z(e=>new $d([],e))):this.expandSegment(e,n,t,n.segments,i,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return dh({});const n=[],i=[],s={};return Ud(e,(e,r)=>{const o=t(r,e).pipe(z(e=>s[r]=e));r===xd?n.push(o):i.push(o)}),dh.apply(null,n.concat(i)).pipe(ph(),zh(),z(()=>s))}(n.children,(n,i)=>this.expandSegmentGroup(e,t,i,n))}expandSegment(e,t,n,i,s,r){return dh(...n).pipe(z(o=>this.expandSegmentAgainstRoute(e,t,n,o,i,s,r).pipe($h(e=>{if(e instanceof Up)return dh(null);throw e}))),ph(),Kh(e=>!!e),$h((e,n)=>{if(e instanceof wh||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,i,s))return dh(new $d([],{}));throw new Up(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,i,s,r,o){return Gp(i)!==r?jp(t):void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,s,r):jp(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?zp(s):this.lineralizeSegments(n,s).pipe(W(n=>{const s=new $d(n,{});return this.expandSegment(e,s,t,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,s,r){const{matched:o,consumedSegments:l,lastChild:a,positionalParamSegments:u}=qp(t,i,s);if(!o)return jp(t);const c=this.applyRedirectCommands(l,i.redirectTo,u);return i.redirectTo.startsWith("/")?zp(c):this.lineralizeSegments(i,c).pipe(W(i=>this.expandSegment(e,t,n,i.concat(s.slice(a)),r,!1)))}matchSegmentAgainstRoute(e,t,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(z(e=>(n._loadedConfig=e,new $d(i,{})))):dh(new $d(i,{}));const{matched:s,consumedSegments:r,lastChild:o}=qp(t,n,i);if(!s)return jp(t);const l=i.slice(o);return this.getChildConfig(e,n,i).pipe(W(e=>{const n=e.module,i=e.routes,{segmentGroup:s,slicedSegments:o}=function(e,t,n,i){return n.length>0&&function(e,t,n){return n.some(n=>Wp(e,t,n)&&Gp(n)!==xd)}(e,n,i)?{segmentGroup:Yp(new $d(t,function(e,t){const n={};n[xd]=t;for(const i of e)""===i.path&&Gp(i)!==xd&&(n[Gp(i)]=new $d([],{}));return n}(i,new $d(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(n=>Wp(e,t,n))}(e,n,i)?{segmentGroup:Yp(new $d(e.segments,function(e,t,n,i){const s={};for(const r of n)Wp(e,t,r)&&!i[Gp(r)]&&(s[Gp(r)]=new $d([],{}));return Object.assign({},i,s)}(e,n,i,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,r,l,i);return 0===o.length&&s.hasChildren()?this.expandChildren(n,i,s).pipe(z(e=>new $d(r,e))):0===i.length&&0===o.length?dh(new $d(r,{})):this.expandSegment(n,s,i,o,xd,!0).pipe(z(e=>new $d(r.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?dh(new Od(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?dh(t._loadedConfig):function(e,t,n){const i=t.canLoad;return i&&0!==i.length?Y(i).pipe(z(i=>{const s=e.get(i);let r;if(function(e){return e&&Vp(e.canLoad)}(s))r=s.canLoad(t,n);else{if(!Vp(s))throw new Error("Invalid CanLoad guard");r=s(t,n)}return Bd(r)})).pipe(ph(),(s=e=>!0===e,e=>e.lift(new Zh(s,void 0,e)))):dh(!0);var s}(e.injector,t,n).pipe(W(n=>n?this.configLoader.load(e.injector,t).pipe(z(e=>(t._loadedConfig=e,e))):function(e){return new w(t=>t.error(Td(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):dh(new Od([],e))}lineralizeSegments(e,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return dh(n);if(i.numberOfChildren>1||!i.children[xd])return $p(e.redirectTo);i=i.children[xd]}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,i){const s=this.createSegmentGroup(e,t.root,n,i);return new zd(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return Ud(e,(e,i)=>{if("string"==typeof e&&e.startsWith(":")){const s=e.substring(1);n[i]=t[s]}else n[i]=e}),n}createSegmentGroup(e,t,n,i){const s=this.createSegments(e,t.segments,n,i);let r={};return Ud(t.children,(t,s)=>{r[s]=this.createSegmentGroup(e,t,n,i)}),new $d(s,r)}createSegments(e,t,n,i){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,i):this.findOrReturn(t,n))}findPosParam(e,t,n){const i=n[t.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return i}findOrReturn(e,t){let n=0;for(const i of t){if(i.path===e.path)return t.splice(n),i;n++}return e}}function qp(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(t.matcher||Id)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Yp(e){if(1===e.numberOfChildren&&e.children[xd]){const t=e.children[xd];return new $d(e.segments.concat(t.segments),t.children)}return e}function Wp(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Gp(e){return e.outlet||xd}class Kp{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Zp{constructor(e,t){this.component=e,this.route=t}}function Qp(e,t,n){const i=e._root;return function e(t,n,i,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=dp(n);return t.children.forEach(t=>{!function(t,n,i,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,l=n?n.value:null,a=i?i.getContext(t.value.outlet):null;if(l&&o.routeConfig===l.routeConfig){const u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!qd(e.url,t.url);case"pathParamsOrQueryParamsChange":return!qd(e.url,t.url)||!Fd(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cp(e,t)||!Fd(e.queryParams,t.queryParams);case"paramsChange":default:return!Cp(e,t)}}(l,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new Kp(s)):(o.data=l.data,o._resolvedData=l._resolvedData),e(t,n,o.component?a?a.children:null:i,s,r),u&&r.canDeactivateChecks.push(new Zp(a&&a.outlet&&a.outlet.component||null,l))}else l&&Jp(n,a,r),r.canActivateChecks.push(new Kp(s)),e(t,null,o.component?a?a.children:null:i,s,r)}(t,o[t.value.outlet],i,s.concat([t.value]),r),delete o[t.value.outlet]}),Ud(o,(e,t)=>Jp(e,i.getContext(t),r)),r}(i,t?t._root:null,n,[i.value])}function Xp(e,t,n){const i=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function Jp(e,t,n){const i=dp(e),s=e.value;Ud(i,(e,i)=>{Jp(e,s.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Zp(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}const em=Symbol("INITIAL_VALUE");function tm(){return Xh(e=>(function(...e){let t=null,n=null;return T(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&a(e[0])&&(e=e[0]),q(e,n).lift(new Sh(t))})(...e.map(e=>e.pipe(Yh(1),mh(em)))).pipe(td((e,t)=>{let n=!1;return t.reduce((e,i,s)=>{if(e!==em)return e;if(i===em&&(n=!0),!n){if(!1===i)return i;if(s===t.length-1||Lp(i))return i}return e},e)},em),kh(e=>e!==em),z(e=>Lp(e)?e:!0===e),Yh(1)))}function nm(e,t){return null!==e&&t&&t(new wd(e)),dh(!0)}function im(e,t){return null!==e&&t&&t(new vd(e)),dh(!0)}function sm(e,t,n){const i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?dh(i.map(i=>xh(()=>{const s=Xp(i,t,n);let r;if(function(e){return e&&Vp(e.canActivate)}(s))r=Bd(s.canActivate(t,e));else{if(!Vp(s))throw new Error("Invalid CanActivate guard");r=Bd(s(t,e))}return r.pipe(Kh())}))).pipe(tm()):dh(!0)}function rm(e,t,n){const i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(e=>(function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null})(e)).filter(e=>null!==e).map(t=>xh(()=>dh(t.guards.map(s=>{const r=Xp(s,t.node,n);let o;if(function(e){return e&&Vp(e.canActivateChild)}(r))o=Bd(r.canActivateChild(i,e));else{if(!Vp(r))throw new Error("Invalid CanActivateChild guard");o=Bd(r(i,e))}return o.pipe(Kh())})).pipe(tm())));return dh(s).pipe(tm())}class om{}class lm{constructor(e,t,n,i,s,r){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){try{const e=cm(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,xd),n=new _p([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},xd,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new hp(n,t),s=new yp(this.url,i);return this.inheritParamsAndData(s._root),dh(s)}catch(e){return new w(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=gp(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=Yd(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};e.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),i=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${i}'.`)}t[e.value.outlet]=e.value})}(n),n.sort((e,t)=>e.value.outlet===xd?-1:t.value.outlet===xd?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,i){for(const r of e)try{return this.processSegmentAgainstRoute(r,t,n,i)}catch(s){if(!(s instanceof om))throw s}if(this.noLeftoversInUrl(t,n,i))return[];throw new om}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,i){if(e.redirectTo)throw new om;if((e.outlet||xd)!==i)throw new om;let s,r=[],o=[];if("**"===e.path){const r=n.length>0?Ld(n).parameters:{};s=new _p(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pm(e),i,e.component,e,am(t),um(t)+n.length,mm(e))}else{const l=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new om;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(t.matcher||Id)(n,e,t);if(!i)throw new om;const s={};Ud(i.posParams,(e,t)=>{s[t]=e.path});const r=i.consumed.length>0?Object.assign({},s,i.consumed[i.consumed.length-1].parameters):s;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:r}}(t,e,n);r=l.consumedSegments,o=n.slice(l.lastChild),s=new _p(r,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,pm(e),i,e.component,e,am(t),um(t)+r.length,mm(e))}const l=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:a,slicedSegments:u}=cm(t,r,o,l,this.relativeLinkResolution);if(0===u.length&&a.hasChildren()){const e=this.processChildren(l,a);return[new hp(s,e)]}if(0===l.length&&0===u.length)return[new hp(s,[])];const c=this.processSegment(l,a,u,xd);return[new hp(s,c)]}}function am(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function um(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function cm(e,t,n,i,s){if(n.length>0&&function(e,t,n){return n.some(n=>hm(e,t,n)&&dm(n)!==xd)}(e,n,i)){const s=new $d(t,function(e,t,n,i){const s={};s[xd]=i,i._sourceSegment=e,i._segmentIndexShift=t.length;for(const r of n)if(""===r.path&&dm(r)!==xd){const n=new $d([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[dm(r)]=n}return s}(e,t,i,new $d(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>hm(e,t,n))}(e,n,i)){const r=new $d(e.segments,function(e,t,n,i,s,r){const o={};for(const l of i)if(hm(e,n,l)&&!s[dm(l)]){const n=new $d([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===r?e.segments.length:t.length,o[dm(l)]=n}return Object.assign({},s,o)}(e,t,n,i,e.children,s));return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:n}}const r=new $d(e.segments,e.children);return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:n}}function hm(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function dm(e){return e.outlet||xd}function pm(e){return e.data||{}}function mm(e){return e.resolve||{}}function fm(e,t,n,i){const s=Xp(e,t,i);return Bd(s.resolve?s.resolve(t,n):s(t,n))}function gm(e){return function(t){return t.pipe(Xh(t=>{const n=e(t);return n?Y(n).pipe(z(()=>t)):Y([t])}))}}class _m{}class ym{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const vm=new ke("ROUTES");class bm{constructor(e,t,n,i){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=i}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(z(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const i=n.create(e);return new Od(Vd(i.injector.get(vm)).map(Md),i)}))}loadModuleFactory(e){return"string"==typeof e?Y(this.loader.load(e)):Bd(e()).pipe(W(e=>e instanceof on?dh(e):Y(this.compiler.compileModuleAsync(e))))}}class wm{}class Cm{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function Sm(e){throw e}function Em(e,t,n){return t.parse("/")}function xm(e,t){return dh(null)}class km{constructor(e,t,n,i,s,r,o,l){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new A,this.errorHandler=Sm,this.malformedUriErrorHandler=Em,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:xm,afterPreactivation:xm},this.urlHandlingStrategy=new Cm,this.routeReuseStrategy=new ym,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(rn),this.console=s.get(Gs);const a=s.get(dr);this.isNgZoneEnabled=a instanceof dr,this.resetConfig(l),this.currentUrlTree=new zd(new $d([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new bm(r,o,e=>this.triggerEvent(new _d(e)),e=>this.triggerEvent(new yd(e))),this.routerState=mp(this.currentUrlTree,this.rootComponentType),this.transitions=new vh({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(e){const t=this.events;return e.pipe(kh(e=>0!==e.id),z(e=>Object.assign({},e,{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Xh(e=>{let n=!1,i=!1;return dh(e).pipe(Nh(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Xh(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return dh(e).pipe(Xh(e=>{const n=this.transitions.getValue();return t.next(new ad(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?Qu:[e]}),Xh(e=>Promise.resolve(e)),function(e,t,n,i){return function(s){return s.pipe(Xh(s=>(function(e,t,n,i,s){return new Hp(e,t,n,i,s).apply()})(e,t,n,s.extractedUrl,i).pipe(z(e=>Object.assign({},s,{urlAfterRedirects:e})))))}}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Nh(e=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,t,n,i,s){return function(r){return r.pipe(W(r=>(function(e,t,n,i,s="emptyOnly",r="legacy"){return new lm(e,t,n,i,s,r).recognize()})(e,t,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(z(e=>Object.assign({},r,{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Nh(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Nh(e=>{const n=new dd(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=e,l=new ad(n,this.serializeUrl(i),s,r);t.next(l);const a=mp(i,this.rootComponentType).snapshot;return dh(Object.assign({},e,{targetSnapshot:a,urlAfterRedirects:i,extras:Object.assign({},o,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Qu}),gm(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),Nh(e=>{const t=new pd(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),z(e=>Object.assign({},e,{guards:Qp(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(W(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:r,canDeactivateChecks:o}}=n;return 0===o.length&&0===r.length?dh(Object.assign({},n,{guardsResult:!0})):function(e,t,n,i){return Y(e).pipe(W(e=>(function(e,t,n,i,s){const r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return r&&0!==r.length?dh(r.map(r=>{const o=Xp(r,t,s);let l;if(function(e){return e&&Vp(e.canDeactivate)}(o))l=Bd(o.canDeactivate(e,t,n,i));else{if(!Vp(o))throw new Error("Invalid CanDeactivate guard");l=Bd(o(e,t,n,i))}return l.pipe(Kh())})).pipe(tm()):dh(!0)})(e.component,e.route,n,t,i)),Kh(e=>!0!==e,!0))}(o,i,s,e).pipe(W(n=>n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,i){return Y(t).pipe(sd(t=>Y([im(t.route.parent,i),nm(t.route,i),rm(e,t.path,n),sm(e,t.route,n)]).pipe(ph(),Kh(e=>!0!==e,!0))),Kh(e=>!0!==e,!0))}(i,r,e,t):dh(n)),z(e=>Object.assign({},n,{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),Nh(e=>{if(Lp(e.guardsResult)){const t=Td(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),Nh(e=>{const t=new md(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),kh(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new cd(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),gm(e=>{if(e.guards.canActivateChecks.length)return dh(e).pipe(Nh(e=>{const t=new fd(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),function(e,t){return function(n){return n.pipe(W(n=>{const{targetSnapshot:i,guards:{canActivateChecks:s}}=n;return s.length?Y(s).pipe(sd(n=>(function(e,t,n,i){return function(e,t,n,i){const s=Object.keys(e);if(0===s.length)return dh({});if(1===s.length){const r=s[0];return fm(e[r],t,n,i).pipe(z(e=>({[r]:e})))}const r={};return Y(s).pipe(W(s=>fm(e[s],t,n,i).pipe(z(e=>(r[s]=e,e))))).pipe(zh(),z(()=>r))}(e._resolve,e,t,i).pipe(z(t=>(e._resolvedData=t,e.data=Object.assign({},e.data,gp(e,n).resolve),null)))})(n.route,i,e,t)),function(e,t){return arguments.length>=2?function(n){return v(td(e,t),Oh(1),Uh(t))(n)}:function(t){return v(td((t,n,i)=>e(t,n,i+1)),Oh(1))(t)}}((e,t)=>e),z(e=>n)):dh(n)}))}}(this.paramsInheritanceStrategy,this.ngModule.injector),Nh(e=>{const t=new gd(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),gm(e=>{const{targetSnapshot:t,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),z(e=>{const t=function(e,t,n){const i=function e(t,n,i){if(i&&t.shouldReuseRoute(n.value,i.value.snapshot)){const s=i.value;s._futureSnapshot=n.value;const r=function(t,n,i){return n.children.map(n=>{for(const s of i.children)if(t.shouldReuseRoute(s.value.snapshot,n.value))return e(t,n,s);return e(t,n)})}(t,n,i);return new hp(s,r)}{const i=t.retrieve(n.value);if(i){const e=i.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let i=0;i<t.children.length;++i)e(t.children[i],n.children[i])}(n,e),e}{const i=new fp(new vh((s=n.value).url),new vh(s.params),new vh(s.queryParams),new vh(s.fragment),new vh(s.data),s.outlet,s.component,s),r=n.children.map(n=>e(t,n));return new hp(i,r)}}var s}(e,t._root,n?n._root:void 0);return new pp(i,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:t})}),Nh(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Np(this.rootContexts,this.routeReuseStrategy,e=>this.triggerEvent(e)),Nh({next(){n=!0},complete(){n=!0}}),function(e){return t=>t.lift(new rd(e))}(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new cd(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),$h(n=>{if(i=!0,function(e){return e&&e[Dd]}(n)){const i=Lp(n.url);i||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new cd(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(s),e.resolve(!1),i&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const i=new hd(e.id,this.serializeUrl(e.extractedUrl),n);t.next(i);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}return Qu}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign({},this.getTransition(),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{let t=this.parseUrl(e.url);const n="popstate"===e.type?"popstate":"hashchange",i=e.state&&e.state.navigationId?e.state:null;setTimeout(()=>{this.scheduleNavigation(t,n,i,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Rd(e),this.config=e.map(Md),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:i,fragment:s,preserveQueryParams:r,queryParamsHandling:o,preserveFragment:l}=t;at()&&r&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const a=n||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let c=null;if(o)switch(o){case"merge":c=Object.assign({},this.currentUrlTree.queryParams,i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}else c=r?this.currentUrlTree.queryParams:i||null;return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,i,s){if(0===n.length)return Ep(t.root,t.root,t,i,s);const r=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new xp(!0,0,e);let t=0,n=!1;const i=e.reduce((e,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const t={};return Ud(i.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(i.segmentPath)return[...e,i.segmentPath]}return"string"!=typeof i?[...e,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[...e,i]},[]);return new xp(n,t,i)}(n);if(r.toRoot())return Ep(t.root,new $d([],{}),t,i,s);const o=function(e,t,n){if(e.isAbsolute)return new kp(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new kp(n.snapshot._urlSegment,!0,0);const i=Sp(e.commands[0])?0:1;return function(e,t,n){let i=e,s=t,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new kp(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(r,t,e),l=o.processChildren?Tp(o.segmentGroup,o.index,r.commands):Dp(o.segmentGroup,o.index,r.commands);return Ep(o.segmentGroup,l,t,i,s)}(a,this.currentUrlTree,e,c,u)}navigateByUrl(e,t={skipLocationChange:!1}){at()&&this.isNgZoneEnabled&&!dr.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Lp(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(Lp(e))return jd(this.currentUrlTree,e,t);const n=this.parseUrl(e);return jd(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const i=e[n];return null!=i&&(t[n]=i),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new ud(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,i){const s=this.getTransition();if(s&&"imperative"!==t&&"imperative"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"hashchange"==t&&"popstate"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(s&&"popstate"==t&&"hashchange"===s.source&&s.rawUrl.toString()===e.toString())return Promise.resolve(!0);let r=null,o=null;const l=new Promise((e,t)=>{r=e,o=t}),a=++this.navigationId;return this.setTransition({id:a,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:r,reject:o,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,i){const s=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(s)||t?this.location.replaceState(s,"",Object.assign({},i,{navigationId:n})):this.location.go(s,"",Object.assign({},i,{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}let Am=(()=>(class{constructor(e,t,n,i,s){this.router=e,this.route=t,this.commands=[],null==n&&i.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}set preserveQueryParams(e){at()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e}onClick(){const e={skipLocationChange:Tm(this.skipLocationChange),replaceUrl:Tm(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Tm(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Tm(this.preserveFragment)})}}))(),Dm=(()=>(class{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe(e=>{e instanceof ud&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}set preserveQueryParams(e){at()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e}ngOnChanges(e){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,i){if(0!==e||t||n||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:Tm(this.skipLocationChange),replaceUrl:Tm(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Tm(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Tm(this.preserveFragment)})}}))();function Tm(e){return""===e||!!e}class Im{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Om,this.attachRef=null}}class Om{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Im,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}let Rm=(()=>(class{constructor(e,t,n,i,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Vs,this.deactivateEvents=new Vs,this.name=i||xd,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new Pm(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}))();class Pm{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===fp?this.route:e===Om?this.childContexts:this.parent.get(e,t)}}class Nm{}class Mm{preload(e,t){return t().pipe($h(()=>dh(null)))}}class Fm{preload(e,t){return dh(null)}}let Vm=(()=>(class{constructor(e,t,n,i,s){this.router=e,this.injector=i,this.preloadingStrategy=s,this.loader=new bm(t,n,t=>e.triggerEvent(new _d(t)),t=>e.triggerEvent(new yd(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(kh(e=>e instanceof ud),sd(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(rn);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const i of t)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const e=i._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(e,i)):i.children&&n.push(this.processRoutes(e,i.children));return Y(n).pipe(Q(),z(e=>void 0))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(W(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}))();class Lm{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,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(e=>{e instanceof ad?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ud&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Sd&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Sd(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const Um=new ke("ROUTER_CONFIGURATION"),Bm=new ke("ROUTER_FORROOT_GUARD"),jm=[Rl,{provide:Wd,useClass:Gd},{provide:km,useFactory:Gm,deps:[Or,Wd,Om,Rl,qe,Pr,ir,vm,Um,[wm,new ue],[_m,new ue]]},Om,{provide:fp,useFactory:Km,deps:[km]},{provide:Pr,useClass:Fr},Vm,Fm,Mm,{provide:Um,useValue:{enableTracing:!1}}];function zm(){return new kr("Router",km)}let $m=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[jm,Wm(t),{provide:Bm,useFactory:Ym,deps:[[km,new ue,new he]]},{provide:Um,useValue:n||{}},{provide:Il,useFactory:qm,deps:[Dl,[new ae(Ol),new ue],Um]},{provide:Lm,useFactory:Hm,deps:[km,La,Um]},{provide:Nm,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Fm},{provide:kr,multi:!0,useFactory:zm},[Zm,{provide:Bs,multi:!0,useFactory:Qm,deps:[Zm]},{provide:Jm,useFactory:Xm,deps:[Zm]},{provide:Ws,multi:!0,useExisting:Jm}]]}}static forChild(t){return{ngModule:e,providers:[Wm(t)]}}}return e})();function Hm(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Lm(e,t,n)}function qm(e,t,n={}){return n.useHash?new Nl(e,t):new Ml(e,t)}function Ym(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Wm(e){return[{provide:it,multi:!0,useValue:e},{provide:vm,multi:!0,useValue:e}]}function Gm(e,t,n,i,s,r,o,l,a={},u,c){const h=new km(null,t,n,i,s,r,o,Vd(l));if(u&&(h.urlHandlingStrategy=u),c&&(h.routeReuseStrategy=c),a.errorHandler&&(h.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(h.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const e=ja();h.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return a.onSameUrlNavigation&&(h.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(h.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(h.relativeLinkResolution=a.relativeLinkResolution),h}function Km(e){return e.routerState.root}let Zm=(()=>(class{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new A}appInitializer(){return this.injector.get(Tl,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(km),i=this.injector.get(Um);if(this.isLegacyDisabled(i)||this.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error(`Invalid initialNavigation options: '${i.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?dh(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(Um),n=this.injector.get(Vm),i=this.injector.get(Lm),s=this.injector.get(km),r=this.injector.get(Or);e===r.components[0]&&(this.isLegacyEnabled(t)?s.initialNavigation():this.isLegacyDisabled(t)&&s.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),s.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}))();function Qm(e){return e.appInitializer.bind(e)}function Xm(e){return e.bootstrapListener.bind(e)}const Jm=new ke("Router Initializer");class ef{}class tf{}class nf{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),i=n.toLowerCase(),s=e.slice(t+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const i=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(t,i))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof nf?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new nf;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof nf?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const i=("a"===e.op?this.headers.get(t):void 0)||[];i.push(...n),this.headers.set(t,i);break;case"d":const s=e.value;if(s){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===s.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class sf{encodeKey(e){return rf(e)}encodeValue(e){return rf(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function rf(e){return encodeURIComponent(e).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 of{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new sf,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.split("&").forEach(e=>{const i=e.indexOf("="),[s,r]=-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).join("&")}clone(e){const t=new of({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat([e]),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function lf(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function af(e){return"undefined"!=typeof Blob&&e instanceof Blob}function uf(e){return"undefined"!=typeof FormData&&e instanceof FormData}class cf{constructor(e,t,n,i){let s;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new nf),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new of,this.urlWithParams=t}serializeBody(){return null===this.body?null:lf(this.body)||af(this.body)||uf(this.body)||"string"==typeof this.body?this.body:this.body instanceof of?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:uf(this.body)?null:af(this.body)?this.body.type||null:lf(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof of?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(e={}){const t=e.method||this.method,n=e.url||this.url,i=e.responseType||this.responseType,s=void 0!==e.body?e.body:this.body,r=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,o=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let l=e.headers||this.headers,a=e.params||this.params;return void 0!==e.setHeaders&&(l=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),l)),e.setParams&&(a=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),a)),new cf(t,n,s,{params:a,headers:l,reportProgress:o,responseType:i,withCredentials:r})}}const hf=function(){var e={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return e[e.Sent]="Sent",e[e.UploadProgress]="UploadProgress",e[e.ResponseHeader]="ResponseHeader",e[e.DownloadProgress]="DownloadProgress",e[e.Response]="Response",e[e.User]="User",e}();class df{constructor(e,t=200,n="OK"){this.headers=e.headers||new nf,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class pf extends df{constructor(e={}){super(e),this.type=hf.ResponseHeader}clone(e={}){return new pf({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class mf extends df{constructor(e={}){super(e),this.type=hf.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new mf({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class ff extends df{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function gf(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let _f=(()=>(class{constructor(e){this.handler=e}request(e,t,n={}){let i;if(e instanceof cf)i=e;else{let s=void 0;s=n.headers instanceof nf?n.headers:new nf(n.headers);let r=void 0;n.params&&(r=n.params instanceof of?n.params:new of({fromObject:n.params})),i=new cf(e,t,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=dh(i).pipe(sd(e=>this.handler.handle(e)));if(e instanceof cf||"events"===n.observe)return s;const r=s.pipe(kh(e=>e instanceof mf));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(z(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return r.pipe(z(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return r.pipe(z(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return r.pipe(z(e=>e.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new of).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,gf(n,t))}post(e,t,n={}){return this.request("POST",e,gf(n,t))}put(e,t,n={}){return this.request("PUT",e,gf(n,t))}}))();class yf{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const vf=new ke("HTTP_INTERCEPTORS");let bf=(()=>(class{intercept(e,t){return t.handle(e)}}))();const wf=/^\)\]\}',?\n/;class Cf{}let Sf=(()=>(class{constructor(){}build(){return new XMLHttpRequest}}))(),Ef=(()=>(class{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new w(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const i=e.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const t=1223===n.status?204:n.status,i=n.statusText||"OK",r=new nf(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return s=new pf({headers:r,status:t,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:l}=r(),a=null;204!==s&&(a=void 0===n.response?n.responseText:n.response),0===s&&(s=a?200:0);let u=s>=200&&s<300;if("json"===e.responseType&&"string"==typeof a){const e=a;a=a.replace(wf,"");try{a=""!==a?JSON.parse(a):null}catch(c){a=e,u&&(u=!1,a={error:c,text:a})}}u?(t.next(new mf({body:a,headers:i,status:s,statusText:o,url:l||void 0})),t.complete()):t.error(new ff({error:a,headers:i,status:s,statusText:o,url:l||void 0}))},l=e=>{const{url:i}=r(),s=new ff({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});t.error(s)};let a=!1;const u=i=>{a||(t.next(r()),a=!0);let s={type:hf.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===e.responseType&&n.responseText&&(s.partialText=n.responseText),t.next(s)},c=e=>{let n={type:hf.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",l),e.reportProgress&&(n.addEventListener("progress",u),null!==i&&n.upload&&n.upload.addEventListener("progress",c)),n.send(i),t.next({type:hf.Sent}),()=>{n.removeEventListener("error",l),n.removeEventListener("load",o),e.reportProgress&&(n.removeEventListener("progress",u),null!==i&&n.upload&&n.upload.removeEventListener("progress",c)),n.abort()}})}}))();const xf=new ke("XSRF_COOKIE_NAME"),kf=new ke("XSRF_HEADER_NAME");class Af{}let Df=(()=>(class{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ma(e,this.cookieName),this.lastCookieString=e),this.lastToken}}))(),Tf=(()=>(class{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}))(),If=(()=>(class{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(vf,[]);this.chain=e.reduceRight((e,t)=>new yf(e,t),this.backend)}return this.chain.handle(e)}}))(),Of=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:Tf,useClass:bf}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:xf,useValue:t.cookieName}:[],t.headerName?{provide:kf,useValue:t.headerName}:[]]}}}return e})(),Rf=(()=>(class{}))(),Pf=(()=>{class e{constructor(e,t){this.router=e,this.http=t}canActivate(e,t){return this.http.get(window.location.origin+"/api/check/").toPromise().then().catch(e=>{e.url.includes("Account/Login")&&(window.location.href=window.location.origin+"/Account/Login")}),!0}}return e.ngInjectableDef=me({factory:function(){return new e(Ue(km),Ue(_f))},token:e,providedIn:"root"}),e})();class Nf{}class Mf{}class Ff{constructor(e,t){this.shareService=e,this.http=t,this.menus=Array(),this.toggleMenu=!1}ngOnInit(){this.http.get("/api/nav/").toPromise().then(e=>{for(var t=0;t<e.length;t++){var n=new Mf;n.Text=e[t],n.Url="/"+e[t]+"/Index/index.html",this.menus.push(n)}}).catch(e=>{200==e.status&&(window.location.href=window.location.origin+"/Account/login")}),this.shareService.currentMessage.subscribe(e=>this.toggleMenu=e)}}class Vf{constructor(e,t){this.shareService=e,this.http=t,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(e=>{window.location.href=window.location.origin+"/Account/Login"}).catch(()=>{window.location.href=window.location.origin+"/Account/Login"})}}var Lf=ti({encapsulation:2,styles:[],data:{}});function Uf(e){return _o(0,[(e()(),Qr(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ps(1,212992,null,0,Rm,[Om,Fn,tn,[8,null],Tn],null,null)],(function(e,t){e(t,1,0)}),null)}function Bf(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"ng-component",[],null,null,null,Uf,Lf)),ps(1,49152,null,0,Ed,[],null,null)],null,null)}var jf=$i("ng-component",Ed,Bf,{},{},[]);class zf{}class $f{}const Hf="*";function qf(e,t=null){return{type:2,steps:e,options:t}}function Yf(e){return{type:6,styles:e,offset:null}}function Wf(e){Promise.resolve(null).then(e)}class Gf{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Wf(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Kf{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,i=0;const s=this.players.length;0==s?Wf(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==s&&this._onFinish()}),e.onDestroy(()=>{++n==s&&this._onDestroy()}),e.onStart(()=>{++i==s&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}const Zf="!";function Qf(){throw Error("Host already has a portal attached")}class Xf{attach(e){return null==e&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),e.hasAttached()&&Qf(),this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null==e?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class Jf extends Xf{constructor(e,t,n,i){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.componentFactoryResolver=i}}class eg extends Xf{constructor(e,t,n){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class tg{constructor(){this._isDisposed=!1}hasAttached(){return!!this._attachedPortal}attach(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&Qf(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof Jf?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof eg?(this._attachedPortal=e,this.attachTemplatePortal(e)):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(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ng extends tg{constructor(e,t,n,i){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=n,this._defaultInjector=i}attachComponentPortal(e){const t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=t.create(e.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(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context);return n.detectChanges(),n.rootNodes.forEach(e=>this.outletElement.appendChild(e)),this.setDisposeFn(()=>{let e=t.indexOf(n);-1!==e&&t.remove(e)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let ig=(()=>(class extends tg{constructor(e,t){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new Vs}get portal(){return this._attachedPortal}set portal(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i=t.createComponent(n,t.length,e.injector||t.injector);return super.setDisposeFn(()=>i.destroy()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}}))(),sg=(()=>(class{}))();class rg{constructor(e,t){this._parentInjector=e,this._customTokens=t}get(e,t){const n=this._customTokens.get(e);return void 0!==n?n:this._parentInjector.get(e,t)}}const og=9,lg=27,ag=37,ug=38,cg=39,hg=40,dg=48,pg=57,mg=65,fg=90;function gg(e,...t){return t.length?t.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}const _g=new ke("cdk-dir-doc",{providedIn:"root",factory:function(){return Be(Fa)}});let yg=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new Vs,e){const t=e.documentElement?e.documentElement.dir:null,n=(e.body?e.body.dir:null)||t;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.ngInjectableDef=me({factory:function(){return new e(Ue(_g,8))},token:e,providedIn:"root"}),e})(),vg=(()=>(class{}))();function bg(e){return null!=e&&"false"!==`${e}`}function wg(e){return Array.isArray(e)?e:[e]}function Cg(e){return null==e?"":"string"==typeof e?e:`${e}px`}function Sg(e){return e instanceof an?e.nativeElement:e}function Eg(e,t,n,s){return i(n)&&(s=n,n=void 0),s?Eg(e,t,n).pipe(z(e=>a(e)?s(...e):s(e))):new w(i=>{!function e(t,n,i,s,r){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){const e=t;t.addEventListener(n,i,r),o=()=>e.removeEventListener(n,i,r)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){const e=t;t.on(n,i),o=()=>e.off(n,i)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){const e=t;t.addListener(n,i),o=()=>e.removeListener(n,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,l=t.length;o<l;o++)e(t[o],n,i,s,r)}s.add(o)}(e,t,(function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),i,n)})}class xg extends d{constructor(e,t){super()}schedule(e,t=0){return this}}class kg extends xg{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,i=void 0;try{this.work(e)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Ag=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class Dg extends Ag{constructor(e,t=Ag.now){super(e,()=>Dg.delegate&&Dg.delegate!==this?Dg.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return Dg.delegate&&Dg.delegate!==this?Dg.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}const Tg=new Dg(kg);class Ig{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new Og(e,this.durationSelector))}}class Og extends j{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:t}=this;n=t(e)}catch(t){return this.destination.error(t)}const i=B(this,n);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))}notifyNext(e,t,n,i){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Rg(e){return!a(e)&&e-parseFloat(e)+1>=0}function Pg(e){const{index:t,period:n,subscriber:i}=e;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function Ng(e,t=Tg){return n=()=>(function(e=0,t,n){let i=-1;return Rg(t)?i=Number(t)<1?1:Number(t):T(t)&&(n=t),T(n)||(n=Tg),new w(t=>{const s=Rg(e)?e:+e-n.now();return n.schedule(Pg,s,{index:0,period:i,subscriber:t})})})(e,t),function(e){return e.lift(new Ig(n))};var n}function Mg(e){return t=>t.lift(new Fg(e))}class Fg{constructor(e){this.notifier=e}call(e,t){const n=new Vg(e),i=B(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}class Vg extends j{constructor(e){super(e),this.seenValue=!1}notifyNext(e,t,n,i,s){this.seenValue=!0,this.complete()}notifyComplete(){}}let Lg,Ug=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return dh(this.value);case"E":return e=this.error,new w(t=>t.error(e));case"C":return Xu()}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();try{Lg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(HE){Lg=!1}let Bg,jg=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?this._platformId===Va:"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&&!Lg)&&"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 e.ngInjectableDef=me({factory:function(){return new e(Ue(Ys,8))},token:e,providedIn:"root"}),e})(),zg=(()=>(class{}))();const $g=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Hg(){if(Bg)return Bg;if("object"!=typeof document||!document)return Bg=new Set($g),Bg;let e=document.createElement("input");return Bg=new Set($g.filter(t=>(e.setAttribute("type",t),e.type===t))),Bg}let qg,Yg;function Wg(e){return function(){if(null==qg&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>qg=!0}))}finally{qg=qg||!1}return qg}()?e:!!e.capture}const Gg=20;let Kg=(()=>{class e{constructor(e,t){this._ngZone=e,this._platform=t,this._scrolled=new A,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=Gg){return this._platform.isBrowser?new w(t=>{this._globalSubscription||this._addGlobalListener();const n=e>0?this._scrolled.pipe(Ng(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):dh()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(kh(e=>!e||n.indexOf(e)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,e)&&t.push(i)}),t}_scrollableContainsElement(e,t){let n=t.nativeElement,i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Eg(window.document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return e.ngInjectableDef=me({factory:function(){return new e(Ue(dr),Ue(jg))},token:e,providedIn:"root"}),e})(),Zg=(()=>(class{}))();const Qg=20;let Xg=(()=>{class e{constructor(e,t){this._platform=e,t.runOutsideAngular(()=>{this._change=e.isBrowser?X(Eg(window,"resize"),Eg(window,"orientationchange")):dh(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=document.documentElement,t=e.getBoundingClientRect();return{top:-t.top||document.body.scrollTop||window.scrollY||e.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||e.scrollLeft||0}}change(e=Qg){return e>0?this._change.pipe(Ng(e)):this._change}_updateViewportSize(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}}}return e.ngInjectableDef=me({factory:function(){return new e(Ue(jg),Ue(dr))},token:e,providedIn:"root"}),e})();class Jg{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Cg(-this._previousScrollPosition.left),e.style.top=Cg(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),t.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.scrollBehavior=i,n.scrollBehavior=s}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}function e_(){return Error("Scroll strategy has already been attached.")}class t_{constructor(e,t,n,i){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){if(this._overlayRef)throw e_();this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class n_{enable(){}disable(){}attach(){}}function i_(e,t){return t.some(t=>e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right)}function s_(e,t){return t.some(t=>e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}class r_{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(e){if(this._overlayRef)throw e_();this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();i_(e,[{width:t,height:n,bottom:n,right:t,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 o_=(()=>{class e{constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=()=>new n_,this.close=e=>new t_(this._scrollDispatcher,this._ngZone,this._viewportRuler,e),this.block=()=>new Jg(this._viewportRuler,this._document),this.reposition=e=>new r_(this._scrollDispatcher,this._viewportRuler,this._ngZone,e),this._document=i}}return e.ngInjectableDef=me({factory:function(){return new e(Ue(Kg),Ue(Xg),Ue(dr),Ue(Fa))},token:e,providedIn:"root"}),e})();class l_{constructor(e){if(this.scrollStrategy=new n_,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const n of t)void 0!==e[n]&&(this[n]=e[n])}}}class a_{constructor(e,t,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}}let u_=(()=>(class{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}))();function c_(e,t){if("top"!==t&&"bottom"!==t&&"center"!==t)throw Error(`ConnectedPosition: Invalid ${e} "${t}". `+'Expected "top", "bottom" or "center".')}function h_(e,t){if("start"!==t&&"end"!==t&&"center"!==t)throw Error(`ConnectedPosition: Invalid ${e} "${t}". `+'Expected "start", "end" or "center".')}let d_=(()=>{class e{constructor(e){this._attachedOverlays=[],this._keydownListener=e=>{const t=this._attachedOverlays;for(let n=t.length-1;n>-1;n--)if(t[n]._keydownEventSubscriptions>0){t[n]._keydownEvents.next(e);break}},this._document=e}ngOnDestroy(){this._detach()}add(e){this.remove(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return e.ngInjectableDef=me({factory:function(){return new e(Ue(Fa))},token:e,providedIn:"root"}),e})(),p_=(()=>{class e{constructor(e){this._document=e}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.getElementsByClassName("cdk-overlay-container");for(let n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);const t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),this._document.body.appendChild(t),this._containerElement=t}}return e.ngInjectableDef=me({factory:function(){return new e(Ue(Fa))},token:e,providedIn:"root"}),e})();class m_{constructor(e,t,n,i,s,r,o,l){this._portalOutlet=e,this._host=t,this._pane=n,this._config=i,this._ngZone=s,this._keyboardDispatcher=r,this._document=o,this._location=l,this._backdropElement=null,this._backdropClick=new A,this._attachments=new A,this._detachments=new A,this._locationChanges=d.EMPTY,this._backdropClickHandler=e=>this._backdropClick.next(e),this._keydownEventsObservable=new w(e=>{const t=this._keydownEvents.subscribe(e);return this._keydownEventSubscriptions++,()=>{t.unsubscribe(),this._keydownEventSubscriptions--}}),this._keydownEvents=new A,this._keydownEventSubscriptions=0,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);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(Yh(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())),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),e}dispose(){const e=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,e&&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(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign({},this._config,e),this._updateElementSize()}setDirection(e){this._config=Object.assign({},this._config,{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Cg(this._config.width),e.height=Cg(this._config.height),e.minWidth=Cg(this._config.minWidth),e.minHeight=Cg(this._config.minHeight),e.maxWidth=Cg(this._config.maxWidth),e.maxHeight=Cg(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"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 e,t=this._backdropElement;if(!t)return;let n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(e,t,n){const i=e.classList;wg(t).forEach(e=>{e&&(n?i.add(e):i.remove(e))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.asObservable().pipe(Mg(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)),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}const f_="cdk-overlay-connected-position-bounding-box";class g_{constructor(e,t,n,i,s){this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=s,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(e)}get positions(){return this._preferredPositions}attach(e){if(this._overlayRef&&e!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),e.hostElement.classList.add(f_),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.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 e=this._originRect,t=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(e,r),l=this._getOverlayPoint(o,t,r),a=this._getOverlayFit(l,t,n,r);if(a.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(a,l,n)?i.push({position:r,origin:o,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleArea<a.visibleArea)&&(s={overlayFit:a,overlayPoint:l,originPoint:o,position:r,overlayRect:t})}if(i.length){let e=null,t=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>t&&(t=i,e=n)}return this._isPushed=!1,void this._applyPosition(e.position,e.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&__(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(f_),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 e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t){let n,i;if("center"==t.originX)n=e.left+e.width/2;else{const i=this._isRtl()?e.right:e.left,s=this._isRtl()?e.left:e.right;n="start"==t.originX?i:s}return i="center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom,{x:n,y:i}}_getOverlayPoint(e,t,n){let i,s;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+s}}_getOverlayFit(e,t,n,i){let{x:s,y:r}=e,o=this._getOffset(i,"x"),l=this._getOffset(i,"y");o&&(s+=o),l&&(r+=l);let a=0-r,u=r+t.height-n.height,c=this._subtractOverflows(t.width,0-s,s+t.width-n.width),h=this._subtractOverflows(t.height,a,u),d=c*h;return{visibleArea:d,isCompletelyWithinViewport:t.width*t.height===d,fitsInViewportVertically:h===t.height,fitsInViewportHorizontally:c==t.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){const i=n.bottom-t.y,s=n.right-t.x,r=this._overlayRef.getConfig().minHeight,o=this._overlayRef.getConfig().minWidth,l=e.fitsInViewportHorizontally||null!=o&&o<=s;return(e.fitsInViewportVertically||null!=r&&r<=i)&&l}return!1}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const i=this._viewportRect,s=Math.max(e.x+t.width-i.right,0),r=Math.max(e.y+t.height-i.bottom,0),o=Math.max(i.top-n.top-e.y,0),l=Math.max(i.left-n.left-e.x,0);let a=0,u=0;return a=t.width<=i.width?l||-s:e.x<this._viewportMargin?i.left-n.left-e.x:0,u=t.height<=i.height?o||-r:e.y<this._viewportMargin?i.top-n.top-e.y:0,this._previousPushAmount={x:a,y:u},{x:e.x+a,y:e.y+u}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const t=this._getScrollVisibility(),n=new u_(e,t);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=e.overlayY;n="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(e,t){const n=this._viewportRect,i=this._isRtl();let s,r,o,l,a,u;if("top"===t.overlayY)r=e.y,s=n.height-r+this._viewportMargin;else if("bottom"===t.overlayY)o=n.height-e.y+2*this._viewportMargin,s=n.height-o+this._viewportMargin;else{const t=Math.min(n.bottom-e.y+n.top,e.y),i=this._lastBoundingBoxSize.height;s=2*t,r=e.y-t,s>i&&!this._isInitialRender&&!this._growAfterOpen&&(r=e.y-i/2)}if("end"===t.overlayX&&!i||"start"===t.overlayX&&i)u=n.width-e.x+this._viewportMargin,l=e.x-this._viewportMargin;else if("start"===t.overlayX&&!i||"end"===t.overlayX&&i)a=e.x,l=n.right-e.x;else{const t=Math.min(n.right-e.x+n.left,e.x),i=this._lastBoundingBoxSize.width;l=2*t,a=e.x-t,l>i&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-i/2)}return{top:r,left:a,bottom:o,right:u,width:l,height:s}}_setBoundingBoxStyles(e,t){const n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right="",i.width=i.height="100%";else{const e=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=Cg(n.height),i.top=Cg(n.top),i.bottom=Cg(n.bottom),i.width=Cg(n.width),i.left=Cg(n.left),i.right=Cg(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",e&&(i.maxHeight=Cg(e)),s&&(i.maxWidth=Cg(s))}this._lastBoundingBoxSize=n,__(this._boundingBox.style,i)}_resetBoundingBoxStyles(){__(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){__(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const n={};if(this._hasExactPosition()){const i=this._viewportRuler.getViewportScrollPosition();__(n,this._getExactOverlayY(t,e,i)),__(n,this._getExactOverlayX(t,e,i))}else n.position="static";let i="",s=this._getOffset(t,"x"),r=this._getOffset(t,"y");s&&(i+=`translateX(${s}px) `),r&&(i+=`translateY(${r}px)`),n.transform=i.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),__(this._pane.style,n)}_getExactOverlayY(e,t,n){let i={top:null,bottom:null},s=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===e.overlayY?i.bottom=`${this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)}px`:i.top=Cg(s.y),i}_getExactOverlayX(e,t,n){let i,s={left:null,right:null},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===i?s.right=`${this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)}px`:s.left=Cg(r.x),s}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(e=>e.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:s_(e,n),isOriginOutsideView:i_(e,n),isOverlayClipped:s_(t,n),isOverlayOutsideView:i_(t,n)}}_subtractOverflows(e,...t){return t.reduce((e,t)=>e-Math.max(t,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(e=>{h_("originX",e.originX),c_("originY",e.originY),h_("overlayX",e.overlayX),c_("overlayY",e.overlayY)})}_addPanelClasses(e){this._pane&&wg(e).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof an)return e.nativeElement.getBoundingClientRect();if(e instanceof HTMLElement)return e.getBoundingClientRect();const t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}function __(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}class y_{constructor(e,t,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new g_(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,t)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(e){this._positionStrategy.withScrollableContainers(e)}withFallbackPosition(e,t,n,i){const s=new a_(e,t,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}withOffsetX(e){return this._positionStrategy.withDefaultOffsetX(e),this}withOffsetY(e){return this._positionStrategy.withDefaultOffsetY(e),this}withLockedPosition(e){return this._positionStrategy.withLockedPosition(e),this}withPositions(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(e){return this._positionStrategy.setOrigin(e),this}}const v_="cdk-global-overlay-wrapper";class b_{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(v_),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig();e.position=this._cssPosition,e.marginLeft="100%"===n.width?"0":this._leftOffset,e.marginTop="100%"===n.height?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,"100%"===n.width?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems="100%"===n.height?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(v_),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let w_=(()=>{class e{constructor(e,t,n,i){this._viewportRuler=e,this._document=t,this._platform=n,this._overlayContainer=i}global(){return new b_}connectedTo(e,t,n){return new y_(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new g_(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return e.ngInjectableDef=me({factory:function(){return new e(Ue(Xg),Ue(Fa),Ue(jg),Ue(p_))},token:e,providedIn:"root"}),e})(),C_=0,S_=(()=>(class{constructor(e,t,n,i,s,r,o,l,a,u){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=l,this._directionality=a,this._location=u}create(e){const t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),s=new l_(e);return s.direction=s.direction||this._directionality.value,new m_(i,t,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id=`cdk-overlay-${C_++}`,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Or)),new ng(e,this._componentFactoryResolver,this._appRef,this._injector)}}))();const E_=new ke("cdk-connected-overlay-scroll-strategy");function x_(e){return()=>e.scrollStrategies.reposition()}let k_=(()=>(class{}))();class A_{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 D_(){throw Error("Attempting to attach dialog content after content is already attached")}let T_=(()=>(class extends tg{constructor(e,t,n,i,s){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=n,this._document=i,this._config=s,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new Vs,this._ariaLabelledBy=s.ariaLabelledBy||null}attachComponentPortal(e){return this._portalOutlet.hasAttached()&&D_(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached()&&D_(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}_trapFocus(){const e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const t=this._document.activeElement;t===e||e.contains(t)||e.focus()}}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;this._config.restoreFocus&&e&&"function"==typeof e.focus&&e.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(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)}_onAnimationStart(e){this._animationStateChanged.emit(e)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}))(),I_=0;class O_{constructor(e,t,n,i=`mat-dialog-${I_++}`){this._overlayRef=e,this._containerInstance=t,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new A,this._afterClosed=new A,this._beforeClosed=new A,this._state=0,t._id=i,t._animationStateChanged.pipe(kh(e=>"done"===e.phaseName&&"enter"===e.toState),Yh(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(kh(e=>"done"===e.phaseName&&"exit"===e.toState),Yh(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._overlayRef.dispose()}),e.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),e.keydownEvents().pipe(kh(e=>e.keyCode===lg&&!this.disableClose&&!gg(e))).subscribe(e=>{e.preventDefault(),this.close()})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(kh(e=>"start"===e.phaseName),Yh(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._state=2,this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},t.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(e){let t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(e="",t=""){return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}addPanelClass(e){return this._overlayRef.addPanelClass(e),this}removePanelClass(e){return this._overlayRef.removePanelClass(e),this}afterOpen(){return this.afterOpened()}beforeClose(){return this.beforeClosed()}getState(){return this._state}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}const R_=new ke("MatDialogData"),P_=new ke("mat-dialog-default-options"),N_=new ke("mat-dialog-scroll-strategy");function M_(e){return()=>e.scrollStrategies.block()}let F_=(()=>(class{constructor(e,t,n,i,s,r,o){this._overlay=e,this._injector=t,this._location=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new A,this._afterOpenedAtThisLevel=new A,this._ariaHiddenElements=new Map,this.afterAllClosed=xh(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(mh(void 0))),this._scrollStrategy=s}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 e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel}open(e,t){if((t=function(e,t){return Object.assign({},t,e)}(t,this._defaultOptions||new A_)).id&&this.getDialogById(t.id))throw Error(`Dialog with id "${t.id}" exists already. The dialog id must be unique.`);const n=this._createOverlay(t),i=this._attachDialogContainer(n,t),s=this._attachDialogContent(e,i,n,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new l_({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const n=new rg(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[A_,t]])),i=new Jf(T_,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,n,i){const s=new O_(n,t,this._location,i.id);if(i.hasBackdrop&&n.backdropClick().subscribe(()=>{s.disableClose||s.close()}),e instanceof Nn)t.attachTemplatePortal(new eg(e,null,{$implicit:i.data,dialogRef:s}));else{const n=this._createInjector(i,s,t),r=t.attachComponentPortal(new Jf(e,void 0,n));s.componentInstance=r.instance}return s.updateSize(i.width,i.height).updatePosition(i.position),s}_createInjector(e,t,n){const i=e&&e.viewContainerRef&&e.viewContainerRef.injector,s=new WeakMap([[T_,n],[R_,e.data],[O_,t]]);return!e.direction||i&&i.get(yg,null)||s.set(yg,{value:e.direction,change:dh()}),new rg(i||this._injector,s)}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}))(),V_=(()=>(class{}))();const L_=new fn("8.2.3");function U_(e,t=Tg){return n=>n.lift(new B_(e,t))}class B_{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new j_(e,this.dueTime,this.scheduler))}}class j_ extends f{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(z_,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function z_(e){e.debouncedNext()}class $_{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new A,this._typeaheadSubscription=d.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new A,this.change=new A,e instanceof Us&&e.changes.subscribe(e=>{if(this._activeItem){const t=e.toArray().indexOf(this._activeItem);t>-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){if(this._items.length&&this._items.some(e=>"function"!=typeof e.getLabel))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Nh(e=>this._pressedLetters.push(e)),U_(e),kh(()=>this._pressedLetters.length>0),z(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let n=1;n<t.length+1;n++){const i=(this._activeItemIndex+n)%t.length,s=t[i];if(!this._skipPredicateFn(s)&&0===s.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(i);break}}this._pressedLetters=[]}),this}setActiveItem(e){const t=this._activeItemIndex;this.updateActiveItem(e),this._activeItemIndex!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(t=>!e[t]||this._allowedModifierKeys.indexOf(t)>-1);switch(t){case og:return void this.tabOut.next();case hg:if(this._vertical&&n){this.setNextItemActive();break}return;case ug:if(this._vertical&&n){this.setPreviousItemActive();break}return;case cg:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case ag:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((n||gg(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=mg&&t<=fg||t>=dg&&t<=pg)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}updateActiveItemIndex(e){this.updateActiveItem(e)}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let n=1;n<=t.length;n++){const i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof Us?this._items.toArray():this._items}}class H_ extends $_{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}let q_=(()=>{class e{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function(e){try{return e.frameElement}catch(HE){return null}}((n=e).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(t){const e=t&&t.nodeName.toLowerCase();if(-1===W_(t))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===e)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(t))return!1}let i=e.nodeName.toLowerCase(),s=W_(e);if(e.hasAttribute("contenteditable"))return-1!==s;if("iframe"===i)return!1;if("audio"===i){if(!e.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===i){if(!e.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==i||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){let t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&e.tabIndex>=0}isFocusable(e){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){let t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||Y_(e))}(e)&&!this.isDisabled(e)&&this.isVisible(e)}}return e.ngInjectableDef=me({factory:function(){return new e(Ue(jg))},token:e,providedIn:"root"}),e})();function Y_(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function W_(e){if(!Y_(e))return null;const t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class G_{constructor(e,t,n,i,s=!1){this._element=e,this._checker=t,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),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(e=>{this._executeOnStable(()=>e(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement()))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], `+`[cdkFocusRegion${e}], `+`[cdk-focus-${e}]`);for(let n=0;n<t.length;n++)t[n].hasAttribute(`cdk-focus-${e}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${e}', `+`use 'cdkFocusRegion${e}' instead. The deprecated `+"attribute will be removed in 8.0.0.",t[n]):t[n].hasAttribute(`cdk-focus-region-${e}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${e}', `+`use 'cdkFocusRegion${e}' instead. The deprecated attribute `+"will be removed in 8.0.0.",t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return e?(e.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",e),at()&&!this._checker.isFocusable(e)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",e),e.focus(),!0):this.focusFirstTabbableElement()}focusFirstTabbableElement(){const e=this._getRegionBoundary("start");return e&&e.focus(),!!e}focusLastTabbableElement(){const e=this._getRegionBoundary("end");return e&&e.focus(),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=0;n<t.length;n++){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(e)return e}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=t.length-1;n>=0;n--){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(e)return e}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(Yh(1)).subscribe(e)}}let K_=(()=>{class e{constructor(e,t,n){this._checker=e,this._ngZone=t,this._document=n}create(e,t=!1){return new G_(e,this._checker,this._ngZone,this._document,t)}}return e.ngInjectableDef=me({factory:function(){return new e(Ue(q_),Ue(dr),Ue(Fa))},token:e,providedIn:"root"}),e})(),Z_=(()=>(class{constructor(e,t,n){this._elementRef=e,this._focusTrapFactory=t,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=bg(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=bg(e)}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 Q_=new ke("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),X_=new ke("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let J_=(()=>{class e{constructor(e,t,n,i){this._ngZone=t,this._defaultOptions=i,this._document=n,this._liveElement=e||this._createLiveElement()}announce(e,...t){const n=this._defaultOptions;let i,s;return 1===t.length&&"number"==typeof t[0]?s=t[0]:[i,s]=t,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(t=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,t(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},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 e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div");for(let n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t}}return e.ngInjectableDef=me({factory:function(){return new e(Ue(Q_,8),Ue(dr),Ue(Fa),Ue(X_,8))},token:e,providedIn:"root"}),e})(),ey=(()=>(class{constructor(e,t,n,i){this._elementRef=e,this._liveAnnouncer=t,this._contentObserver=n,this._ngZone=i,this._politeness="off"}get politeness(){return this._politeness}set politeness(e){this._politeness="polite"===e||"assertive"===e?e:"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 e=this._elementRef.nativeElement.textContent;e!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(e,this._politeness),this._previousAnnouncedText=e)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}))();const ty=650,ny=Wg({passive:!0,capture:!0});let iy=(()=>{class e{constructor(e,t){this._ngZone=e,this._platform=t,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=e=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=e.composedPath?e.composedPath()[0]:e.target,this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,ty)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)}}monitor(e,t=!1){if(!this._platform.isBrowser)return dh(null);const n=Sg(e);if(this._elementInfo.has(n)){let e=this._elementInfo.get(n);return e.checkChildren=t,e.subject.asObservable()}let i={unlisten:()=>{},checkChildren:t,subject:new A};this._elementInfo.set(n,i),this._incrementMonitoredElementCount();let s=e=>this._onFocus(e,n),r=e=>this._onBlur(e,n);return this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",s,!0),n.addEventListener("blur",r,!0)}),i.unlisten=()=>{n.removeEventListener("focus",s,!0),n.removeEventListener("blur",r,!0)},i.subject.asObservable()}stopMonitoring(e){const t=Sg(e),n=this._elementInfo.get(t);n&&(n.unlisten(),n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())}focusVia(e,t,n){const i=Sg(e);this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.focus(n)}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_toggleClass(e,t,n){n?e.classList.add(t):e.classList.remove(t)}_setClasses(e,t){this._elementInfo.get(e)&&(this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t))}_setOriginForCurrentEventQueue(e){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originTimeoutId=setTimeout(()=>this._origin=null,1)})}_wasCausedByTouch(e){let t=e.target;return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}_onFocus(e,t){const n=this._elementInfo.get(t);if(!n||!n.checkChildren&&t!==e.target)return;let i=this._origin;i||(i=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"),this._setClasses(t,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}_onBlur(e,t){const n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_incrementMonitoredElementCount(){1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular(()=>{document.addEventListener("keydown",this._documentKeydownListener,ny),document.addEventListener("mousedown",this._documentMousedownListener,ny),document.addEventListener("touchstart",this._documentTouchstartListener,ny),window.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){--this._monitoredElementCount||(document.removeEventListener("keydown",this._documentKeydownListener,ny),document.removeEventListener("mousedown",this._documentMousedownListener,ny),document.removeEventListener("touchstart",this._documentTouchstartListener,ny),window.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId))}}return e.ngInjectableDef=me({factory:function(){return new e(Ue(dr),Ue(jg))},token:e,providedIn:"root"}),e})(),sy=(()=>(class{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new Vs,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(e=>this.cdkFocusChange.emit(e))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}))(),ry=(()=>(class{}))();const oy=new fn("8.2.3"),ly=new ke("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let ay=(()=>(class{constructor(e,t){this._sanityChecksEnabled=e,this._hammerLoader=t,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&&at()&&!this._isTestEnv()}_isTestEnv(){const e=this._window;return e&&(e.__karma__||e.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 e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const t=getComputedStyle(e);t&&"none"!==t.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(e)}_checkCdkVersionMatch(){oy.full!==L_.full&&console.warn("The Angular Material version ("+oy.full+") does not match the Angular CDK version ("+L_.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 uy(e){return class extends e{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=bg(e)}}}function cy(e,t){return class extends e{get color(){return this._color}set color(e){const n=e||t;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(...e){super(...e),this.color=t}}}function hy(e){return class extends e{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=bg(e)}}}function dy(e){return class extends e{constructor(...e){super(...e),this.errorState=!1,this.stateChanges=new A}updateErrorState(){const e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}}const py=new ke("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Be(Ks)}});class my{constructor(){this._localeChanges=new A}get localeChanges(){return this._localeChanges}deserialize(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)}sameDate(e,t){if(e&&t){let n=this.isValid(e),i=this.isValid(t);return n&&i?!this.compareDate(e,t):n==i}return e==t}clampDate(e,t,n){return t&&this.compareDate(e,t)<0?t:n&&this.compareDate(e,n)>0?n:e}}const fy=new ke("mat-date-formats");let gy;try{gy="undefined"!=typeof Intl}catch(HE){gy=!1}const _y={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"]},yy=wy(31,e=>String(e+1)),vy={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},by=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function wy(e,t){const n=Array(e);for(let i=0;i<e;i++)n[i]=t(i);return n}let Cy=(()=>(class extends my{constructor(e,t){super(),this.useUtcForDisplay=!0,super.setLocale(e),this.useUtcForDisplay=!t.TRIDENT,this._clampDate=t.TRIDENT||t.EDGE}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){if(gy){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return wy(12,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,e,1))))}return _y[e]}getDateNames(){if(gy){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return wy(31,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return yy}getDayOfWeekNames(e){if(gy){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return wy(7,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return vy[e]}getYearName(e){if(gy){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(t,e))}return String(this.getYear(e))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,n){if(t<0||t>11)throw Error(`Invalid month index "${t}". 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 i=this._createDateWithOverflow(e,t,n);if(i.getMonth()!=t)throw Error(`Invalid date "${n}" for month with index "${t}".`);return i}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(gy){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign({},t,{timeZone:"utc"});const n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(by.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,n){const i=new Date(e,t,n);return e>=0&&e<100&&i.setFullYear(this.getYear(i)-1900),i}_2digit(e){return("00"+e).slice(-2)}_stripDirectionalityCharacters(e){return e.replace(/[\u200e\u200f]/g,"")}_format(e,t){const n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.format(n)}}))();const Sy={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 Ey=(()=>(class{}))(),xy=(()=>(class{}))(),ky=(()=>{class e{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return e.ngInjectableDef=me({factory:function(){return new e},token:e,providedIn:"root"}),e})();const Ay=function(){var e={FADING_IN:0,VISIBLE:1,FADING_OUT:2,HIDDEN:3};return e[e.FADING_IN]="FADING_IN",e[e.VISIBLE]="VISIBLE",e[e.FADING_OUT]="FADING_OUT",e[e.HIDDEN]="HIDDEN",e}();class Dy{constructor(e,t,n){this._renderer=e,this.element=t,this.config=n,this.state=Ay.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ty={enterDuration:450,exitDuration:400},Iy=800,Oy=Wg({passive:!0});class Ry{constructor(e,t,n,i){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=e=>{const t=function(e){return 0===e.buttons}(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+Iy;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))},this._onTouchStart=e=>{if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let e=0;e<t.length;e++)this.fadeInRipple(t[e].clientX,t[e].clientY,this._target.rippleConfig)}},this._onPointerUp=()=>{this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(e.state===Ay.VISIBLE||e.config.terminateOnPointerUp&&e.state===Ay.FADING_IN)&&e.fadeOut()}))},i.isBrowser&&(this._containerElement=Sg(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(e,t,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign({},Ty,n.animation);n.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);const r=n.radius||function(e,t,n){const i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),s=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+s*s)}(e,t,i),o=e-i.left,l=t-i.top,a=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${o-r}px`,u.style.top=`${l-r}px`,u.style.height=`${2*r}px`,u.style.width=`${2*r}px`,u.style.backgroundColor=n.color||null,u.style.transitionDuration=`${a}ms`,this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";const c=new Dy(this,u,n);return c.state=Ay.FADING_IN,this._activeRipples.add(c),n.persistent||(this._mostRecentTransientRipple=c),this._runTimeoutOutsideZone(()=>{const e=c===this._mostRecentTransientRipple;c.state=Ay.VISIBLE,n.persistent||e&&this._isPointerDown||c.fadeOut()},a),c}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const n=e.element,i=Object.assign({},Ty,e.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",e.state=Ay.FADING_OUT,this._runTimeoutOutsideZone(()=>{e.state=Ay.HIDDEN,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}setupTriggerEvents(e){const t=Sg(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(()=>{this._triggerEvents.forEach((e,n)=>{t.addEventListener(n,e,Oy)})}),this._triggerElement=t)}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_removeTriggerEvents(){this._triggerElement&&this._triggerEvents.forEach((e,t)=>{this._triggerElement.removeEventListener(t,e,Oy)})}}const Py=new ke("mat-ripple-global-options");let Ny=(()=>(class{constructor(e,t,n,i,s){this._elementRef=e,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Ry(this,t,e,n),"NoopAnimations"===s&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,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(e,t=0,n){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign({},this.rippleConfig,n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign({},this.rippleConfig,e))}}))(),My=(()=>(class{}))(),Fy=(()=>(class{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}))(),Vy=(()=>(class{}))();class Ly{}const Uy=uy(Ly);let By=0,jy=(()=>(class extends Uy{constructor(){super(...arguments),this._labelId=`mat-optgroup-label-${By++}`}}))(),zy=0;class $y{constructor(e,t=!1){this.source=e,this.isUserInput=t}}const Hy=new ke("MAT_OPTION_PARENT_COMPONENT");let qy=(()=>(class{constructor(e,t,n,i){this._element=e,this._changeDetectorRef=t,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${zy++}`,this.onSelectionChange=new Vs,this._stateChanges=new A}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=bg(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){13!==e.keyCode&&32!==e.keyCode||gg(e)||(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new $y(this,e))}}))(),Yy=(()=>(class{}))();const Wy=new ke("mat-label-global-options");var Gy=ti({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 Ky(e){return _o(0,[(e()(),Zr(0,null,null,0))],null,null)}function Zy(e){return _o(0,[no(402653184,1,{_portalOutlet:0}),(e()(),Zr(16777216,null,null,1,null,Ky)),ps(2,212992,[[1,4]],0,ig,[tn,Fn],{portal:[0,"portal"]},null)],(function(e,t){e(t,2,0,"")}),null)}function Qy(e){return _o(0,[(e()(),Qr(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(e,t,n){var i=!0;return"component:@dialogContainer.start"===t&&(i=!1!==es(e,1)._onAnimationStart(n)&&i),"component:@dialogContainer.done"===t&&(i=!1!==es(e,1)._onAnimationDone(n)&&i),i}),Zy,Gy)),ps(1,49152,null,0,T_,[an,K_,Tn,[2,Fa],A_],null,null)],null,(function(e,t){e(t,0,0,es(t,1)._id,es(t,1)._config.role,es(t,1)._config.ariaLabel?null:es(t,1)._ariaLabelledBy,es(t,1)._config.ariaLabel,es(t,1)._config.ariaDescribedBy||null,es(t,1)._state)}))}var Xy=$i("mat-dialog-container",T_,Qy,{},{},[]);function Jy(e){return Error(`MatDatepicker: No provider found for ${e}. You must import one of the following `+"modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}let ev=(()=>{class e{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(e,t){return`${e} \u2013 ${t}`}}return e.ngInjectableDef=me({factory:function(){return new e},token:e,providedIn:"root"}),e})();class tv{constructor(e,t,n,i,s){this.value=e,this.displayValue=t,this.ariaLabel=n,this.enabled=i,this.cssClasses=s}}let nv=(()=>(class{constructor(e,t){this._elementRef=e,this._ngZone=t,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new Vs}_cellClicked(e){e.enabled&&this.selectedValueChange.emit(e.value)}ngOnChanges(e){const t=e.numCols,{rows:n,numCols:i}=this;(e.rows||t)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/i}%`),!t&&this._cellWidth||(this._cellWidth=`${100/i}%`)}_isActiveCell(e,t){let n=e*this.numCols+t;return e&&(n-=this._firstRowOffset),n==this.activeCell}_focusActiveCell(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(Yh(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&e.focus()})})}}))(),iv=(()=>(class{constructor(e,t,n,i){if(this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=n,this._dir=i,this.selectedChange=new Vs,this._userSelection=new Vs,this.activeDateChange=new Vs,!this._dateAdapter)throw Jy("DateAdapter");if(!this._dateFormats)throw Jy("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const t=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._selectedDate=this._getDateInCurrentMonth(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._init()}_dateSelected(e){if(this._selectedDate!=e){const t=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.createDate(t,n,e);this.selectedChange.emit(i)}this._userSelection.emit()}_handleCalendarBodyKeydown(e){const t=this._activeDate,n=this._isRtl();switch(e.keyCode){case ag:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case cg:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case ug:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case hg: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=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.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(),e.preventDefault()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.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 e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow");let n=this._dateAdapter.getDayOfWeekNames("long").map((e,n)=>({long:e,narrow:t[n]}));this._weekdays=n.slice(e).concat(n.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(let n=0,i=this._firstWeekOffset;n<e;n++,i++){7==i&&(this._weeks.push([]),i=0);const e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),s=this._shouldEnableDate(e),r=this._dateAdapter.format(e,this._dateFormats.display.dateA11yLabel),o=this.dateClass?this.dateClass(e):void 0;this._weeks[this._weeks.length-1].push(new tv(n+1,t[n],r,s,o))}}_shouldEnableDate(e){return!!e&&(!this.dateFilter||this.dateFilter(e))&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}_getValidDateOrNull(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}))();const sv=24;let rv=(()=>(class{constructor(e,t,n){if(this._changeDetectorRef=e,this._dateAdapter=t,this._dir=n,this.selectedChange=new Vs,this.yearSelected=new Vs,this.activeDateChange=new Vs,!this._dateAdapter)throw Jy("DateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const n=this._getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),ov(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._init()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const e=this._dateAdapter.getYear(this._activeDate)-lv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let t=0,n=[];t<sv;t++)n.push(e+t),4==n.length&&(this._years.push(n.map(e=>this._createCellForYear(e))),n=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let t=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));this.selectedChange.emit(this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(e){const t=this._activeDate,n=this._isRtl();switch(e.keyCode){case ag:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case cg:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case ug:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case hg:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-lv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,sv-lv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*-sv:-sv);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*sv:sv);break;case 13:case 32:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_getActiveCell(){return lv(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(e){let t=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return new tv(e,t,t,this._shouldEnableYear(e))}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let t=this._dateAdapter.createDate(e,0,1);this._dateAdapter.getYear(t)==e;t=this._dateAdapter.addCalendarDays(t,1))if(this.dateFilter(t))return!0;return!1}_getValidDateOrNull(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}))();function ov(e,t,n,i,s){const r=e.getYear(t),o=e.getYear(n),l=av(e,i,s);return Math.floor((r-l)/sv)===Math.floor((o-l)/sv)}function lv(e,t,n,i){return((e.getYear(t)-av(e,n,i))%(s=sv)+s)%s;var s}function av(e,t,n){let i=0;return n?i=e.getYear(n)-sv+1:t&&(i=e.getYear(t)),i}let uv=(()=>(class{constructor(e,t,n,i){if(this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=n,this._dir=i,this.selectedChange=new Vs,this.monthSelected=new Vs,this.activeDateChange=new Vs,!this._dateAdapter)throw Jy("DateAdapter");if(!this._dateFormats)throw Jy("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const n=this._getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._selectedMonth=this._getMonthInCurrentYear(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._init()}_monthSelected(e){const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(t);const n=this._dateAdapter.getNumDaysInMonth(t);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(e){const t=this._activeDate,n=this._isRtl();switch(e.keyCode){case ag:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case cg:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case ug:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case hg: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,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._monthSelected(this._dateAdapter.getMonth(this._activeDate));break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_init(){this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(t=>this._createCellForMonth(t,e[t]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_createCellForMonth(e,t){let n=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),this._dateFormats.display.monthYearA11yLabel);return new tv(e,t.toLocaleUpperCase(),n,this._shouldEnableMonth(e))}_shouldEnableMonth(e){const t=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;for(let n=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(n)==e;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){const n=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return e>n||e===n&&t>i}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){const n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return e<n||e===n&&t<i}return!1}_getValidDateOrNull(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}))(),cv=(()=>(class{constructor(e,t,n,i,s){this._intl=e,this.calendar=t,this._dateAdapter=n,this._dateFormats=i,this.calendar.stateChanges.subscribe(()=>s.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 e=this._dateAdapter.getYear(this.calendar.activeDate)-lv(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),t=e+sv-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1)),i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return this._intl.formatYearRange(n,i)}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:-sv)}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:sv)}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(e,t){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):ov(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}}))(),hv=(()=>(class{constructor(e,t,n,i){if(this._dateAdapter=t,this._dateFormats=n,this._changeDetectorRef=i,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Vs,this.yearSelected=new Vs,this.monthSelected=new Vs,this._userSelection=new Vs,this.stateChanges=new A,!this._dateAdapter)throw Jy("DateAdapter");if(!this._dateFormats)throw Jy("MAT_DATE_FORMATS");this._intlChanges=e.changes.subscribe(()=>{i.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new Jf(this.headerComponent||cv),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(e){const t=e.minDate||e.maxDate||e.dateFilter;if(t&&!t.firstChange){const e=this._getCurrentViewComponent();e&&(this._changeDetectorRef.detectChanges(),e._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}updateTodaysDate(){("month"==this.currentView?this.monthView:"year"==this.currentView?this.yearView:this.multiYearView).ngAfterContentInit()}_dateSelected(e){this._dateAdapter.sameDate(e,this.selected)||this.selectedChange.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_userSelected(){this._userSelection.emit()}_goToDateInView(e,t){this.activeDate=e,this.currentView=t}_getValidDateOrNull(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}))(),dv=0;const pv=new ke("mat-datepicker-scroll-strategy");function mv(e){return()=>e.scrollStrategies.reposition()}class fv{constructor(e){this._elementRef=e}}const gv=cy(fv);let _v=(()=>(class extends gv{constructor(e){super(e)}ngAfterViewInit(){this._calendar.focusActiveCell()}}))(),yv=(()=>(class{constructor(e,t,n,i,s,r,o,l){if(this._dialog=e,this._overlay=t,this._ngZone=n,this._viewContainerRef=i,this._dateAdapter=r,this._dir=o,this._document=l,this.startView="month",this._touchUi=!1,this.yearSelected=new Vs,this.monthSelected=new Vs,this.openedStream=new Vs,this.closedStream=new Vs,this._opened=!1,this.id=`mat-datepicker-${dv++}`,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=d.EMPTY,this._disabledChange=new A,this._selectedChanged=new A,!this._dateAdapter)throw Jy("DateAdapter");this._scrollStrategy=s}get startAt(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)}set startAt(e){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this._datepickerInput?this._datepickerInput._getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=bg(e)}get disabled(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled}set disabled(e){const t=bg(e);t!==this._disabled&&(this._disabled=t,this._disabledChange.next(t))}get opened(){return this._opened}set opened(e){e?this.open():this.close()}get _selected(){return this._validSelected}set _selected(e){this._validSelected=e}get _minDate(){return this._datepickerInput&&this._datepickerInput.min}get _maxDate(){return this._datepickerInput&&this._datepickerInput.max}get _dateFilter(){return this._datepickerInput&&this._datepickerInput._dateFilter}ngOnDestroy(){this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete(),this._popupRef&&(this._popupRef.dispose(),this._popupComponentRef=null)}select(e){let t=this._selected;this._selected=e,this._dateAdapter.sameDate(t,this._selected)||this._selectedChanged.next(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_registerInput(e){if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=e,this._inputSubscription=this._datepickerInput._valueChange.subscribe(e=>this._selected=e)}open(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(_v,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog"}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._dialogRef.componentInstance.datepicker=this,this._setColor()}_openAsPopup(){this._calendarPortal||(this._calendarPortal=new Jf(_v,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached()||(this._popupComponentRef=this._popupRef.attach(this._calendarPortal),this._popupComponentRef.instance.datepicker=this,this._setColor(),this._ngZone.onStable.asObservable().pipe(Yh(1)).subscribe(()=>{this._popupRef.updatePosition()}))}_createPopup(){const e=new l_({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),this._popupRef.overlayElement.setAttribute("role","dialog"),X(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(kh(e=>e.keyCode===lg||this._datepickerInput&&e.altKey&&e.keyCode===ug))).subscribe(e=>{e&&e.preventDefault(),this.close()})}_createPopupPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}_getValidDateOrNull(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}_setColor(){const e=this.color;this._popupComponentRef&&(this._popupComponentRef.instance.color=e),this._dialogRef&&(this._dialogRef.componentInstance.color=e)}}))();class vv{constructor(e,t){this.target=e,this.targetElement=t,this.value=this.target.value}}let bv=(()=>(class{constructor(e,t,n,i){if(this._elementRef=e,this._dateAdapter=t,this._dateFormats=n,this._formField=i,this.dateChange=new Vs,this.dateInput=new Vs,this._valueChange=new Vs,this._disabledChange=new Vs,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._datepickerSubscription=d.EMPTY,this._localeSubscription=d.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=e=>{const t=this._getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!this.min||!t||this._dateAdapter.compareDate(this.min,t)<=0?null:{matDatepickerMin:{min:this.min,actual:t}}},this._maxValidator=e=>{const t=this._getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!this.max||!t||this._dateAdapter.compareDate(this.max,t)>=0?null:{matDatepickerMax:{max:this.max,actual:t}}},this._filterValidator=e=>{const t=this._getValidDateOrNull(this._dateAdapter.deserialize(e.value));return this._dateFilter&&t&&!this._dateFilter(t)?{matDatepickerFilter:!0}:null},this._validator=mc.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw Jy("DateAdapter");if(!this._dateFormats)throw Jy("MAT_DATE_FORMATS");this._localeSubscription=t.localeChanges.subscribe(()=>{this.value=this.value})}set matDatepicker(e){e&&(this._datepicker=e,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe(e=>{this.value=e,this._cvaOnChange(e),this._onTouched(),this.dateInput.emit(new vv(this,this._elementRef.nativeElement)),this.dateChange.emit(new vv(this,this._elementRef.nativeElement))}))}set matDatepickerFilter(e){this._dateFilter=e,this._validatorOnChange()}get value(){return this._value}set value(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=!e||this._dateAdapter.isValid(e),e=this._getValidDateOrNull(e);const t=this.value;this._value=e,this._formatValue(e),this._dateAdapter.sameDate(t,e)||this._valueChange.emit(e)}get min(){return this._min}set min(e){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._validatorOnChange()}get max(){return this._max}set max(e){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._validatorOnChange()}get disabled(){return!!this._disabled}set disabled(e){const t=bg(e),n=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this._disabledChange.emit(t)),t&&n.blur&&n.blur()}ngOnDestroy(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}writeValue(e){this.value=e}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){this._datepicker&&e.altKey&&e.keyCode===hg&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),e.preventDefault())}_onInput(e){let t=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=!t||this._dateAdapter.isValid(t),t=this._getValidDateOrNull(t),this._dateAdapter.sameDate(t,this._value)?this._validatorOnChange():(this._value=t,this._cvaOnChange(t),this._valueChange.emit(t),this.dateInput.emit(new vv(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new vv(this,this._elementRef.nativeElement))}_getThemePalette(){return this._formField?this._formField.color:void 0}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_getValidDateOrNull(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}}))(),wv=(()=>(class{constructor(e,t,n){this._intl=e,this._changeDetectorRef=t,this._stateChanges=d.EMPTY;const i=Number(n);this.tabIndex=i||0===i?i:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=bg(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker._disabledChange:dh(),t=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:dh(),n=this.datepicker?X(this.datepicker.openedStream,this.datepicker.closedStream):dh();this._stateChanges.unsubscribe(),this._stateChanges=X(this._intl.changes,e,t,n).subscribe(()=>this._changeDetectorRef.markForCheck())}}))(),Cv=(()=>(class{}))(),Sv=(()=>{class e{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return e.ngInjectableDef=me({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Ev=(()=>{class e{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Sg(e);return new w(e=>{const n=this._observeElement(t).subscribe(e);return()=>{n.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new A,n=this._mutationObserverFactory.create(e=>t.next(e));n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:n}=this._observedElements.get(e);t&&t.disconnect(),n.complete(),this._observedElements.delete(e)}}}return e.ngInjectableDef=me({factory:function(){return new e(Ue(Sv))},token:e,providedIn:"root"}),e})(),xv=(()=>(class{constructor(e,t,n){this._contentObserver=e,this._elementRef=t,this._ngZone=n,this.event=new Vs,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=bg(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=function(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}(e),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(U_(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}))(),kv=(()=>(class{}))();const Av=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class Dv{constructor(e){this._elementRef=e}}const Tv=cy(uy(hy(Dv)));let Iv=(()=>(class extends Tv{constructor(e,t,n){super(e),this._focusMonitor=t,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of Av)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);e.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e="program",t){this._focusMonitor.focusVia(this._getHostElement(),e,t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(e=>this._getHostElement().hasAttribute(e))}}))(),Ov=(()=>(class{}))();function Rv(){return"undefined"!=typeof process}function Pv(e){switch(e.length){case 0:return new Gf;case 1:return e[0];default:return new Kf(e)}}function Nv(e,t,n,i,s={},r={}){const o=[],l=[];let a=-1,u=null;if(i.forEach(e=>{const n=e.offset,i=n==a,c=i&&u||{};Object.keys(e).forEach(n=>{let i=n,l=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,o),l){case Zf:l=s[n];break;case Hf:l=r[n];break;default:l=t.normalizeStyleValue(n,i,l,o)}c[i]=l}),i||l.push(c),u=c,a=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return l}function Mv(e,t,n,i){switch(t){case"start":e.onStart(()=>i(n&&Fv(n,"start",e)));break;case"done":e.onDone(()=>i(n&&Fv(n,"done",e)));break;case"destroy":e.onDestroy(()=>i(n&&Fv(n,"destroy",e)))}}function Fv(e,t,n){const i=n.totalTime,s=Vv(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),r=e._data;return null!=r&&(s._data=r),s}function Vv(e,t,n,i,s="",r=0,o){return{element:e,triggerName:t,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function Lv(e,t,n){let i;return e instanceof Map?(i=e.get(t),i||e.set(t,i=n)):(i=e[t],i||(i=e[t]=n)),i}function Uv(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let Bv=(e,t)=>!1,jv=(e,t)=>!1,zv=(e,t,n)=>[];const $v=Rv();($v||"undefined"!=typeof Element)&&(Bv=(e,t)=>e.contains(t),jv=(()=>{if($v||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):jv}})(),zv=(e,t,n)=>{let i=[];if(n)i.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&i.push(n)}return i});let Hv=null,qv=!1;function Yv(e){Hv||(Hv=("undefined"!=typeof document?document.body:null)||{},qv=!!Hv.style&&"WebkitAppearance"in Hv.style);let t=!0;return Hv.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in Hv.style,!t&&qv)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Hv.style),t}const Wv=jv,Gv=Bv,Kv=zv;function Zv(e){const t={};return Object.keys(e).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}let Qv=(()=>(class{validateStyleProperty(e){return Yv(e)}matchesElement(e,t){return Wv(e,t)}containsElement(e,t){return Gv(e,t)}query(e,t,n){return Kv(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,i,s,r=[],o){return new Gf(n,i)}}))(),Xv=(()=>{class e{}return e.NOOP=new Qv,e})();const Jv=1e3,eb="{{",tb="ng-enter",nb="ng-leave",ib="ng-trigger",sb=".ng-trigger",rb="ng-animating",ob=".ng-animating";function lb(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:ab(parseFloat(t[1]),t[2])}function ab(e,t){switch(t){case"s":return e*Jv;default:return e}}function ub(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let i,s=0,r="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};i=ab(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=ab(parseFloat(o),n[4]));const l=n[5];l&&(r=l)}else i=e;if(!n){let n=!1,r=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(r,0,`The provided timing value "${e}" is invalid.`)}return{duration:i,delay:s,easing:r}}(e,t,n)}function cb(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function hb(e,t,n={}){if(t)for(let i in e)n[i]=e[i];else cb(e,n);return n}function db(e,t,n){return n?t+":"+n+";":""}function pb(e){let t="";for(let n=0;n<e.style.length;n++){const i=e.style.item(n);t+=db(0,i,e.style.getPropertyValue(i))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=db(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function mb(e,t,n){e.style&&(Object.keys(t).forEach(i=>{const s=Cb(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[s]),e.style[s]=t[i]}),Rv()&&pb(e))}function fb(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=Cb(t);e.style[n]=""}),Rv()&&pb(e))}function gb(e){return Array.isArray(e)?1==e.length?e[0]:qf(e):e}const _b=new RegExp(`${eb}\\s*(.+?)\\s*}}`,"g");function yb(e){let t=[];if("string"==typeof e){const n=e.toString();let i;for(;i=_b.exec(n);)t.push(i[1]);_b.lastIndex=0}return t}function vb(e,t,n){const i=e.toString(),s=i.replace(_b,(e,i)=>{let s=t[i];return t.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?e:s}function bb(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const wb=/-+([a-z0-9])/g;function Cb(e){return e.replace(wb,(...e)=>e[1].toUpperCase())}function Sb(e,t){return 0===e||0===t}function Eb(e,t,n){const i=Object.keys(n);if(i.length&&t.length){let r=t[0],o=[];if(i.forEach(e=>{r.hasOwnProperty(e)||o.push(e),r[e]=n[e]}),o.length)for(var s=1;s<t.length;s++){let n=t[s];o.forEach((function(t){n[t]=kb(e,t)}))}}return t}function xb(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error(`Unable to resolve animation metadata node #${t.type}`)}}function kb(e,t){return window.getComputedStyle(e)[t]}const Ab="*";function Db(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>(function(e,t,n){if(":"==e[0]){const i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}const i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const s=i[1],r=i[2],o=i[3];t.push(Ob(s,o)),"<"!=r[0]||s==Ab&&o==Ab||t.push(Ob(o,s))})(e,n,t)):n.push(e),n}const Tb=new Set(["true","1"]),Ib=new Set(["false","0"]);function Ob(e,t){const n=Tb.has(e)||Ib.has(e),i=Tb.has(t)||Ib.has(t);return(s,r)=>{let o=e==Ab||e==s,l=t==Ab||t==r;return!o&&n&&"boolean"==typeof s&&(o=s?Tb.has(e):Ib.has(e)),!l&&i&&"boolean"==typeof r&&(l=r?Tb.has(t):Ib.has(t)),o&&l}}const Rb=":self",Pb=new RegExp(`s*${Rb}s*,?`,"g");function Nb(e,t,n){return new Fb(e).build(t,n)}const Mb="";class Fb{constructor(e){this._driver=e}build(e,t){const n=new Vb(t);return this._resetContextStyleTimingState(n),xb(this,gb(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Mb,e.collectedStyles={},e.collectedStyles[Mb]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0;const s=[],r=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,i=n.name;i.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,s.push(this.visitState(n,t))}),n.name=i}else if(1==e.type){const s=this.visitTransition(e,t);n+=s.queryCount,i+=s.depCount,r.push(s)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(e=>{if(Lb(e)){const t=e;Object.keys(t).forEach(e=>{yb(t[e]).forEach(e=>{r.hasOwnProperty(e)||s.add(e)})})}}),s.size){const n=bb(s.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=xb(this,gb(e.animation),t);return{type:1,matchers:Db(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Ub(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>xb(this,e,t)),options:Ub(e.options)}}visitGroup(e,t){const n=t.currentTime;let i=0;const s=e.steps.map(e=>{t.currentTime=n;const s=xb(this,e,t);return i=Math.max(i,t.currentTime),s});return t.currentTime=i,{type:3,steps:s,options:Ub(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Bb(ub(e,t).duration,0,"");const i=e;if(i.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=Bb(0,0,"");return e.dynamic=!0,e.strValue=i,e}return n=n||ub(i,t),Bb(n.duration,n.delay,n.easing)}(e.timings,t.errors);let i;t.currentAnimateTimings=n;let s=e.styles?e.styles:Yf({});if(5==s.type)i=this.visitKeyframes(s,t);else{let s=e.styles,r=!1;if(!s){r=!0;const e={};n.easing&&(e.easing=n.easing),s=Yf(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,t);o.isEmptyStep=r,i=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==Hf?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let i=!1,s=null;return n.forEach(e=>{if(Lb(e)){const t=e,n=t.easing;if(n&&(s=n,delete t.easing),!i)for(let e in t)if(t[e].toString().indexOf(eb)>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let i=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=t.collectedStyles[t.currentQuerySelector],o=r[n];let l=!0;o&&(s!=i&&s>=o.startTime&&i<=o.endTime&&(t.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 "${s}ms" and "${i}ms"`),l=!1),s=o.startTime),l&&(r[n]={startTime:s,endTime:i}),t.options&&function(e,t,n){const i=t.params||{},s=yb(e);s.length&&s.forEach(e=>{i.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const s=[];let r=!1,o=!1,l=0;const a=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let a=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(Lb(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(Lb(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),u=0;return null!=a&&(i++,u=n.offset=a),o=o||u<0||u>1,r=r||u<l,l=u,s.push(u),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&t.errors.push("Please ensure that all keyframe offsets are in order");const u=e.steps.length;let c=0;i>0&&i<u?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(c=1/(u-1));const h=u-1,d=t.currentTime,p=t.currentAnimateTimings,m=p.duration;return a.forEach((e,i)=>{const r=c>0?i==h?1:c*i:s[i],o=r*m;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=r,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:xb(this,gb(e.animation),t),options:Ub(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Ub(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Ub(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;const[s,r]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>e==Rb);return t&&(e=e.replace(Pb,"")),[e=e.replace(/@\*/g,sb).replace(/@\w+/g,e=>sb+"-"+e.substr(1)).replace(/:animating/g,ob),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,Lv(t.collectedStyles,t.currentQuerySelector,{});const o=xb(this,gb(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:o,originalSelector:e.selector,options:Ub(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:ub(e.timings,t.errors,!0);return{type:12,animation:xb(this,gb(e.animation),t),timings:n,options:null}}}class Vb{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Lb(e){return!Array.isArray(e)&&"object"==typeof e}function Ub(e){var t;return e?(e=cb(e)).params&&(e.params=(t=e.params)?cb(t):null):e={},e}function Bb(e,t,n){return{duration:e,delay:t,easing:n}}function jb(e,t,n,i,s,r,o=null,l=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:l}}class zb{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const $b=1,Hb=new RegExp(":enter","g"),qb=new RegExp(":leave","g");function Yb(e,t,n,i,s,r={},o={},l,a,u=[]){return(new Wb).buildKeyframes(e,t,n,i,s,r,o,l,a,u)}class Wb{buildKeyframes(e,t,n,i,s,r,o,l,a,u=[]){a=a||new zb;const c=new Kb(e,t,a,i,s,u,[]);c.options=l,c.currentTimeline.setStyles([r],null,c.errors,l),xb(this,n,c);const h=c.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,c.errors,l)}return h.length?h.map(e=>e.buildKeyframes()):[jb(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const i=t.createSubContext(e.options),s=t.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let i=t.currentTimeline.currentTime;const s=null!=n.duration?lb(n.duration):null,r=null!=n.delay?lb(n.delay):null;return 0!==s&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),xb(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let i=t;const s=e.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Gb);const e=lb(s.delay);i.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>xb(this,e,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let i=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?lb(e.options.delay):0;e.steps.forEach(r=>{const o=t.createSubContext(e.options);s&&o.delayNextStep(s),xb(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return ub(t.params?vb(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,i=t.currentTimeline.duration,s=n.duration,r=t.createSubContext().currentTimeline;r.easing=n.easing,e.styles.forEach(e=>{r.forwardTime((e.offset||0)*s),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(i+s),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,i=e.options||{},s=i.delay?lb(i.delay):0;s&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Gb);let r=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((n,i)=>{t.currentQueryIndex=i;const o=t.createSubContext(e.options,n);s&&o.delayNextStep(s),n===t.element&&(l=o.currentTimeline),xb(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(r),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,i=t.currentTimeline,s=e.timings,r=Math.abs(s.duration),o=r*(t.currentQueryTotal-1);let l=r*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=o-l;break;case"full":l=n.currentStaggerTime}const a=t.currentTimeline;l&&a.delayNextStep(l);const u=a.currentTime;xb(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}const Gb={};class Kb{constructor(e,t,n,i,s,r,o,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Zb(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let i=this.options;null!=n.duration&&(i.duration=lb(n.duration)),null!=n.delay&&(i.delay=lb(n.delay));const s=n.params;if(s){let e=i.params;e||(e=this.options.params={}),Object.keys(s).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=vb(s[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const i=t||this.element,s=new Kb(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Gb,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},s=new Qb(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,i,s,r){let o=[];if(i&&o.push(this.element),e.length>0){e=(e=e.replace(Hb,"."+this._enterClassName)).replace(qb,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return s||0!=o.length||r.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class Zb{constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new Zb(this._driver,e,t||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+=$b,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Hf,this._currentKeyframe[e]=Hf}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,i){t&&(this._previousKeyframe.easing=t);const s=i&&i.params||{},r=function(e,t){const n={};let i;return e.forEach(e=>{"*"===e?(i=i||Object.keys(t),i.forEach(e=>{n[e]=Hf})):hb(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(r).forEach(e=>{const t=vb(r[e],s,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:Hf),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],i=e._styleSummary[t];(!n||i.time>n.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const o=hb(s,!0);Object.keys(o).forEach(n=>{const i=o[n];i==Zf?e.add(n):i==Hf&&t.add(n)}),n||(o.offset=r/this.duration),i.push(o)});const s=e.size?bb(e.values()):[],r=t.size?bb(t.values()):[];if(n){const e=i[0],t=cb(e);e.offset=0,t.offset=1,i=[e,t]}return jb(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class Qb extends Zb{constructor(e,t,n,i,s,r,o=!1){super(e,t,r.delay),this.element=t,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],r=n+t,o=t/r,l=hb(e[0],!1);l.offset=0,s.push(l);const a=hb(e[0],!1);a.offset=Xb(o),s.push(a);const u=e.length-1;for(let i=1;i<=u;i++){let o=hb(e[i],!1);o.offset=Xb((t+o.offset*n)/r),s.push(o)}n=r,t=0,i="",e=s}return jb(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,!0)}}function Xb(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class Jb{}class ew extends Jb{normalizePropertyName(e,t){return Cb(e)}normalizeStyleValue(e,t,n,i){let s="";const r=n.toString().trim();if(tw[t]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&i.push(`Please provide a CSS unit value for ${e}:${n}`)}return r+s}}const tw=(()=>(function(e){const t={};return e.forEach(e=>t[e]=!0),t})("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 nw(e,t,n,i,s,r,o,l,a,u,c,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:l,queriedElements:a,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}const iw={};class sw{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,i){return function(e,t,n,i,s){return e.some(e=>e(t,n,i,s))}(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){const i=this._stateStyles["*"],s=this._stateStyles[e],r=i?i.buildStyles(t,n):{};return s?s.buildStyles(t,n):r}build(e,t,n,i,s,r,o,l,a,u){const c=[],h=this.ast.options&&this.ast.options.params||iw,d=this.buildStyles(n,o&&o.params||iw,c),p=l&&l.params||iw,m=this.buildStyles(i,p,c),f=new Set,g=new Map,_=new Map,y="void"===i,v={params:Object.assign({},h,p)},b=u?[]:Yb(e,t,this.ast.animation,s,r,d,m,v,a,c);let w=0;if(b.forEach(e=>{w=Math.max(e.duration+e.delay,w)}),c.length)return nw(t,this._triggerName,n,i,y,d,m,[],[],g,_,w,c);b.forEach(e=>{const n=e.element,i=Lv(g,n,{});e.preStyleProps.forEach(e=>i[e]=!0);const s=Lv(_,n,{});e.postStyleProps.forEach(e=>s[e]=!0),n!==t&&f.add(n)});const C=bb(f.values());return nw(t,this._triggerName,n,i,y,d,m,b,C,g,_,w)}}class rw{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},i=cb(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(i[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const s=e;Object.keys(s).forEach(e=>{let r=s[e];r.length>1&&(r=vb(r,i,t)),n[e]=r})}}),n}}class ow{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new rw(e.style,e.options&&e.options.params||{})}),lw(this.states,"true","1"),lw(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new sw(e,t,this.states))}),this.fallbackTransition=new sw(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(s=>s.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function lw(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const aw=new zb;class uw{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],i=Nb(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=i}_buildPlayer(e,t,n){const i=e.element,s=Nv(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const i=[],s=this._animations[e];let r;const o=new Map;if(s?(r=Yb(this._driver,t,s,tb,nb,{},{},n,aw,i),r.forEach(e=>{const t=Lv(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,Hf)})});const l=Pv(r.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,i){const s=Vv(t,"","","");return Mv(this._getPlayer(e),n,s,i),()=>{}}command(e,t,n,i){if("register"==n)return void this.register(e,i[0]);if("create"==n)return void this.create(e,t,i[0]||{});const s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const cw="ng-animate-queued",hw=".ng-animate-queued",dw="ng-animate-disabled",pw=".ng-animate-disabled",mw="ng-star-inserted",fw=".ng-star-inserted",gw=[],_w={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},yw={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},vw="__ng_removed";class bw{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(i=n?e.value:e)?i:null,n){const t=cb(e);delete t.value,this.options=t}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const ww="void",Cw=new bw(ww);class Sw{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ow(t,this._hostClassName)}listen(e,t,n,i){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var s;const r=Lv(this._elementListeners,e,[]),o={name:t,phase:n,callback:i};r.push(o);const l=Lv(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(Ow(e,ib),Ow(e,ib+"-"+t),l[t]=Cw),()=>{this._engine.afterFlush(()=>{const e=r.indexOf(o);e>=0&&r.splice(e,1),this._triggers[t]||delete l[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,i=!0){const s=this._getTrigger(t),r=new xw(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Ow(e,ib),Ow(e,ib+"-"+t),this._engine.statesByElement.set(e,o={}));let l=o[t];const a=new bw(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&a.absorbOptions(l.options),o[t]=a,l||(l=Cw),a.value!==ww&&l.value===a.value){if(!function(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(let s=0;s<n.length;s++){const i=n[s];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(l.params,a.params)){const t=[],n=s.matchStyles(l.value,l.params,t),i=s.matchStyles(a.value,a.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{fb(e,n),mb(e,i)})}return}const u=Lv(this._engine.playersByElement,e,[]);u.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let c=s.matchTransition(l.value,a.value,e,a.params),h=!1;if(!c){if(!i)return;c=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:c,fromState:l,toState:a,player:r,isFallbackTransition:h}),h||(Ow(e,cw),r.onStart(()=>{Rw(e,cw)})),r.onDone(()=>{let t=this.players.indexOf(r);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(r);e>=0&&n.splice(e,1)}}),this.players.push(r),u.push(r),r}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t,n=!1){this._engine.driver.query(e,sb,!0).forEach(e=>{if(e[vw])return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)})}triggerLeaveAnimation(e,t,n,i){const s=this._engine.statesByElement.get(e);if(s){const r=[];if(Object.keys(s).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,ww,i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Pv(r).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const i=t.name;if(n.has(i))return;n.add(i);const s=this._triggers[i].fallbackTransition,r=this._engine.statesByElement.get(e)[i]||Cw,o=new bw(ww),l=new xw(this.id,i,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:s,fromState:r,toState:o,player:l,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t,!0),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)i=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){i=!0;break}}}this.prepareLeaveAnimationListeners(e),i?n.markElementAsRemoved(this.id,e,!1,t):(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}insertNode(e,t){Ow(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(t=>{if(t.name==n.triggerName){const i=Vv(s,n.triggerName,n.fromState.value,n.toState.value);i._data=e,Mv(n.player,t.phase,i,t.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,i=t.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Ew{constructor(e,t,n){this.bodyNode=e,this.driver=t,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=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Sw(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,t)){this._namespaceList.splice(s+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let i=0;i<e.length;i++){const s=n[e[i]].namespaceId;if(s){const e=this._fetchNamespace(s);e&&t.add(e)}}}return t}trigger(e,t,n,i){if(kw(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,n,i),!0}return!1}insertNode(e,t,n,i){if(!kw(t))return;const s=t[vw];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const i=this._fetchNamespace(e);i&&i.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ow(e,dw)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Rw(e,dw))}removeNode(e,t,n,i){if(kw(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,i)}}else this._onRemovalComplete(t,i)}markElementAsRemoved(e,t,n,i){this.collectedLeaveElements.push(t),t[vw]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,i,s){return kw(t)?this._fetchNamespace(e).listen(t,n,i,s):()=>{}}_buildInstruction(e,t,n,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,sb,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,ob,!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Pv(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[vw];if(t&&t.setForRemoval){if(e[vw]=_w,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,pw)&&this.markElementAsDisabled(e,!1),this.driver.query(e,pw,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Ow(this.collectedEnterElements[n],mw);if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}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(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?Pv(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new zb,i=[],s=new Map,r=[],o=new Map,l=new Map,a=new Map,u=new Set;this.disabledNodes.forEach(e=>{u.add(e);const t=this.driver.query(e,hw,!0);for(let n=0;n<t.length;n++)u.add(t[n])});const c=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=Tw(h,this.collectedEnterElements),p=new Map;let m=0;d.forEach((e,t)=>{const n=tb+m++;p.set(t,n),e.forEach(e=>Ow(e,n))});const f=[],g=new Set,_=new Set;for(let I=0;I<this.collectedLeaveElements.length;I++){const e=this.collectedLeaveElements[I],t=e[vw];t&&t.setForRemoval&&(f.push(e),g.add(e),t.hasAnimation?this.driver.query(e,fw,!0).forEach(e=>g.add(e)):_.add(e))}const y=new Map,v=Tw(h,Array.from(g));v.forEach((e,t)=>{const n=nb+m++;y.set(t,n),e.forEach(e=>Ow(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>Rw(e,n))}),v.forEach((e,t)=>{const n=y.get(t);e.forEach(e=>Rw(e,n))}),f.forEach(e=>{this.processLeaveNode(e)})});const b=[],w=[];for(let I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(t).forEach(e=>{const t=e.player,s=e.element;if(b.push(t),this.collectedEnterElements.length){const e=s[vw];if(e&&e.setForMove)return void t.destroy()}const u=!c||!this.driver.containsElement(c,s),h=y.get(s),d=p.get(s),m=this._buildInstruction(e,n,d,h,u);if(!m.errors||!m.errors.length)return u?(t.onStart(()=>fb(s,m.fromStyles)),t.onDestroy(()=>mb(s,m.toStyles)),void i.push(t)):e.isFallbackTransition?(t.onStart(()=>fb(s,m.fromStyles)),t.onDestroy(()=>mb(s,m.toStyles)),void i.push(t)):(m.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(s,m.timelines),r.push({instruction:m,player:t,element:s}),m.queriedElements.forEach(e=>Lv(o,e,[]).push(t)),m.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=l.get(t);e||l.set(t,e=new Set),n.forEach(t=>e.add(t))}}),void m.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let i=a.get(t);i||a.set(t,i=new Set),n.forEach(e=>i.add(e))}));w.push(m)});if(w.length){const e=[];w.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),b.forEach(e=>e.destroy()),this.reportError(e)}const C=new Map,S=new Map;r.forEach(e=>{const t=e.element;n.has(t)&&(S.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,C))}),i.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{Lv(C,t,[]).push(e),e.destroy()})});const E=f.filter(e=>Nw(e,l,a)),x=new Map;Dw(x,this.driver,_,a,Hf).forEach(e=>{Nw(e,l,a)&&E.push(e)});const k=new Map;d.forEach((e,t)=>{Dw(k,this.driver,new Set(e),l,Zf)}),E.forEach(e=>{const t=x.get(e),n=k.get(e);x.set(e,Object.assign({},t,n))});const A=[],D=[],T={};r.forEach(e=>{const{element:t,player:r,instruction:o}=e;if(n.has(t)){if(u.has(t))return r.onDestroy(()=>mb(t,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let e=T;if(S.size>1){let n=t;const i=[];for(;n=n.parentNode;){const t=S.get(n);if(t){e=t;break}i.push(n)}i.forEach(t=>S.set(t,e))}const n=this._buildAnimation(r.namespaceId,o,C,s,k,x);if(r.setRealPlayer(n),e===T)A.push(r);else{const t=this.playersByElement.get(e);t&&t.length&&(r.parentPlayer=Pv(t)),i.push(r)}}else fb(t,o.fromStyles),r.onDestroy(()=>mb(t,o.toStyles)),D.push(r),u.has(t)&&i.push(r)}),D.forEach(e=>{const t=s.get(e.element);if(t&&t.length){const n=Pv(t);e.setRealPlayer(n)}}),i.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let I=0;I<f.length;I++){const e=f[I],t=e[vw];if(Rw(e,nb),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let i=this.driver.query(e,ob,!0);for(let e=0;e<i.length;e++){let t=o.get(i[e]);t&&t.length&&n.push(...t)}}const i=n.filter(e=>!e.destroyed);i.length?Pw(this,e,i):this.processLeaveNode(e)}return f.length=0,A.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),A}elementContainsData(e,t){let n=!1;const i=t[vw];return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,i,s){let r=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(r=t)}else{const t=this.playersByElement.get(e);if(t){const e=!s||s==ww;t.forEach(t=>{t.queued||(e||t.triggerName==i)&&r.push(t)})}}return(n||i)&&(r=r.filter(e=>!(n&&n!=e.namespaceId||i&&i!=e.triggerName))),r}_beforeAnimationBuild(e,t,n){const i=t.element,s=t.isRemovalTransition?void 0:e,r=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,l=e!==i,a=Lv(n,e,[]);this._getPreviousPlayers(e,l,s,r,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),a.push(e)})}fb(i,t.fromStyles)}_buildAnimation(e,t,n,i,s,r){const o=t.triggerName,l=t.element,a=[],u=new Set,c=new Set,h=t.timelines.map(t=>{const h=t.element;u.add(h);const d=h[vw];if(d&&d.removedBeforeQueried)return new Gf(t.duration,t.delay);const p=h!==l,m=function(e){const t=[];return function e(t,n){for(let i=0;i<t.length;i++){const s=t[i];s instanceof Kf?e(s.players,n):n.push(s)}}(e,t),t}((n.get(h)||gw).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===h),f=s.get(h),g=r.get(h),_=Nv(0,this._normalizer,0,t.keyframes,f,g),y=this._buildPlayer(t,_,m);if(t.subTimeline&&i&&c.add(h),p){const t=new xw(e,o,h);t.setRealPlayer(y),a.push(t)}return y});a.forEach(e=>{Lv(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>(function(e,t,n){let i;if(e instanceof Map){if(i=e.get(t),i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&e.delete(t)}}else if(i=e[t],i){if(i.length){const e=i.indexOf(n);i.splice(e,1)}0==i.length&&delete e[t]}return i})(this.playersByQueriedElement,e.element,e))}),u.forEach(e=>Ow(e,rb));const d=Pv(h);return d.onDestroy(()=>{u.forEach(e=>Rw(e,rb)),mb(l,t.toStyles)}),c.forEach(e=>{Lv(i,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Gf(e.duration,e.delay)}}class xw{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Gf,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>Mv(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Lv(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function kw(e){return e&&1===e.nodeType}function Aw(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Dw(e,t,n,i,s){const r=[];n.forEach(e=>r.push(Aw(e)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(e=>{const n=r[e]=t.computeStyle(i,e,s);n&&0!=n.length||(i[vw]=yw,o.push(i))}),e.set(i,r)});let l=0;return n.forEach(e=>Aw(e,r[l++])),o}function Tw(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const i=new Set(t),s=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let r=s.get(t);if(r)return r;const o=t.parentNode;return r=n.has(o)?o:i.has(o)?1:e(o),s.set(t,r),r}(e);1!==t&&n.get(t).push(e)}),n}const Iw="$$classes";function Ow(e,t){if(e.classList)e.classList.add(t);else{let n=e[Iw];n||(n=e[Iw]={}),n[t]=!0}}function Rw(e,t){if(e.classList)e.classList.remove(t);else{let n=e[Iw];n&&delete n[t]}}function Pw(e,t,n){Pv(n).onDone(()=>e.processLeaveNode(t))}function Nw(e,t,n){const i=n.get(e);if(!i)return!1;let s=t.get(e);return s?i.forEach(e=>s.add(e)):t.set(e,i),n.delete(e),!0}class Mw{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Ew(e,t,n),this._timelineEngine=new uw(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,i,s){const r=e+"-"+i;let o=this._triggerCache[r];if(!o){const e=[],t=Nb(this._driver,s,e);if(e.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new ow(e,t)}(i,t),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}onRemove(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,i){if("@"==n.charAt(0)){const[e,s]=Uv(n);this._timelineEngine.command(e,t,s,i)}else this._transitionEngine.trigger(e,t,n,i)}listen(e,t,n,i,s){if("@"==n.charAt(0)){const[e,i]=Uv(n);return this._timelineEngine.listen(e,t,i,s)}return this._transitionEngine.listen(e,t,n,i,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Fw(e,t){let n=null,i=null;return Array.isArray(t)&&t.length?(n=Lw(t[0]),t.length>1&&(i=Lw(t[t.length-1]))):t&&(n=Lw(t)),n||i?new Vw(e,n,i):null}let Vw=(()=>{class e{constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;let s=e.initialStylesByElement.get(t);s||e.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&mb(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(mb(this._element,this._initialStyles),this._endStyles&&(mb(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(fb(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(fb(this._element,this._endStyles),this._endStyles=null),mb(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Lw(e){let t=null;const n=Object.keys(e);for(let i=0;i<n.length;i++){const s=n[i];Uw(s)&&(t=t||{},t[s]=e[s])}return t}function Uw(e){return"display"===e||"position"===e}const Bw=3,jw="animation",zw="animationend",$w=1e3;class Hw{constructor(e,t,n,i,s,r,o){this._element=e,this._name=t,this._duration=n,this._delay=i,this._easing=s,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e=>this._handleCallback(e)}apply(){!function(e,t){const n=Zw(e,"").trim();n.length&&(function(e,t){let n=0;for(let i=0;i<e.length;i++)","===e.charAt(i)&&n++}(n),t=`${n}, ${t}`),Kw(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Gw(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){qw(this._element,this._name,"paused")}resume(){qw(this._element,this._name,"running")}setPosition(e){const t=Yw(this._element,this._name);this._position=e*this._duration,Kw(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=parseFloat(e.elapsedTime.toFixed(Bw))*$w;e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Gw(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=Zw(e,"").split(","),i=Ww(n,t);i>=0&&(n.splice(i,1),Kw(e,"",n.join(",")))}(this._element,this._name))}}function qw(e,t,n){Kw(e,"PlayState",n,Yw(e,t))}function Yw(e,t){const n=Zw(e,"");return n.indexOf(",")>0?Ww(n.split(","),t):Ww([n],t)}function Ww(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Gw(e,t,n){n?e.removeEventListener(zw,t):e.addEventListener(zw,t)}function Kw(e,t,n,i){const s=jw+t;if(null!=i){const t=e.style[s];if(t.length){const e=t.split(",");e[i]=n,n=e.join(",")}}e.style[s]=n}function Zw(e,t){return e.style[jw+t]}const Qw="forwards",Xw="linear";class Jw{constructor(e,t,n,i,s,r,o,l){this.element=e,this.keyframes=t,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||Xw,this.totalTime=i+s,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}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 Hw(this.element,this.animationName,this._duration,this._delay,this.easing,Qw,()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:kb(this.element,n))})}this.currentSnapshot=e}}class eC extends Gf{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=Zv(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}const tC="gen_css_kf_",nC=" ";class iC{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return Yv(e)}matchesElement(e,t){return Wv(e,t)}containsElement(e,t){return Gv(e,t)}query(e,t,n){return Kv(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>Zv(e));let i=`@keyframes ${t} {\n`,s="";n.forEach(e=>{s=nC;const t=parseFloat(e.offset);i+=`${s}${100*t}% {\n`,s+=nC,Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${t}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.innerHTML=i,r}animate(e,t,n,i,s,r=[],o){o&&this._notifyFaultyScrubber();const l=r.filter(e=>e instanceof Jw),a={};Sb(n,i)&&l.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>a[e]=t[e])});const u=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Eb(e,t,a));if(0==n)return new eC(e,u);const c=`${tC}${this._count++}`,h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);const d=Fw(e,t),p=new Jw(e,t,c,n,i,s,u,d);return p.onDestroy(()=>(function(e){e.parentNode.removeChild(e)})(h)),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 sC{constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,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(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:kb(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class rC{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(oC().toString()),this._cssKeyframesDriver=new iC}validateStyleProperty(e){return Yv(e)}matchesElement(e,t){return Wv(e,t)}containsElement(e,t){return Gv(e,t)}query(e,t,n){return Kv(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,s,r);const l={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(l.easing=s);const a={},u=r.filter(e=>e instanceof sC);Sb(n,i)&&u.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>a[e]=t[e])});const c=Fw(e,t=Eb(e,t=t.map(e=>hb(e,!1)),a));return new sC(e,t,l,c)}}function oC(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let lC=(()=>(class extends zf{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:st.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?qf(e):e;return cC(this._renderer,null,t,"register",[n]),new aC(t,this._renderer)}}))();class aC extends $f{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new uC(this._id,e,t||{},this._renderer)}}class uC{constructor(e,t,n,i){this.id=e,this.element=t,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return cC(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}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(e){this._command("setPosition",e)}getPosition(){return 0}}function cC(e,t,n,i,s){return e.setProperty(t,`@@${n}:${i}`,s)}const hC="@",dC="@.disabled";let pC=(()=>(class{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new mC("",n,this.engine),this._rendererCache.set(n,e)),e}const i=t.id,s=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,e),t.data.animation.forEach(t=>this.engine.registerTrigger(i,s,e,t.name,t)),new fC(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,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 mC{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==hC&&t==dC?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class fC extends mC{constructor(e,t,n,i){super(t,n,i),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==hC?"."==t.charAt(1)&&t==dC?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==hC){const i=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let s=t.substr(1),r="";return s.charAt(0)!=hC&&([s,r]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let gC=(()=>(class extends Mw{constructor(e,t,n){super(e.body,t,n)}}))();function _C(){return"function"==typeof oC()?new rC:new iC}function yC(){return new ew}function vC(e,t,n){return new pC(e,t,n)}const bC=new ke("AnimationModuleType");let wC=(()=>(class{}))();var CC=ti({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 SC(e){return _o(2,[no(671088640,1,{ripple:0}),(e()(),Qr(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),lo(null,0),(e()(),Qr(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)),ps(4,212992,[[1,4]],0,Ny,[an,dr,jg,[2,Py],[2,bC]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(e()(),Qr(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],(function(e,t){var n=t.component;e(t,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())}),(function(e,t){var n=t.component;e(t,3,0,n.isRoundButton||n.isIconButton,es(t,4).unbounded)}))}var EC=ti({encapsulation:2,styles:[],data:{}});function xC(e){return _o(2,[(e()(),Qr(0,0,null,null,12,"div",[["class","mat-calendar-header"]],null,null,null,null,null)),(e()(),Qr(1,0,null,null,11,"div",[["class","mat-calendar-controls"]],null,null,null,null,null)),(e()(),Qr(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(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.currentPeriodClicked()&&i),i}),SC,CC)),ps(3,180224,null,0,Iv,[an,iy,[2,bC]],null,null),ps(4,147456,null,0,ey,[an,J_,Ev,dr],{politeness:[0,"politeness"]},null),(e()(),mo(5,0,["",""])),(e()(),Qr(6,0,null,0,0,"div",[["class","mat-calendar-arrow"]],[[2,"mat-calendar-invert",null]],null,null,null,null)),(e()(),Qr(7,0,null,null,0,"div",[["class","mat-calendar-spacer"]],null,null,null,null,null)),lo(null,0),(e()(),Qr(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(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.previousClicked()&&i),i}),SC,CC)),ps(10,180224,null,0,Iv,[an,iy,[2,bC]],{disabled:[0,"disabled"]},null),(e()(),Qr(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(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.nextClicked()&&i),i}),SC,CC)),ps(12,180224,null,0,Iv,[an,iy,[2,bC]],{disabled:[0,"disabled"]},null)],(function(e,t){var n=t.component;e(t,4,0,"polite"),e(t,10,0,!n.previousEnabled()),e(t,12,0,!n.nextEnabled())}),(function(e,t){var n=t.component;e(t,2,0,n.periodButtonLabel,es(t,3).disabled||null,"NoopAnimations"===es(t,3)._animationMode),e(t,5,0,n.periodButtonText),e(t,6,0,"month"!=n.calendar.currentView),e(t,9,0,n.prevButtonLabel,es(t,10).disabled||null,"NoopAnimations"===es(t,10)._animationMode),e(t,11,0,n.nextButtonLabel,es(t,12).disabled||null,"NoopAnimations"===es(t,12)._animationMode)}))}function kC(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"mat-calendar-header",[],null,null,null,xC,EC)),ps(1,49152,null,0,cv,[ev,hv,[2,my],[2,fy],Tn],null,null)],null,null)}var AC=$i("mat-calendar-header",cv,kC,{},{},["*"]),DC=ti({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 TC(e){return _o(0,[(e()(),Zr(0,null,null,0))],null,null)}function IC(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"mat-month-view",[],null,[[null,"activeDateChange"],[null,"selectedChange"],[null,"_userSelection"]],(function(e,t,n){var i=!0,s=e.component;return"activeDateChange"===t&&(i=!1!==(s.activeDate=n)&&i),"selectedChange"===t&&(i=!1!==s._dateSelected(n)&&i),"_userSelection"===t&&(i=!1!==s._userSelected()&&i),i}),QC,KC)),ps(1,1097728,[[1,4]],0,iv,[Tn,[2,fy],[2,my],[2,yg]],{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(e,t){var n=t.component;e(t,1,0,n.activeDate,n.selected,n.minDate,n.maxDate,n.dateFilter,n.dateClass)}),null)}function OC(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"mat-year-view",[],null,[[null,"activeDateChange"],[null,"monthSelected"],[null,"selectedChange"]],(function(e,t,n){var i=!0,s=e.component;return"activeDateChange"===t&&(i=!1!==(s.activeDate=n)&&i),"monthSelected"===t&&(i=!1!==s._monthSelectedInYearView(n)&&i),"selectedChange"===t&&(i=!1!==s._goToDateInView(n,"month")&&i),i}),JC,XC)),ps(1,1097728,[[2,4]],0,uv,[Tn,[2,fy],[2,my],[2,yg]],{activeDate:[0,"activeDate"],selected:[1,"selected"],minDate:[2,"minDate"],maxDate:[3,"maxDate"],dateFilter:[4,"dateFilter"]},{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"})],(function(e,t){var n=t.component;e(t,1,0,n.activeDate,n.selected,n.minDate,n.maxDate,n.dateFilter)}),null)}function RC(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"mat-multi-year-view",[],null,[[null,"activeDateChange"],[null,"yearSelected"],[null,"selectedChange"]],(function(e,t,n){var i=!0,s=e.component;return"activeDateChange"===t&&(i=!1!==(s.activeDate=n)&&i),"yearSelected"===t&&(i=!1!==s._yearSelectedInMultiYearView(n)&&i),"selectedChange"===t&&(i=!1!==s._goToDateInView(n,"year")&&i),i}),nS,tS)),ps(1,1097728,[[3,4]],0,rv,[Tn,[2,my],[2,yg]],{activeDate:[0,"activeDate"],selected:[1,"selected"],minDate:[2,"minDate"],maxDate:[3,"maxDate"],dateFilter:[4,"dateFilter"]},{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"})],(function(e,t){var n=t.component;e(t,1,0,n.activeDate,n.selected,n.minDate,n.maxDate,n.dateFilter)}),null)}function PC(e){return _o(2,[no(671088640,1,{monthView:0}),no(671088640,2,{yearView:0}),no(671088640,3,{multiYearView:0}),(e()(),Zr(16777216,null,null,1,null,TC)),ps(4,212992,null,0,ig,[tn,Fn],{portal:[0,"portal"]},null),(e()(),Qr(5,0,null,null,8,"div",[["cdkMonitorSubtreeFocus",""],["class","mat-calendar-content"],["tabindex","-1"]],null,null,null,null,null)),ps(6,16384,null,0,ka,[],{ngSwitch:[0,"ngSwitch"]},null),ps(7,147456,null,0,sy,[an,iy],null,null),(e()(),Zr(16777216,null,null,1,null,IC)),ps(9,278528,null,0,Aa,[Fn,Nn,ka],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),Zr(16777216,null,null,1,null,OC)),ps(11,278528,null,0,Aa,[Fn,Nn,ka],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),Zr(16777216,null,null,1,null,RC)),ps(13,278528,null,0,Aa,[Fn,Nn,ka],{ngSwitchCase:[0,"ngSwitchCase"]},null)],(function(e,t){var n=t.component;e(t,4,0,n._calendarHeaderPortal),e(t,6,0,n.currentView),e(t,9,0,"month"),e(t,11,0,"year"),e(t,13,0,"multi-year")}),null)}var NC=ti({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 MC(e){return _o(0,[(e()(),Qr(0,0,null,null,2,"tr",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),Qr(1,0,null,null,1,"td",[["class","mat-calendar-body-label"]],[[1,"colspan",0],[4,"paddingTop",null],[4,"paddingBottom",null]],null,null,null,null)),(e()(),mo(2,null,["",""]))],null,(function(e,t){var n=t.component;e(t,1,0,n.numCols,n._cellPadding,n._cellPadding),e(t,2,0,n.label)}))}function FC(e){return _o(0,[(e()(),Qr(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)),(e()(),mo(1,null,["",""]))],null,(function(e,t){var n=t.component;e(t,0,0,n._firstRowOffset,n._cellPadding,n._cellPadding),e(t,1,0,n._firstRowOffset>=n.labelMinRequiredCells?n.label:"")}))}function VC(e){return _o(0,[(e()(),Qr(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(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component._cellClicked(e.context.$implicit)&&i),i}),null,null)),fs(512,null,fa,ga,[An,Dn,an,pn]),ps(2,278528,null,0,ya,[fa],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e()(),Qr(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)),(e()(),mo(4,null,["",""]))],(function(e,t){e(t,2,0,"mat-calendar-body-cell",t.context.$implicit.cssClasses)}),(function(e,t){var n=t.component;e(t,0,0,n._isActiveCell(t.parent.context.index,t.context.index)?0:-1,!t.context.$implicit.enabled,n._isActiveCell(t.parent.context.index,t.context.index),t.context.$implicit.ariaLabel,!t.context.$implicit.enabled||null,n.selectedValue===t.context.$implicit.value,n._cellWidth,n._cellPadding,n._cellPadding),e(t,3,0,n.selectedValue===t.context.$implicit.value,n.todayValue===t.context.$implicit.value),e(t,4,0,t.context.$implicit.displayValue)}))}function LC(e){return _o(0,[(e()(),Qr(0,0,null,null,4,"tr",[["role","row"]],null,null,null,null,null)),(e()(),Zr(16777216,null,null,1,null,FC)),ps(2,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(e()(),Zr(16777216,null,null,1,null,VC)),ps(4,278528,null,0,ba,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,2,0,0===t.context.index&&t.component._firstRowOffset),e(t,4,0,t.context.$implicit)}),null)}function UC(e){return _o(2,[(e()(),Zr(16777216,null,null,1,null,MC)),ps(1,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(e()(),Zr(16777216,null,null,1,null,LC)),ps(3,278528,null,0,ba,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component;e(t,1,0,n._firstRowOffset<n.labelMinRequiredCells),e(t,3,0,n.rows)}),null)}var BC=ti({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 jC(e){return _o(2,[no(671088640,1,{_calendar:0}),(e()(),Qr(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(e,t,n){var i=!0,s=e.component;return"selectedChange"===t&&(i=!1!==s.datepicker.select(n)&&i),"yearSelected"===t&&(i=!1!==s.datepicker._selectYear(n)&&i),"monthSelected"===t&&(i=!1!==s.datepicker._selectMonth(n)&&i),"_userSelection"===t&&(i=!1!==s.datepicker.close()&&i),i}),PC,DC)),fs(512,null,fa,ga,[An,Dn,an,pn]),ps(3,278528,null,0,ya,[fa],{ngClass:[0,"ngClass"]},null),ps(4,1458176,null,0,Z_,[an,K_,Fa],{enabled:[0,"enabled"]},null),ps(5,10141696,[[1,4]],0,hv,[ev,[2,my],[2,fy],Tn],{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(e,t){var n=t.component;e(t,3,0,n.datepicker.panelClass),e(t,4,0,""),e(t,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(e,t){e(t,1,0,t.component.datepicker.id,"enter")}))}function zC(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"mat-datepicker-content",[["class","mat-datepicker-content"]],[[40,"@transformPanel",0],[2,"mat-datepicker-content-touch",null]],null,null,jC,BC)),ps(1,4243456,null,0,_v,[an],null,null)],null,(function(e,t){e(t,0,0,"enter",es(t,1).datepicker.touchUi)}))}var $C=$i("mat-datepicker-content",_v,zC,{color:"color"},{},[]),HC=ti({encapsulation:2,styles:[],data:{}});function qC(e){return _o(2,[],null,null)}var YC=ti({encapsulation:2,styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}"],data:{}});function WC(e){return _o(0,[(e()(),Qr(0,0,null,null,1,":svg:svg",[["class","mat-datepicker-toggle-default-icon"],["fill","currentColor"],["focusable","false"],["height","24px"],["viewBox","0 0 24 24"],["width","24px"]],null,null,null,null,null)),(e()(),Qr(1,0,null,null,0,":svg:path",[["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],null,null,null,null,null))],null,null)}function GC(e){return _o(2,[no(671088640,1,{_button:0}),(e()(),Qr(1,0,null,null,4,"button",[["mat-icon-button",""],["type","button"]],[[1,"aria-haspopup",0],[1,"aria-label",0],[1,"tabindex",0],[1,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component._open(n)&&i),i}),SC,CC)),ps(2,180224,[[1,4],["button",4]],0,Iv,[an,iy,[2,bC]],{disabled:[0,"disabled"],disableRipple:[1,"disableRipple"]},null),(e()(),Zr(16777216,null,0,1,null,WC)),ps(4,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null),lo(0,0)],(function(e,t){var n=t.component;e(t,2,0,n.disabled,n.disableRipple),e(t,4,0,!n._customIcon)}),(function(e,t){var n=t.component;e(t,1,0,n.datepicker?"dialog":null,n._intl.openCalendarLabel,n.disabled?-1:n.tabIndex,es(t,2).disabled||null,"NoopAnimations"===es(t,2)._animationMode)}))}var KC=ti({encapsulation:2,styles:[],data:{}});function ZC(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"th",[["scope","col"]],[[1,"aria-label",0]],null,null,null,null)),(e()(),mo(1,null,["",""]))],null,(function(e,t){e(t,0,0,t.context.$implicit.long),e(t,1,0,t.context.$implicit.narrow)}))}function QC(e){return _o(2,[no(671088640,1,{_matCalendarBody:0}),(e()(),Qr(1,0,null,null,8,"table",[["class","mat-calendar-table"],["role","presentation"]],null,null,null,null,null)),(e()(),Qr(2,0,null,null,5,"thead",[["class","mat-calendar-table-header"]],null,null,null,null,null)),(e()(),Qr(3,0,null,null,2,"tr",[],null,null,null,null,null)),(e()(),Zr(16777216,null,null,1,null,ZC)),ps(5,278528,null,0,ba,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null),(e()(),Qr(6,0,null,null,1,"tr",[],null,null,null,null,null)),(e()(),Qr(7,0,null,null,0,"th",[["aria-hidden","true"],["class","mat-calendar-table-header-divider"],["colspan","7"]],null,null,null,null,null)),(e()(),Qr(8,0,null,null,1,"tbody",[["aria-readonly","true"],["class","mat-calendar-body"],["mat-calendar-body",""],["role","grid"]],null,[[null,"selectedValueChange"],[null,"keydown"]],(function(e,t,n){var i=!0,s=e.component;return"selectedValueChange"===t&&(i=!1!==s._dateSelected(n)&&i),"keydown"===t&&(i=!1!==s._handleCalendarBodyKeydown(n)&&i),i}),UC,NC)),ps(9,573440,[[1,4]],0,nv,[an,dr],{label:[0,"label"],rows:[1,"rows"],todayValue:[2,"todayValue"],selectedValue:[3,"selectedValue"],labelMinRequiredCells:[4,"labelMinRequiredCells"],activeCell:[5,"activeCell"]},{selectedValueChange:"selectedValueChange"})],(function(e,t){var n=t.component;e(t,5,0,n._weekdays),e(t,9,0,n._monthLabel,n._weeks,n._todayDate,n._selectedDate,3,n._dateAdapter.getDate(n.activeDate)-1)}),null)}var XC=ti({encapsulation:2,styles:[],data:{}});function JC(e){return _o(2,[no(671088640,1,{_matCalendarBody:0}),(e()(),Qr(1,0,null,null,5,"table",[["class","mat-calendar-table"],["role","presentation"]],null,null,null,null,null)),(e()(),Qr(2,0,null,null,2,"thead",[["class","mat-calendar-table-header"]],null,null,null,null,null)),(e()(),Qr(3,0,null,null,1,"tr",[],null,null,null,null,null)),(e()(),Qr(4,0,null,null,0,"th",[["class","mat-calendar-table-header-divider"],["colspan","4"]],null,null,null,null,null)),(e()(),Qr(5,0,null,null,1,"tbody",[["aria-readonly","true"],["class","mat-calendar-body"],["mat-calendar-body",""],["role","grid"]],null,[[null,"selectedValueChange"],[null,"keydown"]],(function(e,t,n){var i=!0,s=e.component;return"selectedValueChange"===t&&(i=!1!==s._monthSelected(n)&&i),"keydown"===t&&(i=!1!==s._handleCalendarBodyKeydown(n)&&i),i}),UC,NC)),ps(6,573440,[[1,4]],0,nv,[an,dr],{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(e,t){var n=t.component;e(t,6,0,n._yearLabel,n._months,n._todayMonth,n._selectedMonth,2,4,n._dateAdapter.getMonth(n.activeDate),4/7)}),null)}var eS,tS=ti({encapsulation:2,styles:[],data:{}});function nS(e){return _o(2,[no(671088640,1,{_matCalendarBody:0}),(e()(),Qr(1,0,null,null,5,"table",[["class","mat-calendar-table"],["role","presentation"]],null,null,null,null,null)),(e()(),Qr(2,0,null,null,2,"thead",[["class","mat-calendar-table-header"]],null,null,null,null,null)),(e()(),Qr(3,0,null,null,1,"tr",[],null,null,null,null,null)),(e()(),Qr(4,0,null,null,0,"th",[["class","mat-calendar-table-header-divider"],["colspan","4"]],null,null,null,null,null)),(e()(),Qr(5,0,null,null,1,"tbody",[["aria-readonly","true"],["class","mat-calendar-body"],["mat-calendar-body",""],["role","grid"]],null,[[null,"selectedValueChange"],[null,"keydown"]],(function(e,t,n){var i=!0,s=e.component;return"selectedValueChange"===t&&(i=!1!==s._yearSelected(n)&&i),"keydown"===t&&(i=!1!==s._handleCalendarBodyKeydown(n)&&i),i}),UC,NC)),ps(6,573440,[[1,4]],0,nv,[an,dr],{rows:[0,"rows"],todayValue:[1,"todayValue"],selectedValue:[2,"selectedValue"],numCols:[3,"numCols"],activeCell:[4,"activeCell"],cellAspectRatio:[5,"cellAspectRatio"]},{selectedValueChange:"selectedValueChange"})],(function(e,t){var n=t.component;e(t,6,0,n._years,n._todayYear,n._selectedYear,4,n._getActiveCell(),4/7)}),null)}class iS{constructor(e,t){this.router=e,this.route=t,this._router=e,this.route=t}transform(e,t){if(!e)return[];if(!t)return e;t=t.toString().toLowerCase().trim().replace(/\s\s+/g," ");var n=this.sort(t);return eS=[],this._router.navigate([],{relativeTo:this.route,queryParams:{search:t},queryParamsHandling:"merge",skipLocationChange:!1}),e.filter(e=>{var t=!1,i=this.sort(this.cleanText(JSON.stringify(e)).toLowerCase()).match(n+".*");return null!=i&&(t=i.index>0),t?(eS.push(e),!0):t})}sort(e){return e.split(" ").sort().join(".*")}cleanText(e){return e.replace(/"\w+":/g,"").replace(/"/g,"").replace(/}/g,"").replace(/{/g,"").replace(/,/g," ")}}var sS=ti({encapsulation:0,styles:[["@media (max-width:768px){.hide-on-small[_ngcontent-%COMP%]{display:none}}@media (min-width:768px){.hide-on-large[_ngcontent-%COMP%]{display:none}}td[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{max-width:350px}"]],data:{}});function rS(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"button",[["class","btn btn-success"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.LoadAll()&&i),i}),null,null)),(e()(),mo(-1,null,["Load all"]))],null,null)}function oS(e){return _o(0,[(e()(),Qr(0,0,null,null,20,"tr",[],null,[[null,"dblclick"]],(function(e,t,n){var i=!0;return"dblclick"===t&&(i=!1!==e.component.doubleClick(n)&&i),i}),null,null)),(e()(),Qr(1,0,null,null,4,"td",[["scope","col"]],null,null,null,null,null)),(e()(),Qr(2,0,null,null,3,"a",[["routerLink","/edit"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==es(e,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i}),null,null)),ps(3,671744,null,0,Dm,[km,fp,Il],{queryParams:[0,"queryParams"],routerLink:[1,"routerLink"]},null),ho(4,{id:0}),(e()(),mo(5,null,[" ",""])),(e()(),Qr(6,0,null,null,3,"td",[["class","hide-on-large"],["scope","col"]],null,null,null,null,null)),(e()(),Qr(7,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),mo(8,null,["",", ",", ",", ",", ",""])),uo(9,1),(e()(),Qr(10,0,null,null,1,"td",[["class","hide-on-small"],["scope","col"]],null,null,null,null,null)),(e()(),mo(11,null,["",""])),(e()(),Qr(12,0,null,null,2,"td",[["class","hide-on-small"],["scope","col"]],null,null,null,null,null)),(e()(),mo(13,null,["",""])),uo(14,1),(e()(),Qr(15,0,null,null,1,"td",[["class","hide-on-small"],["scope","col"]],null,null,null,null,null)),(e()(),mo(16,null,["",""])),(e()(),Qr(17,0,null,null,1,"td",[["class","hide-on-small"],["scope","col"]],null,null,null,null,null)),(e()(),mo(18,null,["",""])),(e()(),Qr(19,0,null,null,1,"td",[["class","hide-on-small"],["scope","col"]],null,null,null,null,null)),(e()(),mo(20,null,["",""]))],(function(e,t){var n=e(t,4,0,t.context.$implicit.BillId);e(t,3,0,n,"/edit")}),(function(e,t){e(t,2,0,es(t,3).target,es(t,3).href),e(t,5,0,t.context.$implicit.BillId);var n=t.context.$implicit.Vendor.VendorName,i=Xn(t,8,1,e(t,9,0,es(t.parent,1),t.context.$implicit.BillDate));e(t,8,0,n,i,t.context.$implicit.Amount,t.context.$implicit.UsdAmount,t.context.$implicit.Paid),e(t,11,0,t.context.$implicit.Vendor.VendorName);var s=Xn(t,13,0,e(t,14,0,es(t.parent,1),t.context.$implicit.BillDate));e(t,13,0,s),e(t,16,0,t.context.$implicit.Amount),e(t,18,0,t.context.$implicit.UsdAmount),e(t,20,0,t.context.$implicit.Paid)}))}function lS(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"button",[["class","btn btn-success"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.LoadMore()&&i),i}),null,null)),(e()(),mo(1,null,["Load more ","-",""]))],null,(function(e,t){var n=t.component;e(t,1,0,n.start,n.totalRows)}))}function aS(e){return _o(0,[ms(0,iS,[km,fp]),ms(0,Na,[Ks]),(e()(),Qr(2,0,null,null,35,"div",[["class"," box-header with-border"]],null,null,null,null,null)),(e()(),Qr(3,0,null,null,5,"input",[["class","form-control col-md-3 ml-2 mb-3"],["placeholder","search text goes here"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,4)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,4).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,4)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,4)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(s.searchText=n)&&i),i}),null,null)),ps(4,16384,null,0,ic,[pn,an,[2,nc]],null,null),fs(1024,null,ec,(function(e){return[e]}),[ic]),ps(6,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{model:[0,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(8,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(9,0,null,null,3,"a",[["class","btn btn-success btn-md btn-block col-md-1 ml-2 mb-3"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==es(e,10).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&i),i}),null,null)),ps(10,671744,null,0,Dm,[km,fp,Il],{routerLink:[0,"routerLink"]},null),co(11,1),(e()(),mo(-1,null,["Add"])),(e()(),Zr(16777216,null,null,1,null,rS)),ps(14,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(e()(),Qr(15,0,null,null,20,"table",[["class","table table-striped able-sm mt-2"]],null,null,null,null,null)),(e()(),Qr(16,0,null,null,15,"thead",[["class","thead-dark"]],null,null,null,null,null)),(e()(),Qr(17,0,null,null,14,"tr",[],null,null,null,null,null)),(e()(),Qr(18,0,null,null,1,"th",[["scope","col"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.Sort("BillId")&&i),i}),null,null)),(e()(),mo(-1,null,["#"])),(e()(),Qr(20,0,null,null,1,"th",[["class","hide-on-large"],["scope","col"]],null,null,null,null,null)),(e()(),mo(-1,null,["Details"])),(e()(),Qr(22,0,null,null,1,"th",[["class","hide-on-small"],["scope","col"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.Sort("VendorName")&&i),i}),null,null)),(e()(),mo(-1,null,["Vendor Name"])),(e()(),Qr(24,0,null,null,1,"th",[["class","hide-on-small"],["scope","col"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.Sort("BillDate")&&i),i}),null,null)),(e()(),mo(-1,null,["Invoice Date"])),(e()(),Qr(26,0,null,null,1,"th",[["class","hide-on-small"],["scope","col"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.Sort("Amount")&&i),i}),null,null)),(e()(),mo(-1,null,["Total Lira"])),(e()(),Qr(28,0,null,null,1,"th",[["class","hide-on-small"],["scope","col"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.Sort("UsdAmount")&&i),i}),null,null)),(e()(),mo(-1,null,["Total Usd"])),(e()(),Qr(30,0,null,null,1,"th",[["class","hide-on-small"],["scope","col"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.Sort("Paid")&&i),i}),null,null)),(e()(),mo(-1,null,["Total Payment"])),(e()(),Qr(32,0,null,null,3,"tbody",[],null,null,null,null,null)),(e()(),Zr(16777216,null,null,2,null,oS)),ps(34,278528,null,0,ba,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null),uo(35,2),(e()(),Zr(16777216,null,null,1,null,lS)),ps(37,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,6,0,n.searchText);var i=e(t,11,0,"../insert");e(t,10,0,i),e(t,14,0,n.showLoadMore);var s=Xn(t,34,0,e(t,35,0,es(t,0),n.filteredBills,n.searchText));e(t,34,0,s),e(t,37,0,n.showLoadMore)}),(function(e,t){e(t,3,0,es(t,8).ngClassUntouched,es(t,8).ngClassTouched,es(t,8).ngClassPristine,es(t,8).ngClassDirty,es(t,8).ngClassValid,es(t,8).ngClassInvalid,es(t,8).ngClassPending),e(t,9,0,es(t,10).target,es(t,10).href)}))}function uS(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"app-home",[],null,null,null,aS,sS)),ps(1,114688,null,0,xl,[_f,km,fp],null,null)],(function(e,t){e(t,1,0)}),null)}var cS=$i("app-home",xl,uS,{},{},[]),hS=ti({encapsulation:2,styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:0;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}@media (-ms-high-contrast:active){.mat-option{margin:0 1px}.mat-option.mat-active{border:solid 1px currentColor;margin:0}}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}@media (-ms-high-contrast:active){.mat-option .mat-option-ripple{opacity:.5}}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}"],data:{}});function dS(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"mat-pseudo-checkbox",[["class","mat-option-pseudo-checkbox mat-pseudo-checkbox"]],[[2,"mat-pseudo-checkbox-indeterminate",null],[2,"mat-pseudo-checkbox-checked",null],[2,"mat-pseudo-checkbox-disabled",null],[2,"_mat-animation-noopable",null]],null,null,fS,mS)),ps(1,49152,null,0,Fy,[[2,bC]],{state:[0,"state"],disabled:[1,"disabled"]},null)],(function(e,t){var n=t.component;e(t,1,0,n.selected?"checked":"",n.disabled)}),(function(e,t){e(t,0,0,"indeterminate"===es(t,1).state,"checked"===es(t,1).state,es(t,1).disabled,"NoopAnimations"===es(t,1)._animationMode)}))}function pS(e){return _o(2,[(e()(),Zr(16777216,null,null,1,null,dS)),ps(1,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(e()(),Qr(2,0,null,null,1,"span",[["class","mat-option-text"]],null,null,null,null,null)),lo(null,0),(e()(),Qr(4,0,null,null,1,"div",[["class","mat-option-ripple mat-ripple"],["mat-ripple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),ps(5,212992,null,0,Ny,[an,dr,jg,[2,Py],[2,bC]],{disabled:[0,"disabled"],trigger:[1,"trigger"]},null)],(function(e,t){var n=t.component;e(t,1,0,n.multiple),e(t,5,0,n.disabled||n.disableRipple,n._getHostElement())}),(function(e,t){e(t,4,0,es(t,5).unbounded)}))}var mS=ti({encapsulation:2,styles:[".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0,0,.2,.1),background-color 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:'';border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}"],data:{}});function fS(e){return _o(2,[],null,null)}class gS{}function _S(e){return Error(`A hint was already declared for 'align="${e}"'.`)}let yS=(()=>(class{}))(),vS=0;class bS{constructor(e){this._elementRef=e}}const wS=cy(bS,"primary"),CS=new ke("MAT_FORM_FIELD_DEFAULT_OPTIONS");let SS=(()=>(class extends wS{constructor(e,t,n,i,s,r,o,l){super(e),this._elementRef=e,this._changeDetectorRef=t,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new A,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId=`mat-hint-${vS++}`,this._labelId=`mat-form-field-label-${vS++}`,this._previousDirection="ltr",this._labelOptions=n||{},this.floatLabel=this._labelOptions.float||"auto",this._animationsEnabled="NoopAnimations"!==l,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=bg(e)}get _shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}get _canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}get _labelChild(){return this._labelChildNonStatic||this._labelChildStatic}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(mh(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Mg(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(Mg(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),X(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(mh(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(mh(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Mg(this._destroyed)).subscribe(()=>{this.updateOutlineGap(),this._previousDirection=this._dir.value})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!!this._labelChild}_shouldLabelFloat(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,Eg(this._label.nativeElement,"transitionend").pipe(Yh(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){if(this._hintChildren){let e,t;this._hintChildren.forEach(n=>{if("start"===n.align){if(e||this.hintLabel)throw _S("start");e=n}else if("end"===n.align){if(t)throw _S("end");t=n}})}}_syncDescribedByIds(){if(this._control){let e=[];if("hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(e=>"start"===e.align):null,n=this._hintChildren?this._hintChildren.find(e=>"end"===e.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&(e=this._errorChildren.map(e=>e.id));this._control.setDescribedByIds(e)}}_validateControlChild(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!e||!e.children.length||!e.textContent.trim())return;if(!this._platform.isBrowser)return;if(!document.documentElement.contains(this._elementRef.nativeElement))return void(this._outlineGapCalculationNeededImmediately=!0);let t=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=this._getStartEnd(e.children[0].getBoundingClientRect());let l=0;for(const t of e.children)l+=t.offsetWidth;t=o-r-5,n=l>0?.75*l+10:0}for(let o=0;o<s.length;o++)s.item(o).style.width=`${t}px`;for(let o=0;o<r.length;o++)r.item(o).style.width=`${n}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return"rtl"===this._previousDirection?e.right:e.left}}))(),ES=(()=>(class{}))();const xS=Wg({passive:!0});let kS=(()=>{class e{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Qu;const t=Sg(e),n=this._monitoredElements.get(t);if(n)return n.subject.asObservable();const i=new A,s="cdk-text-field-autofilled",r=e=>{"cdk-text-field-autofill-start"!==e.animationName||t.classList.contains(s)?"cdk-text-field-autofill-end"===e.animationName&&t.classList.contains(s)&&(t.classList.remove(s),this._ngZone.run(()=>i.next({target:e.target,isAutofilled:!1}))):(t.classList.add(s),this._ngZone.run(()=>i.next({target:e.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",r,xS),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:i,unlisten:()=>{t.removeEventListener("animationstart",r,xS)}}),i.asObservable()}stopMonitoring(e){const t=Sg(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return e.ngInjectableDef=me({factory:function(){return new e(Ue(jg),Ue(dr))},token:e,providedIn:"root"}),e})(),AS=(()=>(class{}))();const DS=new ke("MAT_INPUT_VALUE_ACCESSOR"),TS=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let IS=0;class OS{constructor(e,t,n,i){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=n,this.ngControl=i}}const RS=dy(OS);let PS=(()=>(class extends RS{constructor(e,t,n,i,s,r,o,l,a){super(r,i,s,n),this._elementRef=e,this._platform=t,this.ngControl=n,this._autofillMonitor=l,this._uid=`mat-input-${IS++}`,this._isServer=!1,this._isNativeSelect=!1,this.focused=!1,this.stateChanges=new A,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>Hg().has(e));const u=this._elementRef.nativeElement;this._inputValueAccessor=o||u,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&a.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",e=>{let t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===u.nodeName.toLowerCase(),this._isNativeSelect&&(this.controlType=u.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=bg(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required}set required(e){this._required=bg(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea()&&Hg().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=bg(e)}ngOnInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){if(TS.indexOf(this._type)>-1)throw Error(`Input type "${this._type}" isn't supported by matInput.`)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}_isTextarea(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focused||this.focus()}}))(),NS=(()=>(class{}))();var MS=ti({encapsulation:2,styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}@media (-ms-high-contrast:active){.mat-form-field-infix{border-image:linear-gradient(transparent,transparent)}}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-empty.mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scaleY(1.0001)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(.5);opacity:0;transition:background-color .3s cubic-bezier(.55,0,.55,.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform .3s cubic-bezier(.25,.8,.25,1),opacity .1s cubic-bezier(.25,.8,.25,1),background-color .3s cubic-bezier(.25,.8,.25,1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-label-wrapper .mat-icon,.mat-form-field-subscript-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",".mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}@media (-ms-high-contrast:active){.mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:'';display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}@media (-ms-high-contrast:active){.mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity .6s cubic-bezier(.25,.8,.25,1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}",".mat-input-element{font:inherit;background:0 0;color:currentColor;border:none;outline:0;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=month]::after,.mat-input-element[type=time]::after,.mat-input-element[type=week]::after{content:' ';white-space:pre;width:1px}.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button,.mat-input-element::-webkit-inner-spin-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent!important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:0 0}@media (-ms-high-contrast:active){.mat-focused select.mat-input-element::-ms-value{color:inherit}}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:'';width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}",".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}@media (-ms-high-contrast:active){.mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}@media (-ms-high-contrast:active){.mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}@media (-ms-high-contrast:active){.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-start{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start{border-width:2px;transition:border-color .3s cubic-bezier(.25,.8,.25,1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity .1s cubic-bezier(.25,.8,.25,1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity .6s cubic-bezier(.25,.8,.25,1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}@media (-ms-high-contrast:active){.mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}@media (-ms-high-contrast:active){.mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}@media (-ms-high-contrast:active){.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity .6s cubic-bezier(.25,.8,.25,1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],data:{animation:[{type:7,name:"transitionMessages",definitions:[{type:0,name:"enter",styles:{type:6,styles:{opacity:1,transform:"translateY(0%)"},offset:null},options:void 0},{type:1,expr:"void => enter",animation:[{type:6,styles:{opacity:0,transform:"translateY(-100%)"},offset:null},{type:4,styles:null,timings:"300ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function FS(e){return _o(0,[(e()(),Qr(0,0,null,null,8,null,null,null,null,null,null,null)),(e()(),Qr(1,0,null,null,3,"div",[["class","mat-form-field-outline"]],null,null,null,null,null)),(e()(),Qr(2,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(e()(),Qr(3,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(e()(),Qr(4,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null)),(e()(),Qr(5,0,null,null,3,"div",[["class","mat-form-field-outline mat-form-field-outline-thick"]],null,null,null,null,null)),(e()(),Qr(6,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(e()(),Qr(7,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(e()(),Qr(8,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null))],null,null)}function VS(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"div",[["class","mat-form-field-prefix"]],null,null,null,null,null)),lo(null,0)],null,null)}function LS(e){return _o(0,[(e()(),Qr(0,0,null,null,3,null,null,null,null,null,null,null)),lo(null,2),(e()(),Qr(2,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),mo(3,null,["",""]))],null,(function(e,t){e(t,3,0,t.component._control.placeholder)}))}function US(e){return _o(0,[lo(null,3),(e()(),Zr(0,null,null,0))],null,null)}function BS(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"span",[["aria-hidden","true"],["class","mat-placeholder-required mat-form-field-required-marker"]],null,null,null,null,null)),(e()(),mo(-1,null,[" *"]))],null,null)}function jS(e){return _o(0,[(e()(),Qr(0,0,[[4,0],["label",1]],null,8,"label",[["class","mat-form-field-label"]],[[8,"id",0],[1,"for",0],[1,"aria-owns",0],[2,"mat-empty",null],[2,"mat-form-field-empty",null],[2,"mat-accent",null],[2,"mat-warn",null]],[[null,"cdkObserveContent"]],(function(e,t,n){var i=!0;return"cdkObserveContent"===t&&(i=!1!==e.component.updateOutlineGap()&&i),i}),null,null)),ps(1,16384,null,0,ka,[],{ngSwitch:[0,"ngSwitch"]},null),ps(2,1196032,null,0,xv,[Ev,an,dr],{disabled:[0,"disabled"]},{event:"cdkObserveContent"}),(e()(),Zr(16777216,null,null,1,null,LS)),ps(4,278528,null,0,Aa,[Fn,Nn,ka],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),Zr(16777216,null,null,1,null,US)),ps(6,278528,null,0,Aa,[Fn,Nn,ka],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),Zr(16777216,null,null,1,null,BS)),ps(8,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,1,0,n._hasLabel()),e(t,2,0,"outline"!=n.appearance),e(t,4,0,!1),e(t,6,0,!0),e(t,8,0,!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}),(function(e,t){var n=t.component;e(t,0,0,n._labelId,n._control.id,n._control.id,n._control.empty&&!n._shouldAlwaysFloat,n._control.empty&&!n._shouldAlwaysFloat,"accent"==n.color,"warn"==n.color)}))}function zS(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"div",[["class","mat-form-field-suffix"]],null,null,null,null,null)),lo(null,4)],null,null)}function $S(e){return _o(0,[(e()(),Qr(0,0,[[1,0],["underline",1]],null,1,"div",[["class","mat-form-field-underline"]],null,null,null,null,null)),(e()(),Qr(1,0,null,null,0,"span",[["class","mat-form-field-ripple"]],[[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null))],null,(function(e,t){var n=t.component;e(t,1,0,"accent"==n.color,"warn"==n.color)}))}function HS(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"div",[],[[24,"@transitionMessages",0]],null,null,null,null)),lo(null,5)],null,(function(e,t){e(t,0,0,t.component._subscriptAnimationState)}))}function qS(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"div",[["class","mat-hint"]],[[8,"id",0]],null,null,null,null)),(e()(),mo(1,null,["",""]))],null,(function(e,t){var n=t.component;e(t,0,0,n._hintLabelId),e(t,1,0,n.hintLabel)}))}function YS(e){return _o(0,[(e()(),Qr(0,0,null,null,5,"div",[["class","mat-form-field-hint-wrapper"]],[[24,"@transitionMessages",0]],null,null,null,null)),(e()(),Zr(16777216,null,null,1,null,qS)),ps(2,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null),lo(null,6),(e()(),Qr(4,0,null,null,0,"div",[["class","mat-form-field-hint-spacer"]],null,null,null,null,null)),lo(null,7)],(function(e,t){e(t,2,0,t.component.hintLabel)}),(function(e,t){e(t,0,0,t.component._subscriptAnimationState)}))}function WS(e){return _o(2,[no(671088640,1,{underlineRef:0}),no(402653184,2,{_connectionContainerRef:0}),no(671088640,3,{_inputContainerRef:0}),no(671088640,4,{_label:0}),(e()(),Qr(4,0,null,null,20,"div",[["class","mat-form-field-wrapper"]],null,null,null,null,null)),(e()(),Qr(5,0,[[2,0],["connectionContainer",1]],null,11,"div",[["class","mat-form-field-flex"]],null,[[null,"click"]],(function(e,t,n){var i=!0,s=e.component;return"click"===t&&(i=!1!==(s._control.onContainerClick&&s._control.onContainerClick(n))&&i),i}),null,null)),(e()(),Zr(16777216,null,null,1,null,FS)),ps(7,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(e()(),Zr(16777216,null,null,1,null,VS)),ps(9,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(e()(),Qr(10,0,[[3,0],["inputContainer",1]],null,4,"div",[["class","mat-form-field-infix"]],null,null,null,null,null)),lo(null,1),(e()(),Qr(12,0,null,null,2,"span",[["class","mat-form-field-label-wrapper"]],null,null,null,null,null)),(e()(),Zr(16777216,null,null,1,null,jS)),ps(14,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(e()(),Zr(16777216,null,null,1,null,zS)),ps(16,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(e()(),Zr(16777216,null,null,1,null,$S)),ps(18,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(e()(),Qr(19,0,null,null,5,"div",[["class","mat-form-field-subscript-wrapper"]],null,null,null,null,null)),ps(20,16384,null,0,ka,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),Zr(16777216,null,null,1,null,HS)),ps(22,278528,null,0,Aa,[Fn,Nn,ka],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),Zr(16777216,null,null,1,null,YS)),ps(24,278528,null,0,Aa,[Fn,Nn,ka],{ngSwitchCase:[0,"ngSwitchCase"]},null)],(function(e,t){var n=t.component;e(t,7,0,"outline"==n.appearance),e(t,9,0,n._prefixChildren.length),e(t,14,0,n._hasFloatingLabel()),e(t,16,0,n._suffixChildren.length),e(t,18,0,"outline"!=n.appearance),e(t,20,0,n._getDisplayedMessages()),e(t,22,0,"error"),e(t,24,0,"hint")}),null)}class GS{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new KS(e,this.delay,this.scheduler))}}class KS extends f{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,i=e.scheduler,s=e.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const t=Math.max(0,n[0].time-i.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(KS.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new ZS(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(Ug.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(Ug.createComplete()),this.unsubscribe()}}class ZS{constructor(e,t){this.time=e,this.notification=t}}let QS=0;class XS{constructor(e,t){this.source=e,this.option=t}}class JS{}const eE=hy(JS),tE=new ke("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let nE=(()=>(class extends eE{constructor(e,t,n){super(),this._changeDetectorRef=e,this._elementRef=t,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Vs,this.opened=new Vs,this.closed=new Vs,this._classList={},this.id=`mat-autocomplete-${QS++}`,this._autoActiveFirstOption=!!n.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=bg(e)}set classList(e){this._classList=e&&e.length?e.split(" ").reduce((e,t)=>(e[t.trim()]=!0,e),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new H_(this.options).withWrap(),this._setVisibility()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const t=new XS(this,e);this.optionSelected.emit(t)}_setVisibilityClasses(e){e["mat-autocomplete-visible"]=this.showPanel,e["mat-autocomplete-hidden"]=!this.showPanel}}))();const iE=new ke("mat-autocomplete-scroll-strategy");function sE(e){return()=>e.scrollStrategies.reposition()}let rE=(()=>(class{constructor(e,t,n,i,s,r,o,l,a,u){this._element=e,this._overlay=t,this._viewContainerRef=n,this._zone=i,this._changeDetectorRef=s,this._dir=o,this._formField=l,this._document=a,this._viewportRuler=u,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=d.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new A,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=xh(()=>this.autocomplete&&this.autocomplete.options?X(...this.autocomplete.options.map(e=>e.onSelectionChange)):this._zone.onStable.asObservable().pipe(Yh(1),Xh(()=>this.optionSelections))),this._scrollStrategy=r}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=bg(e)}ngAfterViewInit(){if("undefined"!=typeof window&&(this._zone.runOutsideAngular(()=>{window.addEventListener("blur",this._windowBlurHandler)}),function(){if(null==Yg){const e="undefined"!=typeof document?document.head:null;Yg=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Yg}())){const e=this._element.nativeElement,t=e.getRootNode?e.getRootNode():null;this._isInsideShadowRoot=t instanceof window.ShadowRoot}}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){"undefined"!=typeof window&&window.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return X(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(kh(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(kh(()=>this._overlayAttached)):dh()).pipe(z(e=>e instanceof $y?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return X(Eg(this._document,"click"),Eg(this._document,"touchend")).pipe(kh(e=>{const t=this._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,n=this._formField?this._formField._elementRef.nativeElement:null;return this._overlayAttached&&t!==this._element.nativeElement&&(!n||!n.contains(t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(t)}))}writeValue(e){Promise.resolve(null).then(()=>this._setTriggerValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const t=e.keyCode;if(t===lg&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const n=this.autocomplete._keyManager.activeItem,i=t===ug||t===hg;this.panelOpen||t===og?this.autocomplete._keyManager.onKeydown(e):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption()}}_handleInput(e){let t=e.target,n=t.value;"number"===t.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_scrollToOption(){const e=this.autocomplete._keyManager.activeItemIndex||0,t=function(e,t,n){if(n.length){let i=t.toArray(),s=n.toArray(),r=0;for(let t=0;t<e+1;t++)i[t].group&&i[t].group===s[r]&&r++;return r}return 0}(e,this.autocomplete.options,this.autocomplete.optionGroups);if(0===e&&1===t)this.autocomplete._setScrollTop(0);else{const n=function(e,t,n,i){const s=48*e;return s<n?s:s+48>n+256?Math.max(0,s-256+48):n}(e+t,0,this.autocomplete._getScrollTop());this.autocomplete._setScrollTop(n)}}_subscribeToClosingActions(){return X(this._zone.onStable.asObservable().pipe(Yh(1)),this.autocomplete.options.changes.pipe(Nh(()=>this._positionStrategy.reapplyLastPosition()),function(e,t=Tg){var n;const i=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new GS(i,t))}(0))).pipe(Xh(()=>{const e=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),e!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),Yh(1)).subscribe(e=>this._setValueAndClose(e))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(e){const t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,n=null!=t?t:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}_setValueAndClose(e){e&&e.source&&(this._clearPreviousSelectedOption(e.source),this._setTriggerValue(e.source.value),this._onChange(e.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(e.source)),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(t=>{t!=e&&t.selected&&t.deselect()})}_attachOverlay(){if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new eg(this.autocomplete.template,this._viewContainerRef),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe(e=>{(e.keyCode===lg||e.keyCode===ug&&e.altKey)&&(this._resetActiveItem(),this._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())}),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})}))),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const t=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&t!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new l_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const t={originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},n={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"};let i;i="above"===this.position?[n]:"below"===this.position?[t]:[t,n],e.withPositions(i)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}}))(),oE=(()=>(class{}))();var lE=ti({encapsulation:2,styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}@media (-ms-high-contrast:active){.mat-autocomplete-panel{outline:solid 1px}}"],data:{}});function aE(e){return _o(0,[(e()(),Qr(0,0,[[2,0],["panel",1]],null,3,"div",[["class","mat-autocomplete-panel"],["role","listbox"]],[[8,"id",0]],null,null,null,null)),fs(512,null,fa,ga,[An,Dn,an,pn]),ps(2,278528,null,0,ya,[fa],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),lo(null,0)],(function(e,t){e(t,2,0,"mat-autocomplete-panel",t.component._classList)}),(function(e,t){e(t,0,0,t.component.id)}))}function uE(e){return _o(2,[no(402653184,1,{template:0}),no(671088640,2,{panel:0}),(e()(),Zr(0,[[1,2]],null,0,null,aE))],null,null)}var cE=ti({encapsulation:0,styles:[[""]],data:{}});function hE(e){return _o(0,[(e()(),Qr(0,0,null,null,2,"mat-option",[["class","mat-option"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],(function(e,t,n){var i=!0,s=e.component;return"click"===t&&(i=!1!==es(e,1)._selectViaInteraction()&&i),"keydown"===t&&(i=!1!==es(e,1)._handleKeydown(n)&&i),"click"===t&&(i=!1!==s.UpdateVendor(e.context.$implicit)&&i),i}),pS,hS)),ps(1,8568832,[[10,4]],0,qy,[an,Tn,[2,Hy],[2,jy]],{value:[0,"value"]},null),(e()(),mo(2,0,[" "," "]))],(function(e,t){e(t,1,0,t.context.$implicit.VendorId)}),(function(e,t){e(t,0,0,es(t,1)._getTabIndex(),es(t,1).selected,es(t,1).multiple,es(t,1).active,es(t,1).id,es(t,1)._getAriaSelected(),es(t,1).disabled.toString(),es(t,1).disabled),e(t,2,0,t.context.$implicit.VendorName)}))}function dE(e){return _o(0,[(e()(),Qr(0,0,null,null,0,"span",[["aria-hidden","true"],["class","spinner-border spinner-border-sm"],["role","status"]],null,null,null,null,null))],null,null)}function pE(e){return _o(0,[(e()(),Qr(0,0,null,null,5,"tr",[],null,null,null,null,null)),(e()(),Qr(1,0,null,null,2,"td",[],null,null,null,null,null)),(e()(),Qr(2,0,null,null,1,"a",[["target","blank"]],[[8,"href",4]],null,null,null,null)),(e()(),mo(3,null,["",""])),(e()(),Qr(4,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),Qr(5,0,null,null,0,"input",[["class","btn btn-danger float-xl-right"],["type","button"],["value","X"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.RemoveFileItem(e.context.$implicit)&&i),i}),null,null))],null,(function(e,t){e(t,2,0,Di(1,"/api/AwsStorage/DownloadFile/",t.context.$implicit.File.FileName,"")),e(t,3,0,t.context.$implicit.File.FileName)}))}function mE(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"p",[["class","bg-success p-3 mb-2"]],null,null,null,null,null)),(e()(),mo(-1,null,["Successfully Saved!"]))],null,null)}function fE(e){return _o(0,[(e()(),Qr(0,0,null,null,0,"div",[["class","modal-backdrop fade show"]],null,null,null,null,null))],null,null)}function gE(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"p",[["class","alert alert-danger"],["role","alert"]],null,null,null,null,null)),(e()(),mo(-1,null,["Fill up the vendor field before saving"]))],null,null)}function _E(e){return _o(0,[(e()(),Qr(0,0,null,null,17,"div",[["class","modal fade show"],["id","exampleModalCenter"],["role","dialog"],["style","display: block; padding-right: 12px;"],["tabindex","-1"]],null,null,null,null,null)),(e()(),Qr(1,0,null,null,14,"div",[["class","modal-dialog modal-dialog-centered"],["role","document"]],null,null,null,null,null)),(e()(),Qr(2,0,null,null,13,"div",[["class","modal-content"]],null,null,null,null,null)),(e()(),Qr(3,0,null,null,5,"div",[["class","modal-header"]],null,null,null,null,null)),(e()(),Qr(4,0,null,null,1,"h5",[["class","modal-title"]],null,null,null,null,null)),(e()(),mo(-1,null,["Delete"])),(e()(),Qr(6,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(e()(),Qr(7,0,null,null,1,"span",[["aria-hidden","true"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.CloseModal()&&i),i}),null,null)),(e()(),mo(-1,null,["\xd7"])),(e()(),Qr(9,0,null,null,1,"div",[["class","modal-body"]],null,null,null,null,null)),(e()(),mo(-1,null,[" Are you sure? "])),(e()(),Qr(11,0,null,null,4,"div",[["class","modal-footer"]],null,null,null,null,null)),(e()(),Qr(12,0,null,null,1,"button",[["class","btn btn-secondary"],["data-dismiss","modal"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.CloseModal()&&i),i}),null,null)),(e()(),mo(-1,null,["No"])),(e()(),Qr(14,0,null,null,1,"button",[["class","btn btn-danger"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.Delete()&&i),i}),null,null)),(e()(),mo(-1,null,["Yes"])),(e()(),Zr(16777216,null,null,1,null,gE)),ps(17,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,17,0,t.component.errorVendor)}),null)}function yE(e){return _o(0,[(e()(),Qr(0,0,null,null,183,"div",[["class","container mb-3"]],null,null,null,null,null)),(e()(),Qr(1,0,null,null,2,"div",[["class","row ml-1 mr-1 mt-3 mb-5 text-light "]],null,null,null,null,null)),(e()(),Qr(2,0,null,null,1,"button",[["class","btn bg-secondary  btn-block col-md-3"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.Cancel()&&i),i}),null,null)),(e()(),mo(-1,null,[" back "])),(e()(),Qr(4,0,null,null,167,"div",[["class","table ml-3"]],null,null,null,null,null)),(e()(),Qr(5,0,null,null,66,"div",[["class","row"]],null,null,null,null,null)),(e()(),Qr(6,0,null,null,8,"div",[],null,null,null,null,null)),(e()(),Qr(7,0,null,null,7,"input",[["class","form-control ml-1  mat-input-element mat-form-field-autofill-control"],["matInput",""],["name","VendorInvoiceNumber"],["placeholder","State Invoice Number"],["type","text"]],[[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,9)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,9).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,9)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,9)._compositionEnd(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,14)._focusChanged(!1)&&i),"focus"===t&&(i=!1!==es(e,14)._focusChanged(!0)&&i),"input"===t&&(i=!1!==es(e,14)._onInput()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.VendorInvoiceNumber=n)&&i),i}),null,null)),fs(6144,null,gS,null,[PS]),ps(9,16384,null,0,ic,[pn,an,[2,nc]],null,null),fs(1024,null,ec,(function(e){return[e]}),[ic]),ps(11,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(13,16384,null,0,uc,[[4,lc]],null,null),ps(14,999424,null,0,PS,[an,jg,[6,lc],[2,Zc],[2,oh],ky,[8,null],kS,dr],{placeholder:[0,"placeholder"],type:[1,"type"]},null),(e()(),Qr(15,0,null,null,28,"mat-form-field",[["class","col mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,WS,MS)),ps(16,7520256,null,9,SS,[an,Tn,[2,Wy],[2,yg],[2,CS],jg,dr,[2,bC]],null,null),no(603979776,1,{_controlNonStatic:0}),no(335544320,2,{_controlStatic:0}),no(603979776,3,{_labelChildNonStatic:0}),no(335544320,4,{_labelChildStatic:0}),no(603979776,5,{_placeholderChild:0}),no(603979776,6,{_errorChildren:1}),no(603979776,7,{_hintChildren:1}),no(603979776,8,{_prefixChildren:1}),no(603979776,9,{_suffixChildren:1}),(e()(),Qr(26,16777216,null,1,8,"input",[["class","col ml-1 mat-autocomplete-trigger mat-input-element mat-form-field-autofill-control"],["matInput",""],["name","bill.Vendor.VendorId"],["placeholder","Vendor Id"],["type","text"]],[[1,"autocomplete",0],[1,"role",0],[1,"aria-autocomplete",0],[1,"aria-activedescendant",0],[1,"aria-expanded",0],[1,"aria-owns",0],[1,"aria-haspopup",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"focusin"],[null,"blur"],[null,"input"],[null,"keydown"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],(function(e,t,n){var i=!0,s=e.component;return"focusin"===t&&(i=!1!==es(e,27)._handleFocus()&&i),"blur"===t&&(i=!1!==es(e,27)._onTouched()&&i),"input"===t&&(i=!1!==es(e,27)._handleInput(n)&&i),"keydown"===t&&(i=!1!==es(e,27)._handleKeydown(n)&&i),"input"===t&&(i=!1!==es(e,28)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,28).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,28)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,28)._compositionEnd(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,33)._focusChanged(!1)&&i),"focus"===t&&(i=!1!==es(e,33)._focusChanged(!0)&&i),"input"===t&&(i=!1!==es(e,33)._onInput()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.Vendor.VendorId=n)&&i),i}),null,null)),ps(27,4866048,null,0,rE,[an,S_,Fn,dr,Tn,iE,[2,yg],[2,SS],[2,Fa],Xg],{autocomplete:[0,"autocomplete"]},null),ps(28,16384,null,0,ic,[pn,an,[2,nc]],null,null),fs(1024,null,ec,(function(e,t){return[e,t]}),[rE,ic]),ps(30,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(32,16384,null,0,uc,[[4,lc]],null,null),ps(33,999424,null,0,PS,[an,jg,[6,lc],[2,Zc],[2,oh],ky,[8,null],kS,dr],{placeholder:[0,"placeholder"],type:[1,"type"]},null),fs(2048,[[1,4],[2,4]],gS,null,[PS]),(e()(),Qr(35,0,null,1,1,"label",[],null,null,null,null,null)),(e()(),mo(36,null,["",""])),(e()(),Qr(37,0,null,1,6,"mat-autocomplete",[["class","mat-autocomplete"]],null,null,null,uE,lE)),fs(6144,null,Hy,null,[nE]),ps(39,1097728,[["auto",4]],2,nE,[Tn,an,tE],null,null),no(603979776,10,{options:1}),no(603979776,11,{optionGroups:1}),(e()(),Zr(16777216,null,0,1,null,hE)),ps(43,278528,null,0,ba,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null),(e()(),Qr(44,0,null,null,27,"mat-form-field",[["class","col mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,WS,MS)),ps(45,7520256,null,9,SS,[an,Tn,[2,Wy],[2,yg],[2,CS],jg,dr,[2,bC]],null,null),no(603979776,12,{_controlNonStatic:0}),no(335544320,13,{_controlStatic:0}),no(603979776,14,{_labelChildNonStatic:0}),no(335544320,15,{_labelChildStatic:0}),no(603979776,16,{_placeholderChild:0}),no(603979776,17,{_errorChildren:1}),no(603979776,18,{_hintChildren:1}),no(603979776,19,{_prefixChildren:1}),no(603979776,20,{_suffixChildren:1}),(e()(),Qr(55,0,null,1,10,"input",[["class","col ml-1 mat-input-element mat-form-field-autofill-control"],["matInput",""],["placeholder","Bill Date"]],[[1,"aria-haspopup",0],[1,"aria-owns",0],[1,"min",0],[1,"max",0],[8,"disabled",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"change"],[null,"blur"],[null,"keydown"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,56)._onInput(n.target.value)&&i),"change"===t&&(i=!1!==es(e,56)._onChange()&&i),"blur"===t&&(i=!1!==es(e,56)._onBlur()&&i),"keydown"===t&&(i=!1!==es(e,56)._onKeydown(n)&&i),"input"===t&&(i=!1!==es(e,57)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,57).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,57)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,57)._compositionEnd(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,64)._focusChanged(!1)&&i),"focus"===t&&(i=!1!==es(e,64)._focusChanged(!0)&&i),"input"===t&&(i=!1!==es(e,64)._onInput()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.BillDate=n)&&i),i}),null,null)),ps(56,147456,null,0,bv,[an,[2,my],[2,fy],[2,SS]],{matDatepicker:[0,"matDatepicker"]},null),ps(57,16384,null,0,ic,[pn,an,[2,nc]],null,null),fs(1024,null,dc,(function(e){return[e]}),[bv]),fs(1024,null,ec,(function(e,t){return[e,t]}),[bv,ic]),ps(60,671744,null,0,nh,[[8,null],[6,dc],[8,null],[6,ec]],{model:[0,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(62,16384,null,0,uc,[[4,lc]],null,null),fs(2048,null,DS,null,[bv]),ps(64,999424,null,0,PS,[an,jg,[6,lc],[2,Zc],[2,oh],ky,[6,DS],kS,dr],{placeholder:[0,"placeholder"]},null),fs(2048,[[12,4],[13,4]],gS,null,[PS]),(e()(),Qr(66,0,null,4,3,"mat-datepicker-toggle",[["class","mat-datepicker-toggle"],["matSuffix",""]],[[1,"tabindex",0],[2,"mat-datepicker-toggle-active",null],[2,"mat-accent",null],[2,"mat-warn",null]],[[null,"focus"]],(function(e,t,n){var i=!0;return"focus"===t&&(i=!1!==es(e,68)._button.focus()&&i),i}),GC,YC)),ps(67,16384,[[20,4]],0,yS,[],null,null),ps(68,1753088,null,1,wv,[ev,Tn,[8,null]],{datepicker:[0,"datepicker"]},null),no(603979776,21,{_customIcon:0}),(e()(),Qr(70,16777216,null,1,1,"mat-datepicker",[],null,null,null,qC,HC)),ps(71,180224,[["picker",4]],0,yv,[F_,S_,dr,Fn,pv,[2,my],[2,yg],[2,Fa]],null,null),(e()(),Qr(72,0,null,null,8,"div",[["class","form-group mt-3"]],null,null,null,null,null)),(e()(),Qr(73,0,null,null,1,"label",[["for","bill-name"]],null,null,null,null,null)),(e()(),mo(-1,null,["Bill name"])),(e()(),Qr(75,0,null,null,5,"input",[["class","input-group-text form-control"],["id","bill-name"],["name","bill-name"],["placeholder","Bill name"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,76)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,76).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,76)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,76)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(s.bill.BillName=n)&&i),i}),null,null)),ps(76,16384,null,0,ic,[pn,an,[2,nc]],null,null),fs(1024,null,ec,(function(e){return[e]}),[ic]),ps(78,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(80,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(81,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),Qr(82,0,null,null,1,"label",[["for","bill-amount"]],null,null,null,null,null)),(e()(),mo(-1,null,["Bill Amount"])),(e()(),Qr(84,0,null,null,6,"input",[["class","input-group-text form-control"],["id","bill-amount"],["name","bill-amount"],["placeholder","Bill Amount"],["type","number"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,85)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,85).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,85)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,85)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==es(e,86).onChange(n.target.value)&&i),"input"===t&&(i=!1!==es(e,86).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,86).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.Amount=n)&&i),i}),null,null)),ps(85,16384,null,0,ic,[pn,an,[2,nc]],null,null),ps(86,16384,null,0,bc,[pn,an],null,null),fs(1024,null,ec,(function(e,t){return[e,t]}),[ic,bc]),ps(88,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(90,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(91,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),Qr(92,0,null,null,1,"label",[["for","bill-amount"]],null,null,null,null,null)),(e()(),mo(-1,null,["Exchange Rate"])),(e()(),Qr(94,0,null,null,6,"input",[["class","input-group-text form-control"],["id","bill-exchange-rate"],["name","bill-exchange-rate"],["placeholder","Exchange Rate"],["type","number"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,95)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,95).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,95)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,95)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==es(e,96).onChange(n.target.value)&&i),"input"===t&&(i=!1!==es(e,96).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,96).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.ExchangeRate=n)&&i),i}),null,null)),ps(95,16384,null,0,ic,[pn,an,[2,nc]],null,null),ps(96,16384,null,0,bc,[pn,an],null,null),fs(1024,null,ec,(function(e,t){return[e,t]}),[ic,bc]),ps(98,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(100,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(101,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),Qr(102,0,null,null,1,"label",[["for","bill-amount"]],null,null,null,null,null)),(e()(),mo(-1,null,["Bill Usd Amount"])),(e()(),Qr(104,0,null,null,6,"input",[["class","input-group-text form-control"],["id","bill-usd-amount"],["name","bill-usd-amount"],["placeholder","Bill Usd Amount"],["type","number"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,105)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,105).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,105)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,105)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==es(e,106).onChange(n.target.value)&&i),"input"===t&&(i=!1!==es(e,106).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,106).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.UsdAmount=n)&&i),i}),null,null)),ps(105,16384,null,0,ic,[pn,an,[2,nc]],null,null),ps(106,16384,null,0,bc,[pn,an],null,null),fs(1024,null,ec,(function(e,t){return[e,t]}),[ic,bc]),ps(108,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(110,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(111,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),Qr(112,0,null,null,1,"label",[["for","bill-euro-amount"]],null,null,null,null,null)),(e()(),mo(-1,null,["Bill Euro Amount"])),(e()(),Qr(114,0,null,null,6,"input",[["class","input-group-text form-control"],["id","bill-euro-amount"],["name","bill-euro-amount"],["placeholder","Bill Euro Amount"],["type","number"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,115)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,115).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,115)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,115)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==es(e,116).onChange(n.target.value)&&i),"input"===t&&(i=!1!==es(e,116).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,116).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.EuroAmount=n)&&i),i}),null,null)),ps(115,16384,null,0,ic,[pn,an,[2,nc]],null,null),ps(116,16384,null,0,bc,[pn,an],null,null),fs(1024,null,ec,(function(e,t){return[e,t]}),[ic,bc]),ps(118,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(120,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(121,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),Qr(122,0,null,null,1,"label",[["for","paid"]],null,null,null,null,null)),(e()(),mo(-1,null,["Paid Amount"])),(e()(),Qr(124,0,null,null,6,"input",[["class","input-group-text form-control"],["id","paid"],["name","paid"],["placeholder","Paid Amount"],["type","number"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,125)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,125).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,125)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,125)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==es(e,126).onChange(n.target.value)&&i),"input"===t&&(i=!1!==es(e,126).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,126).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.Paid=n)&&i),i}),null,null)),ps(125,16384,null,0,ic,[pn,an,[2,nc]],null,null),ps(126,16384,null,0,bc,[pn,an],null,null),fs(1024,null,ec,(function(e,t){return[e,t]}),[ic,bc]),ps(128,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(130,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(131,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),Qr(132,0,null,null,1,"label",[["for","kdv"]],null,null,null,null,null)),(e()(),mo(-1,null,["KDV"])),(e()(),Qr(134,0,null,null,6,"input",[["class","input-group-text form-control"],["id","kdv"],["name","kdv"],["placeholder","KDV"],["type","number"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,135)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,135).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,135)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,135)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==es(e,136).onChange(n.target.value)&&i),"input"===t&&(i=!1!==es(e,136).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,136).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.KDV=n)&&i),i}),null,null)),ps(135,16384,null,0,ic,[pn,an,[2,nc]],null,null),ps(136,16384,null,0,bc,[pn,an],null,null),fs(1024,null,ec,(function(e,t){return[e,t]}),[ic,bc]),ps(138,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(140,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(141,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),Qr(142,0,null,null,1,"label",[["for","comment"]],null,null,null,null,null)),(e()(),mo(-1,null,["Comment"])),(e()(),Qr(144,0,null,null,5,"input",[["class","input-group-text form-control"],["id","comment"],["name","comment"],["placeholder","Comments"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,145)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,145).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,145)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,145)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(s.bill.Comment=n)&&i),i}),null,null)),ps(145,16384,null,0,ic,[pn,an,[2,nc]],null,null),fs(1024,null,ec,(function(e){return[e]}),[ic]),ps(147,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(149,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(150,0,null,null,12,"form",[["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,"ngSubmit"],[null,"submit"],[null,"reset"]],(function(e,t,n){var i=!0,s=e.component;return"submit"===t&&(i=!1!==es(e,152).onSubmit(n)&&i),"reset"===t&&(i=!1!==es(e,152).onReset()&&i),"ngSubmit"===t&&(i=!1!==s.OnUploadFile()&&i),i}),null,null)),ps(151,16384,null,0,ih,[],null,null),ps(152,540672,null,0,oh,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),fs(2048,null,rc,null,[oh]),ps(154,16384,null,0,cc,[[4,rc]],null,null),(e()(),Qr(155,0,null,null,3,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),Qr(156,0,null,null,1,"label",[["for","fatura"]],null,null,null,null,null)),(e()(),mo(-1,null,["Fatura"])),(e()(),Qr(158,0,[["fileInput",1]],null,0,"input",[["id","fatura"],["type","file"]],null,[[null,"change"]],(function(e,t,n){var i=!0;return"change"===t&&(i=!1!==e.component.onFileChange(n)&&i),i}),null,null)),(e()(),Qr(159,0,null,null,3,"button",[["class","btn btn-success"],["type","submit"]],null,null,null,null,null)),(e()(),mo(-1,null,["Upload "])),(e()(),Zr(16777216,null,null,1,null,dE)),ps(162,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(e()(),Qr(163,0,null,null,8,"table",[["class","table table-borderless"]],null,null,null,null,null)),(e()(),Qr(164,0,null,null,4,"thead",[],null,null,null,null,null)),(e()(),Qr(165,0,null,null,3,"tr",[],null,null,null,null,null)),(e()(),Qr(166,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),mo(-1,null,["File name"])),(e()(),Qr(168,0,null,null,0,"th",[],null,null,null,null,null)),(e()(),Qr(169,0,null,null,2,"tbody",[],null,null,null,null,null)),(e()(),Zr(16777216,null,null,1,null,pE)),ps(171,278528,null,0,ba,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null),(e()(),Zr(16777216,null,null,1,null,mE)),ps(173,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(e()(),Qr(174,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),Qr(175,0,null,null,2,"div",[["class","col-md-3 mb-3"]],null,null,null,null,null)),(e()(),Qr(176,0,null,null,1,"button",[["class","btn btn-secondary btn-lg btn-block"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.Cancel()&&i),i}),null,null)),(e()(),mo(-1,null,[" Cancel "])),(e()(),Qr(178,0,null,null,2,"div",[["class","col-md-3 mb-3"]],null,null,null,null,null)),(e()(),Qr(179,0,null,null,1,"button",[["class","btn btn-danger btn-lg btn-block"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.ConfirmDelete()&&i),i}),null,null)),(e()(),mo(-1,null,[" Delete "])),(e()(),Qr(181,0,null,null,2,"div",[["class","col-md-3 mb-3"]],null,null,null,null,null)),(e()(),Qr(182,0,null,null,1,"button",[["class","btn btn-success btn-lg btn-block"],["type","button"],["value","Save"]],[[1,"disabled",0]],[[null,"click"]],(function(e,t,n){var i=!0,s=e.component;return"click"===t&&(i=!1!==s.Save(s.bill)&&i),i}),null,null)),(e()(),mo(-1,null,[" Save "])),(e()(),Zr(16777216,null,null,1,null,fE)),ps(185,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(e()(),Zr(16777216,null,null,1,null,_E)),ps(187,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,11,0,"VendorInvoiceNumber",n.bill.VendorInvoiceNumber),e(t,14,0,"State Invoice Number","text"),e(t,27,0,es(t,39)),e(t,30,0,"bill.Vendor.VendorId",n.bill.Vendor.VendorId),e(t,33,0,"Vendor Id","text"),e(t,43,0,n.vendors),e(t,56,0,es(t,71)),e(t,60,0,n.bill.BillDate),e(t,64,0,"Bill Date"),e(t,68,0,es(t,71)),e(t,78,0,"bill-name",n.bill.BillName),e(t,88,0,"bill-amount",n.bill.Amount),e(t,98,0,"bill-exchange-rate",n.bill.ExchangeRate),e(t,108,0,"bill-usd-amount",n.bill.UsdAmount),e(t,118,0,"bill-euro-amount",n.bill.EuroAmount),e(t,128,0,"paid",n.bill.Paid),e(t,138,0,"kdv",n.bill.KDV),e(t,147,0,"comment",n.bill.Comment),e(t,152,0,n.form),e(t,162,0,n.uploading),e(t,171,0,n.files),e(t,173,0,n.showSuccess),e(t,185,0,n.deletemodal),e(t,187,0,n.deletemodal)}),(function(e,t){var n=t.component;e(t,7,1,[es(t,13).ngClassUntouched,es(t,13).ngClassTouched,es(t,13).ngClassPristine,es(t,13).ngClassDirty,es(t,13).ngClassValid,es(t,13).ngClassInvalid,es(t,13).ngClassPending,es(t,14)._isServer,es(t,14).id,es(t,14).placeholder,es(t,14).disabled,es(t,14).required,es(t,14).readonly&&!es(t,14)._isNativeSelect||null,es(t,14)._ariaDescribedby||null,es(t,14).errorState,es(t,14).required.toString()]),e(t,15,1,["standard"==es(t,16).appearance,"fill"==es(t,16).appearance,"outline"==es(t,16).appearance,"legacy"==es(t,16).appearance,es(t,16)._control.errorState,es(t,16)._canLabelFloat,es(t,16)._shouldLabelFloat(),es(t,16)._hasFloatingLabel(),es(t,16)._hideControlPlaceholder(),es(t,16)._control.disabled,es(t,16)._control.autofilled,es(t,16)._control.focused,"accent"==es(t,16).color,"warn"==es(t,16).color,es(t,16)._shouldForward("untouched"),es(t,16)._shouldForward("touched"),es(t,16)._shouldForward("pristine"),es(t,16)._shouldForward("dirty"),es(t,16)._shouldForward("valid"),es(t,16)._shouldForward("invalid"),es(t,16)._shouldForward("pending"),!es(t,16)._animationsEnabled]),e(t,26,1,[es(t,27).autocompleteAttribute,es(t,27).autocompleteDisabled?null:"combobox",es(t,27).autocompleteDisabled?null:"list",es(t,27).panelOpen&&es(t,27).activeOption?es(t,27).activeOption.id:null,es(t,27).autocompleteDisabled?null:es(t,27).panelOpen.toString(),es(t,27).autocompleteDisabled||!es(t,27).panelOpen?null:null==es(t,27).autocomplete?null:es(t,27).autocomplete.id,!es(t,27).autocompleteDisabled,es(t,32).ngClassUntouched,es(t,32).ngClassTouched,es(t,32).ngClassPristine,es(t,32).ngClassDirty,es(t,32).ngClassValid,es(t,32).ngClassInvalid,es(t,32).ngClassPending,es(t,33)._isServer,es(t,33).id,es(t,33).placeholder,es(t,33).disabled,es(t,33).required,es(t,33).readonly&&!es(t,33)._isNativeSelect||null,es(t,33)._ariaDescribedby||null,es(t,33).errorState,es(t,33).required.toString()]),e(t,36,0,n.bill.Vendor.VendorName),e(t,44,1,["standard"==es(t,45).appearance,"fill"==es(t,45).appearance,"outline"==es(t,45).appearance,"legacy"==es(t,45).appearance,es(t,45)._control.errorState,es(t,45)._canLabelFloat,es(t,45)._shouldLabelFloat(),es(t,45)._hasFloatingLabel(),es(t,45)._hideControlPlaceholder(),es(t,45)._control.disabled,es(t,45)._control.autofilled,es(t,45)._control.focused,"accent"==es(t,45).color,"warn"==es(t,45).color,es(t,45)._shouldForward("untouched"),es(t,45)._shouldForward("touched"),es(t,45)._shouldForward("pristine"),es(t,45)._shouldForward("dirty"),es(t,45)._shouldForward("valid"),es(t,45)._shouldForward("invalid"),es(t,45)._shouldForward("pending"),!es(t,45)._animationsEnabled]),e(t,55,1,[es(t,56)._datepicker?"dialog":null,(null==es(t,56)._datepicker?null:es(t,56)._datepicker.opened)&&es(t,56)._datepicker.id||null,es(t,56).min?es(t,56)._dateAdapter.toIso8601(es(t,56).min):null,es(t,56).max?es(t,56)._dateAdapter.toIso8601(es(t,56).max):null,es(t,56).disabled,es(t,62).ngClassUntouched,es(t,62).ngClassTouched,es(t,62).ngClassPristine,es(t,62).ngClassDirty,es(t,62).ngClassValid,es(t,62).ngClassInvalid,es(t,62).ngClassPending,es(t,64)._isServer,es(t,64).id,es(t,64).placeholder,es(t,64).disabled,es(t,64).required,es(t,64).readonly&&!es(t,64)._isNativeSelect||null,es(t,64)._ariaDescribedby||null,es(t,64).errorState,es(t,64).required.toString()]),e(t,66,0,-1,es(t,68).datepicker&&es(t,68).datepicker.opened,es(t,68).datepicker&&"accent"===es(t,68).datepicker.color,es(t,68).datepicker&&"warn"===es(t,68).datepicker.color),e(t,75,0,es(t,80).ngClassUntouched,es(t,80).ngClassTouched,es(t,80).ngClassPristine,es(t,80).ngClassDirty,es(t,80).ngClassValid,es(t,80).ngClassInvalid,es(t,80).ngClassPending),e(t,84,0,es(t,90).ngClassUntouched,es(t,90).ngClassTouched,es(t,90).ngClassPristine,es(t,90).ngClassDirty,es(t,90).ngClassValid,es(t,90).ngClassInvalid,es(t,90).ngClassPending),e(t,94,0,es(t,100).ngClassUntouched,es(t,100).ngClassTouched,es(t,100).ngClassPristine,es(t,100).ngClassDirty,es(t,100).ngClassValid,es(t,100).ngClassInvalid,es(t,100).ngClassPending),e(t,104,0,es(t,110).ngClassUntouched,es(t,110).ngClassTouched,es(t,110).ngClassPristine,es(t,110).ngClassDirty,es(t,110).ngClassValid,es(t,110).ngClassInvalid,es(t,110).ngClassPending),e(t,114,0,es(t,120).ngClassUntouched,es(t,120).ngClassTouched,es(t,120).ngClassPristine,es(t,120).ngClassDirty,es(t,120).ngClassValid,es(t,120).ngClassInvalid,es(t,120).ngClassPending),e(t,124,0,es(t,130).ngClassUntouched,es(t,130).ngClassTouched,es(t,130).ngClassPristine,es(t,130).ngClassDirty,es(t,130).ngClassValid,es(t,130).ngClassInvalid,es(t,130).ngClassPending),e(t,134,0,es(t,140).ngClassUntouched,es(t,140).ngClassTouched,es(t,140).ngClassPristine,es(t,140).ngClassDirty,es(t,140).ngClassValid,es(t,140).ngClassInvalid,es(t,140).ngClassPending),e(t,144,0,es(t,149).ngClassUntouched,es(t,149).ngClassTouched,es(t,149).ngClassPristine,es(t,149).ngClassDirty,es(t,149).ngClassValid,es(t,149).ngClassInvalid,es(t,149).ngClassPending),e(t,150,0,es(t,154).ngClassUntouched,es(t,154).ngClassTouched,es(t,154).ngClassPristine,es(t,154).ngClassDirty,es(t,154).ngClassValid,es(t,154).ngClassInvalid,es(t,154).ngClassPending),e(t,182,0,n.saving?"":null)}))}function vE(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"app-edit",[],null,null,null,yE,cE)),ps(1,114688,null,0,yh,[_f,fp,km,ah,Rl],null,null)],(function(e,t){e(t,1,0)}),null)}var bE=$i("app-edit",yh,vE,{},{},[]),wE=ti({encapsulation:0,styles:[[""]],data:{}});function CE(e){return _o(0,[(e()(),Qr(0,0,null,null,2,"mat-option",[["class","mat-option"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],(function(e,t,n){var i=!0,s=e.component;return"click"===t&&(i=!1!==es(e,1)._selectViaInteraction()&&i),"keydown"===t&&(i=!1!==es(e,1)._handleKeydown(n)&&i),"click"===t&&(i=!1!==s.UpdateVendor(e.context.$implicit)&&i),i}),pS,hS)),ps(1,8568832,[[10,4]],0,qy,[an,Tn,[2,Hy],[2,jy]],{value:[0,"value"]},null),(e()(),mo(2,0,[" "," "]))],(function(e,t){e(t,1,0,t.context.$implicit.VendorId)}),(function(e,t){e(t,0,0,es(t,1)._getTabIndex(),es(t,1).selected,es(t,1).multiple,es(t,1).active,es(t,1).id,es(t,1)._getAriaSelected(),es(t,1).disabled.toString(),es(t,1).disabled),e(t,2,0,t.context.$implicit.VendorName)}))}function SE(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"p",[["class","bg-success p-3 mb-2"]],null,null,null,null,null)),(e()(),mo(-1,null,["Successfully Saved!"]))],null,null)}function EE(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"p",[["class","alert alert-danger"],["role","alert"]],null,null,null,null,null)),(e()(),mo(-1,null,["Fill up the vendor field before saving"]))],null,null)}function xE(e){return _o(0,[(e()(),Qr(0,0,null,null,163,"div",[["class","container mb-3"]],null,null,null,null,null)),(e()(),Qr(1,0,null,null,4,"div",[["class","row ml-1 mr-1 mt-3 mb-5 text-light "]],null,null,null,null,null)),(e()(),Qr(2,0,null,null,3,"button",[["class","btn bg-secondary  btn-block col-md-3"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==es(e,3).onClick()&&i),i}),null,null)),ps(3,16384,null,0,Am,[km,fp,[8,null],pn,an],{routerLink:[0,"routerLink"]},null),co(4,1),(e()(),mo(-1,null,[" back "])),(e()(),Qr(6,0,null,null,146,"div",[["class","table ml-3"]],null,null,null,null,null)),(e()(),Qr(7,0,null,null,67,"div",[["class","row"]],null,null,null,null,null)),(e()(),Qr(8,0,null,null,8,"div",[],null,null,null,null,null)),(e()(),Qr(9,0,null,null,7,"input",[["class","form-control ml-1  mat-input-element mat-form-field-autofill-control"],["matInput",""],["name","VendorInvoiceNumber"],["placeholder","State Invoice Number"],["type","text"]],[[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,11)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,11).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,11)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,11)._compositionEnd(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,16)._focusChanged(!1)&&i),"focus"===t&&(i=!1!==es(e,16)._focusChanged(!0)&&i),"input"===t&&(i=!1!==es(e,16)._onInput()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.VendorInvoiceNumber=n)&&i),i}),null,null)),fs(6144,null,gS,null,[PS]),ps(11,16384,null,0,ic,[pn,an,[2,nc]],null,null),fs(1024,null,ec,(function(e){return[e]}),[ic]),ps(13,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(15,16384,null,0,uc,[[4,lc]],null,null),ps(16,999424,null,0,PS,[an,jg,[6,lc],[2,Zc],[2,oh],ky,[8,null],kS,dr],{placeholder:[0,"placeholder"],type:[1,"type"]},null),(e()(),Qr(17,0,null,null,29,"mat-form-field",[["class","col mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,WS,MS)),ps(18,7520256,null,9,SS,[an,Tn,[2,Wy],[2,yg],[2,CS],jg,dr,[2,bC]],null,null),no(603979776,1,{_controlNonStatic:0}),no(335544320,2,{_controlStatic:0}),no(603979776,3,{_labelChildNonStatic:0}),no(335544320,4,{_labelChildStatic:0}),no(603979776,5,{_placeholderChild:0}),no(603979776,6,{_errorChildren:1}),no(603979776,7,{_hintChildren:1}),no(603979776,8,{_prefixChildren:1}),no(603979776,9,{_suffixChildren:1}),(e()(),Qr(28,16777216,null,1,8,"input",[["class","col ml-1 mat-autocomplete-trigger mat-input-element mat-form-field-autofill-control"],["matInput",""],["name","bill.Vendor.VendorId"],["placeholder","Vendor Id"],["type","text"]],[[1,"autocomplete",0],[1,"role",0],[1,"aria-autocomplete",0],[1,"aria-activedescendant",0],[1,"aria-expanded",0],[1,"aria-owns",0],[1,"aria-haspopup",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"focusin"],[null,"blur"],[null,"input"],[null,"keydown"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],(function(e,t,n){var i=!0,s=e.component;return"focusin"===t&&(i=!1!==es(e,29)._handleFocus()&&i),"blur"===t&&(i=!1!==es(e,29)._onTouched()&&i),"input"===t&&(i=!1!==es(e,29)._handleInput(n)&&i),"keydown"===t&&(i=!1!==es(e,29)._handleKeydown(n)&&i),"input"===t&&(i=!1!==es(e,30)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,30).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,30)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,30)._compositionEnd(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,35)._focusChanged(!1)&&i),"focus"===t&&(i=!1!==es(e,35)._focusChanged(!0)&&i),"input"===t&&(i=!1!==es(e,35)._onInput()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.Vendor.VendorId=n)&&i),i}),null,null)),ps(29,4866048,null,0,rE,[an,S_,Fn,dr,Tn,iE,[2,yg],[2,SS],[2,Fa],Xg],{autocomplete:[0,"autocomplete"]},null),ps(30,16384,null,0,ic,[pn,an,[2,nc]],null,null),fs(1024,null,ec,(function(e,t){return[e,t]}),[rE,ic]),ps(32,540672,null,0,rh,[[8,null],[8,null],[6,ec],[2,sh]],{form:[0,"form"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[rh]),ps(34,16384,null,0,uc,[[4,lc]],null,null),ps(35,999424,null,0,PS,[an,jg,[6,lc],[2,Zc],[2,oh],ky,[8,null],kS,dr],{placeholder:[0,"placeholder"],type:[1,"type"]},null),fs(2048,[[1,4],[2,4]],gS,null,[PS]),(e()(),Qr(37,0,null,1,1,"label",[],null,null,null,null,null)),(e()(),mo(38,null,["",""])),(e()(),Qr(39,0,null,1,7,"mat-autocomplete",[["class","mat-autocomplete"]],null,null,null,uE,lE)),fs(6144,null,Hy,null,[nE]),ps(41,1097728,[["auto",4]],2,nE,[Tn,an,tE],null,null),no(603979776,10,{options:1}),no(603979776,11,{optionGroups:1}),(e()(),Zr(16777216,null,0,2,null,CE)),ps(45,278528,null,0,ba,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null),ms(131072,Pa,[Tn]),(e()(),Qr(47,0,null,null,27,"mat-form-field",[["class","col mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,WS,MS)),ps(48,7520256,null,9,SS,[an,Tn,[2,Wy],[2,yg],[2,CS],jg,dr,[2,bC]],null,null),no(603979776,12,{_controlNonStatic:0}),no(335544320,13,{_controlStatic:0}),no(603979776,14,{_labelChildNonStatic:0}),no(335544320,15,{_labelChildStatic:0}),no(603979776,16,{_placeholderChild:0}),no(603979776,17,{_errorChildren:1}),no(603979776,18,{_hintChildren:1}),no(603979776,19,{_prefixChildren:1}),no(603979776,20,{_suffixChildren:1}),(e()(),Qr(58,0,null,1,10,"input",[["class","col ml-1 mat-input-element mat-form-field-autofill-control"],["matInput",""],["placeholder","Bill Date"]],[[1,"aria-haspopup",0],[1,"aria-owns",0],[1,"min",0],[1,"max",0],[8,"disabled",0],[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],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"change"],[null,"blur"],[null,"keydown"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,59)._onInput(n.target.value)&&i),"change"===t&&(i=!1!==es(e,59)._onChange()&&i),"blur"===t&&(i=!1!==es(e,59)._onBlur()&&i),"keydown"===t&&(i=!1!==es(e,59)._onKeydown(n)&&i),"input"===t&&(i=!1!==es(e,60)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,60).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,60)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,60)._compositionEnd(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,67)._focusChanged(!1)&&i),"focus"===t&&(i=!1!==es(e,67)._focusChanged(!0)&&i),"input"===t&&(i=!1!==es(e,67)._onInput()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.BillDate=n)&&i),i}),null,null)),ps(59,147456,null,0,bv,[an,[2,my],[2,fy],[2,SS]],{matDatepicker:[0,"matDatepicker"]},null),ps(60,16384,null,0,ic,[pn,an,[2,nc]],null,null),fs(1024,null,dc,(function(e){return[e]}),[bv]),fs(1024,null,ec,(function(e,t){return[e,t]}),[bv,ic]),ps(63,671744,null,0,nh,[[8,null],[6,dc],[8,null],[6,ec]],{model:[0,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(65,16384,null,0,uc,[[4,lc]],null,null),fs(2048,null,DS,null,[bv]),ps(67,999424,null,0,PS,[an,jg,[6,lc],[2,Zc],[2,oh],ky,[6,DS],kS,dr],{placeholder:[0,"placeholder"]},null),fs(2048,[[12,4],[13,4]],gS,null,[PS]),(e()(),Qr(69,0,null,4,3,"mat-datepicker-toggle",[["class","mat-datepicker-toggle"],["matSuffix",""]],[[1,"tabindex",0],[2,"mat-datepicker-toggle-active",null],[2,"mat-accent",null],[2,"mat-warn",null]],[[null,"focus"]],(function(e,t,n){var i=!0;return"focus"===t&&(i=!1!==es(e,71)._button.focus()&&i),i}),GC,YC)),ps(70,16384,[[20,4]],0,yS,[],null,null),ps(71,1753088,null,1,wv,[ev,Tn,[8,null]],{datepicker:[0,"datepicker"]},null),no(603979776,21,{_customIcon:0}),(e()(),Qr(73,16777216,null,1,1,"mat-datepicker",[],null,null,null,qC,HC)),ps(74,180224,[["picker",4]],0,yv,[F_,S_,dr,Fn,pv,[2,my],[2,yg],[2,Fa]],null,null),(e()(),Qr(75,0,null,null,8,"div",[["class","form-group mt-3"]],null,null,null,null,null)),(e()(),Qr(76,0,null,null,1,"label",[["for","bill-name"]],null,null,null,null,null)),(e()(),mo(-1,null,["Bill name"])),(e()(),Qr(78,0,null,null,5,"input",[["class","input-group-text form-control"],["id","bill-name"],["name","bill-name"],["placeholder","Bill name"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,79)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,79).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,79)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,79)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(s.bill.BillName=n)&&i),i}),null,null)),ps(79,16384,null,0,ic,[pn,an,[2,nc]],null,null),fs(1024,null,ec,(function(e){return[e]}),[ic]),ps(81,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(83,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(84,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),Qr(85,0,null,null,1,"label",[["for","bill-amount"]],null,null,null,null,null)),(e()(),mo(-1,null,["Bill Amount"])),(e()(),Qr(87,0,null,null,6,"input",[["class","input-group-text form-control"],["id","bill-amount"],["name","bill-amount"],["placeholder","Bill Amount"],["type","number"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,88)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,88).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,88)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,88)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==es(e,89).onChange(n.target.value)&&i),"input"===t&&(i=!1!==es(e,89).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,89).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.Amount=n)&&i),i}),null,null)),ps(88,16384,null,0,ic,[pn,an,[2,nc]],null,null),ps(89,16384,null,0,bc,[pn,an],null,null),fs(1024,null,ec,(function(e,t){return[e,t]}),[ic,bc]),ps(91,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(93,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(94,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),Qr(95,0,null,null,1,"label",[["for","bill-amount"]],null,null,null,null,null)),(e()(),mo(-1,null,["Exchange Rate"])),(e()(),Qr(97,0,null,null,6,"input",[["class","input-group-text form-control"],["id","bill-exchange-rate"],["name","bill-exchange-rate"],["placeholder","Exchange Rate"],["type","number"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,98)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,98).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,98)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,98)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==es(e,99).onChange(n.target.value)&&i),"input"===t&&(i=!1!==es(e,99).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,99).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.ExchangeRate=n)&&i),i}),null,null)),ps(98,16384,null,0,ic,[pn,an,[2,nc]],null,null),ps(99,16384,null,0,bc,[pn,an],null,null),fs(1024,null,ec,(function(e,t){return[e,t]}),[ic,bc]),ps(101,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(103,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(104,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),Qr(105,0,null,null,1,"label",[["for","bill-usd-amount"]],null,null,null,null,null)),(e()(),mo(-1,null,["Bill Usd Amount"])),(e()(),Qr(107,0,null,null,6,"input",[["class","input-group-text form-control"],["id","bill-usd-amount"],["name","bill-usd-amount"],["placeholder","Bill Usd Amount"],["type","number"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,108)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,108).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,108)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,108)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==es(e,109).onChange(n.target.value)&&i),"input"===t&&(i=!1!==es(e,109).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,109).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.UsdAmount=n)&&i),i}),null,null)),ps(108,16384,null,0,ic,[pn,an,[2,nc]],null,null),ps(109,16384,null,0,bc,[pn,an],null,null),fs(1024,null,ec,(function(e,t){return[e,t]}),[ic,bc]),ps(111,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(113,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(114,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),Qr(115,0,null,null,1,"label",[["for","bill-euro-amount"]],null,null,null,null,null)),(e()(),mo(-1,null,["Bill Euro Amount"])),(e()(),Qr(117,0,null,null,6,"input",[["class","input-group-text form-control"],["id","bill-euro-amount"],["name","bill-usd-amount"],["placeholder","Bill Euro Amount"],["type","number"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,118)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,118).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,118)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,118)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==es(e,119).onChange(n.target.value)&&i),"input"===t&&(i=!1!==es(e,119).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,119).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.EuroAmount=n)&&i),i}),null,null)),ps(118,16384,null,0,ic,[pn,an,[2,nc]],null,null),ps(119,16384,null,0,bc,[pn,an],null,null),fs(1024,null,ec,(function(e,t){return[e,t]}),[ic,bc]),ps(121,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(123,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(124,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),Qr(125,0,null,null,1,"label",[["for","paid"]],null,null,null,null,null)),(e()(),mo(-1,null,["Paid Amount"])),(e()(),Qr(127,0,null,null,6,"input",[["class","input-group-text form-control"],["id","paid"],["name","paid"],["placeholder","Paid Amount"],["type","number"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,128)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,128).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,128)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,128)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==es(e,129).onChange(n.target.value)&&i),"input"===t&&(i=!1!==es(e,129).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,129).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.Paid=n)&&i),i}),null,null)),ps(128,16384,null,0,ic,[pn,an,[2,nc]],null,null),ps(129,16384,null,0,bc,[pn,an],null,null),fs(1024,null,ec,(function(e,t){return[e,t]}),[ic,bc]),ps(131,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(133,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(134,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),Qr(135,0,null,null,1,"label",[["for","kdv"]],null,null,null,null,null)),(e()(),mo(-1,null,["KDV"])),(e()(),Qr(137,0,null,null,6,"input",[["class","input-group-text form-control"],["id","kdv"],["name","kdv"],["placeholder","KDV"],["type","number"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,138)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,138).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,138)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,138)._compositionEnd(n.target.value)&&i),"change"===t&&(i=!1!==es(e,139).onChange(n.target.value)&&i),"input"===t&&(i=!1!==es(e,139).onChange(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,139).onTouched()&&i),"ngModelChange"===t&&(i=!1!==(s.bill.KDV=n)&&i),i}),null,null)),ps(138,16384,null,0,ic,[pn,an,[2,nc]],null,null),ps(139,16384,null,0,bc,[pn,an],null,null),fs(1024,null,ec,(function(e,t){return[e,t]}),[ic,bc]),ps(141,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(143,16384,null,0,uc,[[4,lc]],null,null),(e()(),Qr(144,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),Qr(145,0,null,null,1,"label",[["for","comment"]],null,null,null,null,null)),(e()(),mo(-1,null,["Comment"])),(e()(),Qr(147,0,null,null,5,"input",[["class","input-group-text form-control"],["id","comment"],["name","comment"],["placeholder","Comments"]],[[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,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==es(e,148)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==es(e,148).onTouched()&&i),"compositionstart"===t&&(i=!1!==es(e,148)._compositionStart()&&i),"compositionend"===t&&(i=!1!==es(e,148)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(s.bill.Comment=n)&&i),i}),null,null)),ps(148,16384,null,0,ic,[pn,an,[2,nc]],null,null),fs(1024,null,ec,(function(e){return[e]}),[ic]),ps(150,671744,null,0,nh,[[8,null],[8,null],[8,null],[6,ec]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),fs(2048,null,lc,null,[nh]),ps(152,16384,null,0,uc,[[4,lc]],null,null),(e()(),Zr(16777216,null,null,1,null,SE)),ps(154,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null),(e()(),Qr(155,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),Qr(156,0,null,null,2,"div",[["class","col-md-3 mb-3"]],null,null,null,null,null)),(e()(),Qr(157,0,null,null,1,"button",[["class","btn btn-secondary btn-lg btn-block"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.Cancel()&&i),i}),null,null)),(e()(),mo(-1,null,[" Cancel "])),(e()(),Qr(159,0,null,null,2,"div",[["class","col-md-3 mb-3"]],null,null,null,null,null)),(e()(),Qr(160,0,null,null,1,"button",[["class","btn btn-success btn-lg btn-block"],["type","button"],["value","Save"]],[[1,"disabled",0]],[[null,"click"]],(function(e,t,n){var i=!0,s=e.component;return"click"===t&&(i=!1!==s.Save(s.bill)&&i),i}),null,null)),(e()(),mo(-1,null,[" Save "])),(e()(),Zr(16777216,null,null,1,null,EE)),ps(163,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component,i=e(t,4,0,"../home");e(t,3,0,i),e(t,13,0,"VendorInvoiceNumber",n.bill.VendorInvoiceNumber),e(t,16,0,"State Invoice Number","text"),e(t,29,0,es(t,41)),e(t,32,0,n.VendorsControl,n.bill.Vendor.VendorId),e(t,35,0,"Vendor Id","text"),e(t,45,0,Xn(t,45,0,es(t,46).transform(n.filteredOptions))),e(t,59,0,es(t,74)),e(t,63,0,n.bill.BillDate),e(t,67,0,"Bill Date"),e(t,71,0,es(t,74)),e(t,81,0,"bill-name",n.bill.BillName),e(t,91,0,"bill-amount",n.bill.Amount),e(t,101,0,"bill-exchange-rate",n.bill.ExchangeRate),e(t,111,0,"bill-usd-amount",n.bill.UsdAmount),e(t,121,0,"bill-usd-amount",n.bill.EuroAmount),e(t,131,0,"paid",n.bill.Paid),e(t,141,0,"kdv",n.bill.KDV),e(t,150,0,"comment",n.bill.Comment),e(t,154,0,n.showSuccess),e(t,163,0,n.errorVendor)}),(function(e,t){var n=t.component;e(t,9,1,[es(t,15).ngClassUntouched,es(t,15).ngClassTouched,es(t,15).ngClassPristine,es(t,15).ngClassDirty,es(t,15).ngClassValid,es(t,15).ngClassInvalid,es(t,15).ngClassPending,es(t,16)._isServer,es(t,16).id,es(t,16).placeholder,es(t,16).disabled,es(t,16).required,es(t,16).readonly&&!es(t,16)._isNativeSelect||null,es(t,16)._ariaDescribedby||null,es(t,16).errorState,es(t,16).required.toString()]),e(t,17,1,["standard"==es(t,18).appearance,"fill"==es(t,18).appearance,"outline"==es(t,18).appearance,"legacy"==es(t,18).appearance,es(t,18)._control.errorState,es(t,18)._canLabelFloat,es(t,18)._shouldLabelFloat(),es(t,18)._hasFloatingLabel(),es(t,18)._hideControlPlaceholder(),es(t,18)._control.disabled,es(t,18)._control.autofilled,es(t,18)._control.focused,"accent"==es(t,18).color,"warn"==es(t,18).color,es(t,18)._shouldForward("untouched"),es(t,18)._shouldForward("touched"),es(t,18)._shouldForward("pristine"),es(t,18)._shouldForward("dirty"),es(t,18)._shouldForward("valid"),es(t,18)._shouldForward("invalid"),es(t,18)._shouldForward("pending"),!es(t,18)._animationsEnabled]),e(t,28,1,[es(t,29).autocompleteAttribute,es(t,29).autocompleteDisabled?null:"combobox",es(t,29).autocompleteDisabled?null:"list",es(t,29).panelOpen&&es(t,29).activeOption?es(t,29).activeOption.id:null,es(t,29).autocompleteDisabled?null:es(t,29).panelOpen.toString(),es(t,29).autocompleteDisabled||!es(t,29).panelOpen?null:null==es(t,29).autocomplete?null:es(t,29).autocomplete.id,!es(t,29).autocompleteDisabled,es(t,34).ngClassUntouched,es(t,34).ngClassTouched,es(t,34).ngClassPristine,es(t,34).ngClassDirty,es(t,34).ngClassValid,es(t,34).ngClassInvalid,es(t,34).ngClassPending,es(t,35)._isServer,es(t,35).id,es(t,35).placeholder,es(t,35).disabled,es(t,35).required,es(t,35).readonly&&!es(t,35)._isNativeSelect||null,es(t,35)._ariaDescribedby||null,es(t,35).errorState,es(t,35).required.toString()]),e(t,38,0,n.bill.Vendor.VendorName),e(t,47,1,["standard"==es(t,48).appearance,"fill"==es(t,48).appearance,"outline"==es(t,48).appearance,"legacy"==es(t,48).appearance,es(t,48)._control.errorState,es(t,48)._canLabelFloat,es(t,48)._shouldLabelFloat(),es(t,48)._hasFloatingLabel(),es(t,48)._hideControlPlaceholder(),es(t,48)._control.disabled,es(t,48)._control.autofilled,es(t,48)._control.focused,"accent"==es(t,48).color,"warn"==es(t,48).color,es(t,48)._shouldForward("untouched"),es(t,48)._shouldForward("touched"),es(t,48)._shouldForward("pristine"),es(t,48)._shouldForward("dirty"),es(t,48)._shouldForward("valid"),es(t,48)._shouldForward("invalid"),es(t,48)._shouldForward("pending"),!es(t,48)._animationsEnabled]),e(t,58,1,[es(t,59)._datepicker?"dialog":null,(null==es(t,59)._datepicker?null:es(t,59)._datepicker.opened)&&es(t,59)._datepicker.id||null,es(t,59).min?es(t,59)._dateAdapter.toIso8601(es(t,59).min):null,es(t,59).max?es(t,59)._dateAdapter.toIso8601(es(t,59).max):null,es(t,59).disabled,es(t,65).ngClassUntouched,es(t,65).ngClassTouched,es(t,65).ngClassPristine,es(t,65).ngClassDirty,es(t,65).ngClassValid,es(t,65).ngClassInvalid,es(t,65).ngClassPending,es(t,67)._isServer,es(t,67).id,es(t,67).placeholder,es(t,67).disabled,es(t,67).required,es(t,67).readonly&&!es(t,67)._isNativeSelect||null,es(t,67)._ariaDescribedby||null,es(t,67).errorState,es(t,67).required.toString()]),e(t,69,0,-1,es(t,71).datepicker&&es(t,71).datepicker.opened,es(t,71).datepicker&&"accent"===es(t,71).datepicker.color,es(t,71).datepicker&&"warn"===es(t,71).datepicker.color),e(t,78,0,es(t,83).ngClassUntouched,es(t,83).ngClassTouched,es(t,83).ngClassPristine,es(t,83).ngClassDirty,es(t,83).ngClassValid,es(t,83).ngClassInvalid,es(t,83).ngClassPending),e(t,87,0,es(t,93).ngClassUntouched,es(t,93).ngClassTouched,es(t,93).ngClassPristine,es(t,93).ngClassDirty,es(t,93).ngClassValid,es(t,93).ngClassInvalid,es(t,93).ngClassPending),e(t,97,0,es(t,103).ngClassUntouched,es(t,103).ngClassTouched,es(t,103).ngClassPristine,es(t,103).ngClassDirty,es(t,103).ngClassValid,es(t,103).ngClassInvalid,es(t,103).ngClassPending),e(t,107,0,es(t,113).ngClassUntouched,es(t,113).ngClassTouched,es(t,113).ngClassPristine,es(t,113).ngClassDirty,es(t,113).ngClassValid,es(t,113).ngClassInvalid,es(t,113).ngClassPending),e(t,117,0,es(t,123).ngClassUntouched,es(t,123).ngClassTouched,es(t,123).ngClassPristine,es(t,123).ngClassDirty,es(t,123).ngClassValid,es(t,123).ngClassInvalid,es(t,123).ngClassPending),e(t,127,0,es(t,133).ngClassUntouched,es(t,133).ngClassTouched,es(t,133).ngClassPristine,es(t,133).ngClassDirty,es(t,133).ngClassValid,es(t,133).ngClassInvalid,es(t,133).ngClassPending),e(t,137,0,es(t,143).ngClassUntouched,es(t,143).ngClassTouched,es(t,143).ngClassPristine,es(t,143).ngClassDirty,es(t,143).ngClassValid,es(t,143).ngClassInvalid,es(t,143).ngClassPending),e(t,147,0,es(t,152).ngClassUntouched,es(t,152).ngClassTouched,es(t,152).ngClassPristine,es(t,152).ngClassDirty,es(t,152).ngClassValid,es(t,152).ngClassInvalid,es(t,152).ngClassPending),e(t,160,0,n.saving?"":null)}))}function kE(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"app-insert",[],null,null,null,xE,wE)),ps(1,114688,null,0,fh,[_f,fp,km],null,null)],(function(e,t){e(t,1,0)}),null)}var AE=$i("app-insert",fh,kE,{},{},[]),DE=ti({encapsulation:0,styles:[[""]],data:{}});function TE(e){return _o(0,[(e()(),Qr(0,0,null,null,3,"section",[["class","content"]],null,null,null,null,null)),(e()(),Qr(1,0,null,null,2,"div",[["class","box"]],null,null,null,null,null)),(e()(),Qr(2,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),ps(3,212992,null,0,Rm,[Om,Fn,tn,[8,null],Tn],null,null)],(function(e,t){e(t,3,0)}),null)}function IE(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"app-root",[],null,null,null,TE,DE)),ps(1,49152,null,0,El,[],null,null)],null,null)}var OE=$i("app-root",El,IE,{},{},[]);let RE=(()=>{class e{constructor(){this.messageSource=new vh(!1),this.currentMessage=this.messageSource.asObservable()}changeMessage(e){this.messageSource.next(e)}}return e.ngInjectableDef=me({factory:function(){return new e},token:e,providedIn:"root"}),e})();var PE=ti({encapsulation:0,styles:[[""]],data:{}});function NE(e){return _o(0,[(e()(),Qr(0,0,null,null,2,"li",[["class","nav-item ml-3 mr-3 mt-1 mb-1"]],null,null,null,null,null)),(e()(),Qr(1,0,null,null,1,"a",[["class","btn btn-dark w-100 text-left"]],[[8,"href",4]],null,null,null,null)),(e()(),mo(2,null,[" "," "]))],null,(function(e,t){e(t,1,0,Di(1,"",t.context.$implicit.Url,"")),e(t,2,0,t.context.$implicit.Text)}))}function ME(e){return _o(0,[(e()(),Qr(0,0,null,null,3,"div",[["class","col-md d-md-block  sidebar-sticky sticky-top mt-4 "]],null,null,null,null,null)),(e()(),Qr(1,0,null,null,2,"ul",[["class","nav flex-column"]],null,null,null,null,null)),(e()(),Zr(16777216,null,null,1,null,NE)),ps(3,278528,null,0,ba,[Fn,Nn,An],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,3,0,t.component.menus)}),null)}function FE(e){return _o(0,[(e()(),Zr(16777216,null,null,1,null,ME)),ps(1,16384,null,0,Ca,[Fn,Nn],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,1,0,t.component.toggleMenu)}),null)}function VE(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"app-nav",[],null,null,null,FE,PE)),ps(1,114688,null,0,Ff,[RE,_f],null,null)],(function(e,t){e(t,1,0)}),null)}var LE=$i("app-nav",Ff,VE,{},{},[]),UE=ti({encapsulation:0,styles:[[""]],data:{}});function BE(e){return _o(0,[(e()(),Qr(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)),(e()(),Qr(1,0,null,null,2,"button",[["class","navbar-brand btn d-none d-sm-block"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggle()&&i),i}),null,null)),(e()(),Qr(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)),(e()(),Qr(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)),(e()(),Qr(4,0,null,null,1,"a",[["class","navbar-brand d-none d-sm-block"],["href","#"]],null,null,null,null,null)),(e()(),mo(-1,null,["NewKi"])),(e()(),Qr(6,0,null,null,1,"button",[["class","navbar-toggler position-absolute d-md-none collapsed"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.toggle()&&i),i}),null,null)),(e()(),Qr(7,0,null,null,0,"span",[["class","navbar-toggler-icon"]],null,null,null,null,null)),(e()(),Qr(8,0,null,null,9,"ul",[["class","navbar-nav px-3 mr-0 ml-auto"]],null,null,null,null,null)),(e()(),Qr(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(e,t,n){var i=!0;return"submit"===t&&(i=!1!==es(e,11).onSubmit(n)&&i),"reset"===t&&(i=!1!==es(e,11).onReset()&&i),i}),null,null)),ps(10,16384,null,0,ih,[],null,null),ps(11,4210688,null,0,Zc,[[8,null],[8,null]],null,null),fs(2048,null,rc,null,[Zc]),ps(13,16384,null,0,cc,[[4,rc]],null,null),(e()(),Qr(14,0,null,null,3,"li",[["class","nav-item text-nowrap"]],null,null,null,null,null)),(e()(),Qr(15,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),Qr(16,0,null,null,1,"button",[["class","btn"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var i=!0;return"click"===t&&(i=!1!==e.component.signOut()&&i),i}),null,null)),(e()(),mo(-1,null,["Sign out"]))],null,(function(e,t){e(t,9,0,es(t,13).ngClassUntouched,es(t,13).ngClassTouched,es(t,13).ngClassPristine,es(t,13).ngClassDirty,es(t,13).ngClassValid,es(t,13).ngClassInvalid,es(t,13).ngClassPending)}))}function jE(e){return _o(0,[(e()(),Qr(0,0,null,null,1,"app-header",[],null,null,null,BE,UE)),ps(1,114688,null,0,Vf,[RE,_f],null,null)],(function(e,t){e(t,1,0)}),null)}var zE=$i("app-header",Vf,jE,{},{},[]),$E=Cl(Nf,[El,Ff,Vf],(function(e){return function(e){const t={},n=[];let i=!1;for(let s=0;s<e.length;s++){const r=e[s];r.token===$e&&!0===r.value&&(i=!0),1073741824&r.flags&&n.push(r.token),r.index=s,t[Qn(r.token)]=r}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:i}}([Ni(512,tn,nn,[[8,[jf,Xy,$C,AC,cS,bE,AE,OE,LE,zE]],[3,tn],rn]),Ni(5120,Ks,Wr,[[3,Ks]]),Ni(4608,da,pa,[Ks,[2,ha]]),Ni(5120,Is,Gr,[dr]),Ni(5120,zs,$s,[]),Ni(5120,An,qr,[]),Ni(5120,Dn,Yr,[]),Ni(4608,Bu,ju,[Fa]),Ni(6144,Ot,null,[Bu]),Ni(4608,Pu,Mu,[]),Ni(5120,ou,(function(e,t,n,i,s,r,o,l){return[new Ou(e,t,n),new Uu(i),new Fu(s,r,o,l)]}),[Fa,dr,Ys,Fa,Fa,Pu,Gs,[2,Nu]]),Ni(4608,lu,lu,[ou,dr]),Ni(135680,cu,cu,[Fa]),Ni(4608,_u,_u,[lu,cu,zs]),Ni(5120,Xv,_C,[]),Ni(5120,Jb,yC,[]),Ni(4608,Mw,gC,[Fa,Xv,Jb]),Ni(5120,hn,vC,[_u,Mw,dr]),Ni(6144,uu,null,[cu]),Ni(4608,vr,vr,[dr]),Ni(4608,Af,Df,[Fa,Ys,xf]),Ni(4608,Tf,Tf,[Af,kf]),Ni(5120,vf,(function(e){return[e]}),[Tf]),Ni(4608,Sf,Sf,[]),Ni(6144,Cf,null,[Sf]),Ni(4608,Ef,Ef,[Cf]),Ni(6144,tf,null,[Ef]),Ni(4608,ef,If,[tf,qe]),Ni(4608,_f,_f,[ef]),Ni(4608,Sv,Sv,[]),Ni(4608,S_,S_,[o_,p_,tn,w_,d_,qe,dr,Fa,yg,[2,Rl]]),Ni(5120,E_,x_,[S_]),Ni(5120,iE,sE,[S_]),Ni(5120,N_,M_,[S_]),Ni(135680,F_,F_,[S_,qe,[2,Rl],[2,P_],N_,[3,F_],p_]),Ni(4608,ev,ev,[]),Ni(5120,pv,mv,[S_]),Ni(4608,my,Cy,[[2,py],jg]),Ni(4608,wc,wc,[]),Ni(4608,zf,lC,[hn,Fa]),Ni(4608,ky,ky,[]),Ni(4608,ah,ah,[]),Ni(5120,fp,Km,[km]),Ni(4608,Fm,Fm,[]),Ni(6144,Nm,null,[Fm]),Ni(135680,Vm,Vm,[km,Pr,ir,qe,Nm]),Ni(4608,Mm,Mm,[]),Ni(5120,Lm,Hm,[km,La,Um]),Ni(5120,Jm,Xm,[Zm]),Ni(5120,Ws,(function(e){return[e]}),[Jm]),Ni(4608,RE,RE,[]),Ni(1073742336,Ma,Ma,[]),Ni(1024,Vt,Ku,[]),Ni(1024,kr,(function(){return[zm()]}),[]),Ni(512,Zm,Zm,[qe]),Ni(1024,Bs,(function(e,t){return[(n=e,iu("probe",ru),iu("coreTokens",Object.assign({},su,(n||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>ru),Qm(t)];var n}),[[2,kr],Zm]),Ni(512,js,js,[[2,Bs]]),Ni(131584,Or,Or,[dr,Gs,qe,Vt,tn,js]),Ni(1073742336,Kr,Kr,[Or]),Ni(1073742336,Zu,Zu,[[3,Zu]]),Ni(1024,Bm,Ym,[[3,km]]),Ni(512,Wd,Gd,[]),Ni(512,Om,Om,[]),Ni(256,Um,{useHash:!0},[]),Ni(1024,Il,qm,[Dl,[2,Ol],Um]),Ni(512,Rl,Rl,[Il,Dl]),Ni(512,ir,ir,[]),Ni(512,Pr,Fr,[ir,[2,Nr]]),Ni(1024,vm,(function(){return[[{path:"home",component:xl,canActivate:[Pf]},{path:"edit",component:yh,canActivate:[Pf]},{path:"insert",component:fh,canActivate:[Pf]},{path:"",redirectTo:"/home",pathMatch:"full"},{path:"**",component:El}]]}),[]),Ni(1024,km,Gm,[Or,Wd,Om,Rl,qe,Pr,ir,vm,Um,[2,wm],[2,_m]]),Ni(1073742336,$m,$m,[[2,Bm],[2,km]]),Ni(1073742336,Of,Of,[]),Ni(1073742336,Rf,Rf,[]),Ni(1073742336,kv,kv,[]),Ni(1073742336,ES,ES,[]),Ni(1073742336,vg,vg,[]),Ni(1073742336,ay,ay,[[2,ly],[2,Nu]]),Ni(1073742336,zg,zg,[]),Ni(1073742336,My,My,[]),Ni(1073742336,Vy,Vy,[]),Ni(1073742336,Yy,Yy,[]),Ni(1073742336,sg,sg,[]),Ni(1073742336,Zg,Zg,[]),Ni(1073742336,k_,k_,[]),Ni(1073742336,oE,oE,[]),Ni(1073742336,Ov,Ov,[]),Ni(1073742336,V_,V_,[]),Ni(1073742336,ry,ry,[]),Ni(1073742336,Cv,Cv,[]),Ni(1073742336,Ey,Ey,[]),Ni(1073742336,xy,xy,[]),Ni(1073742336,lh,lh,[]),Ni(1073742336,uh,uh,[]),Ni(1073742336,wC,wC,[]),Ni(1073742336,AS,AS,[]),Ni(1073742336,NS,NS,[]),Ni(1073742336,ch,ch,[]),Ni(1073742336,Nf,Nf,[]),Ni(256,$e,!0,[]),Ni(256,xf,"XSRF-TOKEN",[]),Ni(256,kf,"X-XSRF-TOKEN",[]),Ni(256,fy,Sy,[]),Ni(256,bC,"BrowserAnimations",[])])}));(function(){if(lt)throw new Error("Cannot enable prod mode after platform setup.");ot=!1})(),Gu().bootstrapModuleFactory($E).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);