(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},yLV6:function(e,t,n){var r;!function(s,i,o,a){"use strict";var l,u=["","webkit","Moz","MS","ms","o"],c=i.createElement("div"),h="function",d=Math.round,p=Math.abs,f=Date.now;function m(e,t,n){return setTimeout(S(e,n),t)}function g(e,t,n){return!!Array.isArray(e)&&(y(e,n[t],n),!0)}function y(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==a)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function _(e,t,n){var r="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",i=s.console&&(s.console.warn||s.console.log);return i&&i.call(s.console,r,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(e===a||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==a&&null!==r)for(var s in r)r.hasOwnProperty(s)&&(t[s]=r[s])}return t}:Object.assign;var v=_((function(e,t,n){for(var r=Object.keys(t),s=0;s<r.length;)(!n||n&&e[r[s]]===a)&&(e[r[s]]=t[r[s]]),s++;return e}),"extend","Use `assign`."),w=_((function(e,t){return v(e,t,!0)}),"merge","Use `assign`.");function b(e,t,n){var r,s=t.prototype;(r=e.prototype=Object.create(s)).constructor=e,r._super=s,n&&l(r,n)}function S(e,t){return function(){return e.apply(t,arguments)}}function C(e,t){return typeof e==h?e.apply(t&&t[0]||a,t):e}function E(e,t){return e===a?t:e}function T(e,t,n){y(I(t),(function(t){e.addEventListener(t,n,!1)}))}function x(e,t,n){y(I(t),(function(t){e.removeEventListener(t,n,!1)}))}function k(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function A(e,t){return e.indexOf(t)>-1}function I(e){return e.trim().split(/\s+/g)}function N(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function P(e){return Array.prototype.slice.call(e,0)}function R(e,t,n){for(var r=[],s=[],i=0;i<e.length;){var o=t?e[i][t]:e[i];N(s,o)<0&&r.push(e[i]),s[i]=o,i++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function O(e,t){for(var n,r,s=t[0].toUpperCase()+t.slice(1),i=0;i<u.length;){if((r=(n=u[i])?n+s:t)in e)return r;i++}return a}var D=1;function F(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||s}var V="ontouchstart"in s,M=O(s,"PointerEvent")!==a,L=V&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),U=25,j=1,$=2,H=4,z=8,B=1,q=2,G=4,Q=8,W=16,K=q|G,Z=Q|W,Y=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){C(e.options.enable,[e])&&n.handler(t)},this.init()}function te(e,t,n){var r=n.pointers.length,s=n.changedPointers.length,i=t&j&&r-s==0,o=t&(H|z)&&r-s==0;n.isFirst=!!i,n.isFinal=!!o,i&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,s=r.length;n.firstInput||(n.firstInput=ne(t)),s>1&&!n.firstMultiple?n.firstMultiple=ne(t):1===s&&(n.firstMultiple=!1);var i=n.firstInput,o=n.firstMultiple,l=o?o.center:i.center,u=t.center=re(r);t.timeStamp=f(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=ae(l,u),t.distance=oe(l,u),function(e,t){var n=t.center,r=e.offsetDelta||{},s=e.prevDelta||{},i=e.prevInput||{};t.eventType!==j&&i.eventType!==H||(s=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=s.x+(n.x-r.x),t.deltaY=s.y+(n.y-r.y)}(n,t),t.offsetDirection=ie(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=r)[0],h[1],J)/oe(c[0],c[1],J)):1,t.rotation=o?function(e,t){return ae(t[1],t[0],J)+ae(e[1],e[0],J)}(o.pointers,r):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,r,s,i,o=e.lastInterval||t,l=t.timeStamp-o.timeStamp;if(t.eventType!=z&&(l>U||o.velocity===a)){var u=t.deltaX-o.deltaX,c=t.deltaY-o.deltaY,h=se(l,u,c);r=h.x,s=h.y,n=p(h.x)>p(h.y)?h.x:h.y,i=ie(u,c),e.lastInterval=t}else n=o.velocity,r=o.velocityX,s=o.velocityY,i=o.direction;t.velocity=n,t.velocityX=r,t.velocityY=s,t.direction=i}(n,t);var m=e.element;k(t.srcEvent.target,m)&&(m=t.srcEvent.target),t.target=m}(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:f(),pointers:t,center:re(t),deltaX:e.deltaX,deltaY:e.deltaY}}function re(e){var t=e.length;if(1===t)return{x:d(e[0].clientX),y:d(e[0].clientY)};for(var n=0,r=0,s=0;s<t;)n+=e[s].clientX,r+=e[s].clientY,s++;return{x:d(n/t),y:d(r/t)}}function se(e,t,n){return{x:t/e||0,y:n/e||0}}function ie(e,t){return e===t?B:p(e)>=p(t)?e<0?q:G:t<0?Q:W}function oe(e,t,n){n||(n=X);var r=t[n[0]]-e[n[0]],s=t[n[1]]-e[n[1]];return Math.sqrt(r*r+s*s)}function ae(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&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(F(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(F(this.element),this.evWin,this.domHandler)}};var le={mousedown:j,mousemove:$,mouseup:H},ue="mousedown",ce="mousemove mouseup";function he(){this.evEl=ue,this.evWin=ce,this.pressed=!1,ee.apply(this,arguments)}b(he,ee,{handler:function(e){var t=le[e.type];t&j&&0===e.button&&(this.pressed=!0),t&$&&1!==e.which&&(t=H),this.pressed&&(t&H&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var de={pointerdown:j,pointermove:$,pointerup:H,pointercancel:z,pointerout:z},pe={2:"touch",3:"pen",4:"mouse",5:"kinect"},fe="pointerdown",me="pointermove pointerup pointercancel";function ge(){this.evEl=fe,this.evWin=me,ee.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}s.MSPointerEvent&&!s.PointerEvent&&(fe="MSPointerDown",me="MSPointerMove MSPointerUp MSPointerCancel"),b(ge,ee,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),s=de[r],i=pe[e.pointerType]||e.pointerType,o="touch"==i,a=N(t,e.pointerId,"pointerId");s&j&&(0===e.button||o)?a<0&&(t.push(e),a=t.length-1):s&(H|z)&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,s,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(a,1))}});var ye={touchstart:j,touchmove:$,touchend:H,touchcancel:z},_e="touchstart",ve="touchstart touchmove touchend touchcancel";function we(){this.evTarget=_e,this.evWin=ve,this.started=!1,ee.apply(this,arguments)}function be(e,t){var n=P(e.touches),r=P(e.changedTouches);return t&(H|z)&&(n=R(n.concat(r),"identifier",!0)),[n,r]}b(we,ee,{handler:function(e){var t=ye[e.type];if(t===j&&(this.started=!0),this.started){var n=be.call(this,e,t);t&(H|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 Se={touchstart:j,touchmove:$,touchend:H,touchcancel:z},Ce="touchstart touchmove touchend touchcancel";function Ee(){this.evTarget=Ce,this.targetIds={},ee.apply(this,arguments)}function Te(e,t){var n=P(e.touches),r=this.targetIds;if(t&(j|$)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var s,i,o=P(e.changedTouches),a=[],l=this.target;if(i=n.filter((function(e){return k(e.target,l)})),t===j)for(s=0;s<i.length;)r[i[s].identifier]=!0,s++;for(s=0;s<o.length;)r[o[s].identifier]&&a.push(o[s]),t&(H|z)&&delete r[o[s].identifier],s++;return a.length?[R(i.concat(a),"identifier",!0),a]:void 0}b(Ee,ee,{handler:function(e){var t=Se[e.type],n=Te.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});var xe=2500,ke=25;function Ae(){ee.apply(this,arguments);var e=S(this.handler,this);this.touch=new Ee(this.manager,e),this.mouse=new he(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function Ie(e,t){e&j?(this.primaryTouch=t.changedPointers[0].identifier,Ne.call(this,t)):e&(H|z)&&Ne.call(this,t)}function Ne(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),xe)}}function Pe(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var s=this.lastTouches[r],i=Math.abs(t-s.x),o=Math.abs(n-s.y);if(i<=ke&&o<=ke)return!0}return!1}b(Ae,ee,{handler:function(e,t,n){var r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)Ie.call(this,t,n);else if(r&&Pe.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Re=O(c.style,"touchAction"),Oe=Re!==a,De=function(){if(!Oe)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 Fe(e,t){this.manager=e,this.set(t)}Fe.prototype={set:function(e){"compute"==e&&(e=this.compute()),Oe&&this.manager.element.style&&De[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 y(this.manager.recognizers,(function(t){C(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(A(e,"none"))return"none";var t=A(e,"pan-x"),n=A(e,"pan-y");return t&&n?"none":t||n?t?"pan-x":"pan-y":A(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 r=this.actions,s=A(r,"none")&&!De.none,i=A(r,"pan-y")&&!De["pan-y"],o=A(r,"pan-x")&&!De["pan-x"];if(s&&1===e.pointers.length&&e.distance<2&&e.deltaTime<250)return;if(!o||!i)return s||i&&n&K||o&&n&Z?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Ve=1,Me=2,Le=4,Ue=8,je=Ue,$e=16;function He(e){this.options=l({},this.defaults,e||{}),this.id=D++,this.manager=null,this.options.enable=E(this.options.enable,!0),this.state=Ve,this.simultaneous={},this.requireFail=[]}function ze(e){return e&$e?"cancel":e&Ue?"end":e&Le?"move":e&Me?"start":""}function Be(e){return e==W?"down":e==Q?"up":e==q?"left":e==G?"right":""}function qe(e,t){var n=t.manager;return n?n.get(e):e}function Ge(){He.apply(this,arguments)}function Qe(){Ge.apply(this,arguments),this.pX=null,this.pY=null}function We(){Ge.apply(this,arguments)}function Ke(){He.apply(this,arguments),this._timer=null,this._input=null}function Ze(){Ge.apply(this,arguments)}function Ye(){Ge.apply(this,arguments)}function Xe(){He.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=l({},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||(M?ge:L?Ee:V?Ae:he))(n,te),this.touchAction=new Fe(this,this.options.touchAction),tt(this,!0),y(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,r=e.element;r.style&&(y(e.options.cssProps,(function(s,i){n=O(r.style,i),t?(e.oldCssProps[n]=r.style[n],r.style[n]=s):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}He.prototype={defaults:{},set:function(e){return l(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===N(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=N(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 r(n){t.manager.emit(n,e)}n<Ue&&r(t.options.event+ze(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=Ue&&r(t.options.event+ze(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|Ve)))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!C(this.options.enable,[this,t]))return this.reset(),void(this.state=32);this.state&(je|$e|32)&&(this.state=Ve),this.state=this.process(t),this.state&(Me|Le|Ue|$e)&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},b(Ge,He,{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,r=t&(Me|Le),s=this.attrTest(e);return r&&(n&z||!s)?t|$e:r||s?n&H?t|Ue:t&Me?t|Le:Me:32}}),b(Qe,Ge,{defaults:{event:"pan",threshold:10,pointers:1,direction:Y},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,r=e.distance,s=e.direction,i=e.deltaX,o=e.deltaY;return s&t.direction||(t.direction&K?(s=0===i?B:i<0?q:G,n=i!=this.pX,r=Math.abs(e.deltaX)):(s=0===o?B:o<0?Q:W,n=o!=this.pY,r=Math.abs(e.deltaY))),e.direction=s,n&&r>t.threshold&&s&t.direction},attrTest:function(e){return Ge.prototype.attrTest.call(this,e)&&(this.state&Me||!(this.state&Me)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Be(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),b(We,Ge,{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&Me)},emit:function(e){1!==e.scale&&(e.additionalEvent=this.options.event+(e.scale<1?"in":"out")),this._super.emit.call(this,e)}}),b(Ke,He,{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,r=e.distance<t.threshold,s=e.deltaTime>t.time;if(this._input=e,!r||!n||e.eventType&(H|z)&&!s)this.reset();else if(e.eventType&j)this.reset(),this._timer=m((function(){this.state=je,this.tryEmit()}),t.time,this);else if(e.eventType&H)return je;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===je&&(e&&e.eventType&H?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),b(Ze,Ge,{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&Me)}}),b(Ye,Ge,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:K|Z,pointers:1},getTouchAction:function(){return Qe.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&H},emit:function(e){var t=Be(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),b(Xe,He,{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,r=e.distance<t.threshold,s=e.deltaTime<t.time;if(this.reset(),e.eventType&j&&0===this.count)return this.failTimeout();if(r&&s&&n){if(e.eventType!=H)return this.failTimeout();var i=!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&&i?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=m((function(){this.state=je,this.tryEmit()}),t.interval,this),Me):je}return 32},failTimeout:function(){return this._timer=m((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==je&&(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}],[We,{enable:!1},["rotate"]],[Ye,{direction:K}],[Qe,{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 l(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 r=this.recognizers,s=t.curRecognizer;(!s||s&&s.state&je)&&(s=t.curRecognizer=null);for(var i=0;i<r.length;)n=r[i],2===t.stopped||s&&n!=s&&!n.canRecognizeWith(s)?n.reset():n.recognize(e),!s&&n.state&(Me|Le|Ue)&&(s=t.curRecognizer=n),i++}},get:function(e){if(e instanceof He)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=N(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==a&&t!==a){var n=this.handlers;return y(I(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==a){var n=this.handlers;return y(I(e),(function(e){t?n[e]&&n[e].splice(N(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=i.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 r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&tt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Je,{INPUT_START:j,INPUT_MOVE:$,INPUT_END:H,INPUT_CANCEL:z,STATE_POSSIBLE:Ve,STATE_BEGAN:Me,STATE_CHANGED:Le,STATE_ENDED:Ue,STATE_RECOGNIZED:je,STATE_CANCELLED:$e,STATE_FAILED:32,DIRECTION_NONE:B,DIRECTION_LEFT:q,DIRECTION_RIGHT:G,DIRECTION_UP:Q,DIRECTION_DOWN:W,DIRECTION_HORIZONTAL:K,DIRECTION_VERTICAL:Z,DIRECTION_ALL:Y,Manager:et,Input:ee,TouchAction:Fe,TouchInput:Ee,MouseInput:he,PointerEventInput:ge,TouchMouseInput:Ae,SingleTouchInput:we,Recognizer:He,AttrRecognizer:Ge,Tap:Xe,Pan:Qe,Swipe:Ye,Pinch:We,Rotate:Ze,Press:Ke,on:T,off:x,each:y,merge:w,extend:v,assign:l,inherit:b,bindFn:S,prefixed:O}),(void 0!==s?s:"undefined"!=typeof self?self:{}).Hammer=Je,(r=(function(){return Je}).call(t,n,t,e))===a||(e.exports=r)}(window,document)},zUnb:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t),n("yLV6");let s=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){s=e},get useDeprecatedSynchronousErrorHandling(){return s}};function o(e){setTimeout(()=>{throw e})}const a={closed:!0,next(e){},error(e){if(i.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=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:i,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let a=-1,c=s?s.length:0;for(;n;)n.remove(this),n=++a<c&&s[a]||null;if(r(i))try{i.call(this)}catch(d){t=!0,e=d instanceof h?p(d.errors):[d]}if(l(o))for(a=-1,c=o.length;++a<c;){const n=o[a];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)._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 f="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class m 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=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof m?(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)}}[f](){return this}static create(e,t,n){const r=new m(e,t,n);return r.syncErrorThrowable=!1,r}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 m{constructor(e,t,n,s){let i;super(),this._parentSubscriber=e;let o=this;r(t)?i=t:t&&(i=t.next,n=t.error,s=t.complete,t!==a&&(r((o=Object.create(t)).unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;i.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}=i;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);i.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(),i.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const y="function"==typeof Symbol&&Symbol.observable||"@@observable";function _(){}function v(...e){return w(e)}function w(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:_}let b=(()=>{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:r}=this,s=function(e,t,n){if(e){if(e instanceof m)return e;if(e[f])return e[f]()}return e||t||n?new m(e,t,n):new m(a)}(e,t,n);if(s.add(r?r.call(s,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),i.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){i.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof m?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=S(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(s){n(s),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[y](){return this}pipe(...e){return 0===e.length?this:w(e)(this)}toPromise(e){return new(e=S(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function S(e){if(e||(e=i.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function C(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}C.prototype=Object.create(Error.prototype);const E=C;class T 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 x extends m{constructor(e){super(e),this.destination=e}}let k=(()=>{class e extends b{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new x(this)}lift(e){const t=new A(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,r=t.slice();for(let s=0;s<n;s++)r[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,r=t.slice();for(let s=0;s<n;s++)r[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 r=0;r<t;r++)n[r].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 T(this,e))}asObservable(){const e=new b;return e.source=this,e}}return e.create=(e,t)=>new A(e,t),e})();class A extends k{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 I(e){return e&&"function"==typeof e.schedule}class N extends m{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 P=e=>t=>{for(let n=0,r=e.length;n<r&&!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 O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const D=O(),F=e=>t=>{const n=e[D]();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},V=e=>t=>{const n=e[y]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},M=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 b)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[y])return V(e);if(M(e))return P(e);if(L(e))return R(e);if(e&&"function"==typeof e[D])return F(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 j(e,t,n,r,s=new N(e,n,r)){if(!s.closed)return U(t)(s)}class $ extends m{notifyNext(e,t,n,r,s){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function H(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 z(e,t))}}class z{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new B(e,this.project,this.thisArg))}}class B extends m{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 b(t?n=>{const r=new d;let s=0;return r.add(t.schedule((function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()}))),r}:P(e))}function G(e,t){if(!t)return e instanceof b?e:new b(U(e));if(null!=e){if(function(e){return e&&"function"==typeof e[y]}(e))return function(e,t){return new b(t?n=>{const r=new d;return r.add(t.schedule(()=>{const s=e[y]();r.add(s.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r}:V(e))}(e,t);if(L(e))return function(e,t){return new b(t?n=>{const r=new d;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r}:R(e))}(e,t);if(M(e))return q(e,t);if(function(e){return e&&"function"==typeof e[D]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new b(t?n=>{const r=new d;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(t.schedule(()=>{s=e[D](),r.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=s.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())})))})),r}:F(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function Q(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(Q((n,r)=>G(e(n,r)).pipe(H((e,s)=>t(n,e,r,s))),n)):("number"==typeof t&&(n=t),t=>t.lift(new W(e,n)))}class W{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 ${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(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)}_innerSub(e,t,n){const r=new N(this,void 0,void 0);this.destination.add(r),j(this,e,t,n,r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,r,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 Y(e=Number.POSITIVE_INFINITY){return Q(Z,e)}function X(){return function(e){return e.lift(new J(e))}}class J{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new ee(e,n),s=t.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class ee extends m{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,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const te=class extends b{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).add(this.source.subscribe(new re(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e}refCount(){return X()(this)}}.prototype,ne={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:te._subscribe},_isComplete:{value:te._isComplete,writable:!0},getSubject:{value:te.getSubject},connect:{value:te.connect},refCount:{value:te.refCount}};class re extends x{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 se(){return new k}const ie="__parameters__";function oe(e,t,n){const r=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 r.apply(this,e),this;const t=new s(...e);return n.annotation=t,n;function n(e,n,r){const s=e.hasOwnProperty(ie)?e[ie]:Object.defineProperty(e,ie,{value:[]})[ie];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(t),e}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}const ae=oe("Inject",e=>({token:e})),le=oe("Optional"),ue=oe("Self"),ce=oe("SkipSelf");var he=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 de(e){for(let t in e)if(e[t]===de)return t;throw Error("Could not find renamed property on target object.")}function pe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function fe(e){const t=e[me];return t&&t.token===e?t:null}const me=de({ngInjectableDef:de});function ge(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(ge).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=de({__forward_ref__:de});function _e(e){return e.__forward_ref__=_e,e.toString=function(){return ge(this())},e}function ve(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(ye)&&t.__forward_ref__===_e?t():e}const we="undefined"!=typeof globalThis&&globalThis,be="undefined"!=typeof window&&window,Se="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ce="undefined"!=typeof global&&global,Ee=we||Ce||be||Se;class Te{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=pe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const xe=new Te("INJECTOR",-1),ke=new Object,Ae="ngTempTokenPath",Ie="ngTokenPath",Ne=/\n/gm,Pe="\u0275",Re="__source",Oe=de({provide:String,useValue:de});let De,Fe=void 0;function Ve(e){const t=Fe;return Fe=e,t}function Me(e,t=he.Default){if(void 0===Fe)throw new Error("inject() must be called from an injection context");return null===Fe?function(e,t,n){const r=fe(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&he.Optional)return null;throw new Error(`Injector: NOT_FOUND [${ge(e)}]`)}(e,0,t):Fe.get(e,t&he.Optional?null:void 0,t)}function Le(e,t=he.Default){return(De||Me)(e,t)}class Ue{get(e,t=ke){if(t===ke){const t=new Error(`NullInjectorError: No provider for ${ge(e)}!`);throw t.name="NullInjectorError",t}return t}}function je(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Pe?e.substr(2):e;let s=ge(t);if(t instanceof Array)s=t.map(ge).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):ge(r)))}s=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Ne,"\n  ")}`}const $e=new Te("The presence of this token marks an injector as being the root injector."),He=function(e,t,n){return new Ke(e,t,n)};let ze=(()=>{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=ke,e.NULL=new Ue,e.ngInjectableDef=pe({token:e,providedIn:"any",factory:()=>Le(xe)}),e.__NG_ELEMENT_ID__=-1,e})();const Be=function(e){return e},qe=[],Ge=Be,Qe=function(){return Array.prototype.slice.call(arguments)},We="\u0275";class Ke{constructor(e,t=ze.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(ze,{token:ze,fn:Be,deps:qe,value:this,useNew:!1}),r.set(xe,{token:xe,fn:Be,deps:qe,value:this,useNew:!1}),function e(t,n){if(n)if((n=ve(n))instanceof Array)for(let r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw Ye("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Ye("Unexpected provider",n);{let e=ve(n.provide);const r=function(e){const t=function(e){let t=qe;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e<n.length;e++){let r=6,s=ve(n[e]);if(s instanceof Array)for(let e=0,t=s;e<t.length;e++){const n=t[e];n instanceof le||n==le?r|=1:n instanceof ce||n==ce?r&=-3:n instanceof ue||n==ue?r&=-5:s=n instanceof ae?n.token:ve(n)}t.push({token:s,options:r})}}else if(e.useExisting)t=[{token:ve(e.useExisting),options:6}];else if(!(n||Oe in e))throw Ye("'deps' required",e);return t}(e);let n=Be,r=qe,s=!1,i=ve(e.provide);if(Oe in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)s=!0,n=ve(e.useClass);else{if("function"!=typeof i)throw Ye("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);s=!0,n=i}return{deps:t,fn:n,useNew:s,value:r}}(n);if(!0===n.multi){let r=t.get(e);if(r){if(r.fn!==Qe)throw Ze(e)}else t.set(e,r={token:n.provide,deps:[],useNew:!1,fn:Qe,value:qe});r.deps.push({token:e=n,options:6})}const s=t.get(e);if(s&&s.fn==Qe)throw Ze(e);t.set(e,r)}}}(r,e)}get(e,t,n=he.Default){const r=this._records.get(e);try{return function e(t,n,r,s,i,o){try{return function(t,n,r,s,i,o){let a;if(!n||o&he.SkipSelf)o&he.Self||(a=s.get(t,i,he.Default));else{if((a=n.value)==Ge)throw Error(We+"Circular dependency");if(a===qe){n.value=Ge;let t=void 0,i=n.useNew,o=n.fn,l=n.deps,u=qe;if(l.length){u=[];for(let t=0;t<l.length;t++){const n=l[t],i=n.options,o=2&i?r.get(n.token):void 0;u.push(e(n.token,o,r,o||4&i?s:ze.NULL,1&i?null:ze.THROW_IF_NOT_FOUND,he.Default))}}n.value=a=i?new o(...u):o.apply(t,u)}}return a}(t,n,r,s,i,o)}catch(a){throw a instanceof Error||(a=new Error(a)),(a[Ae]=a[Ae]||[]).unshift(t),n&&n.value==Ge&&(n.value=qe),a}}(e,r,this._records,this.parent,t,n)}catch(s){return function(e,t,n,r){const s=e[Ae];throw t[Re]&&s.unshift(t[Re]),e.message=je("\n"+e.message,s,"StaticInjectorError",r),e[Ie]=s,e[Ae]=null,e}(s,e,0,this.source)}}toString(){const e=[];return this._records.forEach((t,n)=>e.push(ge(n))),`StaticInjector[${e.join(", ")}]`}}function Ze(e){return Ye("Cannot mix multi providers and regular providers",e)}function Ye(e,t){return new Error(je(e,t,"StaticInjectorError"))}const Xe="ngDebugContext",Je="ngOriginalError",et="ngErrorLogger",tt=new Te("AnalyzeForEntryComponents"),nt=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(Ee))();let st=!0,it=!1;function ot(){return it=!0,st}class at{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(r){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 r=t.length-1;0<r;r--){const n=t.item(r).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 lt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ut=/^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 ct(e){return(e=String(e)).match(lt)||e.match(ut)?e:(ot()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function ht(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function dt(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const pt=ht("area,br,col,hr,img,wbr"),ft=ht("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),mt=ht("rp,rt"),gt=dt(mt,ft),yt=dt(pt,dt(ft,ht("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")),dt(mt,ht("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")),gt),_t=ht("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),vt=ht("srcset"),wt=dt(_t,vt,ht("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"),ht("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")),bt=ht("script,style,template");class St{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(!yt.hasOwnProperty(t))return this.sanitizedSomething=!0,!bt.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,i=t.toLowerCase();if(!wt.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=e.value;_t[i]&&(o=ct(o)),vt[i]&&(r=o,o=(r=String(r)).split(",").map(e=>ct(e.trim())).join(", ")),this.buf.push(" ",t,'="',Tt(o),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();yt.hasOwnProperty(t)&&!pt.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Tt(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 Ct=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Et=/([^\#-~ |!])/g;function Tt(e){return e.replace(/&/g,"&amp;").replace(Ct,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(Et,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let xt;function kt(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const At=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 It{}const Nt=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 Rt(e){return e[Xe]}function Ot(e){return e[Je]}function Dt(e,...t){e.error(...t)}class Ft{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[et]||Dt}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Rt(e)?Rt(e):this._findContext(Ot(e)):null}_findOriginalError(e){let t=Ot(e);for(;t&&Ot(t);)t=Ot(t);return t}}const Vt=/([A-Z])/g;function Mt(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}let Lt=null;function Ut(){if(!Lt){const e=Ee.Symbol;if(e&&e.iterator)Lt=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&&(Lt=n)}}}return Lt}function jt(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function $t(e,t){const n=zt(e),r=zt(t);if(n&&r)return function(e,t,n){const r=e[Ut()](),s=t[Ut()]();for(;;){const e=r.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),i=t&&("object"==typeof t||"function"==typeof t);return!(n||!s||r||!i)||jt(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 zt(e){return!!Bt(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ut()in e)}function Bt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function qt(e){return!!e&&"function"==typeof e.then}function Gt(e){return!!e&&"function"==typeof e.subscribe}class Qt{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}class Wt{}class Kt{}function Zt(e){const t=Error(`No component factory found for ${ge(e)}. Did you add it to @NgModule.entryComponents?`);return t[Yt]=e,t}const Yt="ngComponent";class Xt{resolveComponentFactory(e){throw Zt(e)}}let Jt=(()=>{class e{}return e.NULL=new Xt,e})();class en{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r<e.length;r++){const t=e[r];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 Zt(e);return new tn(t,this._ngModule)}}class tn extends Kt{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,r){return this.factory.create(e,t,n,r||this.ngModule)}}class nn{}class rn{}function sn(...e){}let on=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>an(e),e})();const an=sn;class ln{}class un{}const cn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let hn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>dn(),e})();const dn=sn;class pn{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const fn=new pn("8.1.3");class mn{constructor(){}supports(e){return zt(e)}create(e){return new yn(e)}}const gn=(e,t)=>t;class yn{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||gn}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,s=null;for(;t||n;){const i=!n||t&&t.currentIndex<bn(n,r,s)?t:n,o=bn(i,r,s),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{s||(s=[]);const e=o-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<s.length?s[n]:s[n]=0,i=r+n;t<=i&&i<e&&(s[n]=r+1)}s[i.previousIndex]=t-e}}o!==a&&e(i,o,a)}}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=[]),!zt(e))throw new Error(`Error trying to diff '${ge(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,s=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)r=this._trackByFn(t,n=e[t]),null!==s&&jt(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,n,r,t)),jt(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,r,t),i=!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[Ut()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==s&&jt(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,e,r,t)),jt(s.item,e)||this._addIdentityChange(s,e)):(s=this._mismatch(s,e,r,t),i=!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,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(jt(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(jt(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):e=this._addAfter(new _n(t,n),s,r),e}_verifyReinsertion(e,t,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),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 r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,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 r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new wn),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 wn),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 _n{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 vn{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)&&jt(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 wn{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new vn,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 bn(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class Sn{constructor(){}supports(e){return e instanceof Map||Bt(e)}create(){return new Cn}}class Cn{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||Bt(e)))throw new Error(`Error trying to diff '${ge(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 r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),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 r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new En(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){jt(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 En{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 Tn=(()=>{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 ce,new le]]}}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=pe({token:e,providedIn:"root",factory:()=>new e([new mn])}),e})(),xn=(()=>{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 ce,new le]]}}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=pe({token:e,providedIn:"root",factory:()=>new e([new Sn])}),e})(),kn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>An(),e})();const An=(...e)=>{},In=[new Sn],Nn=new Tn([new mn]),Pn=new xn(In);let Rn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>On(e,on),e})();const On=sn;let Dn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Fn(e,on),e})();const Fn=sn;function Vn(e,t,n,r){let s=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(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 Mn(n,t),n}(s,e)}function Mn(e,t){e[Xe]=t,e[et]=t.logError.bind(t)}function Ln(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Un(e,t,n){const r=e.state,s=1792&r;return s===t?(e.state=-1793&r|n,e.initIndex=-1,!0):s===n}function jn(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 zn(e,t){return e.nodes[t]}function Bn(e,t){return e.nodes[t]}function qn(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},Qn=()=>{},Wn=new Map;function Kn(e){let t=Wn.get(e);return t||(t=ge(e)+"_"+Wn.size,Wn.set(e,t)),t}const Zn="$$undefined",Yn="$$empty";function Xn(e){return{id:Zn,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let Jn=0;function er(e,t,n,r){return!(!(2&e.state)&&jt(e.oldValues[t.bindingIndex+n],r))}function tr(e,t,n,r){return!!er(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function nr(e,t,n,r){const s=e.oldValues[t.bindingIndex+n];if(1&e.state||!$t(s,r)){const i=t.bindings[n].name;throw Vn(Gn.createDebugContext(e,t.nodeIndex),`${i}: ${s}`,`${i}: ${r}`,0!=(1&e.state))}}function rr(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function sr(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function ir(e,t,n,r){try{return rr(33554432&e.def.nodes[t].flags?Hn(e,t).componentView:e),Gn.handleEvent(e,t,n,r)}catch(s){e.root.errorHandler.handleError(s)}}function or(e){return e.parent?Hn(e.parent,e.parentNodeDef.nodeIndex):null}function ar(e){return e.parent?e.parentNodeDef.parent:null}function lr(e,t){switch(201347067&t.flags){case 1:return Hn(e,t.nodeIndex).renderElement;case 2:return $n(e,t.nodeIndex).renderText}}function ur(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function cr(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function hr(e){const t={};let n=0;const r={};return e&&e.forEach(([e,s])=>{"number"==typeof e?(t[e]=s,n|=function(e){return 1<<e%32}(e)):r[e]=s}),{matchedQueries:t,references:r,matchedQueryIds:n}}function dr(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,Re,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Kn(n)}})}function pr(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===nt.Native?Hn(e,n.renderParent.nodeIndex).renderElement:void 0:t}const fr=new WeakMap;function mr(e){let t=fr.get(e);return t||((t=e(()=>Qn)).factory=e,fr.set(e,t)),t}function gr(e,t,n,r,s){3===t&&(n=e.renderer.parentNode(lr(e,e.def.lastRenderRootNode))),yr(e,t,0,e.def.nodes.length-1,n,r,s)}function yr(e,t,n,r,s,i,o){for(let a=n;a<=r;a++){const n=e.def.nodes[a];11&n.flags&&vr(e,n,t,s,i,o),a+=n.childCount}}function _r(e,t,n,r,s,i){let o=e;for(;o&&!ur(o);)o=o.parent;const a=o.parent,l=ar(o),u=l.nodeIndex+l.childCount;for(let c=l.nodeIndex+1;c<=u;c++){const e=a.def.nodes[c];e.ngContentIndex===t&&vr(a,e,n,r,s,i),c+=e.childCount}if(!a.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t<o.length;t++)wr(e,o[t],n,r,s,i)}}function vr(e,t,n,r,s,i){if(8&t.flags)_r(e,t.ngContent.index,n,r,s,i);else{const o=lr(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&wr(e,o,n,r,s,i),32&t.bindingFlags&&wr(Hn(e,t.nodeIndex).componentView,o,n,r,s,i)):wr(e,o,n,r,s,i),16777216&t.flags){const o=Hn(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<o.length;e++)gr(o[e],n,r,s,i)}1&t.flags&&!t.element.name&&yr(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,s,i)}}function wr(e,t,n,r,s,i){const o=e.renderer;switch(n){case 1:o.appendChild(r,t);break;case 2:o.insertBefore(r,t,s);break;case 3:o.removeChild(r,t);break;case 0:i.push(t)}}const br=/^:([^:]+):(.+)$/;function Sr(e){if(":"===e[0]){const t=e.match(br);return[t[1],t[2]]}return["",e]}function Cr(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}const Er=new Object,Tr=Kn(ze),xr=Kn(xe),kr=Kn(nn);function Ar(e,t,n,r){return n=ve(n),{index:-1,deps:dr(r,ge(t)),flags:e,token:t,value:n}}function Ir(e,t,n=ze.THROW_IF_NOT_FOUND){const r=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 Tr:case xr:case kr:return e}const a=e._def.providersByKey[o];let l;if(a){let t=e._providers[a.index];return void 0===t&&(t=e._providers[a.index]=Nr(e,a)),t===Er?void 0:t}if((l=fe(t.token))&&(s=e,null!=(i=l).providedIn&&(function(e,t){return e._def.modules.indexOf(t)>-1}(s,i.providedIn)||"root"===i.providedIn&&s._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:l.factory,deps:[],index:n,token:t.token},e._providers[n]=Er,e._providers[n]=Nr(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Ve(r)}var s,i}function Nr(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(Ir(e,n[0]));case 2:return new t(Ir(e,n[0]),Ir(e,n[1]));case 3:return new t(Ir(e,n[0]),Ir(e,n[1]),Ir(e,n[2]));default:const s=new Array(r);for(let t=0;t<r;t++)s[t]=Ir(e,n[t]);return new t(...s)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const r=n.length;switch(r){case 0:return t();case 1:return t(Ir(e,n[0]));case 2:return t(Ir(e,n[0]),Ir(e,n[1]));case 3:return t(Ir(e,n[0]),Ir(e,n[1]),Ir(e,n[2]));default:const s=Array(r);for(let t=0;t<r;t++)s[t]=Ir(e,n[t]);return t(...s)}}(e,t.value,t.deps);break;case 2048:n=Ir(e,t.deps[0]);break;case 256:n=t.value}return n===Er||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Er:n}function Pr(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,Fr(n,t),Gn.dirtyParentQueries(r),Or(r),r}function Rr(e,t,n){const r=t?lr(t,t.def.lastRenderRootNode):e.renderElement,s=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);gr(n,2,s,i,void 0)}function Or(e){gr(e,3,null,null,void 0)}function Dr(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Fr(e,t){t>=e.length-1?e.pop():e.splice(t,1)}const Vr=new Object;function Mr(e,t,n,r,s,i){return new Lr(e,t,n,r,s,i)}class Lr extends Kt{constructor(e,t,n,r,s,i){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=s,this.ngContentSelectors=i,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,r){if(!r)throw new Error("ngModule should be provided");const s=mr(this.viewDefFactory),i=s.nodes[0].element.componentProvider.nodeIndex,o=Gn.createRootView(e,t||[],n,s,r,Vr),a=zn(o,i).instance;return n&&o.renderer.setAttribute(Hn(o,0).renderElement,"ng-version",fn.full),new Ur(o,new zr(o),a)}}class Ur extends Wt{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 on(Hn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Qr(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function jr(e,t,n){return new $r(e,t,n)}class $r{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new on(this._data.renderElement)}get injector(){return new Qr(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=ar(e),e=e.parent;return e?new Qr(e,t):new Qr(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Pr(this._data,e);Gn.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new zr(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,s){const i=n||this.parentInjector;s||e instanceof tn||(s=i.get(nn));const o=e.create(i,r,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,r){let s=t.viewContainer._embeddedViews;null==n&&(n=s.length),r.viewContainerParent=e,Dr(s,n,r),function(e,t){const n=or(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.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,r),Gn.dirtyParentQueries(r),Rr(t,n>0?s[n-1]:null,r)}(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 r=e.viewContainer._embeddedViews,s=r[t];Fr(r,t),null==n&&(n=r.length),Dr(r,n,s),Gn.dirtyParentQueries(s),Or(s),Rr(e,n>0?r[n-1]:null,s)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Pr(this._data,e);t&&Gn.destroyView(t)}detach(e){const t=Pr(this._data,e);return t?new zr(t):null}}function Hr(e){return new zr(e)}class zr{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return gr(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(){rr(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,Or(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 Br(e,t){return new qr(e,t)}class qr extends Rn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new zr(Gn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new on(Hn(this._parentView,this._def.nodeIndex).renderElement)}}function Gr(e,t){return new Qr(e,t)}class Qr{constructor(e,t){this.view=e,this.elDef=t}get(e,t=ze.THROW_IF_NOT_FOUND){return Gn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Kn(e)},t)}}function Wr(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 zn(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function Kr(e){return new Zr(e.renderer)}class Zr{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,r]=Sr(t),s=this.delegate.createElement(r,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),r=this.delegate.nextSibling(e);for(let s=0;s<t.length;s++)this.delegate.insertBefore(n,t[s],r)}detachView(e){for(let t=0;t<e.length;t++){const n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,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[r,s]=Sr(t);null!=n?this.delegate.setAttribute(e,s,n,r):this.delegate.removeAttribute(e,s,r)}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 Yr(e,t,n,r){return new Xr(e,t,n,r)}class Xr{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=new Array(t.providers.length);for(let r=0;r<t.providers.length;r++){const s=t.providers[r];4096&s.flags||void 0===n[r]&&(n[r]=Nr(e,s))}}(this)}get(e,t=ze.THROW_IF_NOT_FOUND,n=he.Default){let r=0;return n&he.SkipSelf?r|=1:n&he.Self&&(r|=4),Ir(this,{token:e,tokenKey:Kn(e),flags:r},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(Jt)}destroy(){if(this._destroyed)throw new Error(`The ng module ${ge(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,r=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!==Er){const e=t.ngOnDestroy;"function"!=typeof e||r.has(t)||(e.apply(t),r.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const Jr=Kn(ln),es=Kn(hn),ts=Kn(on),ns=Kn(Dn),rs=Kn(Rn),ss=Kn(kn),is=Kn(ze),os=Kn(xe);function as(e,t,n,r,s,i,o,a){const l=[];if(o)for(let c in o){const[e,t]=o[c];l[e]={flags:8,name:c,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const u=[];if(a)for(let c in a)u.push({type:1,propName:c,target:null,eventName:a[c]});return us(e,t|=16384,n,r,s,s,i,l,u)}function ls(e,t,n,r,s){return us(-1,e,t,0,n,r,s)}function us(e,t,n,r,s,i,o,a,l){const{matchedQueries:u,references:c,matchedQueryIds:h}=hr(n);l||(l=[]),a||(a=[]),i=ve(i);const d=dr(o,ge(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:r,bindings:a,bindingFlags:Cr(a),outputs:l,element:null,provider:{token:s,value:i,deps:d},text:null,query:null,ngContent:null}}function cs(e,t){return fs(e,t)}function hs(e,t){let n=e;for(;n.parent&&!ur(n);)n=n.parent;return ms(n.parent,ar(n),!0,t.provider.value,t.provider.deps)}function ds(e,t){const n=ms(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r<t.outputs.length;r++){const s=t.outputs[r],i=n[s.propName];if(!Gt(i))throw new Error(`@Output ${s.propName} not initialized in '${n.constructor.name}'.`);{const n=i.subscribe(ps(e,t.parent.nodeIndex,s.eventName));e.disposables[t.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function ps(e,t,n){return r=>ir(e,t,n,r)}function fs(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return ms(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,s){const i=s.length;switch(i){case 0:return r();case 1:return r(ys(e,t,n,s[0]));case 2:return r(ys(e,t,n,s[0]),ys(e,t,n,s[1]));case 3:return r(ys(e,t,n,s[0]),ys(e,t,n,s[1]),ys(e,t,n,s[2]));default:const o=Array(i);for(let r=0;r<i;r++)o[r]=ys(e,t,n,s[r]);return r(...o)}}(e,t.parent,n,r.value,r.deps);case 2048:return ys(e,t.parent,n,r.deps[0]);case 256:return r.value}}function ms(e,t,n,r,s){const i=s.length;switch(i){case 0:return new r;case 1:return new r(ys(e,t,n,s[0]));case 2:return new r(ys(e,t,n,s[0]),ys(e,t,n,s[1]));case 3:return new r(ys(e,t,n,s[0]),ys(e,t,n,s[1]),ys(e,t,n,s[2]));default:const o=new Array(i);for(let r=0;r<i;r++)o[r]=ys(e,t,n,s[r]);return new r(...o)}}const gs={};function ys(e,t,n,r,s=ze.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const i=e;2&r.flags&&(s=null);const o=r.tokenKey;o===ss&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);let a=e;for(;a;){if(t)switch(o){case Jr:return Kr(_s(a,t,n));case es:return _s(a,t,n).renderer;case ts:return new on(Hn(a,t.nodeIndex).renderElement);case ns:return Hn(a,t.nodeIndex).viewContainer;case rs:if(t.element.template)return Hn(a,t.nodeIndex).template;break;case ss:return Hr(_s(a,t,n));case is:case os:return Gr(a,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[o];if(e){let t=zn(a,e.nodeIndex);return t||(t={instance:fs(a,e)},a.nodes[e.nodeIndex]=t),t.instance}}n=ur(a),t=ar(a),a=a.parent,4&r.flags&&(a=null)}const l=i.root.injector.get(r.token,gs);return l!==gs||s===gs?l:i.root.ngModule.injector.get(r.token,s)}function _s(e,t,n){let r;if(n)r=Hn(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!ur(r);)r=r.parent;return r}function vs(e,t,n,r,s,i){if(32768&n.flags){const t=Hn(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[r].name]=s,524288&n.flags){i=i||{};const t=Ht.unwrap(e.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new Qt(t,s,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=s,i}function ws(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let r=0;for(let s=0;s<n.length;s++){const i=n[s];let o=i.parent;for(!o&&i.flags&t&&Ss(e,s,i.flags&t,r++),0==(i.childFlags&t)&&(s+=i.childCount);o&&1&o.flags&&s===o.nodeIndex+o.childCount;)o.directChildFlags&t&&(r=bs(e,o,t,r)),o=o.parent}}function bs(e,t,n,r){for(let s=t.nodeIndex+1;s<=t.nodeIndex+t.childCount;s++){const t=e.def.nodes[s];t.flags&n&&Ss(e,s,t.flags&n,r++),s+=t.childCount}return r}function Ss(e,t,n,r){const s=zn(e,t);if(!s)return;const i=s.instance;i&&(Gn.setCurrentNode(e,t),1048576&n&&jn(e,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&jn(e,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}const Cs=new Te("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>rt}),Es={},Ts=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}(),xs=void 0;var ks=["en",[["a","p"],["AM","PM"],xs],[["AM","PM"],xs,xs],[["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"]],xs,[["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"]],xs,[["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}",xs,"{1} 'at' {0}",xs],[".",",",";","%","+","-","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}];let As="en-US";class Is extends k{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,i=()=>null;e&&"object"==typeof e?(r=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&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,s,i);return e instanceof d&&e.add(o),o}}function Ns(){return this._results[Ut()]()}class Ps{constructor(){this.dirty=!0,this._results=[],this.changes=new Is,this.length=0;const e=Ut(),t=Ps.prototype;t[e]||(t[e]=Ns)}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 r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?(n===t&&(n=t.slice(0,r)),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 Rs=new Te("Application Initializer");let Os=(()=>(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]();qt(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}))();const Ds=new Te("AppId");function Fs(){return`${Vs()}${Vs()}${Vs()}`}function Vs(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ms=new Te("Platform Initializer"),Ls=new Te("Platform ID"),Us=new Te("appBootstrapListener");let js=(()=>(class{log(e){console.log(e)}warn(e){console.warn(e)}}))();const $s=new Te("LocaleId");function Hs(){throw new Error("Runtime compiler is not loaded")}const zs=Hs,Bs=Hs,qs=Hs,Gs=Hs;let Qs,Ws,Ks=(()=>(class{constructor(){this.compileModuleSync=zs,this.compileModuleAsync=Bs,this.compileModuleAndAllComponentsSync=qs,this.compileModuleAndAllComponentsAsync=Gs}clearCache(){}clearCacheFor(e){}getModuleId(e){}}))();class Zs{}function Ys(){const e=Ee.wtf;return!(!e||!(Qs=e.trace)||(Ws=Qs.events,0))}const Xs=Ys();function Js(e,t){return null}const ei=Xs?function(e,t=null){return Ws.createScope(e,t)}:(e,t)=>Js,ti=Xs?function(e,t){return Qs.leaveScope(e,t),t}:(e,t)=>t,ni=(()=>Promise.resolve(0))();function ri(e){"undefined"==typeof Zone?ni.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class si{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Is(!1),this.onMicrotaskEmpty=new Is(!1),this.onStable=new Is(!1),this.onError=new Is(!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,r,s,i,o)=>{try{return li(t),e.invokeTask(r,s,i,o)}finally{ui(t)}},onInvoke:(e,n,r,s,i,o,a)=>{try{return li(t),e.invoke(r,s,i,o,a)}finally{ui(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t.hasPendingMicrotasks=s.microTask,ai(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!si.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(si.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,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,e,oi,ii,ii);try{return s.runTask(i,t,n)}finally{s.cancelTask(i)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function ii(){}const oi={};function ai(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 li(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ui(e){e._nesting--,ai(e)}class ci{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Is,this.onMicrotaskEmpty=new Is,this.onStable=new Is,this.onError=new Is}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}let hi=(()=>(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:()=>{si.assertNotInAngularZone(),ri(()=>{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())ri(()=>{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 r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,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[]}}))(),di=(()=>{class e{constructor(){this._applications=new Map,mi.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 mi.findTestabilityInTree(this,e,t)}}return e.ctorParameters=()=>[],e})();class pi{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let fi,mi=new pi,gi=function(e){return e instanceof tn};const yi=new Te("AllowMultipleToken");class _i{constructor(e,t){this.name=e,this.token=t}}function vi(e,t,n=[]){const r=`Platform: ${t}`,s=new Te(r);return(t=[])=>{let i=wi();if(!i||i.injector.get(yi,!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(fi&&!fi.destroyed&&!fi.injector.get(yi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");fi=e.get(bi);const t=e.get(Ms,null);t&&t.forEach(e=>e())}(ze.create({providers:e,name:r}))}return function(e){const t=wi();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 wi(){return fi&&!fi.destroyed?fi:null}let bi=(()=>(class{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n="noop"===(s=t?t.ngZone:void 0)?new ci:("zone.js"===s?void 0:s)||new si({enableLongStackTrace:ot()}),r=[{provide:si,useValue:n}];var s;return n.run(()=>{const t=ze.create({providers:r,parent:this.injector,name:e.moduleType.name}),s=e.create(t),i=s.injector.get(Ft,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return function(e){As=e.toLowerCase().replace(/_/g,"-")}(s.injector.get($s,"en-US")),s.onDestroy(()=>Ei(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{i.handleError(e)}})),function(e,t,n){try{const r=n();return qt(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(i,n,()=>{const e=s.injector.get(Os);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,t=[]){const n=Si({},t);return function(e,t,n){return e.get(Zs).createCompiler([t]).compileModuleAsync(n)}(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Ci);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${ge(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 Si(e,t){return Array.isArray(t)?t.reduce(Si,e):Object.assign({},e,t)}let Ci=(()=>{class e{constructor(e,t,n,r,s,i){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ot(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new b(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new b(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{si.assertNotInAngularZone(),ri(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{si.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=function(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return I(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof b?e[0]:Y(t)(q(e,n))}(o,a.pipe(e=>X()(function(e,t){return function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,ne);return r.source=t,r.subjectFactory=n,r}}(se)(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 Kt?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=gi(n)?null:this._injector.get(nn),s=n.create(ze.NULL,[],t||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(hi,null);return i&&s.injector.get(di).registerApplication(s.location.nativeElement,i),this._loadComponent(s),ot()&&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,ti(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Ei(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Us,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Ei(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=ei("ApplicationRef#tick()"),e})();function Ei(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ti{}class xi{}const ki={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Ai=(()=>(class{constructor(e,t){this._compiler=e,this._config=t||ki}load(e){return this._compiler instanceof Ks?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("zn8P")(t).then(e=>e[r]).then(e=>Ii(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+s]).then(e=>Ii(e,t,r))}}))();function Ii(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Ni{constructor(e,t){this.name=e,this.callback=t}}class Pi{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Ri&&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 Ri extends Pi{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,r){t.childNodes.forEach(t=>{t instanceof Ri&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof Ri&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof Ri&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Ri)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const Oi=new Map,Di=function(e){return Oi.get(e)||null};function Fi(e){Oi.set(e.nativeNode,e)}const Vi=vi(null,"core",[{provide:Ls,useValue:"unknown"},{provide:bi,deps:[ze]},{provide:di,deps:[]},{provide:js,deps:[]}]);function Mi(){return Nn}function Li(){return Pn}function Ui(e){return e||"en-US"}function ji(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}let $i=(()=>(class{constructor(e){}}))();function Hi(e,t,n,r,s,i){e|=1;const{matchedQueries:o,references:a,matchedQueryIds:l}=hr(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:l,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?mr(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:s||Qn},provider:null,text:null,query:null,ngContent:null}}function zi(e,t,n,r,s,i,o=[],a,l,u,c,h){u||(u=Qn);const{matchedQueries:d,references:p,matchedQueryIds:f}=hr(n);let m=null,g=null;i&&([m,g]=Sr(i)),a=a||[];const y=new Array(a.length);for(let w=0;w<a.length;w++){const[e,t,n]=a[w],[r,s]=Sr(t);let i=void 0,o=void 0;switch(15&e){case 4:o=n;break;case 1:case 8:i=n}y[w]={flags:e,ns:r,name:s,nonMinifiedName:s,securityContext:i,suffix:o}}l=l||[];const _=new Array(l.length);for(let w=0;w<l.length;w++){const[e,t]=l[w];_[w]={type:0,target:e,eventName:t,propName:null}}const v=(o=o||[]).map(([e,t])=>{const[n,r]=Sr(e);return[n,r,t]});return h=function(e){if(e&&e.id===Zn){const t=null!=e.encapsulation&&e.encapsulation!==nt.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${Jn++}`:Yn}return e&&e.id===Yn&&(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:f,references:p,ngContentIndex:r,childCount:s,bindings:y,bindingFlags:Cr(y),outputs:_,element:{ns:m,name:g,attrs:v,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:u||Qn},provider:null,text:null,query:null,ngContent:null}}function Bi(e,t,n){const r=n.element,s=e.root.selectorOrNode,i=e.renderer;let o;if(e.parent||!s){o=r.name?i.createElement(r.name,r.ns):i.createComment("");const s=pr(e,t,n);s&&i.appendChild(s,o)}else o=i.selectRootElement(s,!!r.componentRendererType&&r.componentRendererType.encapsulation===nt.ShadowDom);if(r.attrs)for(let a=0;a<r.attrs.length;a++){const[e,t,n]=r.attrs[a];i.setAttribute(o,t,n,e)}return o}function qi(e,t,n,r){for(let o=0;o<n.outputs.length;o++){const a=n.outputs[o],l=Gi(e,n.nodeIndex,(i=a.eventName,(s=a.target)?`${s}:${i}`:i));let u=a.target,c=e;"component"===a.target&&(u=null,c=t);const h=c.renderer.listen(u||r,a.eventName,l);e.disposables[n.outputIndex+o]=h}var s,i}function Gi(e,t,n){return r=>ir(e,t,n,r)}function Qi(e,t,n,r){if(!tr(e,t,n,r))return!1;const s=t.bindings[n],i=Hn(e,t.nodeIndex),o=i.renderElement,a=s.name;switch(15&s.flags){case 1:!function(e,t,n,r,s,i){const o=t.securityContext;let a=o?e.root.sanitizer.sanitize(o,i):i;a=null!=a?a.toString():null;const l=e.renderer;null!=i?l.setAttribute(n,s,a,r):l.removeAttribute(n,s,r)}(e,s,o,s.ns,a,r);break;case 2:!function(e,t,n,r){const s=e.renderer;r?s.addClass(t,n):s.removeClass(t,n)}(e,o,a,r);break;case 4:!function(e,t,n,r,s){let i=e.root.sanitizer.sanitize(At.STYLE,s);if(null!=i){i=i.toString();const e=t.suffix;null!=e&&(i+=e)}else i=null;const o=e.renderer;null!=i?o.setStyle(n,r,i):o.removeStyle(n,r)}(e,s,o,a,r);break;case 8:!function(e,t,n,r,s){const i=t.securityContext;let o=i?e.root.sanitizer.sanitize(i,s):s;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&s.flags?i.componentView:e,s,o,a,r)}return!0}function Wi(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&cr(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let s=0;s<=r;s++){const r=e.def.nodes[s];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&qn(e,s).setDirty(),!(1&r.flags&&s+r.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(s+=r.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&&qn(e,n).setDirty(),n+=t.childCount}}function Ki(e,t){const n=qn(e,t.nodeIndex);if(!n.dirty)return;let r,s=void 0;if(67108864&t.flags){const n=t.parent.parent;s=Zi(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),r=zn(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(s=Zi(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(s);const i=t.query.bindings;let o=!1;for(let a=0;a<i.length;a++){const e=i[a];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,o=!0}r[e.propName]=t}o&&n.notifyOnChanges()}function Zi(e,t,n,r,s){for(let i=t;i<=n;i++){const t=e.def.nodes[i],n=t.matchedQueries[r.id];if(null!=n&&s.push(Yi(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=Hn(e,i);if((t.childMatchedQueries&r.filterId)===r.filterId&&(Zi(e,i+1,i+t.childCount,r,s),i+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const i=e[t],o=or(i);o&&o===n&&Zi(i,0,i.def.nodes.length-1,r,s)}}const o=n.template._projectedViews;if(o)for(let e=0;e<o.length;e++){const t=o[e];Zi(t,0,t.def.nodes.length-1,r,s)}}(t.childMatchedQueries&r.filterId)!==r.filterId&&(i+=t.childCount)}return s}function Yi(e,t,n){if(null!=n)switch(n){case 1:return Hn(e,t.nodeIndex).renderElement;case 0:return new on(Hn(e,t.nodeIndex).renderElement);case 2:return Hn(e,t.nodeIndex).template;case 3:return Hn(e,t.nodeIndex).viewContainer;case 4:return zn(e,t.nodeIndex).instance}}function Xi(e,t,n){const r=pr(e,t,n);r&&_r(e,n.ngContent.index,1,r,null,void 0)}function Ji(e,t,n){const r=new Array(n.length-1);for(let s=1;s<n.length;s++)r[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:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function eo(e,t,n){let r;const s=e.renderer;r=s.createText(n.text.prefix);const i=pr(e,t,n);return i&&s.appendChild(i,r),{renderText:r}}function to(e,t){return(null!=e?e.toString():"")+t.suffix}function no(e,t,n,r){let s=0,i=0,o=0,a=0,l=0,u=null,c=null,h=!1,d=!1,p=null;for(let f=0;f<t.length;f++){const e=t[f];if(e.nodeIndex=f,e.parent=u,e.bindingIndex=s,e.outputIndex=i,e.renderParent=c,o|=e.flags,l|=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&&(l|=e.element.template.nodeMatchedQueries)}if(so(u,e,t.length),s+=e.bindings.length,i+=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[Kn(e.provider.token)]=e:(d||(d=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[Kn(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)):a|=e.flags,e.childCount>0)u=e,ro(e)||(c=e);else for(;u&&f===u.nodeIndex+u.childCount;){const e=u.parent;e&&(e.childFlags|=u.childFlags,e.childMatchedQueries|=u.childMatchedQueries),c=(u=e)&&ro(u)?u.renderParent:u}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||Qn,updateRenderer:r||Qn,handleEvent:(e,n,r,s)=>t[n].element.handleEvent(e,r,s),bindingCount:s,outputCount:i,lastRenderRootNode:p}}function ro(e){return 0!=(1&e.flags)&&null===e.element.name}function so(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.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 r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function io(e,t,n,r){const s=lo(e.root,e.renderer,e,t,n);return uo(s,e.component,r),co(s),s}function oo(e,t,n){const r=lo(e,e.renderer,null,null,t);return uo(r,n,n),co(r),r}function ao(e,t,n,r){const s=t.element.componentRendererType;let i;return i=s?e.root.rendererFactory.createRenderer(r,s):e.root.renderer,lo(e.root,i,e,t.element.componentProvider,n)}function lo(e,t,n,r,s){const i=new Array(s.nodes.length),o=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(s.bindingCount),disposables:o,initIndex:-1}}function uo(e,t,n){e.component=t,e.context=n}function co(e){let t;ur(e)&&(t=Hn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let s=0;s<n.nodes.length;s++){const i=n.nodes[s];let o;switch(Gn.setCurrentNode(e,s),201347067&i.flags){case 1:const n=Bi(e,t,i);let a=void 0;if(33554432&i.flags){const t=mr(i.element.componentView);a=Gn.createComponentView(e,i,t,n)}qi(e,a,i,n),o={renderElement:n,componentView:a,viewContainer:null,template:i.element.template?Br(e,i):void 0},16777216&i.flags&&(o.viewContainer=jr(e,i,o));break;case 2:o=eo(e,t,i);break;case 512:case 1024:case 2048:case 256:(o=r[s])||4096&i.flags||(o={instance:cs(e,i)});break;case 16:o={instance:hs(e,i)};break;case 16384:(o=r[s])||(o={instance:ds(e,i)}),32768&i.flags&&uo(Hn(e,i.parent.nodeIndex).componentView,o.instance,o.instance);break;case 32:case 64:case 128:o={value:void 0};break;case 67108864:case 134217728:o=new Ps;break;case 8:Xi(e,t,i),o=void 0}r[s]=o}wo(e,vo.CreateViewNodes),Eo(e,201326592,268435456,0)}function ho(e){mo(e),Gn.updateDirectives(e,1),bo(e,vo.CheckNoChanges),Gn.updateRenderer(e,1),wo(e,vo.CheckNoChanges),e.state&=-97}function po(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Un(e,0,256),mo(e),Gn.updateDirectives(e,0),bo(e,vo.CheckAndUpdate),Eo(e,67108864,536870912,0);let t=Un(e,256,512);ws(e,2097152|(t?1048576:0)),Gn.updateRenderer(e,0),wo(e,vo.CheckAndUpdate),Eo(e,134217728,536870912,0),ws(e,8388608|((t=Un(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Un(e,768,1024)}function fo(e,t,n,r,s,i,o,a,l,u,c,h,d){return 0===n?function(e,t,n,r,s,i,o,a,l,u,c,h){switch(201347067&t.flags){case 1:return function(e,t,n,r,s,i,o,a,l,u,c,h){const d=t.bindings.length;let p=!1;return d>0&&Qi(e,t,0,n)&&(p=!0),d>1&&Qi(e,t,1,r)&&(p=!0),d>2&&Qi(e,t,2,s)&&(p=!0),d>3&&Qi(e,t,3,i)&&(p=!0),d>4&&Qi(e,t,4,o)&&(p=!0),d>5&&Qi(e,t,5,a)&&(p=!0),d>6&&Qi(e,t,6,l)&&(p=!0),d>7&&Qi(e,t,7,u)&&(p=!0),d>8&&Qi(e,t,8,c)&&(p=!0),d>9&&Qi(e,t,9,h)&&(p=!0),p}(e,t,n,r,s,i,o,a,l,u,c,h);case 2:return function(e,t,n,r,s,i,o,a,l,u,c,h){let d=!1;const p=t.bindings,f=p.length;if(f>0&&tr(e,t,0,n)&&(d=!0),f>1&&tr(e,t,1,r)&&(d=!0),f>2&&tr(e,t,2,s)&&(d=!0),f>3&&tr(e,t,3,i)&&(d=!0),f>4&&tr(e,t,4,o)&&(d=!0),f>5&&tr(e,t,5,a)&&(d=!0),f>6&&tr(e,t,6,l)&&(d=!0),f>7&&tr(e,t,7,u)&&(d=!0),f>8&&tr(e,t,8,c)&&(d=!0),f>9&&tr(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;f>0&&(d+=to(n,p[0])),f>1&&(d+=to(r,p[1])),f>2&&(d+=to(s,p[2])),f>3&&(d+=to(i,p[3])),f>4&&(d+=to(o,p[4])),f>5&&(d+=to(a,p[5])),f>6&&(d+=to(l,p[6])),f>7&&(d+=to(u,p[7])),f>8&&(d+=to(c,p[8])),f>9&&(d+=to(h,p[9]));const m=$n(e,t.nodeIndex).renderText;e.renderer.setValue(m,d)}return d}(e,t,n,r,s,i,o,a,l,u,c,h);case 16384:return function(e,t,n,r,s,i,o,a,l,u,c,h){const d=zn(e,t.nodeIndex),p=d.instance;let f=!1,m=void 0;const g=t.bindings.length;return g>0&&er(e,t,0,n)&&(f=!0,m=vs(e,d,t,0,n,m)),g>1&&er(e,t,1,r)&&(f=!0,m=vs(e,d,t,1,r,m)),g>2&&er(e,t,2,s)&&(f=!0,m=vs(e,d,t,2,s,m)),g>3&&er(e,t,3,i)&&(f=!0,m=vs(e,d,t,3,i,m)),g>4&&er(e,t,4,o)&&(f=!0,m=vs(e,d,t,4,o,m)),g>5&&er(e,t,5,a)&&(f=!0,m=vs(e,d,t,5,a,m)),g>6&&er(e,t,6,l)&&(f=!0,m=vs(e,d,t,6,l,m)),g>7&&er(e,t,7,u)&&(f=!0,m=vs(e,d,t,7,u,m)),g>8&&er(e,t,8,c)&&(f=!0,m=vs(e,d,t,8,c,m)),g>9&&er(e,t,9,h)&&(f=!0,m=vs(e,d,t,9,h,m)),m&&p.ngOnChanges(m),65536&t.flags&&jn(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,r,s,i,o,a,l,u,c,h);case 32:case 64:case 128:return function(e,t,n,r,s,i,o,a,l,u,c,h){const d=t.bindings;let p=!1;const f=d.length;if(f>0&&tr(e,t,0,n)&&(p=!0),f>1&&tr(e,t,1,r)&&(p=!0),f>2&&tr(e,t,2,s)&&(p=!0),f>3&&tr(e,t,3,i)&&(p=!0),f>4&&tr(e,t,4,o)&&(p=!0),f>5&&tr(e,t,5,a)&&(p=!0),f>6&&tr(e,t,6,l)&&(p=!0),f>7&&tr(e,t,7,u)&&(p=!0),f>8&&tr(e,t,8,c)&&(p=!0),f>9&&tr(e,t,9,h)&&(p=!0),p){const p=Bn(e,t.nodeIndex);let m;switch(201347067&t.flags){case 32:m=new Array(d.length),f>0&&(m[0]=n),f>1&&(m[1]=r),f>2&&(m[2]=s),f>3&&(m[3]=i),f>4&&(m[4]=o),f>5&&(m[5]=a),f>6&&(m[6]=l),f>7&&(m[7]=u),f>8&&(m[8]=c),f>9&&(m[9]=h);break;case 64:m={},f>0&&(m[d[0].name]=n),f>1&&(m[d[1].name]=r),f>2&&(m[d[2].name]=s),f>3&&(m[d[3].name]=i),f>4&&(m[d[4].name]=o),f>5&&(m[d[5].name]=a),f>6&&(m[d[6].name]=l),f>7&&(m[d[7].name]=u),f>8&&(m[d[8].name]=c),f>9&&(m[d[9].name]=h);break;case 128:const e=n;switch(f){case 1:m=e.transform(n);break;case 2:m=e.transform(r);break;case 3:m=e.transform(r,s);break;case 4:m=e.transform(r,s,i);break;case 5:m=e.transform(r,s,i,o);break;case 6:m=e.transform(r,s,i,o,a);break;case 7:m=e.transform(r,s,i,o,a,l);break;case 8:m=e.transform(r,s,i,o,a,l,u);break;case 9:m=e.transform(r,s,i,o,a,l,u,c);break;case 10:m=e.transform(r,s,i,o,a,l,u,c,h)}}p.value=m}return p}(e,t,n,r,s,i,o,a,l,u,c,h);default:throw"unreachable"}}(e,t,r,s,i,o,a,l,u,c,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let s=0;s<n.length;s++)Qi(e,t,s,n[s])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){const r=t.bindings;let s=!1;for(let i=0;i<n.length;i++)tr(e,t,i,n[i])&&(s=!0);if(s){let s="";for(let e=0;e<n.length;e++)s+=to(n[e],r[e]);s=t.text.prefix+s;const i=$n(e,t.nodeIndex).renderText;e.renderer.setValue(i,s)}return s}(e,t,n);case 16384:return function(e,t,n){const r=zn(e,t.nodeIndex),s=r.instance;let i=!1,o=void 0;for(let a=0;a<n.length;a++)er(e,t,a,n[a])&&(i=!0,o=vs(e,r,t,a,n[a],o));return o&&s.ngOnChanges(o),65536&t.flags&&jn(e,256,t.nodeIndex)&&s.ngOnInit(),262144&t.flags&&s.ngDoCheck(),i}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const r=t.bindings;let s=!1;for(let i=0;i<n.length;i++)tr(e,t,i,n[i])&&(s=!0);if(s){const s=Bn(e,t.nodeIndex);let i;switch(201347067&t.flags){case 32:i=n;break;case 64:i={};for(let s=0;s<n.length;s++)i[r[s].name]=n[s];break;case 128:const e=n[0],t=n.slice(1);i=e.transform(...t)}s.value=i}return s}(e,t,n);default:throw"unreachable"}}(e,t,r)}function mo(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const r=t.nodes[n];if(4&r.flags){const t=Hn(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const r=t[n];r.state|=32,sr(r,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function go(e,t,n,r,s,i,o,a,l,u,c,h,d){return 0===n?function(e,t,n,r,s,i,o,a,l,u,c,h){const d=t.bindings.length;d>0&&nr(e,t,0,n),d>1&&nr(e,t,1,r),d>2&&nr(e,t,2,s),d>3&&nr(e,t,3,i),d>4&&nr(e,t,4,o),d>5&&nr(e,t,5,a),d>6&&nr(e,t,6,l),d>7&&nr(e,t,7,u),d>8&&nr(e,t,8,c),d>9&&nr(e,t,9,h)}(e,t,r,s,i,o,a,l,u,c,h,d):function(e,t,n){for(let r=0;r<n.length;r++)nr(e,t,r,n[r])}(e,t,r),!1}function yo(e,t){if(qn(e,t.nodeIndex).dirty)throw Vn(Gn.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function _o(e){if(!(128&e.state)){if(bo(e,vo.Destroy),wo(e,vo.Destroy),ws(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=or(e);if(t){const n=t.template._projectedViews;n&&(Fr(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)&&qn(e,n).destroy()}}(e),ur(e)&&e.renderer.destroy(),e.state|=128}}const vo=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 wo(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];33554432&s.flags?So(Hn(e,r).componentView,t):0==(33554432&s.childFlags)&&(r+=s.childCount)}}function bo(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];if(16777216&s.flags){const n=Hn(e,r).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)So(n[e],t)}else 0==(16777216&s.childFlags)&&(r+=s.childCount)}}function So(e,t){const n=e.state;switch(t){case vo.CheckNoChanges:0==(128&n)&&(12==(12&n)?ho(e):64&n&&Co(e,vo.CheckNoChangesProjectedViews));break;case vo.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?ho(e):64&n&&Co(e,t));break;case vo.CheckAndUpdate:0==(128&n)&&(12==(12&n)?po(e):64&n&&Co(e,vo.CheckAndUpdateProjectedViews));break;case vo.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?po(e):64&n&&Co(e,t));break;case vo.Destroy:_o(e);break;case vo.CreateViewNodes:co(e)}}function Co(e,t){bo(e,t),wo(e,t)}function Eo(e,t,n,r){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const s=e.def.nodes.length;for(let i=0;i<s;i++){const s=e.def.nodes[i];if(s.flags&t&&s.flags&n)switch(Gn.setCurrentNode(e,s.nodeIndex),r){case 0:Ki(e,s);break;case 1:yo(e,s)}s.childFlags&t&&s.childFlags&n||(i+=s.childCount)}}let To=!1;function xo(e,t,n,r,s,i){const o=s.injector.get(un);return oo(Ao(e,s,o,t,n),r,i)}function ko(e,t,n,r,s,i){const o=s.injector.get(un),a=Ao(e,s,new oa(o),t,n),l=Lo(r);return sa(Bo.create,oo,null,[a,l,i])}function Ao(e,t,n,r,s){const i=t.injector.get(It),o=t.injector.get(Ft),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:s,sanitizer:i,rendererFactory:n,renderer:a,errorHandler:o}}function Io(e,t,n,r){const s=Lo(n);return sa(Bo.create,io,null,[e,t,s,r])}function No(e,t,n,r){return n=Do.get(t.element.componentProvider.provider.token)||Lo(n),sa(Bo.create,ao,null,[e,t,n,r])}function Po(e,t,n,r){return Yr(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===Ro.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(e=>{const r=Ro.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{Oo.forEach((r,s)=>{fe(s).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t<e.providers.length;t++){const r=e.providers[t];n&&(r.flags|=4096);const s=Ro.get(r.token);s&&(r.flags=-3841&r.flags|s.flags,r.deps=dr(s.deps),r.value=s.value)}if(Oo.size>0){let t=new Set(e.modules);Oo.forEach((r,s)=>{if(t.has(fe(s).providedIn)){let t={token:s,flags:r.flags|(n?4096:0),deps:dr(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Kn(s)]=t}})}}(e=e.factory(()=>Qn)),e):e}(r))}const Ro=new Map,Oo=new Map,Do=new Map;function Fo(e){let t;Ro.set(e.token,e),"function"==typeof e.token&&(t=fe(e.token))&&"function"==typeof t.providedIn&&Oo.set(e.token,e)}function Vo(e,t){const n=mr(t.viewDefFactory),r=mr(n.nodes[0].element.componentView);Do.set(e,r)}function Mo(){Ro.clear(),Oo.clear(),Do.clear()}function Lo(e){if(0===Ro.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;r<e.nodes.length;r++){const s=e.nodes[r];1&s.flags&&(n=s),n&&3840&s.flags&&Ro.has(s.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>Qn);for(let r=0;r<t.length;r++)n(e,t[r]);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=Ro.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=dr(n.deps),e.value=n.value)}}}}function Uo(e,t,n,r,s,i,o,a,l,u,c,h,d){const p=e.def.nodes[t];return fo(e,p,n,r,s,i,o,a,l,u,c,h,d),224&p.flags?Bn(e,t).value:void 0}function jo(e,t,n,r,s,i,o,a,l,u,c,h,d){const p=e.def.nodes[t];return go(e,p,n,r,s,i,o,a,l,u,c,h,d),224&p.flags?Bn(e,t).value:void 0}function $o(e){return sa(Bo.detectChanges,po,null,[e])}function Ho(e){return sa(Bo.checkNoChanges,ho,null,[e])}function zo(e){return sa(Bo.destroy,_o,null,[e])}const Bo=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 qo,Go,Qo;function Wo(e,t){Go=e,Qo=t}function Ko(e,t,n,r){return Wo(e,t),sa(Bo.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function Zo(e,t){if(128&e.state)throw Ln(Bo[qo]);return Wo(e,ea(e,0)),e.def.updateDirectives((function(e,n,r,...s){const i=e.def.nodes[n];return 0===t?Xo(e,i,r,s):Jo(e,i,r,s),16384&i.flags&&Wo(e,ea(e,n)),224&i.flags?Bn(e,i.nodeIndex).value:void 0}),e)}function Yo(e,t){if(128&e.state)throw Ln(Bo[qo]);return Wo(e,ta(e,0)),e.def.updateRenderer((function(e,n,r,...s){const i=e.def.nodes[n];return 0===t?Xo(e,i,r,s):Jo(e,i,r,s),3&i.flags&&Wo(e,ta(e,n)),224&i.flags?Bn(e,i.nodeIndex).value:void 0}),e)}function Xo(e,t,n,r){if(fo(e,t,n,...r)){const o=1===n?r[0]:r;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const r=t.bindings[e],a=o[e];8&r.flags&&(n[(s=r.nonMinifiedName,i=void 0,i=s.replace(/[$@]/g,"_"),`ng-reflect-${s=i.replace(Vt,(...e)=>"-"+e[1].toLowerCase())}`)]=Mt(a))}const r=t.parent,a=Hn(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(a,t,r):e.renderer.removeAttribute(a,t)}else e.renderer.setValue(a,`bindings=${JSON.stringify(n,null,2)}`)}}var s,i}function Jo(e,t,n,r){go(e,t,n,...r)}function ea(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 ta(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 na{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,r=e;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=ar(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return Hn(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return Gr(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){ra(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&&ra(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!ur(e);)e=e.parent;return e.parent?Hn(e.parent,ar(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?lr(this.view,this.nodeDef):lr(this.elView,this.elDef)}logError(e,...t){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const s=function(e,t){let n=-1;for(let r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(n,r);let i=-1;n.factory(()=>++i===s?e.error.bind(e,...t):Qn),i<s&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function ra(e,t,n){for(let r in t.references)n[r]=Yi(e,t,t.references[r])}function sa(e,t,n,r){const s=qo,i=Go,o=Qo;try{qo=e;const a=t.apply(n,r);return Go=i,Qo=o,qo=s,a}catch(a){if(Rt(a)||!Go)throw a;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),Mn(e,t),e}(a,ia())}}function ia(){return Go?new na(Go,Qo):null}class oa{constructor(e){this.delegate=e}createRenderer(e,t){return new aa(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 aa{constructor(e){this.delegate=e,this.debugContextFactory=ia,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){!function(e){Oi.delete(e.nativeNode)}(Di(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){const t=new Ri(n,null,r);t.name=e,Fi(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&Fi(new Pi(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&Fi(new Pi(t,null,n)),t}appendChild(e,t){const n=Di(e),r=Di(t);n&&r&&n instanceof Ri&&n.addChild(r),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const r=Di(e),s=Di(t),i=Di(n);r&&s&&r instanceof Ri&&r.insertBefore(i,s),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=Di(e),r=Di(t);n&&r&&n instanceof Ri&&n.removeChild(r),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),r=ia();return r&&Fi(new Ri(n,null,r)),n}setAttribute(e,t,n,r){const s=Di(e);s&&s instanceof Ri&&(s.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){const r=Di(e);r&&r instanceof Ri&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=Di(e);n&&n instanceof Ri&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=Di(e);n&&n instanceof Ri&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,r){const s=Di(e);s&&s instanceof Ri&&(s.styles[t]=n),this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){const r=Di(e);r&&r instanceof Ri&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const r=Di(e);r&&r instanceof Ri&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const r=Di(e);r&&r.listeners.push(new Ni(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 la(e,t,n){return new ua(e,t,n)}class ua extends rn{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){!function(){if(To)return;To=!0;const e=ot()?{setCurrentNode:Wo,createRootView:ko,createEmbeddedView:Io,createComponentView:No,createNgModuleRef:Po,overrideProvider:Fo,overrideComponentView:Vo,clearOverrides:Mo,checkAndUpdateView:$o,checkNoChangesView:Ho,destroyView:zo,createDebugContext:(e,t)=>new na(e,t),handleEvent:Ko,updateDirectives:Zo,updateRenderer:Yo}:{setCurrentNode:()=>{},createRootView:xo,createEmbeddedView:io,createComponentView:ao,createNgModuleRef:Yr,overrideProvider:Qn,overrideComponentView:Qn,clearOverrides:Qn,checkAndUpdateView:po,checkNoChangesView:ho,destroyView:_o,createDebugContext:(e,t)=>new na(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?Uo:jo,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?Uo:jo,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=ys,Gn.createDebugContext=e.createDebugContext,Gn.handleEvent=e.handleEvent,Gn.updateDirectives=e.updateDirectives,Gn.updateRenderer=e.updateRenderer,Gn.dirtyParentQueries=Wi}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const s in e.providersByKey)r[s]=e.providersByKey[s];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(mr(this._ngModuleDefFactory));return Gn.createNgModuleRef(this.moduleType,e||ze.NULL,this._bootstrapComponents,t)}}class ca{constructor(){}ngOnInit(){}}class ha{}const da=new Te("Location Initialized");class pa{}const fa=new Te("appBaseHref");let ma=(()=>{class e{constructor(t,n){this._subject=new Is,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=e.stripTrailingSlash(ga(r)),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,ga(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(t,n="",r=null){this._platformStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),r)}replaceState(t,n="",r=null){this._platformStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+e.normalizeQueryParams(n)),r)}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 ga(e){return e.replace(/\/index.html$/,"")}let ya=(()=>(class extends pa{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=ma.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let s=this.prepareExternalUrl(n+ma.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){let s=this.prepareExternalUrl(n+ma.normalizeQueryParams(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}))(),_a=(()=>(class extends pa{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 ma.joinWithSlash(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+ma.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const s=this.prepareExternalUrl(n+ma.normalizeQueryParams(r));this._platformLocation.pushState(e,t,s)}replaceState(e,t,n,r){const s=this.prepareExternalUrl(n+ma.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}))();const va=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}(),wa=new Te("UseV4Plurals");class ba{}let Sa=(()=>(class extends ba{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 function(e){const t=e.toLowerCase().replace(/_/g,"-");let n=Es[t];if(n)return n;const r=t.split("-")[0];if(n=Es[r])return n;if("en"===r)return ks;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[Ts.PluralCase]}(t||this.locale)(e)){case va.Zero:return"zero";case va.One:return"one";case va.Two:return"two";case va.Few:return"few";case va.Many:return"many";default:return"other"}}}))();function Ca(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,s]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}class Ea{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}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 Ta=(()=>(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){ot()&&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,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Ea(null,this._ngForOf,-1,-1),r),s=new xa(e,n);t.push(s)}else if(null==r)this._viewContainer.remove(n);else{const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new xa(e,s);t.push(i)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=r,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 xa{constructor(e,t){this.record=e,this.view=t}}let ka=(()=>(class{constructor(e,t){this._viewContainer=e,this._context=new Aa,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){Ia("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Ia("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 Aa{constructor(){this.$implicit=null,this.ngIf=null}}function Ia(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ge(t)}'.`)}let Na=(()=>(class{}))();const Pa=new Te("DocumentToken");let Ra=(()=>{class e{}return e.ngInjectableDef=pe({token:e,providedIn:"root",factory:()=>new Oa(Le(Pa),window,Le(Ft))}),e})();class Oa{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,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}let Da=null;function Fa(){return Da}class Va{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class Ma extends Va{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 La={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Ua=3,ja={"\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"},$a={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"},Ha=(()=>{if(Ee.Node)return Ee.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class za extends Ma{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new za,Da||(Da=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 La}contains(e,t){return Ha.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 r=0;r<t.length;r++)n[r]=t[r];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 r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}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 r=this.getStyle(e,t)||"";return n?r==n:r.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r);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,r){e.setAttributeNS(t,n,r)}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(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),e.location===Ua&&$a.hasOwnProperty(t)&&(t=$a[t]))}return ja[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.getAttribute("href"):null;return null==t?null:(n=t,Ba||(Ba=document.createElement("a")),Ba.setAttribute("href",n),"/"===Ba.pathname.charAt(0)?Ba.pathname:"/"+Ba.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 Ca(document.cookie,e)}setCookie(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)}}let Ba,qa=null;function Ga(){return!!window.history.pushState}let Qa=(()=>{class e extends ha{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=Fa().getLocation(),this._history=Fa().getHistory()}getBaseHrefFromDOM(){return Fa().getBaseHref(this._doc)}onPopState(e){Fa().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){Fa().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){Ga()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){Ga()?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:[Pa]}]}],e})();const Wa=new Te("TRANSITION_ID"),Ka=[{provide:Rs,useFactory:function(e,t,n){return()=>{n.get(Os).donePromise.then(()=>{const n=Fa();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Wa,Pa,ze],multi:!0}];class Za{static init(){var e;e=new Za,mi=e}addToWindow(e){Ee.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ee.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ee.getAllAngularRootElements=()=>e.getAllRootElements(),Ee.frameworkStabilizers||(Ee.frameworkStabilizers=[]),Ee.frameworkStabilizers.push(e=>{const t=Ee.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(s)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?Fa().isShadowRoot(t)?this.findTestabilityInTree(e,Fa().getHost(t),!0):this.findTestabilityInTree(e,Fa().parentElement(t),!0):null}}function Ya(e,t){"undefined"!=typeof COMPILED&&COMPILED||((Ee.ng=Ee.ng||{})[e]=t)}const Xa=(()=>({ApplicationRef:Ci,NgZone:si}))();function Ja(e){return Di(e)}const el=new Te("EventManagerPlugins");let tl=(()=>(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 r=0;r<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error(`No event manager plugin found for event ${e}`)}}))();class nl{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=Fa().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}let rl=(()=>(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)}}))(),sl=(()=>(class extends rl{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=>Fa().remove(e))}}))();const il={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/"},ol=/%COMP%/g,al="_nghost-%COMP%",ll="_ngcontent-%COMP%";function ul(e,t,n){for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?ul(e,s,n):(s=s.replace(ol,e),n.push(s))}return n}function cl(e){return t=>{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let hl=(()=>(class{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new dl(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case nt.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new ml(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case nt.Native:case nt.ShadowDom:return new gl(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=ul(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}))();class dl{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(il[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,r){if(r){t=r+":"+t;const s=il[r];s?e.setAttributeNS(s,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=il[n];r?e.removeAttributeNS(r,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,r){r&cn.DashCase?e.style.setProperty(t,n,r&cn.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&cn.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){fl(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return fl(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,cl(n)):this.eventManager.addEventListener(e,t,cl(n))}}const pl=(()=>"@".charCodeAt(0))();function fl(e,t){if(e.charCodeAt(0)===pl)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class ml extends dl{constructor(e,t,n,r){super(e),this.component=n;const s=ul(r+"-"+n.id,n.styles,[]);t.addStyles(s),this.contentAttr=ll.replace(ol,r+"-"+n.id),this.hostAttr=function(e){return al.replace(ol,e)}(r+"-"+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 gl extends dl{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===nt.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=ul(r.id,r.styles,[]);for(let i=0;i<s.length;i++){const e=document.createElement("style");e.textContent=s[i],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 yl=(()=>"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),_l=yl("addEventListener"),vl=yl("removeEventListener"),wl={},bl="__zone_symbol__propagationStopped",Sl=(()=>{const e="undefined"!=typeof Zone&&Zone[yl("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),Cl=function(e){return!!Sl&&Sl.hasOwnProperty(e)},El=function(e){const t=wl[e.type];if(!t)return;const n=this[t];if(!n)return;const r=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}{const t=n.slice();for(let n=0;n<t.length&&!0!==e[bl];n++){const e=t[n];e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}}};let Tl=(()=>(class extends nl{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[bl]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let r=n;if(!e[_l]||si.isInAngularZone()&&!Cl(t))e.addEventListener(t,r,!1);else{let n=wl[t];n||(n=wl[t]=yl("ANGULAR"+t+"FALSE"));let s=e[n];const i=s&&s.length>0;s||(s=e[n]=[]);const o=Cl(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:o,handler:r});else{let e=!1;for(let t=0;t<s.length;t++)if(s[t].handler===r){e=!0;break}e||s.push({zone:o,handler:r})}i||e[_l](t,El,!1)}return()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[vl];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);let s=wl[t],i=s&&e[s];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);let o=!1;for(let a=0;a<i.length;a++)if(i[a].handler===n){o=!0,i.splice(a,1);break}o?0===i.length&&r.apply(e,[t,El,!1]):e.removeEventListener.apply(e,[t,n,!1])}}))();const xl={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},kl=new Te("HammerGestureConfig"),Al=new Te("HammerLoader");let Il=(()=>(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}}))(),Nl=(()=>(class extends nl{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!xl.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 r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let r=!1,s=()=>{r=!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=()=>{});r||(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 r.runOutsideAngular(()=>{const s=this._config.buildHammer(e),i=function(e){r.runGuarded((function(){n(e)}))};return s.on(t,i),()=>{s.off(t,i),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}))();const Pl=["alt","control","meta","shift"],Rl={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Ol=(()=>{class e extends nl{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const s=e.parseEventName(n),i=e.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Fa().onAndCancel(t,s.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=e._normalizeKey(n.pop());let i="";if(Pl.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(e){let t="",n=Fa().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Pl.forEach(r=>{r!=n&&(0,Rl[r])(e)&&(t+=r+".")}),t+=n}static eventCallback(t,n,r){return s=>{e.getEventFullKey(s)===t&&r.runGuarded(()=>n(s))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e})();class Dl{}let Fl=(()=>(class extends Dl{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case At.NONE:return t;case At.HTML:return t instanceof Ml?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{xt=xt||new at(e);let r=t?String(t):"";n=xt.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=xt.getInertBodyElement(r)}while(r!==i);const o=new St,a=o.sanitizeChildren(kt(n)||n);return ot()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=kt(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case At.STYLE:return t instanceof Ll?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(Pt);return t&&ct(t[1])===t[1]||e.match(Nt)&&function(e){let t=!0,n=!0;for(let r=0;r<e.length;r++){const s=e.charAt(r);"'"===s&&n?t=!t:'"'===s&&t&&(n=!n)}return t&&n}(e)?e:(ot()&&console.warn(`WARNING: sanitizing unsafe style value ${e} (see http://g.co/ng/security#xss).`),"unsafe")}(t));case At.SCRIPT:if(t instanceof Ul)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case At.URL:return t instanceof $l||t instanceof jl?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),ct(String(t)));case At.RESOURCE_URL:if(t instanceof $l)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 Vl)throw new Error(`Required a safe ${t}, got a ${e.getTypeName()} `+"(see http://g.co/ng/security#xss)")}bypassSecurityTrustHtml(e){return new Ml(e)}bypassSecurityTrustStyle(e){return new Ll(e)}bypassSecurityTrustScript(e){return new Ul(e)}bypassSecurityTrustUrl(e){return new jl(e)}bypassSecurityTrustResourceUrl(e){return new $l(e)}}))();class Vl{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class Ml extends Vl{getTypeName(){return"HTML"}}class Ll extends Vl{getTypeName(){return"Style"}}class Ul extends Vl{getTypeName(){return"Script"}}class jl extends Vl{getTypeName(){return"URL"}}class $l extends Vl{getTypeName(){return"ResourceURL"}}const Hl=vi(Vi,"browser",[{provide:Ls,useValue:"browser"},{provide:Ms,useValue:function(){za.makeCurrent(),Za.init()},multi:!0},{provide:ha,useClass:Qa,deps:[Pa]},{provide:Pa,useFactory:function(){return document},deps:[]}]);function zl(){return new Ft}let Bl=(()=>{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:Ds,useValue:t.appId},{provide:Wa,useExisting:Ds},Ka]}}}return e})();"undefined"!=typeof window&&window;const ql=new b(e=>e.complete());function Gl(e){return e?function(e){return new b(t=>e.schedule(()=>t.complete()))}(e):ql}class Ql extends ${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 r=0;r<n;r++){const e=j(this,t[r],null,r);e&&this.add(e)}}notifyNext(e,t,n,r,s){this.values[n]=t,s._hasValue||(s._hasValue=!0,this.haveValues++)}notifyComplete(e){const{destination:t,haveValues:n,values:r}=this,s=r.length;e._hasValue?(this.completed++,this.completed===s&&(n===s&&t.next(r),t.complete())):t.complete()}}class Wl{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 Kl extends Wl{get formDirective(){return null}get path(){return null}}let Zl=(()=>(class extends class{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}}{constructor(e){super(e)}}))();function Yl(e){return null==e||0===e.length}const Xl=/^(?=.{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 Jl{static min(e){return t=>{if(Yl(t.value)||Yl(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(Yl(t.value)||Yl(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return Yl(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return Yl(e.value)?null:Xl.test(e.value)?null:{email:!0}}static minLength(e){return t=>{if(Yl(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 Jl.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(Yl(e.value))return null;const r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(eu);return 0==t.length?null:function(e){return nu(function(e,t){return t.map(t=>t(e))}(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(eu);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&&l(t[0])&&(t=t[0]),0===t.length?ql:n?e(t).pipe(H(e=>n(...e))):new b(e=>new Ql(e,t))}(function(e,t){return t.map(t=>t(e))}(e,t).map(tu)).pipe(H(nu))}}}function eu(e){return null!=e}function tu(e){const t=qt(e)?G(e):e;if(!Gt(t))throw new Error("Expected validator to return Promise or Observable.");return t}function nu(e){const t=e.reduce((e,t)=>null!=t?Object.assign({},e,t):e,{});return 0===Object.keys(t).length?null:t}function ru(e){return e.validate?t=>e.validate(t):e}function su(e){return e.validate?t=>e.validate(t):e}let iu=(()=>(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}}))();const ou='\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    });',au='\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    });',lu='\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    });',uu='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>';function cu(e,t){e||fu(t,"Cannot find control with"),t.valueAccessor||fu(t,"No value accessor for form control with"),e.validator=Jl.compose([e.validator,t.validator]),e.asyncValidator=Jl.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&&hu(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&&hu(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 hu(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function du(e,t){null==e&&fu(t,"Cannot find control with"),e.validator=Jl.compose([e.validator,t.validator]),e.asyncValidator=Jl.composeAsync([e.asyncValidator,t.asyncValidator])}function pu(e){return fu(e,"There is no FormControl instance attached to form control element with")}function fu(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 mu(e){return null!=e?Jl.compose(e.map(ru)):null}function gu(e){return null!=e?Jl.composeAsync(e.map(su)):null}function yu(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function _u(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const vu="VALID",wu="INVALID",bu="PENDING",Su="DISABLED";function Cu(e){const t=Tu(e)?e.validators:e;return Array.isArray(t)?mu(t):t||null}function Eu(e,t){const n=Tu(t)?t.asyncValidators:e;return Array.isArray(n)?gu(n):n||null}function Tu(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class xu{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===vu}get invalid(){return this.status===wu}get pending(){return this.status==bu}get disabled(){return this.status===Su}get enabled(){return this.status!==Su}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=Cu(e)}setAsyncValidators(e){this.asyncValidator=Eu(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=bu,!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=Su,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=vu,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!==vu&&this.status!==bu||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()?Su:vu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=bu;const t=tu(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 Au?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Iu&&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 Is,this.statusChanges=new Is}_calculateStatus(){return this._allControlsDisabled()?Su:this.errors?wu:this._anyControlsHaveStatus(bu)?bu:this._anyControlsHaveStatus(wu)?wu:vu}_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){Tu(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class ku extends xu{constructor(e=null,t,n){super(Cu(t),Eu(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 Au extends xu{constructor(e,t,n){super(Cu(t),Eu(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,r)=>{n.reset(e[r],{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 ku?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,r)=>{t=t||this.contains(r)&&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,r)=>{n=t(n,e,r)}),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 Iu extends xu{constructor(e,t,n){super(Cu(t),Eu(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,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof ku?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 Nu=(()=>Promise.resolve(null))();let Pu=(()=>(class extends Kl{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Is,this.form=new Au({},mu(e),gu(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Nu.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),cu(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Nu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),_u(this._directives,e)})}addFormGroup(e){Nu.then(()=>{const t=this._findContainer(e.path),n=new Au({});du(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Nu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Nu.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,yu(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}}))();const Ru=new Te("NgFormSelectorWarning");let Ou=(()=>(class{}))();const Du=new Te("NgModelWithFormControlWarning");let Fu=(()=>(class extends Kl{constructor(e,t){super(),this._validators=e,this._asyncValidators=t,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new Is}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 cu(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){_u(this.directives,e)}addFormGroup(e){const t=this.form.get(e.path);du(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);du(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,yu(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(()=>pu(t)),t.valueAccessor.registerOnTouched(()=>pu(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&&cu(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=mu(this._validators);this.form.validator=Jl.compose([this.form.validator,e]);const t=gu(this._asyncValidators);this.form.asyncValidator=Jl.composeAsync([this.form.asyncValidator,t])}_checkFormPresent(){this.form||class{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      ${ou}`)}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        ${au}\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        ${uu}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       ${ou}`)}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      ${au}`)}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        ${lu}`)}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    `)}}.missingFormException()}}))(),Vu=(()=>(class{}))(),Mu=(()=>(class{group(e,t=null){const n=this._reduceControls(e);let r=null,s=null,i=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(r=null!=t.validators?t.validators:null,s=null!=t.asyncValidators?t.asyncValidators:null,i=null!=t.updateOn?t.updateOn:void 0):(r=null!=t.validator?t.validator:null,s=null!=t.asyncValidator?t.asyncValidator:null)),new Au(n,{asyncValidators:s,updateOn:i,validators:r})}control(e,t,n){return new ku(e,t,n)}array(e,t,n){const r=e.map(e=>this._createControl(e));return new Iu(r,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof ku||e instanceof Au||e instanceof Iu?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}))(),Lu=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ru,useValue:t.warnOnDeprecatedNgFormSelector}]}}}return e})(),Uu=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Du,useValue:t.warnOnNgModelWithFormControl}]}}}return e})();class ju{}class $u{constructor(e,t,n,r){this.http=e,this.router=t,this.route=n,this.fb=r,this.prices=new Array,this.showSuccess=!1,this.showError=!1,this.CustomerControl=new ku,this.PalletsControl=new ku,this.BoxesControl=new ku,this.createForm()}ngOnInit(){}createForm(){this.palletform=this.fb.group({name:["",Jl.required],bulkpalletlist:null}),this.boxform=this.fb.group({name:["",Jl.required],bulkboxlist:null})}fileChange(e,t,n){let r=new FileReader;if(e.target.files&&e.target.files.length>0){let s=e.target.files[0];r.readAsDataURL(s),r.onload=()=>{n.get(t).setValue({filename:s.name,filetype:s.type,value:r.result})}}}uploadFile(e,t,n,r){var s=new ju;s.filename=e,s.filetype="CSV",this.http.post(t,r).toPromise().then(()=>{this.palletuploading=!1,this.boxuploading=!1,this.http.post(n,s).toPromise().then(()=>{})})}OnUploadPalletFile(){this.palletform.value.bulkpalletlist.filename="bulk-pallet-upload-"+this.palletform.value.bulkpalletlist.filename,this.palletuploading=!0,this.uploadFile(this.palletform.value.bulkpalletlist.filename,"/api/AwsStorage/UploadFile/","/api/PalletBulkImport/UpdateAsync",this.palletform.value.bulkpalletlist)}OnUploadBoxFile(){this.boxform.value.bulkboxlist.filename="bulk-box-upload-"+this.boxform.value.bulkboxlist.filename,this.boxuploading=!0,this.uploadFile(this.boxform.value.bulkboxlist.filename,"/api/AwsStorage/UploadFile/","/api/BoxBulkImport/UpdateAsync",this.boxform.value.bulkboxlist)}onPalletFileChange(e){this.fileChange(e,"bulkpalletlist",this.palletform)}onBoxFileChange(e){this.fileChange(e,"bulkboxlist",this.boxform)}}function Hu(e){const t=new b(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function zu(...e){let t=e[e.length-1];switch(I(t)?e.pop():t=void 0,e.length){case 0:return Gl(t);case 1:return t?q(e,t):Hu(e[0]);default:return q(e,t)}}class Bu extends k{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 qu(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}qu.prototype=Object.create(Error.prototype);const Gu=qu,Qu={};class Wu{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new Ku(e,this.resultSelector))}}class Ku extends ${constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(Qu),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(j(this,t,t,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n,r,s){const i=this.values,o=this.toRespond?i[n]===Qu?--this.toRespond:this.toRespond:0;i[n]=t,0===o&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.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 Zu(e){return new b(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?G(n):Gl()).subscribe(t)})}function Yu(){return Y(1)}function Xu(e,t){return function(n){return n.lift(new Ju(e,t))}}class Ju{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new ec(e,this.predicate,this.thisArg))}}class ec extends m{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 tc(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}tc.prototype=Object.create(Error.prototype);const nc=tc;function rc(e){return function(t){return 0===e?Gl():t.lift(new sc(e))}}class sc{constructor(e){if(this.total=e,this.total<0)throw new nc}call(e,t){return t.subscribe(new ic(e,this.total))}}class ic extends m{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;s<n;s++){const s=t++%n;e.next(r[s])}}e.complete()}}function oc(e,t,n){return function(r){return r.lift(new ac(e,t,n))}}class ac{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new lc(e,this.nextOrObserver,this.error,this.complete))}}class lc extends m{constructor(e,t,n,s){super(e),this._tapNext=_,this._tapError=_,this._tapComplete=_,this._tapError=n||_,this._tapComplete=s||_,r(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||_,this._tapError=t.error||_,this._tapComplete=t.complete||_)}_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 uc=(e=cc)=>oc({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw e()}});function cc(){return new Gu}function hc(e=null){return t=>t.lift(new dc(e))}class dc{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new pc(e,this.defaultValue))}}class pc extends m{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 fc(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Xu((t,n)=>e(t,n,r)):Z,rc(1),n?hc(t):uc(()=>new Gu))}function mc(e){return function(t){const n=new gc(e),r=t.lift(n);return n.caught=r}}class gc{constructor(e){this.selector=e}call(e,t){return t.subscribe(new yc(e,this.selector,this.caught))}}class yc extends ${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 r=new N(this,void 0,void 0);this.add(r),j(this,n,void 0,void 0,r)}}}function _c(e){return t=>0===e?Gl():t.lift(new vc(e))}class vc{constructor(e){if(this.total=e,this.total<0)throw new nc}call(e,t){return t.subscribe(new wc(e,this.total))}}class wc extends m{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 bc(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Xu((t,n)=>e(t,n,r)):Z,_c(1),n?hc(t):uc(()=>new Gu))}class Sc{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new Cc(e,this.predicate,this.thisArg,this.source))}}class Cc extends m{constructor(e,t,n,r){super(e),this.predicate=t,this.thisArg=n,this.source=r,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 Ec(e,t){return"function"==typeof t?n=>n.pipe(Ec((n,r)=>G(e(n,r)).pipe(H((e,s)=>t(n,e,r,s))))):t=>t.lift(new Tc(e))}class Tc{constructor(e){this.project=e}call(e,t){return t.subscribe(new xc(e,this.project))}}class xc extends ${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(r){return void this.destination.error(r)}this._innerSub(t,e,n)}_innerSub(e,t,n){const r=this.innerSubscription;r&&r.unsubscribe();const s=new N(this,void 0,void 0);this.destination.add(s),this.innerSubscription=j(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,r,s){this.destination.next(t)}}function kc(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Ac(e,t,n))}}class Ac{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new Ic(e,this.accumulator,this.seed,this.hasSeed))}}class Ic extends m{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,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(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}function Nc(e,t){return Q(e,t,1)}class Pc{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Rc(e,this.callback))}}class Rc extends m{constructor(e,t){super(e),this.add(new d(t))}}class Oc{constructor(e,t){this.id=e,this.url=t}}class Dc extends Oc{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Fc extends Oc{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Vc extends Oc{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Mc extends Oc{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Lc extends Oc{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Uc extends Oc{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jc extends Oc{constructor(e,t,n,r,s){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class $c extends Oc{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hc extends Oc{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zc{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Bc{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class qc{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gc{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qc{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wc{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kc{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 Zc=(()=>(class{}))();const Yc="primary";class Xc{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 Jc(e){return new Xc(e)}const eh="ngNavigationCancelingError";function th(e){const t=Error("NavigationCancelingError: "+e);return t[eh]=!0,t}function nh(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const s={};for(let i=0;i<r.length;i++){const t=r[i],n=e[i];if(t.startsWith(":"))s[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,r.length),posParams:s}}class rh{constructor(e,t){this.routes=e,this.module=t}}function sh(e,t=""){for(let n=0;n<e.length;n++){const r=e[n];ih(r,oh(t,r))}}function ih(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!==Yc)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&&sh(e.children,t)}function oh(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function ah(e){const t=e.children&&e.children.map(ah),n=t?Object.assign({},e,{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==Yc&&(n.component=Zc),n}function lh(e,t){const n=Object.keys(e),r=Object.keys(t);if(!n||!r||n.length!=r.length)return!1;let s;for(let i=0;i<n.length;i++)if(e[s=n[i]]!==t[s])return!1;return!0}function uh(e){return Array.prototype.concat.apply([],e)}function ch(e){return e.length>0?e[e.length-1]:null}function hh(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function dh(e){return Gt(e)?e:qt(e)?G(Promise.resolve(e)):zu(e)}function ph(e,t,n){return n?function(e,t){return lh(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!yh(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))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,r,s){if(n.segments.length>s.length)return!!yh(n.segments.slice(0,s.length),s)&&!r.hasChildren();if(n.segments.length===s.length){if(!yh(n.segments,s))return!1;for(const t in r.children){if(!n.children[t])return!1;if(!e(n.children[t],r.children[t]))return!1}return!0}{const e=s.slice(0,n.segments.length),i=s.slice(n.segments.length);return!!yh(n.segments,e)&&!!n.children[Yc]&&t(n.children[Yc],r,i)}}(t,n,n.segments)}(e.root,t.root)}class fh{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Jc(this.queryParams)),this._queryParamMap}toString(){return bh.serialize(this)}}class mh{constructor(e,t){this.segments=e,this.children=t,this.parent=null,hh(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Sh(this)}}class gh{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Jc(this.parameters)),this._parameterMap}toString(){return Ah(this)}}function yh(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function _h(e,t){let n=[];return hh(e.children,(e,r)=>{r===Yc&&(n=n.concat(t(e,r)))}),hh(e.children,(e,r)=>{r!==Yc&&(n=n.concat(t(e,r)))}),n}class vh{}class wh{parse(e){const t=new Oh(e);return new fh(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`${`/${function e(t,n){if(!t.hasChildren())return Sh(t);if(n){const n=t.children[Yc]?e(t.children[Yc],!1):"",r=[];return hh(t.children,(t,n)=>{n!==Yc&&r.push(`${n}:${e(t,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=_h(t,(n,r)=>r===Yc?[e(t.children[Yc],!1)]:[`${r}:${e(n,!1)}`]);return`${Sh(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=>`${Eh(t)}=${Eh(e)}`).join("&"):`${Eh(t)}=${Eh(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const bh=new wh;function Sh(e){return e.segments.map(e=>Ah(e)).join("/")}function Ch(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Eh(e){return Ch(e).replace(/%3B/gi,";")}function Th(e){return Ch(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xh(e){return decodeURIComponent(e)}function kh(e){return xh(e.replace(/\+/g,"%20"))}function Ah(e){return`${Th(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Th(e)}=${Th(t[e])}`).join("")}`;var t}const Ih=/^[^\/()?;=#]+/;function Nh(e){const t=e.match(Ih);return t?t[0]:""}const Ph=/^[^=?&#]+/,Rh=/^[^?&#]+/;class Oh{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new mh([],{}):new mh([],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[Yc]=new mh(e,t)),n}parseSegment(){const e=Nh(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new gh(xh(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Nh(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Nh(this.remaining);e&&this.capture(n=e)}e[xh(t)]=xh(n)}parseQueryParam(e){const t=function(e){const t=e.match(Ph);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(Rh);return t?t[0]:""}(this.remaining);e&&this.capture(n=e)}const r=kh(t),s=kh(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(e[r]=t=[t]),t.push(s)}else e[r]=s}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Nh(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)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=Yc);const i=this.parseChildren();t[s]=1===Object.keys(i).length?i[Yc]:new mh([],i),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 Dh{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=Fh(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Fh(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Vh(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Vh(e,this._root).map(e=>e.value)}}function Fh(e,t){if(e===t.value)return t;for(const n of t.children){const t=Fh(e,n);if(t)return t}return null}function Vh(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Vh(e,n);if(r.length)return r.unshift(t),r}return[]}class Mh{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Lh(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Uh extends Dh{constructor(e,t){super(e),this.snapshot=t,qh(this,e)}toString(){return this.snapshot.toString()}}function jh(e,t){const n=function(e,t){const n=new zh([],{},{},"",{},Yc,t,null,e.root,-1,{});return new Bh("",new Mh(n,[]))}(e,t),r=new Bu([new gh("",{})]),s=new Bu({}),i=new Bu({}),o=new Bu({}),a=new Bu(""),l=new $h(r,s,o,a,i,Yc,t,n.root);return l.snapshot=n.root,new Uh(new Mh(l,[]),n)}class $h{constructor(e,t,n,r,s,i,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(H(e=>Jc(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(H(e=>Jc(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Hh(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}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(r))}class zh{constructor(e,t,n,r,s,i,o,a,l,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=l,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=Jc(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Jc(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Bh extends Dh{constructor(e,t){super(t),this.url=e,qh(this,t)}toString(){return Gh(this._root)}}function qh(e,t){t.value._routerState=e,t.children.forEach(t=>qh(e,t))}function Gh(e){const t=e.children.length>0?` { ${e.children.map(Gh).join(", ")} } `:"";return`${e.value}${t}`}function Qh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,lh(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),lh(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(!lh(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),lh(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Wh(e,t){var n,r;return lh(e.params,t.params)&&yh(n=e.url,r=t.url)&&n.every((e,t)=>lh(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||Wh(e.parent,t.parent))}function Kh(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Zh(e,t,n,r,s){let i={};return r&&hh(r,(e,t)=>{i[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new fh(n.root===e?t:function e(t,n,r){const s={};return hh(t.children,(t,i)=>{s[i]=t===n?r:e(t,n,r)}),new mh(t.segments,s)}(n.root,e,t),i,s)}class Yh{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Kh(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(r&&r!==ch(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Xh{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function Jh(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[Yc]:`${e}`}function ed(e,t,n){if(e||(e=new mh([],{})),0===e.segments.length&&e.hasChildren())return td(e,t,n);const r=function(e,t,n){let r=0,s=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;s<e.segments.length;){if(r>=n.length)return i;const t=e.segments[s],o=Jh(n[r]),a=r<n.length-1?n[r+1]:null;if(s>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!id(o,a,t))return i;r+=2}else{if(!id(o,{},t))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(e,t,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const t=new mh(e.segments.slice(0,r.pathIndex),{});return t.children[Yc]=new mh(e.segments.slice(r.pathIndex),e.children),td(t,0,s)}return r.match&&0===s.length?new mh(e.segments,{}):r.match&&!e.hasChildren()?nd(e,t,n):r.match?td(e,0,s):nd(e,t,n)}function td(e,t,n){if(0===n.length)return new mh(e.segments,{});{const r=function(e){return"object"!=typeof e[0]?{[Yc]:e}:void 0===e[0].outlets?{[Yc]:e}:e[0].outlets}(n),s={};return hh(r,(n,r)=>{null!==n&&(s[r]=ed(e.children[r],t,n))}),hh(e.children,(e,t)=>{void 0===r[t]&&(s[t]=e)}),new mh(e.segments,s)}}function nd(e,t,n){const r=e.segments.slice(0,t);let s=0;for(;s<n.length;){if("object"==typeof n[s]&&void 0!==n[s].outlets){const e=rd(n[s].outlets);return new mh(r,e)}if(0===s&&Kh(n[0])){r.push(new gh(e.segments[t].path,n[0])),s++;continue}const i=Jh(n[s]),o=s<n.length-1?n[s+1]:null;i&&o&&Kh(o)?(r.push(new gh(i,sd(o))),s+=2):(r.push(new gh(i,{})),s++)}return new mh(r,{})}function rd(e){const t={};return hh(e,(e,n)=>{null!==e&&(t[n]=nd(new mh([],{}),0,e))}),t}function sd(e){const t={};return hh(e,(e,n)=>t[n]=`${e}`),t}function id(e,t,n){return e==n.path&&lh(t,n.parameters)}const od=(e,t,n)=>H(r=>(new ad(t,r.targetRouterState,r.currentRouterState,n).activate(e),r));class ad{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Qh(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=Lh(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),hh(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(r===s)if(r.component){const s=n.getContext(r.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(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const r=Lh(e),s=e.value.component?n.children:t;hh(r,(e,t)=>this.deactivateRouteAndItsChildren(e,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=Lh(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new Wc(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Gc(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,s=t?t.value:null;if(Qh(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.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),ld(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}(r.snapshot),s=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=s,t.outlet&&t.outlet.activateWith(r,s),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function ld(e){Qh(e.value),e.children.forEach(ld)}function ud(e){return"function"==typeof e}function cd(e){return e instanceof fh}class hd{constructor(e){this.segmentGroup=e||null}}class dd{constructor(e){this.urlTree=e}}function pd(e){return new b(t=>t.error(new hd(e)))}function fd(e){return new b(t=>t.error(new dd(e)))}function md(e){return new b(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class gd{constructor(e,t,n,r,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(nn)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Yc).pipe(H(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(mc(e=>{if(e instanceof dd)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof hd)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,Yc).pipe(H(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(mc(e=>{if(e instanceof hd)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new mh([],{[Yc]:e}):e;return new fh(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(H(e=>new mh([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return zu({});const n=[],r=[],s={};return hh(e,(e,i)=>{const o=t(i,e).pipe(H(e=>s[i]=e));i===Yc?n.push(o):r.push(o)}),zu.apply(null,n.concat(r)).pipe(Yu(),fc(),H(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,s,i){return zu(...n).pipe(H(o=>this.expandSegmentAgainstRoute(e,t,n,o,r,s,i).pipe(mc(e=>{if(e instanceof hd)return zu(null);throw e}))),Yu(),bc(e=>!!e),mc((e,n)=>{if(e instanceof Gu||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,s))return zu(new mh([],{}));throw new hd(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,s,i,o){return wd(r)!==i?pd(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i):pd(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?fd(s):this.lineralizeSegments(n,s).pipe(Q(n=>{const s=new mh(n,{});return this.expandSegment(e,s,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:u}=yd(t,r,s);if(!o)return pd(t);const c=this.applyRedirectCommands(a,r.redirectTo,u);return r.redirectTo.startsWith("/")?fd(c):this.lineralizeSegments(r,c).pipe(Q(r=>this.expandSegment(e,t,n,r.concat(s.slice(l)),i,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(H(e=>(n._loadedConfig=e,new mh(r,{})))):zu(new mh(r,{}));const{matched:s,consumedSegments:i,lastChild:o}=yd(t,n,r);if(!s)return pd(t);const a=r.slice(o);return this.getChildConfig(e,n,r).pipe(Q(e=>{const n=e.module,r=e.routes,{segmentGroup:s,slicedSegments:o}=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some(n=>vd(e,t,n)&&wd(n)!==Yc)}(e,n,r)?{segmentGroup:_d(new mh(t,function(e,t){const n={};n[Yc]=t;for(const r of e)""===r.path&&wd(r)!==Yc&&(n[wd(r)]=new mh([],{}));return n}(r,new mh(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(n=>vd(e,t,n))}(e,n,r)?{segmentGroup:_d(new mh(e.segments,function(e,t,n,r){const s={};for(const i of n)vd(e,t,i)&&!r[wd(i)]&&(s[wd(i)]=new mh([],{}));return Object.assign({},r,s)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,i,a,r);return 0===o.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(H(e=>new mh(i,e))):0===r.length&&0===o.length?zu(new mh(i,{})):this.expandSegment(n,s,r,o,Yc,!0).pipe(H(e=>new mh(i.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?zu(new rh(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?zu(t._loadedConfig):function(e,t,n){const r=t.canLoad;return r&&0!==r.length?G(r).pipe(H(r=>{const s=e.get(r);let i;if(function(e){return e&&ud(e.canLoad)}(s))i=s.canLoad(t,n);else{if(!ud(s))throw new Error("Invalid CanLoad guard");i=s(t,n)}return dh(i)})).pipe(Yu(),(s=e=>!0===e,e=>e.lift(new Sc(s,void 0,e)))):zu(!0);var s}(e.injector,t,n).pipe(Q(n=>n?this.configLoader.load(e.injector,t).pipe(H(e=>(t._loadedConfig=e,e))):function(e){return new b(t=>t.error(th(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):zu(new rh([],e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return zu(n);if(r.numberOfChildren>1||!r.children[Yc])return md(e.redirectTo);r=r.children[Yc]}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const s=this.createSegmentGroup(e,t.root,n,r);return new fh(s,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return hh(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const s=e.substring(1);n[r]=t[s]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const s=this.createSegments(e,t.segments,n,r);let i={};return hh(t.children,(t,s)=>{i[s]=this.createSegmentGroup(e,t,n,r)}),new mh(s,i)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function yd(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 r=(t.matcher||nh)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function _d(e){if(1===e.numberOfChildren&&e.children[Yc]){const t=e.children[Yc];return new mh(e.segments.concat(t.segments),t.children)}return e}function vd(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function wd(e){return e.outlet||Yc}class bd{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Sd{constructor(e,t){this.component=e,this.route=t}}function Cd(e,t,n){const r=e._root;return function e(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=Lh(n);return t.children.forEach(t=>{!function(t,n,r,s,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=n?n.value:null,l=r?r.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!yh(e.url,t.url);case"pathParamsOrQueryParamsChange":return!yh(e.url,t.url)||!lh(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Wh(e,t)||!lh(e.queryParams,t.queryParams);case"paramsChange":default:return!Wh(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new bd(s)):(o.data=a.data,o._resolvedData=a._resolvedData),e(t,n,o.component?l?l.children:null:r,s,i),u&&i.canDeactivateChecks.push(new Sd(l&&l.outlet&&l.outlet.component||null,a))}else a&&Td(n,l,i),i.canActivateChecks.push(new bd(s)),e(t,null,o.component?l?l.children:null:r,s,i)}(t,o[t.value.outlet],r,s.concat([t.value]),i),delete o[t.value.outlet]}),hh(o,(e,t)=>Td(e,r.getContext(t),i)),i}(r,t?t._root:null,n,[r.value])}function Ed(e,t,n){const r=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(r?r.module.injector:n).get(e)}function Td(e,t,n){const r=Lh(e),s=e.value;hh(r,(e,r)=>{Td(e,s.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new Sd(s.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,s))}const xd=Symbol("INITIAL_VALUE");function kd(){return Ec(e=>(function(...e){let t=null,n=null;return I(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&l(e[0])&&(e=e[0]),q(e,n).lift(new Wu(t))})(...e.map(e=>e.pipe(_c(1),function(...e){return t=>{let n=e[e.length-1];I(n)?e.pop():n=null;const r=e.length;return function(...e){return Yu()(zu(...e))}(1!==r||n?r>0?q(e,n):Gl(n):Hu(e[0]),t)}}(xd)))).pipe(kc((e,t)=>{let n=!1;return t.reduce((e,r,s)=>{if(e!==xd)return e;if(r===xd&&(n=!0),!n){if(!1===r)return r;if(s===t.length-1||cd(r))return r}return e},e)},xd),Xu(e=>e!==xd),H(e=>cd(e)?e:!0===e),_c(1)))}function Ad(e,t){return null!==e&&t&&t(new Qc(e)),zu(!0)}function Id(e,t){return null!==e&&t&&t(new qc(e)),zu(!0)}function Nd(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?zu(r.map(r=>Zu(()=>{const s=Ed(r,t,n);let i;if(function(e){return e&&ud(e.canActivate)}(s))i=dh(s.canActivate(t,e));else{if(!ud(s))throw new Error("Invalid CanActivate guard");i=dh(s(t,e))}return i.pipe(bc())}))).pipe(kd()):zu(!0)}function Pd(e,t,n){const r=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=>Zu(()=>zu(t.guards.map(s=>{const i=Ed(s,t.node,n);let o;if(function(e){return e&&ud(e.canActivateChild)}(i))o=dh(i.canActivateChild(r,e));else{if(!ud(i))throw new Error("Invalid CanActivateChild guard");o=dh(i(r,e))}return o.pipe(bc())})).pipe(kd())));return zu(s).pipe(kd())}class Rd{}class Od{constructor(e,t,n,r,s,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const e=Vd(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,Yc),n=new zh([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Yc,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Mh(n,t),s=new Bh(this.url,r);return this.inheritParamsAndData(s._root),zu(s)}catch(e){return new b(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=Hh(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=_h(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("/"),r=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value})}(n),n.sort((e,t)=>e.value.outlet===Yc?-1:t.value.outlet===Yc?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,r){for(const i of e)try{return this.processSegmentAgainstRoute(i,t,n,r)}catch(s){if(!(s instanceof Rd))throw s}if(this.noLeftoversInUrl(t,n,r))return[];throw new Rd}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new Rd;if((e.outlet||Yc)!==r)throw new Rd;let s,i=[],o=[];if("**"===e.path){const i=n.length>0?ch(n).parameters:{};s=new zh(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ud(e),r,e.component,e,Dd(t),Fd(t)+n.length,jd(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Rd;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||nh)(n,e,t);if(!r)throw new Rd;const s={};hh(r.posParams,(e,t)=>{s[t]=e.path});const i=r.consumed.length>0?Object.assign({},s,r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(t,e,n);i=a.consumedSegments,o=n.slice(a.lastChild),s=new zh(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ud(e),r,e.component,e,Dd(t),Fd(t)+i.length,jd(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:u}=Vd(t,i,o,a,this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const e=this.processChildren(a,l);return[new Mh(s,e)]}if(0===a.length&&0===u.length)return[new Mh(s,[])];const c=this.processSegment(a,l,u,Yc);return[new Mh(s,c)]}}function Dd(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Fd(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Vd(e,t,n,r,s){if(n.length>0&&function(e,t,n){return n.some(n=>Md(e,t,n)&&Ld(n)!==Yc)}(e,n,r)){const s=new mh(t,function(e,t,n,r){const s={};s[Yc]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&Ld(i)!==Yc){const n=new mh([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,s[Ld(i)]=n}return s}(e,t,r,new mh(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=>Md(e,t,n))}(e,n,r)){const i=new mh(e.segments,function(e,t,n,r,s,i){const o={};for(const a of r)if(Md(e,n,a)&&!s[Ld(a)]){const n=new mh([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===i?e.segments.length:t.length,o[Ld(a)]=n}return Object.assign({},s,o)}(e,t,n,r,e.children,s));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}const i=new mh(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function Md(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Ld(e){return e.outlet||Yc}function Ud(e){return e.data||{}}function jd(e){return e.resolve||{}}function $d(e,t,n,r){const s=Ed(e,t,r);return dh(s.resolve?s.resolve(t,n):s(t,n))}function Hd(e){return function(t){return t.pipe(Ec(t=>{const n=e(t);return n?G(n).pipe(H(()=>t)):G([t])}))}}class zd{}class Bd{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const qd=new Te("ROUTES");class Gd{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(H(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new rh(uh(r.injector.get(qd)).map(ah),r)}))}loadModuleFactory(e){return"string"==typeof e?G(this.loader.load(e)):dh(e()).pipe(Q(e=>e instanceof rn?zu(e):G(this.compiler.compileModuleAsync(e))))}}class Qd{}class Wd{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function Kd(e){throw e}function Zd(e,t,n){return t.parse("/")}function Yd(e,t){return zu(null)}class Xd{constructor(e,t,n,r,s,i,o,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k,this.errorHandler=Kd,this.malformedUriErrorHandler=Zd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Yd,afterPreactivation:Yd},this.urlHandlingStrategy=new Wd,this.routeReuseStrategy=new Bd,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(nn),this.console=s.get(js);const l=s.get(si);this.isNgZoneEnabled=l instanceof si,this.resetConfig(a),this.currentUrlTree=new fh(new mh([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Gd(i,o,e=>this.triggerEvent(new zc(e)),e=>this.triggerEvent(new Bc(e))),this.routerState=jh(this.currentUrlTree,this.rootComponentType),this.transitions=new Bu({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(Xu(e=>0!==e.id),H(e=>Object.assign({},e,{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Ec(e=>{let n=!1,r=!1;return zu(e).pipe(oc(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}}),Ec(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return zu(e).pipe(Ec(e=>{const n=this.transitions.getValue();return t.next(new Dc(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?ql:[e]}),Ec(e=>Promise.resolve(e)),function(e,t,n,r){return function(s){return s.pipe(Ec(s=>(function(e,t,n,r,s){return new gd(e,t,n,r,s).apply()})(e,t,n,s.extractedUrl,r).pipe(H(e=>Object.assign({},s,{urlAfterRedirects:e})))))}}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),oc(e=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,s){return function(i){return i.pipe(Q(i=>(function(e,t,n,r,s="emptyOnly",i="legacy"){return new Od(e,t,n,r,s,i).recognize()})(e,t,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(H(e=>Object.assign({},i,{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),oc(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),oc(e=>{const n=new Lc(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:r,source:s,restoredState:i,extras:o}=e,a=new Dc(n,this.serializeUrl(r),s,i);t.next(a);const l=jh(r,this.rootComponentType).snapshot;return zu(Object.assign({},e,{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign({},o,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),ql}),Hd(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),oc(e=>{const t=new Uc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),H(e=>Object.assign({},e,{guards:Cd(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(Q(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return 0===o.length&&0===i.length?zu(Object.assign({},n,{guardsResult:!0})):function(e,t,n,r){return G(e).pipe(Q(e=>(function(e,t,n,r,s){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?zu(i.map(i=>{const o=Ed(i,t,s);let a;if(function(e){return e&&ud(e.canDeactivate)}(o))a=dh(o.canDeactivate(e,t,n,r));else{if(!ud(o))throw new Error("Invalid CanDeactivate guard");a=dh(o(e,t,n,r))}return a.pipe(bc())})).pipe(kd()):zu(!0)})(e.component,e.route,n,t,r)),bc(e=>!0!==e,!0))}(o,r,s,e).pipe(Q(n=>n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,r){return G(t).pipe(Nc(t=>G([Id(t.route.parent,r),Ad(t.route,r),Pd(e,t.path,n),Nd(e,t.route,n)]).pipe(Yu(),bc(e=>!0!==e,!0))),bc(e=>!0!==e,!0))}(r,i,e,t):zu(n)),H(e=>Object.assign({},n,{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),oc(e=>{if(cd(e.guardsResult)){const t=th(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),oc(e=>{const t=new jc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Xu(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Vc(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),Hd(e=>{if(e.guards.canActivateChecks.length)return zu(e).pipe(oc(e=>{const t=new $c(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),function(e,t){return function(n){return n.pipe(Q(n=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=n;return s.length?G(s).pipe(Nc(n=>(function(e,t,n,r){return function(e,t,n,r){const s=Object.keys(e);if(0===s.length)return zu({});if(1===s.length){const i=s[0];return $d(e[i],t,n,r).pipe(H(e=>({[i]:e})))}const i={};return G(s).pipe(Q(s=>$d(e[s],t,n,r).pipe(H(e=>(i[s]=e,e))))).pipe(fc(),H(()=>i))}(e._resolve,e,t,r).pipe(H(t=>(e._resolvedData=t,e.data=Object.assign({},e.data,Hh(e,n).resolve),null)))})(n.route,r,e,t)),function(e,t){return arguments.length>=2?function(n){return v(kc(e,t),rc(1),hc(t))(n)}:function(t){return v(kc((t,n,r)=>e(t,n,r+1)),rc(1))(t)}}((e,t)=>e),H(e=>n)):zu(n)}))}}(this.paramsInheritanceStrategy,this.ngModule.injector),oc(e=>{const t=new Hc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),Hd(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),H(e=>{const t=function(e,t,n){const r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){const s=r.value;s._futureSnapshot=n.value;const i=function(t,n,r){return n.children.map(n=>{for(const s of r.children)if(t.shouldReuseRoute(s.value.snapshot,n.value))return e(t,n,s);return e(t,n)})}(t,n,r);return new Mh(s,i)}{const r=t.retrieve(n.value);if(r){const e=r.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 r=0;r<t.children.length;++r)e(t.children[r],n.children[r])}(n,e),e}{const r=new $h(new Bu((s=n.value).url),new Bu(s.params),new Bu(s.queryParams),new Bu(s.fragment),new Bu(s.data),s.outlet,s.component,s),i=n.children.map(n=>e(t,n));return new Mh(r,i)}}var s}(e,t._root,n?n._root:void 0);return new Uh(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:t})}),oc(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)}),od(this.rootContexts,this.routeReuseStrategy,e=>this.triggerEvent(e)),oc({next(){n=!0},complete(){n=!0}}),function(e){return t=>t.lift(new Pc(e))}(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new Vc(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}),mc(n=>{if(r=!0,function(e){return e&&e[eh]}(n)){const r=cd(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const s=new Vc(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(s),e.resolve(!1),r&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new Mc(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}return ql}))}))}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",r=e.state&&e.state.navigationId?e.state:null;setTimeout(()=>{this.scheduleNavigation(t,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){sh(e),this.config=e.map(ah),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:r,fragment:s,preserveQueryParams:i,queryParamsHandling:o,preserveFragment:a}=t;ot()&&i&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,u=a?this.currentUrlTree.fragment:s;let c=null;if(o)switch(o){case"merge":c=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}else c=i?this.currentUrlTree.queryParams:r||null;return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,r,s){if(0===n.length)return Zh(t.root,t.root,t,r,s);const i=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Yh(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return hh(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new Yh(n,t,r)}(n);if(i.toRoot())return Zh(t.root,new mh([],{}),t,r,s);const o=function(e,t,n){if(e.isAbsolute)return new Xh(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Xh(n.snapshot._urlSegment,!0,0);const r=Kh(e.commands[0])?0:1;return function(e,t,n){let r=e,s=t,i=n;for(;i>s;){if(i-=s,!(r=r.parent))throw new Error("Invalid number of '../'");s=r.segments.length}return new Xh(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(i,t,e),a=o.processChildren?td(o.segmentGroup,o.index,i.commands):ed(o.segmentGroup,o.index,i.commands);return Zh(o.segmentGroup,a,t,r,s)}(l,this.currentUrlTree,e,c,u)}navigateByUrl(e,t={skipLocationChange:!1}){ot()&&this.isNgZoneEnabled&&!si.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=cd(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"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(cd(e))return ph(this.currentUrlTree,e,t);const n=this.parseUrl(e);return ph(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new Fc(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,r){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 i=null,o=null;const a=new Promise((e,t)=>{i=e,o=t}),l=++this.navigationId;return this.setTransition({id:l,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:i,reject:o,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const s=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(s)||t?this.location.replaceState(s,"",Object.assign({},r,{navigationId:n})):this.location.go(s,"",Object.assign({},r,{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})}}class Jd{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ep,this.attachRef=null}}class ep{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 Jd,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}let tp=(()=>(class{constructor(e,t,n,r,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Is,this.deactivateEvents=new Is,this.name=r||Yc,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),r=this.parentContexts.getOrCreateContext(this.name).children,s=new np(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}))();class np{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===$h?this.route:e===ep?this.childContexts:this.parent.get(e,t)}}class rp{}class sp{preload(e,t){return t().pipe(mc(()=>zu(null)))}}class ip{preload(e,t){return zu(null)}}let op=(()=>(class{constructor(e,t,n,r,s){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=new Gd(t,n,t=>e.triggerEvent(new zc(t)),t=>e.triggerEvent(new Bc(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Xu(e=>e instanceof Fc),Nc(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(nn);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return G(n).pipe(Y(),H(e=>void 0))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(Q(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}))();class ap{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 Dc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Fc&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Kc&&(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 Kc(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const lp=new Te("ROUTER_CONFIGURATION"),up=new Te("ROUTER_FORROOT_GUARD"),cp=[ma,{provide:vh,useClass:wh},{provide:Xd,useFactory:yp,deps:[Ci,vh,ep,ma,ze,Ti,Ks,qd,lp,[Qd,new le],[zd,new le]]},ep,{provide:$h,useFactory:_p,deps:[Xd]},{provide:Ti,useClass:Ai},op,ip,sp,{provide:lp,useValue:{enableTracing:!1}}];function hp(){return new _i("Router",Xd)}let dp=(()=>{class e{constructor(e,t){}static forRoot(t,n){return{ngModule:e,providers:[cp,gp(t),{provide:up,useFactory:mp,deps:[[Xd,new le,new ce]]},{provide:lp,useValue:n||{}},{provide:pa,useFactory:fp,deps:[ha,[new ae(fa),new le],lp]},{provide:ap,useFactory:pp,deps:[Xd,Ra,lp]},{provide:rp,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:ip},{provide:_i,multi:!0,useFactory:hp},[vp,{provide:Rs,multi:!0,useFactory:wp,deps:[vp]},{provide:Sp,useFactory:bp,deps:[vp]},{provide:Us,multi:!0,useExisting:Sp}]]}}static forChild(t){return{ngModule:e,providers:[gp(t)]}}}return e})();function pp(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new ap(e,t,n)}function fp(e,t,n={}){return n.useHash?new ya(e,t):new _a(e,t)}function mp(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function gp(e){return[{provide:tt,multi:!0,useValue:e},{provide:qd,multi:!0,useValue:e}]}function yp(e,t,n,r,s,i,o,a,l={},u,c){const h=new Xd(null,t,n,r,s,i,o,uh(a));if(u&&(h.urlHandlingStrategy=u),c&&(h.routeReuseStrategy=c),l.errorHandler&&(h.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(h.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){const e=Fa();h.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return l.onSameUrlNavigation&&(h.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(h.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(h.relativeLinkResolution=l.relativeLinkResolution),h}function _p(e){return e.routerState.root}let vp=(()=>(class{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new k}appInitializer(){return this.injector.get(da,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(Xd),r=this.injector.get(lp);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?zu(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(lp),n=this.injector.get(op),r=this.injector.get(ap),s=this.injector.get(Xd),i=this.injector.get(Ci);e===i.components[0]&&(this.isLegacyEnabled(t)?s.initialNavigation():this.isLegacyDisabled(t)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(i.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 wp(e){return e.appInitializer.bind(e)}function bp(e){return e.bootstrapListener.bind(e)}const Sp=new Te("Router Initializer");class Cp{}class Ep{}class Tp{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),r=n.toLowerCase(),s=e.slice(t+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}: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 Tp?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 Tp;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Tp?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 r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const s=e.value;if(s){let e=this.headers.get(t);if(!e)return;0===(e=e.filter(e=>-1===s.indexOf(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 xp{encodeKey(e){return kp(e)}encodeValue(e){return kp(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function kp(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 Ap{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new xp,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 r=e.indexOf("="),[s,i]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],o=n.get(s)||[];o.push(i),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 Ap({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 Ip(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Np(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Pp(e){return"undefined"!=typeof FormData&&e instanceof FormData}class Rp{constructor(e,t,n,r){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)||r?(this.body=void 0!==n?n:null,s=r):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 Tp),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 Ap,this.urlWithParams=t}serializeBody(){return null===this.body?null:Ip(this.body)||Np(this.body)||Pp(this.body)||"string"==typeof this.body?this.body:this.body instanceof Ap?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body?null:Pp(this.body)?null:Np(this.body)?this.body.type||null:Ip(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ap?"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,r=e.responseType||this.responseType,s=void 0!==e.body?e.body:this.body,i=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,o=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new Rp(t,n,s,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:i})}}const Op=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 Dp{constructor(e,t=200,n="OK"){this.headers=e.headers||new Tp,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 Fp extends Dp{constructor(e={}){super(e),this.type=Op.ResponseHeader}clone(e={}){return new Fp({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 Vp extends Dp{constructor(e={}){super(e),this.type=Op.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Vp({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 Mp extends Dp{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 Lp(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Up=(()=>(class{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof Rp)r=e;else{let s=void 0;s=n.headers instanceof Tp?n.headers:new Tp(n.headers);let i=void 0;n.params&&(i=n.params instanceof Ap?n.params:new Ap({fromObject:n.params})),r=new Rp(e,t,void 0!==n.body?n.body:null,{headers:s,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=zu(r).pipe(Nc(e=>this.handler.handle(e)));if(e instanceof Rp||"events"===n.observe)return s;const i=s.pipe(Xu(e=>e instanceof Vp));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return i.pipe(H(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return i.pipe(H(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return i.pipe(H(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return i.pipe(H(e=>e.body))}case"response":return i;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 Ap).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,Lp(n,t))}post(e,t,n={}){return this.request("POST",e,Lp(n,t))}put(e,t,n={}){return this.request("PUT",e,Lp(n,t))}}))();class jp{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const $p=new Te("HTTP_INTERCEPTORS");let Hp=(()=>(class{intercept(e,t){return t.handle(e)}}))();const zp=/^\)\]\}',?\n/;class Bp{}let qp=(()=>(class{constructor(){}build(){return new XMLHttpRequest}}))(),Gp=(()=>(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 b(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 r=e.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const t=1223===n.status?204:n.status,r=n.statusText||"OK",i=new Tp(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 Fp({headers:i,status:t,statusText:r,url:o})},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let u=s>=200&&s<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(zp,"");try{l=""!==l?JSON.parse(l):null}catch(c){l=e,u&&(u=!1,l={error:c,text:l})}}u?(t.next(new Vp({body:l,headers:r,status:s,statusText:o,url:a||void 0})),t.complete()):t.error(new Mp({error:l,headers:r,status:s,statusText:o,url:a||void 0}))},a=e=>{const{url:r}=i(),s=new Mp({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(s)};let l=!1;const u=r=>{l||(t.next(i()),l=!0);let s={type:Op.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===e.responseType&&n.responseText&&(s.partialText=n.responseText),t.next(s)},c=e=>{let n={type:Op.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),e.reportProgress&&(n.addEventListener("progress",u),null!==r&&n.upload&&n.upload.addEventListener("progress",c)),n.send(r),t.next({type:Op.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),e.reportProgress&&(n.removeEventListener("progress",u),null!==r&&n.upload&&n.upload.removeEventListener("progress",c)),n.abort()}})}}))();const Qp=new Te("XSRF_COOKIE_NAME"),Wp=new Te("XSRF_HEADER_NAME");class Kp{}let Zp=(()=>(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=Ca(e,this.cookieName),this.lastCookieString=e),this.lastToken}}))(),Yp=(()=>(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 r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}))(),Xp=(()=>(class{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get($p,[]);this.chain=e.reduceRight((e,t)=>new jp(e,t),this.backend)}return this.chain.handle(e)}}))(),Jp=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:Yp,useClass:Hp}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:Qp,useValue:t.cookieName}:[],t.headerName?{provide:Wp,useValue:t.headerName}:[]]}}}return e})(),ef=(()=>(class{}))(),tf=(()=>{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=pe({factory:function(){return new e(Le(Xd),Le(Up))},token:e,providedIn:"root"}),e})();class nf{}class rf{}class sf{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 rf;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 of{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 af=Xn({encapsulation:2,styles:[],data:{}});function lf(e){return no(0,[(e()(),zi(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),as(1,212992,null,0,tp,[ep,Dn,Jt,[8,null],kn],null,null)],(function(e,t){e(t,1,0)}),null)}function uf(e){return no(0,[(e()(),zi(0,0,null,null,1,"ng-component",[],null,null,null,lf,af)),as(1,49152,null,0,Zc,[],null,null)],null,null)}var cf=Mr("ng-component",Zc,uf,{},{},[]),hf=Xn({encapsulation:0,styles:[[""]],data:{}});function df(e){return no(0,[(e()(),zi(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 pf(e){return no(0,[(e()(),zi(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 ff(e){return no(0,[(e()(),zi(0,0,null,null,1,"a",[["class","btn btn-primary"],["href","/bulk-pallet-sample.csv"]],null,null,null,null,null)),(e()(),Ji(-1,null,["Download pallet bulk upload sample file"])),(e()(),zi(2,0,null,null,28,"table",[["class","table table-striped able-sm mt-2"]],null,null,null,null,null)),(e()(),zi(3,0,null,null,27,"thead",[],null,null,null,null,null)),(e()(),zi(4,0,null,null,26,"tr",[],null,null,null,null,null)),(e()(),zi(5,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["Pallet Number"])),(e()(),zi(7,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["Barcode"])),(e()(),zi(9,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["YarnType"])),(e()(),zi(11,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["Denier"])),(e()(),zi(13,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["Filament"])),(e()(),zi(15,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["BobbinSize"])),(e()(),zi(17,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["Lustre"])),(e()(),zi(19,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["Lot"])),(e()(),zi(21,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["Color"])),(e()(),zi(23,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["ColorCode"])),(e()(),zi(25,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["Intermingle"])),(e()(),zi(27,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["Weight"])),(e()(),zi(29,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["Price"])),(e()(),zi(31,0,null,null,15,"div",[["class"," box-header with-border"]],null,null,null,null,null)),(e()(),zi(32,0,null,null,14,"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 r=!0,s=e.component;return"submit"===t&&(r=!1!==Wr(e,34).onSubmit(n)&&r),"reset"===t&&(r=!1!==Wr(e,34).onReset()&&r),"ngSubmit"===t&&(r=!1!==s.OnUploadPalletFile()&&r),r}),null,null)),as(33,16384,null,0,Ou,[],null,null),as(34,540672,null,0,Fu,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),ls(2048,null,Kl,null,[Fu]),as(36,16384,null,0,Zl,[[4,Kl]],null,null),(e()(),zi(37,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Ji(-1,null,["Pallets"])),(e()(),zi(39,0,null,null,3,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),zi(40,0,null,null,1,"label",[["for","bulkpalletlist"]],null,null,null,null,null)),(e()(),Ji(-1,null,["Pallet list"])),(e()(),zi(42,0,null,null,0,"input",[["id","bulkpalletlist"],["type","file"]],null,[[null,"change"]],(function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.onPalletFileChange(n)&&r),r}),null,null)),(e()(),zi(43,0,null,null,3,"button",[["class","btn btn-success"],["type","submit"]],null,null,null,null,null)),(e()(),Ji(-1,null,["Upload "])),(e()(),Hi(16777216,null,null,1,null,df)),as(46,16384,null,0,ka,[Dn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),zi(47,0,null,null,1,"a",[["class","btn btn-primary"],["href","/bulk-box-sample.csv"]],null,null,null,null,null)),(e()(),Ji(-1,null,["Download box bulk upload sample file"])),(e()(),zi(49,0,null,null,8,"table",[["class","table table-striped able-sm mt-2"]],null,null,null,null,null)),(e()(),zi(50,0,null,null,7,"thead",[],null,null,null,null,null)),(e()(),zi(51,0,null,null,6,"tr",[],null,null,null,null,null)),(e()(),zi(52,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["Pallet Id"])),(e()(),zi(54,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["Barcode"])),(e()(),zi(56,0,null,null,1,"th",[],null,null,null,null,null)),(e()(),Ji(-1,null,["Weight"])),(e()(),zi(58,0,null,null,15,"div",[["class"," box-header with-border"]],null,null,null,null,null)),(e()(),zi(59,0,null,null,14,"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 r=!0,s=e.component;return"submit"===t&&(r=!1!==Wr(e,61).onSubmit(n)&&r),"reset"===t&&(r=!1!==Wr(e,61).onReset()&&r),"ngSubmit"===t&&(r=!1!==s.OnUploadBoxFile()&&r),r}),null,null)),as(60,16384,null,0,Ou,[],null,null),as(61,540672,null,0,Fu,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),ls(2048,null,Kl,null,[Fu]),as(63,16384,null,0,Zl,[[4,Kl]],null,null),(e()(),zi(64,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),Ji(-1,null,["Box"])),(e()(),zi(66,0,null,null,3,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),zi(67,0,null,null,1,"label",[["for","bulkboxlist"]],null,null,null,null,null)),(e()(),Ji(-1,null,["Box list"])),(e()(),zi(69,0,null,null,0,"input",[["id","bulkboxlist"],["type","file"]],null,[[null,"change"]],(function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.onBoxFileChange(n)&&r),r}),null,null)),(e()(),zi(70,0,null,null,3,"button",[["class","btn btn-success"],["type","submit"]],null,null,null,null,null)),(e()(),Ji(-1,null,["Upload "])),(e()(),Hi(16777216,null,null,1,null,pf)),as(73,16384,null,0,ka,[Dn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,34,0,n.palletform),e(t,46,0,n.palletuploading),e(t,61,0,n.boxform),e(t,73,0,n.boxuploading)}),(function(e,t){e(t,32,0,Wr(t,36).ngClassUntouched,Wr(t,36).ngClassTouched,Wr(t,36).ngClassPristine,Wr(t,36).ngClassDirty,Wr(t,36).ngClassValid,Wr(t,36).ngClassInvalid,Wr(t,36).ngClassPending),e(t,59,0,Wr(t,63).ngClassUntouched,Wr(t,63).ngClassTouched,Wr(t,63).ngClassPristine,Wr(t,63).ngClassDirty,Wr(t,63).ngClassValid,Wr(t,63).ngClassInvalid,Wr(t,63).ngClassPending)}))}function mf(e){return no(0,[(e()(),zi(0,0,null,null,1,"app-index",[],null,null,null,ff,hf)),as(1,114688,null,0,$u,[Up,Xd,$h,Mu],null,null)],(function(e,t){e(t,1,0)}),null)}var gf=Mr("app-index",$u,mf,{},{},[]),yf=Xn({encapsulation:0,styles:[[""]],data:{}});function _f(e){return no(0,[(e()(),zi(0,0,null,null,3,"section",[["class","content"]],null,null,null,null,null)),(e()(),zi(1,0,null,null,2,"div",[["class","box"]],null,null,null,null,null)),(e()(),zi(2,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),as(3,212992,null,0,tp,[ep,Dn,Jt,[8,null],kn],null,null)],(function(e,t){e(t,3,0)}),null)}function vf(e){return no(0,[(e()(),zi(0,0,null,null,1,"app-root",[],null,null,null,_f,yf)),as(1,114688,null,0,ca,[],null,null)],(function(e,t){e(t,1,0)}),null)}var wf=Mr("app-root",ca,vf,{},{},[]);let bf=(()=>{class e{constructor(){this.messageSource=new Bu(!1),this.currentMessage=this.messageSource.asObservable()}changeMessage(e){this.messageSource.next(e)}}return e.ngInjectableDef=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})();var Sf=Xn({encapsulation:0,styles:[[""]],data:{}});function Cf(e){return no(0,[(e()(),zi(0,0,null,null,2,"li",[["class","nav-item ml-3 mr-3 mt-1 mb-1"]],null,null,null,null,null)),(e()(),zi(1,0,null,null,1,"a",[["class","btn btn-dark w-100 text-left"]],[[8,"href",4]],null,null,null,null)),(e()(),Ji(2,null,[" "," "]))],null,(function(e,t){var n;e(t,1,0,""+(null!=(n=t.context.$implicit.Url)?n.toString():"")),e(t,2,0,t.context.$implicit.Text)}))}function Ef(e){return no(0,[(e()(),zi(0,0,null,null,3,"div",[["class","col-md d-md-block  sidebar-sticky sticky-top mt-4 "]],null,null,null,null,null)),(e()(),zi(1,0,null,null,2,"ul",[["class","nav flex-column"]],null,null,null,null,null)),(e()(),Hi(16777216,null,null,1,null,Cf)),as(3,278528,null,0,Ta,[Dn,Rn,Tn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,3,0,t.component.menus)}),null)}function Tf(e){return no(0,[(e()(),Hi(16777216,null,null,1,null,Ef)),as(1,16384,null,0,ka,[Dn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,1,0,t.component.toggleMenu)}),null)}function xf(e){return no(0,[(e()(),zi(0,0,null,null,1,"app-nav",[],null,null,null,Tf,Sf)),as(1,114688,null,0,sf,[bf,Up],null,null)],(function(e,t){e(t,1,0)}),null)}var kf=Mr("app-nav",sf,xf,{},{},[]),Af=Xn({encapsulation:0,styles:[[""]],data:{}});function If(e){return no(0,[(e()(),zi(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()(),zi(1,0,null,null,2,"button",[["class","navbar-brand btn d-none d-sm-block"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggle()&&r),r}),null,null)),(e()(),zi(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()(),zi(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()(),zi(4,0,null,null,1,"a",[["class","navbar-brand d-none d-sm-block"],["href","#"]],null,null,null,null,null)),(e()(),Ji(-1,null,["NewKi"])),(e()(),zi(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 r=!0;return"click"===t&&(r=!1!==e.component.toggle()&&r),r}),null,null)),(e()(),zi(7,0,null,null,0,"span",[["class","navbar-toggler-icon"]],null,null,null,null,null)),(e()(),zi(8,0,null,null,9,"ul",[["class","navbar-nav px-3 mr-0 ml-auto"]],null,null,null,null,null)),(e()(),zi(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 r=!0;return"submit"===t&&(r=!1!==Wr(e,11).onSubmit(n)&&r),"reset"===t&&(r=!1!==Wr(e,11).onReset()&&r),r}),null,null)),as(10,16384,null,0,Ou,[],null,null),as(11,4210688,null,0,Pu,[[8,null],[8,null]],null,null),ls(2048,null,Kl,null,[Pu]),as(13,16384,null,0,Zl,[[4,Kl]],null,null),(e()(),zi(14,0,null,null,3,"li",[["class","nav-item text-nowrap"]],null,null,null,null,null)),(e()(),zi(15,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),zi(16,0,null,null,1,"button",[["class","btn"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.signOut()&&r),r}),null,null)),(e()(),Ji(-1,null,["Sign out"]))],null,(function(e,t){e(t,9,0,Wr(t,13).ngClassUntouched,Wr(t,13).ngClassTouched,Wr(t,13).ngClassPristine,Wr(t,13).ngClassDirty,Wr(t,13).ngClassValid,Wr(t,13).ngClassInvalid,Wr(t,13).ngClassPending)}))}function Nf(e){return no(0,[(e()(),zi(0,0,null,null,1,"app-header",[],null,null,null,If,Af)),as(1,114688,null,0,of,[bf,Up],null,null)],(function(e,t){e(t,1,0)}),null)}var Pf=Mr("app-header",of,Nf,{},{},[]);class Rf{}class Of{}const Df="*";function Ff(e,t=null){return{type:2,steps:e,options:t}}function Vf(e){return{type:6,styles:e,offset:null}}function Mf(e){Promise.resolve(null).then(e)}class Lf{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(){Mf(()=>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 Uf{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,r=0;const s=this.players.length;0==s?Mf(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==s&&this._onFinish()}),e.onDestroy(()=>{++n==s&&this._onDestroy()}),e.onStart(()=>{++r==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 jf="!";function $f(){return"undefined"!=typeof process}function Hf(e){switch(e.length){case 0:return new Lf;case 1:return e[0];default:return new Uf(e)}}function zf(e,t,n,r,s={},i={}){const o=[],a=[];let l=-1,u=null;if(r.forEach(e=>{const n=e.offset,r=n==l,c=r&&u||{};Object.keys(e).forEach(n=>{let r=n,a=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,o),a){case jf:a=s[n];break;case Df:a=i[n];break;default:a=t.normalizeStyleValue(n,r,a,o)}c[r]=a}),r||a.push(c),u=c,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function Bf(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&qf(n,"start",e)));break;case"done":e.onDone(()=>r(n&&qf(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&qf(n,"destroy",e)))}}function qf(e,t,n){const r=n.totalTime,s=Gf(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),i=e._data;return null!=i&&(s._data=i),s}function Gf(e,t,n,r,s="",i=0,o){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:s,totalTime:i,disabled:!!o}}function Qf(e,t,n){let r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function Wf(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let Kf=(e,t)=>!1,Zf=(e,t)=>!1,Yf=(e,t,n)=>[];const Xf=$f();(Xf||"undefined"!=typeof Element)&&(Kf=(e,t)=>e.contains(t),Zf=(()=>{if(Xf||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]):Zf}})(),Yf=(e,t,n)=>{let r=[];if(n)r.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&r.push(n)}return r});let Jf=null,em=!1;function tm(e){Jf||(Jf=("undefined"!=typeof document?document.body:null)||{},em=!!Jf.style&&"WebkitAppearance"in Jf.style);let t=!0;return Jf.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in Jf.style)&&em&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Jf.style),t}const nm=Zf,rm=Kf,sm=Yf;function im(e){const t={};return Object.keys(e).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}let om=(()=>(class{validateStyleProperty(e){return tm(e)}matchesElement(e,t){return nm(e,t)}containsElement(e,t){return rm(e,t)}query(e,t,n){return sm(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,r,s,i=[],o){return new Lf(n,r)}}))(),am=(()=>{class e{}return e.NOOP=new om,e})();const lm=1e3,um="{{",cm="ng-enter",hm="ng-leave",dm="ng-trigger",pm=".ng-trigger",fm="ng-animating",mm=".ng-animating";function gm(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:ym(parseFloat(t[1]),t[2])}function ym(e,t){switch(t){case"s":return e*lm;default:return e}}function _m(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let r,s=0,i="";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:""};r=ym(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=ym(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else r=e;if(!n){let n=!1,i=t.length;r<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(i,0,`The provided timing value "${e}" is invalid.`)}return{duration:r,delay:s,easing:i}}(e,t,n)}function vm(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function wm(e,t,n={}){if(t)for(let r in e)n[r]=e[r];else vm(e,n);return n}function bm(e,t,n){return n?t+":"+n+";":""}function Sm(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style.item(n);t+=bm(0,r,e.style.getPropertyValue(r))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=bm(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function Cm(e,t,n){e.style&&(Object.keys(t).forEach(r=>{const s=Pm(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[s]),e.style[s]=t[r]}),$f()&&Sm(e))}function Em(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=Pm(t);e.style[n]=""}),$f()&&Sm(e))}function Tm(e){return Array.isArray(e)?1==e.length?e[0]:Ff(e):e}const xm=new RegExp(`${um}\\s*(.+?)\\s*}}`,"g");function km(e){let t=[];if("string"==typeof e){const n=e.toString();let r;for(;r=xm.exec(n);)t.push(r[1]);xm.lastIndex=0}return t}function Am(e,t,n){const r=e.toString(),s=r.replace(xm,(e,r)=>{let s=t[r];return t.hasOwnProperty(r)||(n.push(`Please provide a value for the animation param ${r}`),s=""),s.toString()});return s==r?e:s}function Im(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Nm=/-+([a-z0-9])/g;function Pm(e){return e.replace(Nm,(...e)=>e[1].toUpperCase())}function Rm(e,t){return 0===e||0===t}function Om(e,t,n){const r=Object.keys(n);if(r.length&&t.length){let i=t[0],o=[];if(r.forEach(e=>{i.hasOwnProperty(e)||o.push(e),i[e]=n[e]}),o.length)for(var s=1;s<t.length;s++){let n=t[s];o.forEach((function(t){n[t]=Fm(e,t)}))}}return t}function Dm(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 Fm(e,t){return window.getComputedStyle(e)[t]}const Vm="*";function Mm(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>(function(e,t,n){if(":"==e[0]){const r=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 r)return void t.push(r);e=r}const r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const s=r[1],i=r[2],o=r[3];t.push(jm(s,o)),"<"!=i[0]||s==Vm&&o==Vm||t.push(jm(o,s))})(e,n,t)):n.push(e),n}const Lm=new Set(["true","1"]),Um=new Set(["false","0"]);function jm(e,t){const n=Lm.has(e)||Um.has(e),r=Lm.has(t)||Um.has(t);return(s,i)=>{let o=e==Vm||e==s,a=t==Vm||t==i;return!o&&n&&"boolean"==typeof s&&(o=s?Lm.has(e):Um.has(e)),!a&&r&&"boolean"==typeof i&&(a=i?Lm.has(t):Um.has(t)),o&&a}}const $m=":self",Hm=new RegExp(`s*${$m}s*,?`,"g");function zm(e,t,n){return new qm(e).build(t,n)}const Bm="";class qm{constructor(e){this._driver=e}build(e,t){const n=new Gm(t);return this._resetContextStyleTimingState(n),Dm(this,Tm(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Bm,e.collectedStyles={},e.collectedStyles[Bm]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0;const s=[],i=[];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,r=n.name;r.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,s.push(this.visitState(n,t))}),n.name=r}else if(1==e.type){const s=this.visitTransition(e,t);n+=s.queryCount,r+=s.depCount,i.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:i,queryCount:n,depCount:r,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){const s=new Set,i=r||{};if(n.styles.forEach(e=>{if(Qm(e)){const t=e;Object.keys(t).forEach(e=>{km(t[e]).forEach(e=>{i.hasOwnProperty(e)||s.add(e)})})}}),s.size){const n=Im(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:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Dm(this,Tm(e.animation),t);return{type:1,matchers:Mm(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Wm(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Dm(this,e,t)),options:Wm(e.options)}}visitGroup(e,t){const n=t.currentTime;let r=0;const s=e.steps.map(e=>{t.currentTime=n;const s=Dm(this,e,t);return r=Math.max(r,t.currentTime),s});return t.currentTime=r,{type:3,steps:s,options:Wm(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 Km(_m(e,t).duration,0,"");const r=e;if(r.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=Km(0,0,"");return e.dynamic=!0,e.strValue=r,e}return Km((n=n||_m(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);let r;t.currentAnimateTimings=n;let s=e.styles?e.styles:Vf({});if(5==s.type)r=this.visitKeyframes(s,t);else{let s=e.styles,i=!1;if(!s){i=!0;const e={};n.easing&&(e.easing=n.easing),s=Vf(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,t);o.isEmptyStep=i,r=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:r,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==Df?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let r=!1,s=null;return n.forEach(e=>{if(Qm(e)){const t=e,n=t.easing;if(n&&(s=n,delete t.easing),!r)for(let e in t)if(t[e].toString().indexOf(um)>=0){r=!0;break}}}),{type:6,styles:n,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let r=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 i=t.collectedStyles[t.currentQuerySelector],o=i[n];let a=!0;o&&(s!=r&&s>=o.startTime&&r<=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 "${r}ms"`),a=!1),s=o.startTime),a&&(i[n]={startTime:s,endTime:r}),t.options&&function(e,t,n){const r=t.params||{},s=km(e);s.length&&s.forEach(e=>{r.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 r=0;const s=[];let i=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(Qm(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(Qm(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),u=0;return null!=l&&(r++,u=n.offset=l),o=o||u<0||u>1,i=i||u<a,a=u,s.push(u),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),i&&t.errors.push("Please ensure that all keyframe offsets are in order");const u=e.steps.length;let c=0;r>0&&r<u?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(c=1/(u-1));const h=u-1,d=t.currentTime,p=t.currentAnimateTimings,f=p.duration;return l.forEach((e,r)=>{const i=c>0?r==h?1:c*r:s[r],o=i*f;t.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(e,t),e.offset=i,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Dm(this,Tm(e.animation),t),options:Wm(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Wm(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Wm(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,i]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>e==$m);return t&&(e=e.replace(Hm,"")),[e=e.replace(/@\*/g,pm).replace(/@\w+/g,e=>pm+"-"+e.substr(1)).replace(/:animating/g,mm),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,Qf(t.collectedStyles,t.currentQuerySelector,{});const o=Dm(this,Tm(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:i,animation:o,originalSelector:e.selector,options:Wm(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"}:_m(e.timings,t.errors,!0);return{type:12,animation:Dm(this,Tm(e.animation),t),timings:n,options:null}}}class Gm{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 Qm(e){return!Array.isArray(e)&&"object"==typeof e}function Wm(e){var t;return e?(e=vm(e)).params&&(e.params=(t=e.params)?vm(t):null):e={},e}function Km(e,t,n){return{duration:e,delay:t,easing:n}}function Zm(e,t,n,r,s,i,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:s,delay:i,totalTime:s+i,easing:o,subTimeline:a}}class Ym{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 Xm=1,Jm=new RegExp(":enter","g"),eg=new RegExp(":leave","g");function tg(e,t,n,r,s,i={},o={},a,l,u=[]){return(new ng).buildKeyframes(e,t,n,r,s,i,o,a,l,u)}class ng{buildKeyframes(e,t,n,r,s,i,o,a,l,u=[]){l=l||new Ym;const c=new sg(e,t,l,r,s,u,[]);c.options=a,c.currentTimeline.setStyles([i],null,c.errors,a),Dm(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,a)}return h.length?h.map(e=>e.buildKeyframes()):[Zm(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 r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);s!=i&&t.transformIntoNewTimeline(i)}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 r=t.currentTimeline.currentTime;const s=null!=n.duration?gm(n.duration):null,i=null!=n.delay?gm(n.delay):null;return 0!==s&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,s,i);r=Math.max(r,n.duration+n.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),Dm(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&((r=t.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=rg);const e=gm(s.delay);r.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Dm(this,e,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?gm(e.options.delay):0;e.steps.forEach(i=>{const o=t.createSubContext(e.options);s&&o.delayNextStep(s),Dm(this,i,o),r=Math.max(r,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return _m(t.params?Am(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),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=r&&r.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,r=t.currentTimeline.duration,s=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(e=>{i.forwardTime((e.offset||0)*s),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?gm(r.delay):0;s&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=rg);let i=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,r)=>{t.currentQueryIndex=r;const o=t.createSubContext(e.options,n);s&&o.delayNextStep(s),n===t.element&&(a=o.currentTimeline),Dm(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,r=t.currentTimeline,s=e.timings,i=Math.abs(s.duration),o=i*(t.currentQueryTotal-1);let a=i*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const u=l.currentTime;Dm(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const rg={};class sg{constructor(e,t,n,r,s,i,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=rg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new ig(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let r=this.options;null!=n.duration&&(r.duration=gm(n.duration)),null!=n.delay&&(r.delay=gm(n.delay));const s=n.params;if(s){let e=r.params;e||(e=this.options.params={}),Object.keys(s).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=Am(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 r=t||this.element,s=new sg(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,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=rg,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},s=new og(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,r,s,i){let o=[];if(r&&o.push(this.element),e.length>0){e=(e=e.replace(Jm,"."+this._enterClassName)).replace(eg,"."+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||i.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class ig{constructor(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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 ig(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+=Xm,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]||Df,this._currentKeyframe[e]=Df}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},i=function(e,t){const n={};let r;return e.forEach(e=>{"*"===e?(r=r||Object.keys(t)).forEach(e=>{n[e]=Df}):wm(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(i).forEach(e=>{const t=Am(i[e],s,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:Df),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],r=e._styleSummary[t];(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,i)=>{const o=wm(s,!0);Object.keys(o).forEach(n=>{const r=o[n];r==jf?e.add(n):r==Df&&t.add(n)}),n||(o.offset=i/this.duration),r.push(o)});const s=e.size?Im(e.values()):[],i=t.size?Im(t.values()):[];if(n){const e=r[0],t=vm(e);e.offset=0,t.offset=1,r=[e,t]}return Zm(this.element,r,s,i,this.duration,this.startTime,this.easing,!1)}}class og extends ig{constructor(e,t,n,r,s,i,o=!1){super(e,t,i.delay),this.element=t,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],i=n+t,o=t/i,a=wm(e[0],!1);a.offset=0,s.push(a);const l=wm(e[0],!1);l.offset=ag(o),s.push(l);const u=e.length-1;for(let r=1;r<=u;r++){let o=wm(e[r],!1);o.offset=ag((t+o.offset*n)/i),s.push(o)}n=i,t=0,r="",e=s}return Zm(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}}function ag(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class lg{}class ug extends lg{normalizePropertyName(e,t){return Pm(e)}normalizeStyleValue(e,t,n,r){let s="";const i=n.toString().trim();if(cg[t]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&r.push(`Please provide a CSS unit value for ${e}:${n}`)}return i+s}}const cg=(()=>(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 hg(e,t,n,r,s,i,o,a,l,u,c,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:s,fromState:n,fromStyles:i,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}const dg={};class pg{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return function(e,t,n,r,s){return e.some(e=>e(t,n,r,s))}(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){const r=this._stateStyles["*"],s=this._stateStyles[e],i=r?r.buildStyles(t,n):{};return s?s.buildStyles(t,n):i}build(e,t,n,r,s,i,o,a,l,u){const c=[],h=this.ast.options&&this.ast.options.params||dg,d=this.buildStyles(n,o&&o.params||dg,c),p=a&&a.params||dg,f=this.buildStyles(r,p,c),m=new Set,g=new Map,y=new Map,_="void"===r,v={params:Object.assign({},h,p)},w=u?[]:tg(e,t,this.ast.animation,s,i,d,f,v,l,c);let b=0;if(w.forEach(e=>{b=Math.max(e.duration+e.delay,b)}),c.length)return hg(t,this._triggerName,n,r,_,d,f,[],[],g,y,b,c);w.forEach(e=>{const n=e.element,r=Qf(g,n,{});e.preStyleProps.forEach(e=>r[e]=!0);const s=Qf(y,n,{});e.postStyleProps.forEach(e=>s[e]=!0),n!==t&&m.add(n)});const S=Im(m.values());return hg(t,this._triggerName,n,r,_,d,f,w,S,g,y,b)}}class fg{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},r=vm(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const s=e;Object.keys(s).forEach(e=>{let i=s[e];i.length>1&&(i=Am(i,r,t)),n[e]=i})}}),n}}class mg{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new fg(e.style,e.options&&e.options.params||{})}),gg(this.states,"true","1"),gg(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new pg(e,t,this.states))}),this.fallbackTransition=new pg(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,r){return this.transitionFactories.find(s=>s.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function gg(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const yg=new Ym;class _g{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],r=zm(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]=r}_buildPlayer(e,t,n){const r=e.element,s=zf(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const r=[],s=this._animations[e];let i;const o=new Map;if(s?(i=tg(this._driver,t,s,cm,hm,{},{},n,yg,r)).forEach(e=>{const t=Qf(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)}):(r.push("The requested animation doesn't exist or has already been destroyed"),i=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,Df)})});const a=Hf(i.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}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,r){const s=Gf(t,"","","");return Bf(this._getPlayer(e),n,s,r),()=>{}}command(e,t,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n)return void this.create(e,t,r[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(r[0]));break;case"destroy":this.destroy(e)}}}const vg="ng-animate-queued",wg=".ng-animate-queued",bg="ng-animate-disabled",Sg=".ng-animate-disabled",Cg="ng-star-inserted",Eg=".ng-star-inserted",Tg=[],xg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},kg={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ag="__ng_removed";class Ig{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(r=n?e.value:e)?r:null,n){const t=vm(e);delete t.value,this.options=t}else this.options={};var r;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 Ng="void",Pg=new Ig(Ng);class Rg{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,jg(t,this._hostClassName)}listen(e,t,n,r){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 i=Qf(this._elementListeners,e,[]),o={name:t,phase:n,callback:r};i.push(o);const a=Qf(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(jg(e,dm),jg(e,dm+"-"+t),a[t]=Pg),()=>{this._engine.afterFlush(()=>{const e=i.indexOf(o);e>=0&&i.splice(e,1),this._triggers[t]||delete a[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,r=!0){const s=this._getTrigger(t),i=new Dg(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(jg(e,dm),jg(e,dm+"-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new Ig(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=Pg),l.value!==Ng&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let s=0;s<n.length;s++){const r=n[s];if(!t.hasOwnProperty(r)||e[r]!==t[r])return!1}return!0}(a.params,l.params)){const t=[],n=s.matchStyles(a.value,a.params,t),r=s.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{Em(e,n),Cm(e,r)})}return}const u=Qf(this._engine.playersByElement,e,[]);u.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let c=s.matchTransition(a.value,l.value,e,l.params),h=!1;if(!c){if(!r)return;c=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:c,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(jg(e,vg),i.onStart(()=>{$g(e,vg)})),i.onDone(()=>{let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(i);e>=0&&n.splice(e,1)}}),this.players.push(i),u.push(i),i}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,pm,!0).forEach(e=>{if(e[Ag])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,r){const s=this._engine.statesByElement.get(e);if(s){const i=[];if(Object.keys(s).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,Ng,r);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Hf(i).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 r=t.name;if(n.has(r))return;n.add(r);const s=this._triggers[r].fallbackTransition,i=this._engine.statesByElement.get(e)[r]||Pg,o=new Ig(Ng),a=new Dg(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:s,fromState:i,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t,!0),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)r=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){r=!0;break}}}this.prepareLeaveAnimationListeners(e),r?n.markElementAsRemoved(this.id,e,!1,t):(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}insertNode(e,t){jg(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const s=n.element,i=this._elementListeners.get(s);i&&i.forEach(t=>{if(t.name==n.triggerName){const r=Gf(s,n.triggerName,n.fromState.value,n.toState.value);r._data=e,Bf(n.player,t.phase,r,t.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,r=t.transition.ast.depCount;return 0==n||0==r?n-r: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),!!this._queue.find(t=>t.element===e)||t}}class Og{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 Rg(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 r=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,t)){this._namespaceList.splice(s+1,0,e),r=!0;break}r||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 r=this._namespaceLookup[e];r&&r.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 r=0;r<e.length;r++){const s=n[e[r]].namespaceId;if(s){const e=this._fetchNamespace(s);e&&t.add(e)}}}return t}trigger(e,t,n,r){if(Fg(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,n,r),!0}return!1}insertNode(e,t,n,r){if(!Fg(t))return;const s=t[Ag];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 r=this._fetchNamespace(e);r&&r.insertNode(t,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),jg(e,bg)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),$g(e,bg))}removeNode(e,t,n,r){if(Fg(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,n,r){this.collectedLeaveElements.push(t),t[Ag]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,r,s){return Fg(t)?this._fetchNamespace(e).listen(t,n,r,s):()=>{}}_buildInstruction(e,t,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,pm,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,mm,!0)).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 Hf(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[Ag];if(t&&t.setForRemoval){if(e[Ag]=xg,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,Sg)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Sg,!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++)jg(this.collectedEnterElements[n],Cg);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?Hf(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 Ym,r=[],s=new Map,i=[],o=new Map,a=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(e=>{u.add(e);const t=this.driver.query(e,wg,!0);for(let n=0;n<t.length;n++)u.add(t[n])});const c=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=Lg(h,this.collectedEnterElements),p=new Map;let f=0;d.forEach((e,t)=>{const n=cm+f++;p.set(t,n),e.forEach(e=>jg(e,n))});const m=[],g=new Set,y=new Set;for(let N=0;N<this.collectedLeaveElements.length;N++){const e=this.collectedLeaveElements[N],t=e[Ag];t&&t.setForRemoval&&(m.push(e),g.add(e),t.hasAnimation?this.driver.query(e,Eg,!0).forEach(e=>g.add(e)):y.add(e))}const _=new Map,v=Lg(h,Array.from(g));v.forEach((e,t)=>{const n=hm+f++;_.set(t,n),e.forEach(e=>jg(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>$g(e,n))}),v.forEach((e,t)=>{const n=_.get(t);e.forEach(e=>$g(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const w=[],b=[];for(let N=this._namespaceList.length-1;N>=0;N--)this._namespaceList[N].drainQueuedTransitions(t).forEach(e=>{const t=e.player,s=e.element;if(w.push(t),this.collectedEnterElements.length){const e=s[Ag];if(e&&e.setForMove)return void t.destroy()}const u=!c||!this.driver.containsElement(c,s),h=_.get(s),d=p.get(s),f=this._buildInstruction(e,n,d,h,u);if(!f.errors||!f.errors.length)return u?(t.onStart(()=>Em(s,f.fromStyles)),t.onDestroy(()=>Cm(s,f.toStyles)),void r.push(t)):e.isFallbackTransition?(t.onStart(()=>Em(s,f.fromStyles)),t.onDestroy(()=>Cm(s,f.toStyles)),void r.push(t)):(f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(s,f.timelines),i.push({instruction:f,player:t,element:s}),f.queriedElements.forEach(e=>Qf(o,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),void f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let r=l.get(t);r||l.set(t,r=new Set),n.forEach(e=>r.add(e))}));b.push(f)});if(b.length){const e=[];b.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),w.forEach(e=>e.destroy()),this.reportError(e)}const S=new Map,C=new Map;i.forEach(e=>{const t=e.element;n.has(t)&&(C.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,S))}),r.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{Qf(S,t,[]).push(e),e.destroy()})});const E=m.filter(e=>zg(e,a,l)),T=new Map;Mg(T,this.driver,y,l,Df).forEach(e=>{zg(e,a,l)&&E.push(e)});const x=new Map;d.forEach((e,t)=>{Mg(x,this.driver,new Set(e),a,jf)}),E.forEach(e=>{const t=T.get(e),n=x.get(e);T.set(e,Object.assign({},t,n))});const k=[],A=[],I={};i.forEach(e=>{const{element:t,player:i,instruction:o}=e;if(n.has(t)){if(u.has(t))return i.onDestroy(()=>Cm(t,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void r.push(i);let e=I;if(C.size>1){let n=t;const r=[];for(;n=n.parentNode;){const t=C.get(n);if(t){e=t;break}r.push(n)}r.forEach(t=>C.set(t,e))}const n=this._buildAnimation(i.namespaceId,o,S,s,x,T);if(i.setRealPlayer(n),e===I)k.push(i);else{const t=this.playersByElement.get(e);t&&t.length&&(i.parentPlayer=Hf(t)),r.push(i)}}else Em(t,o.fromStyles),i.onDestroy(()=>Cm(t,o.toStyles)),A.push(i),u.has(t)&&r.push(i)}),A.forEach(e=>{const t=s.get(e.element);if(t&&t.length){const n=Hf(t);e.setRealPlayer(n)}}),r.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let N=0;N<m.length;N++){const e=m[N],t=e[Ag];if($g(e,hm),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let r=this.driver.query(e,mm,!0);for(let e=0;e<r.length;e++){let t=o.get(r[e]);t&&t.length&&n.push(...t)}}const r=n.filter(e=>!e.destroyed);r.length?Hg(this,e,r):this.processLeaveNode(e)}return m.length=0,k.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),k}elementContainsData(e,t){let n=!1;const r=t[Ag];return r&&r.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,r,s){let i=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(i=t)}else{const t=this.playersByElement.get(e);if(t){const e=!s||s==Ng;t.forEach(t=>{t.queued||(e||t.triggerName==r)&&i.push(t)})}}return(n||r)&&(i=i.filter(e=>!(n&&n!=e.namespaceId||r&&r!=e.triggerName))),i}_beforeAnimationBuild(e,t,n){const r=t.element,s=t.isRemovalTransition?void 0:e,i=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==r,l=Qf(n,e,[]);this._getPreviousPlayers(e,a,s,i,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}Em(r,t.fromStyles)}_buildAnimation(e,t,n,r,s,i){const o=t.triggerName,a=t.element,l=[],u=new Set,c=new Set,h=t.timelines.map(t=>{const h=t.element;u.add(h);const d=h[Ag];if(d&&d.removedBeforeQueried)return new Lf(t.duration,t.delay);const p=h!==a,f=function(e){const t=[];return function e(t,n){for(let r=0;r<t.length;r++){const s=t[r];s instanceof Uf?e(s.players,n):n.push(s)}}(e,t),t}((n.get(h)||Tg).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===h),m=s.get(h),g=i.get(h),y=zf(0,this._normalizer,0,t.keyframes,m,g),_=this._buildPlayer(t,y,f);if(t.subTimeline&&r&&c.add(h),p){const t=new Dg(e,o,h);t.setRealPlayer(_),l.push(t)}return _});l.forEach(e=>{Qf(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>(function(e,t,n){let r;if(e instanceof Map){if(r=e.get(t)){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&e.delete(t)}}else if(r=e[t]){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&delete e[t]}return r})(this.playersByQueriedElement,e.element,e))}),u.forEach(e=>jg(e,fm));const d=Hf(h);return d.onDestroy(()=>{u.forEach(e=>$g(e,fm)),Cm(a,t.toStyles)}),c.forEach(e=>{Qf(r,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 Lf(e.duration,e.delay)}}class Dg{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Lf,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=>Bf(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){Qf(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 Fg(e){return e&&1===e.nodeType}function Vg(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Mg(e,t,n,r,s){const i=[];n.forEach(e=>i.push(Vg(e)));const o=[];r.forEach((n,r)=>{const i={};n.forEach(e=>{const n=i[e]=t.computeStyle(r,e,s);n&&0!=n.length||(r[Ag]=kg,o.push(r))}),e.set(r,i)});let a=0;return n.forEach(e=>Vg(e,i[a++])),o}function Lg(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const r=new Set(t),s=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let i=s.get(t);if(i)return i;const o=t.parentNode;return i=n.has(o)?o:r.has(o)?1:e(o),s.set(t,i),i}(e);1!==t&&n.get(t).push(e)}),n}const Ug="$$classes";function jg(e,t){if(e.classList)e.classList.add(t);else{let n=e[Ug];n||(n=e[Ug]={}),n[t]=!0}}function $g(e,t){if(e.classList)e.classList.remove(t);else{let n=e[Ug];n&&delete n[t]}}function Hg(e,t,n){Hf(n).onDone(()=>e.processLeaveNode(t))}function zg(e,t,n){const r=n.get(e);if(!r)return!1;let s=t.get(e);return s?r.forEach(e=>s.add(e)):t.set(e,r),n.delete(e),!0}class Bg{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Og(e,t,n),this._timelineEngine=new _g(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,r,s){const i=e+"-"+r;let o=this._triggerCache[i];if(!o){const e=[],t=zm(this._driver,s,e);if(e.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new mg(e,t)}(r,t),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(t,r,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if("@"==n.charAt(0)){const[e,s]=Wf(n);this._timelineEngine.command(e,t,s,r)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,s){if("@"==n.charAt(0)){const[e,r]=Wf(n);return this._timelineEngine.listen(e,t,r,s)}return this._transitionEngine.listen(e,t,n,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function qg(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=Qg(t[0]),t.length>1&&(r=Qg(t[t.length-1]))):t&&(n=Qg(t)),n||r?new Gg(e,n,r):null}let Gg=(()=>{class e{constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let s=e.initialStylesByElement.get(t);s||e.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Cm(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Cm(this._element,this._initialStyles),this._endStyles&&(Cm(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Em(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Em(this._element,this._endStyles),this._endStyles=null),Cm(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Qg(e){let t=null;const n=Object.keys(e);for(let r=0;r<n.length;r++){const s=n[r];Wg(s)&&((t=t||{})[s]=e[s])}return t}function Wg(e){return"display"===e||"position"===e}const Kg=3,Zg="animation",Yg="animationend",Xg=1e3;class Jg{constructor(e,t,n,r,s,i,o){this._element=e,this._name=t,this._duration=n,this._delay=r,this._easing=s,this._fillMode=i,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=iy(e,"").trim();n.length&&(function(e,t){let n=0;for(let r=0;r<e.length;r++)","===e.charAt(r)&&n++}(n),t=`${n}, ${t}`),sy(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),ry(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){ey(this._element,this._name,"paused")}resume(){ey(this._element,this._name,"running")}setPosition(e){const t=ty(this._element,this._name);this._position=e*this._duration,sy(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=parseFloat(e.elapsedTime.toFixed(Kg))*Xg;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(),ry(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=iy(e,"").split(","),r=ny(n,t);r>=0&&(n.splice(r,1),sy(e,"",n.join(",")))}(this._element,this._name))}}function ey(e,t,n){sy(e,"PlayState",n,ty(e,t))}function ty(e,t){const n=iy(e,"");return n.indexOf(",")>0?ny(n.split(","),t):ny([n],t)}function ny(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function ry(e,t,n){n?e.removeEventListener(Yg,t):e.addEventListener(Yg,t)}function sy(e,t,n,r){const s=Zg+t;if(null!=r){const t=e.style[s];if(t.length){const e=t.split(",");e[r]=n,n=e.join(",")}}e.style[s]=n}function iy(e,t){return e.style[Zg+t]}const oy="forwards",ay="linear";class ly{constructor(e,t,n,r,s,i,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||ay,this.totalTime=r+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 Jg(this.element,this.animationName,this._duration,this._delay,this.easing,oy,()=>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]:Fm(this.element,n))})}this.currentSnapshot=e}}class uy extends Lf{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=im(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 cy="gen_css_kf_",hy=" ";class dy{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return tm(e)}matchesElement(e,t){return nm(e,t)}containsElement(e,t){return rm(e,t)}query(e,t,n){return sm(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>im(e));let r=`@keyframes ${t} {\n`,s="";n.forEach(e=>{s=hy;const t=parseFloat(e.offset);r+=`${s}${100*t}% {\n`,s+=hy,Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=`${s}animation-timing-function: ${n};\n`));default:return void(r+=`${s}${t}: ${n};\n`)}}),r+=`${s}}\n`}),r+="}\n";const i=document.createElement("style");return i.innerHTML=r,i}animate(e,t,n,r,s,i=[],o){o&&this._notifyFaultyScrubber();const a=i.filter(e=>e instanceof ly),l={};Rm(n,r)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[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=Om(e,t,l));if(0==n)return new uy(e,u);const c=`${cy}${this._count++}`,h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);const d=qg(e,t),p=new ly(e,t,c,n,r,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 py{constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=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]:Fm(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class fy{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(my().toString()),this._cssKeyframesDriver=new dy}validateStyleProperty(e){return tm(e)}matchesElement(e,t){return nm(e,t)}containsElement(e,t){return rm(e,t)}query(e,t,n){return sm(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,r,s,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,s,i);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};s&&(a.easing=s);const l={},u=i.filter(e=>e instanceof py);Rm(n,r)&&u.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=qg(e,t=Om(e,t=t.map(e=>wm(e,!1)),l));return new py(e,t,a,c)}}function my(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let gy=(()=>(class extends Rf{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:nt.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Ff(e):e;return vy(this._renderer,null,t,"register",[n]),new yy(t,this._renderer)}}))();class yy extends Of{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new _y(this._id,e,t||{},this._renderer)}}class _y{constructor(e,t,n,r){this.id=e,this.element=t,this._renderer=r,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 vy(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 vy(e,t,n,r,s){return e.setProperty(t,`@@${n}:${r}`,s)}const wy="@",by="@.disabled";let Sy=(()=>(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 Cy("",n,this.engine),this._rendererCache.set(n,e)),e}const r=t.id,s=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,e),t.data.animation.forEach(t=>this.engine.registerTrigger(r,s,e,t.name,t)),new Ey(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 Cy{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,r){this.delegate.setAttribute(e,t,n,r)}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,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==wy&&t==by?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 Ey extends Cy{constructor(e,t,n,r){super(t,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==wy?"."==t.charAt(1)&&t==by?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)==wy){const r=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),i="";return s.charAt(0)!=wy&&([s,i]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,i,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let Ty=(()=>(class extends Bg{constructor(e,t,n){super(e.body,t,n)}}))();function xy(){return"function"==typeof my()?new fy:new dy}function ky(){return new ug}function Ay(e,t,n){return new Sy(e,t,n)}const Iy=new Te("AnimationModuleType");let Ny=(()=>(class{}))();const Py=new pn("8.2.3");let Ry;try{Ry="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(By){Ry=!1}const Oy=new pn("8.2.3"),Dy=new Te("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Fy,Vy=(()=>(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&&ot()&&!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!==Py.full&&console.warn("The Angular Material version ("+Oy.full+") does not match the Angular CDK version ("+Py.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)}}))();try{Fy="undefined"!=typeof Intl}catch(By){Fy=!1}let My=(()=>{class e{constructor(){this.changes=new k,this.sortButtonLabel=e=>`Change sorting for ${e}`}}return e.ngInjectableDef=pe({factory:function(){return new e},token:e,providedIn:"root"}),e})();function Ly(e){return e||new My}let Uy=(()=>(class{}))(),jy=(()=>(class{}))(),$y=(()=>(class{}))(),Hy=(()=>(class{}))();var zy=la(nf,[ca,sf,of],(function(e){return function(e){const t={},n=[];let r=!1;for(let s=0;s<e.length;s++){const i=e[s];i.token===$e&&!0===i.value&&(r=!0),1073741824&i.flags&&n.push(i.token),i.index=s,t[Kn(i.token)]=i}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}([Ar(512,Jt,en,[[8,[cf,gf,wf,kf,Pf]],[3,Jt],nn]),Ar(5120,$s,Ui,[[3,$s]]),Ar(4608,ba,Sa,[$s,[2,wa]]),Ar(5120,Cs,ji,[si]),Ar(5120,Ds,Fs,[]),Ar(5120,Tn,Mi,[]),Ar(5120,xn,Li,[]),Ar(4608,Dl,Fl,[Pa]),Ar(6144,It,null,[Dl]),Ar(4608,kl,Il,[]),Ar(5120,el,(function(e,t,n,r,s,i,o,a){return[new Tl(e,t,n),new Ol(r),new Nl(s,i,o,a)]}),[Pa,si,Ls,Pa,Pa,kl,js,[2,Al]]),Ar(4608,tl,tl,[el,si]),Ar(135680,sl,sl,[Pa]),Ar(4608,hl,hl,[tl,sl,Ds]),Ar(5120,am,xy,[]),Ar(5120,lg,ky,[]),Ar(4608,Bg,Ty,[Pa,am,lg]),Ar(5120,un,Ay,[hl,Bg,si]),Ar(6144,rl,null,[sl]),Ar(4608,hi,hi,[si]),Ar(4608,Kp,Zp,[Pa,Ls,Qp]),Ar(4608,Yp,Yp,[Kp,Wp]),Ar(5120,$p,(function(e){return[e]}),[Yp]),Ar(4608,qp,qp,[]),Ar(6144,Bp,null,[qp]),Ar(4608,Gp,Gp,[Bp]),Ar(6144,Ep,null,[Gp]),Ar(4608,Cp,Xp,[Ep,ze]),Ar(4608,Up,Up,[Cp]),Ar(5120,My,Ly,[[3,My]]),Ar(4608,iu,iu,[]),Ar(4608,Mu,Mu,[]),Ar(4608,Rf,gy,[un,Pa]),Ar(5120,$h,_p,[Xd]),Ar(4608,ip,ip,[]),Ar(6144,rp,null,[ip]),Ar(135680,op,op,[Xd,Ti,Ks,ze,rp]),Ar(4608,sp,sp,[]),Ar(5120,ap,pp,[Xd,Ra,lp]),Ar(5120,Sp,bp,[vp]),Ar(5120,Us,(function(e){return[e]}),[Sp]),Ar(4608,bf,bf,[]),Ar(1073742336,Na,Na,[]),Ar(1024,Ft,zl,[]),Ar(1024,_i,(function(){return[hp()]}),[]),Ar(512,vp,vp,[ze]),Ar(1024,Rs,(function(e,t){return[(n=e,Ya("probe",Ja),Ya("coreTokens",Object.assign({},Xa,(n||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>Ja),wp(t)];var n}),[[2,_i],vp]),Ar(512,Os,Os,[[2,Rs]]),Ar(131584,Ci,Ci,[si,js,ze,Ft,Jt,Os]),Ar(1073742336,$i,$i,[Ci]),Ar(1073742336,Bl,Bl,[[3,Bl]]),Ar(1024,up,mp,[[3,Xd]]),Ar(512,vh,wh,[]),Ar(512,ep,ep,[]),Ar(256,lp,{useHash:!0},[]),Ar(1024,pa,fp,[ha,[2,fa],lp]),Ar(512,ma,ma,[pa,ha]),Ar(512,Ks,Ks,[]),Ar(512,Ti,Ai,[Ks,[2,xi]]),Ar(1024,qd,(function(){return[[{path:"index",component:$u,canActivate:[tf]},{path:"",redirectTo:"/index",pathMatch:"full"},{path:"**",component:ca}]]}),[]),Ar(1024,Xd,yp,[Ci,vh,ep,ma,ze,Ti,Ks,qd,lp,[2,Qd],[2,zd]]),Ar(1073742336,dp,dp,[[2,up],[2,Xd]]),Ar(1073742336,Jp,Jp,[]),Ar(1073742336,ef,ef,[]),Ar(1073742336,Uy,Uy,[]),Ar(1073742336,jy,jy,[]),Ar(1073742336,$y,$y,[]),Ar(1073742336,Vy,Vy,[[2,Dy],[2,Al]]),Ar(1073742336,Hy,Hy,[]),Ar(1073742336,Vu,Vu,[]),Ar(1073742336,Lu,Lu,[]),Ar(1073742336,Uu,Uu,[]),Ar(1073742336,Ny,Ny,[]),Ar(1073742336,nf,nf,[]),Ar(256,$e,!0,[]),Ar(256,Qp,"XSRF-TOKEN",[]),Ar(256,Wp,"X-XSRF-TOKEN",[]),Ar(256,Iy,"BrowserAnimations",[])])}));(function(){if(it)throw new Error("Cannot enable prod mode after platform setup.");st=!1})(),Hl().bootstrapModuleFactory(zy).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]]]);