(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},1:function(t,e){},B9Yq:function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},EhIR:function(t,e,n){(function(t){var i;!function(t,r,s){function o(t){var e,n=this,i=(e=4022871197,function(t){t=String(t);for(var n=0;n>>0,e=(i*=e)>>>0,e+=4294967296*(i-=e)}return 2.3283064365386963e-10*(e>>>0)});n.next=function(){var t=2091639*n.s0+2.3283064365386963e-10*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=t-(n.c=0|t)},n.c=1,n.s0=i(" "),n.s1=i(" "),n.s2=i(" "),n.s0-=i(t),n.s0<0&&(n.s0+=1),n.s1-=i(t),n.s1<0&&(n.s1+=1),n.s2-=i(t),n.s2<0&&(n.s2+=1),i=null}function a(t,e){return e.c=t.c,e.s0=t.s0,e.s1=t.s1,e.s2=t.s2,e}function l(t,e){var n=new o(t),i=e&&e.state,r=n.next;return r.int32=function(){return 4294967296*n.next()|0},r.double=function(){return r()+11102230246251565e-32*(2097152*r()|0)},r.quick=r,i&&("object"==typeof i&&a(i,n),r.state=function(){return a(n,{})}),r}r&&r.exports?r.exports=l:n("B9Yq")&&n("PDX0")?void 0===(i=(function(){return l}).call(e,n,e,r))||(r.exports=i):this.alea=l}(0,t,n("B9Yq"))}).call(this,n("YuTi")(t))},HlzF:function(t,e,n){var i;!function(){"use strict";var n=function(){this.init()};n.prototype={init:function(){var t=this||r;return t._counter=1e3,t._html5AudioPool=[],t.html5PoolSize=10,t._codecs={},t._howls=[],t._muted=!1,t._volume=1,t._canPlayEvent="canplaythrough",t._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,t.masterGain=null,t.noAudio=!1,t.usingWebAudio=!0,t.autoSuspend=!0,t.ctx=null,t.autoUnlock=!0,t._setup(),t},volume:function(t){var e=this||r;if(t=parseFloat(t),e.ctx||d(),void 0!==t&&t>=0&&t<=1){if(e._volume=t,e._muted)return e;e.usingWebAudio&&e.masterGain.gain.setValueAtTime(t,r.ctx.currentTime);for(var n=0;n=0;e--)t._howls[e].unload();return t.usingWebAudio&&t.ctx&&void 0!==t.ctx.close&&(t.ctx.close(),t.ctx=null,d()),t},codecs:function(t){return(this||r)._codecs[t.replace(/^x-/,"")]},_setup:function(){var t=this||r;if(t.state=t.ctx&&t.ctx.state||"suspended",t._autoSuspend(),!t.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(t._canPlayEvent="canplay")}catch(e){t.noAudio=!0}else t.noAudio=!0;try{(new Audio).muted&&(t.noAudio=!0)}catch(e){}return t.noAudio||t._setupCodecs(),t},_setupCodecs:function(){var t=this||r,e=null;try{e="undefined"!=typeof Audio?new Audio:null}catch(o){return t}if(!e||"function"!=typeof e.canPlayType)return t;var n=e.canPlayType("audio/mpeg;").replace(/^no$/,""),i=t._navigator&&t._navigator.userAgent.match(/OPR\/([0-6].)/g),s=i&&parseInt(i[0].split("/")[1],10)<33;return t._codecs={mp3:!(s||!n&&!e.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!e.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!e.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!e.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(e.canPlayType("audio/x-mp4;")||e.canPlayType("audio/mp4;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),webm:!!e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!e.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(e.canPlayType("audio/x-flac;")||e.canPlayType("audio/flac;")).replace(/^no$/,"")},t},_unlockAudio:function(){var t=this||r;if(!t._audioUnlocked&&t.ctx){t._audioUnlocked=!1,t.autoUnlock=!1,t._mobileUnloaded||44100===t.ctx.sampleRate||(t._mobileUnloaded=!0,t.unload()),t._scratchBuffer=t.ctx.createBuffer(1,1,22050);var e=function(n){for(var i=0;i0?a._seek:n._sprite[t][0]/1e3),u=Math.max(0,(n._sprite[t][0]+n._sprite[t][1])/1e3-c),h=1e3*u/Math.abs(a._rate),d=n._sprite[t][0]/1e3,p=(n._sprite[t][0]+n._sprite[t][1])/1e3;a._sprite=t,a._ended=!1;var f=function(){a._paused=!1,a._seek=c,a._start=d,a._stop=p,a._loop=!(!a._loop&&!n._sprite[t][2])};if(!(c>=p)){var m=a._node;if(n._webAudio){var g=function(){n._playLock=!1,f(),n._refreshBuffer(a),m.gain.setValueAtTime(a._muted||n._muted?0:a._volume,r.ctx.currentTime),a._playStart=r.ctx.currentTime,void 0===m.bufferSource.start?m.bufferSource.noteGrainOn(0,c,a._loop?86400:u):m.bufferSource.start(0,c,a._loop?86400:u),h!==1/0&&(n._endTimers[a._id]=setTimeout(n._ended.bind(n,a),h)),e||setTimeout((function(){n._emit("play",a._id),n._loadQueue()}),0)};"running"===r.state?g():(n._playLock=!0,n.once("resume",g),n._clearTimer(a._id))}else{var _=function(){m.currentTime=c,m.muted=a._muted||n._muted||r._muted||m.muted,m.volume=a._volume*r.volume(),m.playbackRate=a._rate;try{var i=m.play();if(i&&"undefined"!=typeof Promise&&(i instanceof Promise||"function"==typeof i.then)?(n._playLock=!0,f(),i.then((function(){n._playLock=!1,m._unlocked=!0,e||(n._emit("play",a._id),n._loadQueue())})).catch((function(){n._playLock=!1,n._emit("playerror",a._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),a._ended=!0,a._paused=!0}))):e||(n._playLock=!1,f(),n._emit("play",a._id),n._loadQueue()),m.playbackRate=a._rate,m.paused)return void n._emit("playerror",a._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==t||a._loop?n._endTimers[a._id]=setTimeout(n._ended.bind(n,a),h):(n._endTimers[a._id]=function(){n._ended(a),m.removeEventListener("ended",n._endTimers[a._id],!1)},m.addEventListener("ended",n._endTimers[a._id],!1))}catch(s){n._emit("playerror",a._id,s)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===m.src&&(m.src=n._src,m.load());var y=window&&window.ejecta||!m.readyState&&r._navigator.isCocoonJS;if(m.readyState>=3||y)_();else{n._playLock=!0;var v=function(){_(),m.removeEventListener(r._canPlayEvent,v,!1)};m.addEventListener(r._canPlayEvent,v,!1),n._clearTimer(a._id)}}return a._id}n._ended(a)},pause:function(t){var e=this;if("loaded"!==e._state||e._playLock)return e._queue.push({event:"pause",action:function(){e.pause(t)}}),e;for(var n=e._getSoundIds(t),i=0;i=0?e=parseInt(s[0],10):t=parseFloat(s[0])}else s.length>=2&&(t=parseFloat(s[0]),e=parseInt(s[1],10));if(!(void 0!==t&&t>=0&&t<=1))return(n=e?i._soundById(e):i._sounds[0])?n._volume:0;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"volume",action:function(){i.volume.apply(i,s)}}),i;void 0===e&&(i._volume=t),e=i._getSoundIds(e);for(var l=0;l0?i/c:i),h=Date.now();t._fadeTo=n,t._interval=setInterval((function(){var r=(Date.now()-h)/i;h=Date.now(),a+=l*r,a=Math.max(0,a),a=Math.min(1,a),a=Math.round(100*a)/100,o._webAudio?t._volume=a:o.volume(a,t._id,!0),s&&(o._volume=a),(ne&&a>=n)&&(clearInterval(t._interval),t._interval=null,t._fadeTo=null,o.volume(n,t._id),o._emit("fade",t._id))}),u)},_stopFade:function(t){var e=this._soundById(t);return e&&e._interval&&(this._webAudio&&e._node.gain.cancelScheduledValues(r.ctx.currentTime),clearInterval(e._interval),e._interval=null,this.volume(e._fadeTo,t),e._fadeTo=null,this._emit("fade",t)),this},loop:function(){var t,e,n,i=this,r=arguments;if(0===r.length)return i._loop;if(1===r.length){if("boolean"!=typeof r[0])return!!(n=i._soundById(parseInt(r[0],10)))&&n._loop;i._loop=t=r[0]}else 2===r.length&&(t=r[0],e=parseInt(r[1],10));for(var s=i._getSoundIds(e),o=0;o=0?e=parseInt(s[0],10):t=parseFloat(s[0])}else 2===s.length&&(t=parseFloat(s[0]),e=parseInt(s[1],10));if("number"!=typeof t)return(n=i._soundById(e))?n._rate:i._rate;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"rate",action:function(){i.rate.apply(i,s)}}),i;void 0===e&&(i._rate=t),e=i._getSoundIds(e);for(var l=0;l=0?e=parseInt(i[0],10):n._sounds.length&&(e=n._sounds[0]._id,t=parseFloat(i[0]))}else 2===i.length&&(t=parseFloat(i[0]),e=parseInt(i[1],10));if(void 0===e)return n;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"seek",action:function(){n.seek.apply(n,i)}}),n;var a=n._soundById(e);if(a){if(!("number"==typeof t&&t>=0)){if(n._webAudio){var l=n.playing(e)?r.ctx.currentTime-a._playStart:0,c=a._rateSeek?a._rateSeek-a._seek:0;return a._seek+(c+l*Math.abs(a._rate))}return a._node.currentTime}var u=n.playing(e);u&&n.pause(e,!0),a._seek=t,a._ended=!1,n._clearTimer(e),n._webAudio||!a._node||isNaN(a._node.duration)||(a._node.currentTime=t);var h=function(){n._emit("seek",e),u&&n.play(e,!0)};if(u&&!n._webAudio){var d=function(){n._playLock?setTimeout(d,0):h()};setTimeout(d,0)}else h()}return n},playing:function(t){if("number"==typeof t){var e=this._soundById(t);return!!e&&!e._paused}for(var n=0;n=0&&r._howls.splice(i,1);var s=!0;for(n=0;n=0){s=!1;break}return a&&s&&delete a[t._src],r.noAudio=!1,t._state="unloaded",t._sounds=[],t=null,null},on:function(t,e,n,i){return"function"==typeof e&&this["_on"+t].push(i?{id:n,fn:e,once:i}:{id:n,fn:e}),this},off:function(t,e,n){var i=this["_on"+t],r=0;if("number"==typeof e&&(n=e,e=null),e||n)for(r=0;r=0;r--)i[r].id&&i[r].id!==e&&"load"!==t||(setTimeout((function(t){t.call(this,e,n)}).bind(this,i[r].fn),0),i[r].once&&this.off(t,i[r].fn,i[r].id));return this._loadQueue(t),this},_loadQueue:function(t){if(this._queue.length>0){var e=this._queue[0];e.event===t&&(this._queue.shift(),this._loadQueue()),t||e.action()}return this},_ended:function(t){var e=t._sprite;if(!this._webAudio&&t._node&&!t._node.paused&&!t._node.ended&&t._node.currentTime=0;n--){if(e<=t)return;this._sounds[n]._ended&&(this._webAudio&&this._sounds[n]._node&&this._sounds[n]._node.disconnect(0),this._sounds.splice(n,1),e--)}}},_getSoundIds:function(t){if(void 0===t){for(var e=[],n=0;n=0;if(r._scratchBuffer&&t.bufferSource&&(t.bufferSource.onended=null,t.bufferSource.disconnect(0),e))try{t.bufferSource.buffer=r._scratchBuffer}catch(n){}return t.bufferSource=null,this},_clearSound:function(t){/MSIE |Trident\//.test(r._navigator&&r._navigator.userAgent)||(t.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var o=function(t){this._parent=t,this.init()};o.prototype={init:function(){var t=this._parent;return this._muted=t._muted,this._loop=t._loop,this._volume=t._volume,this._rate=t._rate,this._seek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++r._counter,t._sounds.push(this),this.create(),this},create:function(){var t=this._parent,e=r._muted||this._muted||this._parent._muted?0:this._volume;return t._webAudio?(this._node=void 0===r.ctx.createGain?r.ctx.createGainNode():r.ctx.createGain(),this._node.gain.setValueAtTime(e,r.ctx.currentTime),this._node.paused=!0,this._node.connect(r.masterGain)):r.noAudio||(this._node=r._obtainHtml5Audio(),this._errorFn=this._errorListener.bind(this),this._node.addEventListener("error",this._errorFn,!1),this._loadFn=this._loadListener.bind(this),this._node.addEventListener(r._canPlayEvent,this._loadFn,!1),this._node.src=t._src,this._node.preload="auto",this._node.volume=e*r.volume(),this._node.load()),this},reset:function(){var t=this._parent;return this._muted=t._muted,this._loop=t._loop,this._volume=t._volume,this._rate=t._rate,this._seek=0,this._rateSeek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++r._counter,this},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0),this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var t=this._parent;t._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue()),this._node.removeEventListener(r._canPlayEvent,this._loadFn,!1)}};var a={},l=function(t){var e=t._src;if(a[e])return t._duration=a[e].duration,void h(t);if(/^data:[^;]+;base64,/.test(e)){for(var n=atob(e.split(",")[1]),i=new Uint8Array(n.length),r=0;r0?(a[e._src]=t,h(e,t)):n()};"undefined"!=typeof Promise&&1===r.ctx.decodeAudioData.length?r.ctx.decodeAudioData(t).then(i).catch(n):r.ctx.decodeAudioData(t,i,n)},h=function(t,e){e&&!t._duration&&(t._duration=e.duration),0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue())},d=function(){if(r.usingWebAudio){try{"undefined"!=typeof AudioContext?r.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?r.ctx=new webkitAudioContext:r.usingWebAudio=!1}catch(s){r.usingWebAudio=!1}r.ctx||(r.usingWebAudio=!1);var t=/iP(hone|od|ad)/.test(r._navigator&&r._navigator.platform),e=r._navigator&&r._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=e?parseInt(e[1],10):null;if(t&&n&&n<9){var i=/safari/.test(r._navigator&&r._navigator.userAgent.toLowerCase());(r._navigator&&r._navigator.standalone&&!i||r._navigator&&!r._navigator.standalone&&!i)&&(r.usingWebAudio=!1)}r.usingWebAudio&&(r.masterGain=void 0===r.ctx.createGain?r.ctx.createGainNode():r.ctx.createGain(),r.masterGain.gain.setValueAtTime(r._muted?0:r._volume,r.ctx.currentTime),r.masterGain.connect(r.ctx.destination)),r._setup()}};void 0===(i=(function(){return{Howler:r,Howl:s}}).apply(e,[]))||(t.exports=i),e.Howler=r,e.Howl=s,"undefined"!=typeof window?(window.HowlerGlobal=n,window.Howler=r,window.Howl=s,window.Sound=o):"undefined"!=typeof global&&(global.HowlerGlobal=n,global.Howler=r,global.Howl=s,global.Sound=o)}(),function(){"use strict";var t;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(t){if(!this.ctx||!this.ctx.listener)return this;for(var e=this._howls.length-1;e>=0;e--)this._howls[e].stereo(t);return this},HowlerGlobal.prototype.pos=function(t,e,n){return this.ctx&&this.ctx.listener?"number"!=typeof t?this._pos:(this._pos=[t,e="number"!=typeof e?this._pos[1]:e,n="number"!=typeof n?this._pos[2]:n],void 0!==this.ctx.listener.positionX?(this.ctx.listener.positionX.setTargetAtTime(this._pos[0],Howler.ctx.currentTime,.1),this.ctx.listener.positionY.setTargetAtTime(this._pos[1],Howler.ctx.currentTime,.1),this.ctx.listener.positionZ.setTargetAtTime(this._pos[2],Howler.ctx.currentTime,.1)):this.ctx.listener.setPosition(this._pos[0],this._pos[1],this._pos[2]),this):this},HowlerGlobal.prototype.orientation=function(t,e,n,i,r,s){if(!this.ctx||!this.ctx.listener)return this;var o=this._orientation;return"number"!=typeof t?o:(this._orientation=[t,e="number"!=typeof e?o[1]:e,n="number"!=typeof n?o[2]:n,i="number"!=typeof i?o[3]:i,r="number"!=typeof r?o[4]:r,s="number"!=typeof s?o[5]:s],void 0!==this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(t,Howler.ctx.currentTime,.1),this.ctx.listener.forwardY.setTargetAtTime(e,Howler.ctx.currentTime,.1),this.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),this.ctx.listener.upX.setTargetAtTime(i,Howler.ctx.currentTime,.1),this.ctx.listener.upY.setTargetAtTime(r,Howler.ctx.currentTime,.1),this.ctx.listener.upZ.setTargetAtTime(s,Howler.ctx.currentTime,.1)):this.ctx.listener.setOrientation(t,e,n,i,r,s),this)},Howl.prototype.init=(t=Howl.prototype.init,function(e){return this._orientation=e.orientation||[1,0,0],this._stereo=e.stereo||null,this._pos=e.pos||null,this._pannerAttr={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:360,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:360,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:0,distanceModel:void 0!==e.distanceModel?e.distanceModel:"inverse",maxDistance:void 0!==e.maxDistance?e.maxDistance:1e4,panningModel:void 0!==e.panningModel?e.panningModel:"HRTF",refDistance:void 0!==e.refDistance?e.refDistance:1,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:1},this._onstereo=e.onstereo?[{fn:e.onstereo}]:[],this._onpos=e.onpos?[{fn:e.onpos}]:[],this._onorientation=e.onorientation?[{fn:e.onorientation}]:[],t.call(this,e)}),Howl.prototype.stereo=function(t,n){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"stereo",action:function(){i.stereo(t,n)}}),i;var r=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof t)return i._stereo;i._stereo=t,i._pos=[t,0,0]}for(var s=i._getSoundIds(n),o=0;o>>15)^(t^=t>>>12),e.i=s,n+(i^i>>>16)|0},function(t,e){var n,i,r,s,o,a=[],l=128;for(e===(0|e)?(i=e,e=null):(e+="\0",i=0,l=Math.max(l,e.length)),r=0,s=-32;s>>15,i^=i<<4,i^=i>>>13,s>=0&&(r=0==(n=a[127&s]^=i+(o=o+1640531527|0))?r+1:0);for(r>=128&&(a[127&(e&&e.length||0)]=-1),r=127,s=512;s>0;--s)i=a[r+34&127],n=a[r=r+1&127],i^=i<<13,n^=n<<17,a[r]=(i^=i>>>15)^(n^=n>>>12);t.w=o,t.X=a,t.i=r}(e,t)}function a(t,e){return e.i=t.i,e.w=t.w,e.X=t.X.slice(),e}function l(t,e){null==t&&(t=+new Date);var n=new o(t),i=e&&e.state,r=function(){return(n.next()>>>0)/4294967296};return r.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},r.int32=n.next,r.quick=r,i&&(i.X&&a(i,n),r.state=function(){return a(n,{})}),r}r&&r.exports?r.exports=l:n("B9Yq")&&n("PDX0")?void 0===(i=(function(){return l}).call(e,n,e,r))||(r.exports=i):this.xor4096=l}(0,t,n("B9Yq"))}).call(this,n("YuTi")(t))},ie1u:function(t,e,n){(function(t){var i;!function(t,r,s){function o(t){var e=this,n="";e.next=function(){var t=e.b,n=e.c,i=e.d,r=e.a;return t=t<<25^t>>>7^n,n=n-i|0,i=i<<24^i>>>8^r,r=r-t|0,e.b=t=t<<20^t>>>12^n,e.c=n=n-i|0,e.d=i<<16^n>>>16^r,e.a=r-t|0},e.a=0,e.b=0,e.c=-1640531527,e.d=1367130551,t===Math.floor(t)?(e.a=t/4294967296|0,e.b=0|t):n+=t;for(var i=0;i>>0)/4294967296};return r.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},r.int32=n.next,r.quick=r,i&&("object"==typeof i&&a(i,n),r.state=function(){return a(n,{})}),r}r&&r.exports?r.exports=l:n("B9Yq")&&n("PDX0")?void 0===(i=(function(){return l}).call(e,n,e,r))||(r.exports=i):this.tychei=l}(0,t,n("B9Yq"))}).call(this,n("YuTi")(t))},"pJ3+":function(t,e,n){var i;!function(r,s,o){var a,l=o.pow(256,6),c=o.pow(2,52),u=2*c;function h(t,e,n){var i=[],h=f(function t(e,n){var i,r=[],s=typeof e;if(n&&"object"==s)for(i in e)try{r.push(t(e[i],n-1))}catch(o){}return r.length?r:"string"==s?e:e+"\0"}((e=1==e?{entropy:!0}:e||{}).entropy?[t,m(s)]:null==t?function(){try{var t;return a&&(t=a.randomBytes)?t=t(256):(t=new Uint8Array(256),(r.crypto||r.msCrypto).getRandomValues(t)),m(t)}catch(i){var e=r.navigator,n=e&&e.plugins;return[+new Date,r,n,r.screen,m(s)]}}():t,3),i),g=new d(i),_=function(){for(var t=g.g(6),e=l,n=0;t=u;)t/=2,e/=2,n>>>=1;return(t+n)/e};return _.int32=function(){return 0|g.g(4)},_.quick=function(){return g.g(4)/4294967296},_.double=_,f(m(g.S),s),(e.pass||n||function(t,e,n,i){return i&&(i.S&&p(i,g),t.state=function(){return p(g,{})}),n?(o.random=t,e):t})(_,h,"global"in e?e.global:this==o,e.state)}function d(t){var e,n=t.length,i=this,r=0,s=i.i=i.j=0,o=i.S=[];for(n||(t=[n++]);r<256;)o[r]=r++;for(r=0;r<256;r++)o[r]=o[s=255&s+t[r%n]+(e=o[r])],o[s]=e;(i.g=function(t){for(var e,n=0,r=i.i,s=i.j,o=i.S;t--;)e=o[r=255&r+1],n=256*n+o[255&(o[r]=o[s=255&s+e])+(o[s]=e)];return i.i=r,i.j=s,n})(256)}function p(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function f(t,e){for(var n,i=t+"",r=0;r>>2;return e.x=e.y,e.y=e.z,e.z=e.w,e.w=e.v,(e.d=e.d+362437|0)+(e.v=e.v^e.v<<4^t^t<<1)|0},e.x=0,e.y=0,e.z=0,e.w=0,e.v=0,t===(0|t)?e.x=t:n+=t;for(var i=0;i>>4),e.next()}function a(t,e){return e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w,e.v=t.v,e.d=t.d,e}function l(t,e){var n=new o(t),i=e&&e.state,r=function(){return(n.next()>>>0)/4294967296};return r.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},r.int32=n.next,r.quick=r,i&&("object"==typeof i&&a(i,n),r.state=function(){return a(n,{})}),r}r&&r.exports?r.exports=l:n("B9Yq")&&n("PDX0")?void 0===(i=(function(){return l}).call(e,n,e,r))||(r.exports=i):this.xorwow=l}(0,t,n("B9Yq"))}).call(this,n("YuTi")(t))},uDiL:function(t,e,n){(function(t){var i;!function(t,r,s){function o(t){var e=this,n="";e.x=0,e.y=0,e.z=0,e.w=0,e.next=function(){var t=e.x^e.x<<11;return e.x=e.y,e.y=e.z,e.z=e.w,e.w^=e.w>>>19^t^t>>>8},t===(0|t)?e.x=t:n+=t;for(var i=0;i>>0)/4294967296};return r.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},r.int32=n.next,r.quick=r,i&&("object"==typeof i&&a(i,n),r.state=function(){return a(n,{})}),r}r&&r.exports?r.exports=l:n("B9Yq")&&n("PDX0")?void 0===(i=(function(){return l}).call(e,n,e,r))||(r.exports=i):this.xor128=l}(0,t,n("B9Yq"))}).call(this,n("YuTi")(t))},yuCN:function(t,e,n){(function(t){var i;!function(t,r,s){function o(t){var e=this;e.next=function(){var t,n,i=e.x,r=e.i;return t=i[r],n=(t^=t>>>7)^t<<24,n^=(t=i[r+1&7])^t>>>10,n^=(t=i[r+3&7])^t>>>3,n^=(t=i[r+4&7])^t<<7,t=i[r+7&7],i[r]=n^=(t^=t<<13)^t<<9,e.i=r+1&7,n},function(t,e){var n,i=[];if(e===(0|e))i[0]=e;else for(e=""+e,n=0;n0;--n)t.next()}(e,t)}function a(t,e){return e.x=t.x.slice(),e.i=t.i,e}function l(t,e){null==t&&(t=+new Date);var n=new o(t),i=e&&e.state,r=function(){return(n.next()>>>0)/4294967296};return r.double=function(){do{var t=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===t);return t},r.int32=n.next,r.quick=r,i&&(i.x&&a(i,n),r.state=function(){return a(n,{})}),r}r&&r.exports?r.exports=l:n("B9Yq")&&n("PDX0")?void 0===(i=(function(){return l}).call(e,n,e,r))||(r.exports=i):this.xorshift7=l}(0,t,n("B9Yq"))}).call(this,n("YuTi")(t))},zUnb:function(t,e,n){"use strict";n.r(e);var i={};function r(t){return"function"==typeof t}n.r(i),n.d(i,"Util",(function(){return Bk})),n.d(i,"CorrelationIdHelper",(function(){return $k})),n.d(i,"UrlHelper",(function(){return qk})),n.d(i,"DateTimeUtils",(function(){return Gk})),n.d(i,"ConnectionStringParser",(function(){return Jk})),n.d(i,"FieldType",(function(){return Ik})),n.d(i,"RequestHeaders",(function(){return Vk})),n.d(i,"DisabledPropertyName",(function(){return Xk})),n.d(i,"ProcessLegacy",(function(){return Yk})),n.d(i,"SampleRate",(function(){return Kk})),n.d(i,"HttpMethod",(function(){return Zk})),n.d(i,"DEFAULT_BREEZE_ENDPOINT",(function(){return Qk})),n.d(i,"AIData",(function(){return sE})),n.d(i,"AIBase",(function(){return rE})),n.d(i,"Envelope",(function(){return oE})),n.d(i,"Event",(function(){return cE})),n.d(i,"Exception",(function(){return uE})),n.d(i,"Metric",(function(){return gE})),n.d(i,"PageView",(function(){return yE})),n.d(i,"PageViewData",(function(){return _E})),n.d(i,"RemoteDependencyData",(function(){return vE})),n.d(i,"Trace",(function(){return bE})),n.d(i,"PageViewPerformance",(function(){return wE})),n.d(i,"Data",(function(){return xE})),n.d(i,"SeverityLevel",(function(){return fE})),n.d(i,"ConfigurationManager",(function(){return CE})),n.d(i,"ContextTagKeys",(function(){return SE})),n.d(i,"DataSanitizer",(function(){return jk})),n.d(i,"TelemetryItemCreator",(function(){return kE})),n.d(i,"CtxTagKeys",(function(){return TE})),n.d(i,"Extensions",(function(){return EE})),n.d(i,"DistributedTracingModes",(function(){return Ak})),n.d(i,"PropertiesPluginIdentifier",(function(){return IE})),n.d(i,"BreezeChannelIdentifier",(function(){return AE})),n.d(i,"AnalyticsPluginIdentifier",(function(){return OE}));let s=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else s&&console.log("RxJS: Back to a better error behavior. Thank you. <3");s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function a(t){setTimeout(()=>{throw t},0)}const l={closed:!0,next(t){},error(t){if(o.useDeprecatedSynchronousErrorHandling)throw t;a(t)},complete(){}},c=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function u(t){return null!==t&&"object"==typeof t}const h=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let d=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:i,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof h?e.errors:e),[])}const f=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class m extends d{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l;break;case 1:if(!t){this.destination=l;break}if("object"==typeof t){t instanceof m?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[f](){return this}static create(t,e,n){const i=new m(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends m{constructor(t,e,n,i){let s;super(),this._parentSubscriber=t;let o=this;r(e)?s=e:e&&(s=e.next,n=e.error,i=e.complete,e!==l&&(o=Object.create(e),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):a(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;a(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;a(n)}}__tryOrSetError(t,e,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return o.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(a(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const _=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(){}function v(...t){return b(t)}function b(t){return t?1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}:y}let w=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,r=function(t,e,n){if(t){if(t instanceof m)return t;if(t[f])return t[f]()}return t||e||n?new m(t,e,n):new m(l)}(t,e,n);if(r.add(i?i.call(r,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),o.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(t){try{return this._subscribe(t)}catch(e){o.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof m?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=x(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(r){n(r),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[_](){return this}pipe(...t){return 0===t.length?this:b(t)(this)}toPromise(t){return new(t=x(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function x(t){if(t||(t=o.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const C=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class S extends d{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class k extends m{constructor(t){super(t),this.destination=t}}let E=(()=>{class t extends w{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new k(this)}lift(t){const e=new T(this,this);return e.operator=t,e}next(t){if(this.closed)throw new C;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;rnew T(t,e),t})();class T extends E{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):d.EMPTY}}function I(t){return t&&"function"==typeof t.schedule}class A extends m{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const O=t=>e=>{for(let n=0,i=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function N(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const M=t=>{if(t&&"function"==typeof t[_])return i=t,t=>{const e=i[_]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(P(t))return O(t);if(N(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,a),t);if(t&&"function"==typeof t[D])return e=t,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};{const e=u(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}var e,n,i};function L(t,e,n,i,r=new A(t,n,i)){if(!r.closed)return e instanceof w?e.subscribe(r):M(e)(r)}class F extends m{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function V(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new j(t,e))}}class j{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new U(t,this.project,this.thisArg))}}class U extends m{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function z(t,e){return new w(n=>{const i=new d;let r=0;return i.add(e.schedule((function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()}))),i})}function H(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[_]}(t))return function(t,e){return new w(n=>{const i=new d;return i.add(e.schedule(()=>{const r=t[_]();i.add(r.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(N(t))return function(t,e){return new w(n=>{const i=new d;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(P(t))return z(t,e);if(function(t){return t&&"function"==typeof t[D]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new w(n=>{const i=new d;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[D](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())})))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof w?t:new w(M(t))}function B(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(B((n,i)=>H(t(n,i)).pipe(V((t,r)=>e(n,t,i,r))),n)):("number"==typeof e&&(n=e),e=>e.lift(new q(t,n)))}class q{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new $(t,this.project,this.concurrent))}}class $ extends F{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function W(t){return t}function G(t=Number.POSITIVE_INFINITY){return B(W,t)}function X(t,e){return e?z(t,e):new w(O(t))}function K(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return I(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof w?t[0]:G(e)(X(t,n))}function Y(){return function(t){return t.lift(new Z(t))}}class Z{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new Q(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class Q extends m{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class J extends w{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new d,t.add(this.source.subscribe(new et(this.getSubject(),this))),t.closed&&(this._connection=null,t=d.EMPTY)),t}refCount(){return Y()(this)}}const tt=(()=>{const t=J.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class et extends k{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function nt(){return new E}function it(t){return{toString:t}.toString()}function rt(t,e,n){return it(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}const st=rt("Inject",t=>({token:t})),ot=rt("Optional"),at=rt("Self"),lt=rt("SkipSelf");var ct=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function ut(t){for(let e in t)if(t[e]===ut)return e;throw Error("Could not find renamed property on target object.")}function ht(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function dt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function pt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ft(t){return mt(t,t[_t])||mt(t,t[bt])}function mt(t,e){return e&&e.token===t?e:null}function gt(t){return t&&(t.hasOwnProperty(yt)||t.hasOwnProperty(wt))?t[yt]:null}const _t=ut({"\u0275prov":ut}),yt=ut({"\u0275inj":ut}),vt=ut({"\u0275provFallback":ut}),bt=ut({ngInjectableDef:ut}),wt=ut({ngInjectorDef:ut});function xt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(xt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function Ct(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const St=ut({__forward_ref__:ut});function kt(t){return t.__forward_ref__=kt,t.toString=function(){return xt(this())},t}function Et(t){return Tt(t)?t():t}function Tt(t){return"function"==typeof t&&t.hasOwnProperty(St)&&t.__forward_ref__===kt}const It="undefined"!=typeof globalThis&&globalThis,At="undefined"!=typeof window&&window,Ot="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Rt="undefined"!=typeof global&&global,Dt=It||Rt||At||Ot,Pt=ut({"\u0275cmp":ut}),Nt=ut({"\u0275dir":ut}),Mt=ut({"\u0275pipe":ut}),Lt=ut({"\u0275mod":ut}),Ft=ut({"\u0275loc":ut}),Vt=ut({"\u0275fac":ut}),jt=ut({__NG_ELEMENT_ID__:ut});class Ut{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=dt({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const zt=new Ut("INJECTOR",-1),Ht={},Bt=/\n/gm,qt=ut({provide:String,useValue:ut});let $t,Wt=void 0;function Gt(t){const e=Wt;return Wt=t,e}function Xt(t){const e=$t;return $t=t,e}function Kt(t,e=ct.Default){if(void 0===Wt)throw new Error("inject() must be called from an injection context");return null===Wt?Qt(t,void 0,e):Wt.get(t,e&ct.Optional?null:void 0,e)}function Yt(t,e=ct.Default){return($t||Kt)(Et(t),e)}const Zt=Yt;function Qt(t,e,n){const i=ft(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&ct.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${xt(t)}]`)}function Jt(t){const e=[];for(let n=0;nArray.isArray(t)?ie(t,e):e(t))}function re(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function se(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function oe(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function le(t,e){const n=ce(t,e);if(n>=0)return t[1|n]}function ce(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=t[n<<1];if(e===s)return n<<1;s>e?r=n:i=n+1}return~(r<<1)}(t,e)}const ue=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),he=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),de={},pe=[];let fe=0;function me(t){return it(()=>{const e=t.type,n=e.prototype,i={},r={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===ue.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||pe,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||he.Emulated,id:"c",styles:t.styles||pe,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,o=t.features,a=t.pipes;return r.id+=fe++,r.inputs=be(t.inputs,i),r.outputs=be(t.outputs),o&&o.forEach(t=>t(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(ge):null,r.pipeDefs=a?()=>("function"==typeof a?a():a).map(_e):null,r})}function ge(t){return Ce(t)||function(t){return t[Nt]||null}(t)}function _e(t){return function(t){return t[Mt]||null}(t)}const ye={};function ve(t){const e={type:t.type,bootstrap:t.bootstrap||pe,declarations:t.declarations||pe,imports:t.imports||pe,exports:t.exports||pe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&it(()=>{ye[t.id]=t.type}),e}function be(t,e){if(null==t)return de;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,e&&(e[r]=s)}return n}const we=me;function xe(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ce(t){return t[Pt]||null}function Se(t,e){return t.hasOwnProperty(Vt)?t[Vt]:null}function ke(t,e){const n=t[Lt]||null;if(!n&&!0===e)throw new Error(`Type ${xt(t)} does not have '\u0275mod' property.`);return n}function Ee(t){return Array.isArray(t)&&"object"==typeof t[1]}function Te(t){return Array.isArray(t)&&!0===t[1]}function Ie(t){return 0!=(8&t.flags)}function Ae(t){return 2==(2&t.flags)}function Oe(t){return 1==(1&t.flags)}function Re(t){return null!==t.template}function De(t){return 0!=(512&t[2])}let Pe=void 0;function Ne(t){return!!t.listen}const Me={createRenderer:(t,e)=>void 0!==Pe?Pe:"undefined"!=typeof document?document:void 0};function Le(t){for(;Array.isArray(t);)t=t[0];return t}function Fe(t,e){return Le(e[t+19])}function Ve(t,e){return Le(e[t.index])}function je(t,e){return t.data[e+19]}function Ue(t,e){return t[e+19]}function ze(t,e){const n=e[t];return Ee(n)?n:n[0]}function He(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Be(t){return 4==(4&t[2])}function qe(t){return 128==(128&t[2])}function $e(t,e){return null===t||null==e?null:t[e]}function We(t){t[18]=0}const Ge={lFrame:fn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Xe(){return Ge.bindingsEnabled}function Ke(){return Ge.lFrame.lView}function Ye(){return Ge.lFrame.tView}function Ze(t){Ge.lFrame.contextLView=t}function Qe(){return Ge.lFrame.previousOrParentTNode}function Je(t,e){Ge.lFrame.previousOrParentTNode=t,Ge.lFrame.isParent=e}function tn(){return Ge.lFrame.isParent}function en(){Ge.lFrame.isParent=!1}function nn(){return Ge.checkNoChangesMode}function rn(t){Ge.checkNoChangesMode=t}function sn(){const t=Ge.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function on(){return Ge.lFrame.bindingIndex++}function an(t){const e=Ge.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function ln(t,e){const n=Ge.lFrame;n.bindingIndex=n.bindingRootIndex=t,n.currentDirectiveIndex=e}function cn(){return Ge.lFrame.currentQueryIndex}function un(t){Ge.lFrame.currentQueryIndex=t}function hn(t,e){const n=pn();Ge.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function dn(t,e){const n=pn(),i=t[1];Ge.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function pn(){const t=Ge.lFrame,e=null===t?null:t.child;return null===e?fn(t):e}function fn(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function mn(){const t=Ge.lFrame;return Ge.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const gn=mn;function _n(){const t=mn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function yn(){return Ge.lFrame.selectedIndex}function vn(t){Ge.lFrame.selectedIndex=t}function bn(){const t=Ge.lFrame;return je(t.tView,t.selectedIndex)}function wn(){Ge.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function xn(){Ge.lFrame.currentNamespace=null}function Cn(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[o]<0&&(t[18]+=65536),(s>10>16&&(3&t[2])===e&&(t[2]+=1024,s.call(o)):s.call(o)}class An{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function On(t,e,n){const i=Ne(t);let r=0;for(;re){o=s-1;break}}}for(;s>16}function Vn(t,e){let n=Fn(t),i=e;for(;n>0;)i=i[15],n--;return i}function jn(t){return"string"==typeof t?t:null==t?"":""+t}function Un(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():jn(t)}const zn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Dt))();function Hn(t){return{name:"body",target:t.ownerDocument.body}}function Bn(t){return t instanceof Function?t():t}let qn=!0;function $n(t){const e=qn;return qn=t,e}let Wn=0;function Gn(t,e){const n=Kn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Xn(i.data,t),Xn(e,null),Xn(i.blueprint,null));const r=Yn(t,e),s=t.injectorIndex;if(Mn(r)){const t=Ln(r),n=Vn(r,e),i=n[1].data;for(let r=0;r<8;r++)e[s+r]=n[t+r]|i[t+r]}return e[s+8]=r,s}function Xn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Kn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Yn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],i=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function Zn(t,e,n){!function(t,e,n){let i="string"!=typeof n?n[jt]:n.charCodeAt(0)||0;null==i&&(i=n[jt]=Wn++);const r=255&i,s=1<0?255&e:e}(n);if("function"==typeof r){hn(e,t);try{const t=r();if(null!=t||i&ct.Optional)return t;throw new Error(`No provider for ${Un(n)}!`)}finally{gn()}}else if("number"==typeof r){if(-1===r)return new si(t,e);let s=null,o=Kn(t,e),a=-1,l=i&ct.Host?e[16][6]:null;for((-1===o||i&ct.SkipSelf)&&(a=-1===o?Yn(t,e):e[o+8],ri(i,!1)?(s=e[1],o=Ln(a),e=Vn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(ii(r,o,t.data)){const t=ti(o,e,n,s,i,l);if(t!==Jn)return t}ri(i,e[1].data[o+8]===l)&&ii(r,o,e)?(s=t,o=Ln(a),e=Vn(a,e)):o=-1}}}if(i&ct.Optional&&void 0===r&&(r=null),0==(i&(ct.Self|ct.Host))){const t=e[9],s=Xt(void 0);try{return t?t.get(n,r,i&ct.Optional):Qt(n,r,i&ct.Optional)}finally{Xt(s)}}if(i&ct.Optional)return r;throw new Error(`NodeInjector: NOT_FOUND [${Un(n)}]`)}const Jn={};function ti(t,e,n,i,r,s){const o=e[1],a=o.data[t+8],l=ei(a,o,n,null==i?Ae(a)&&qn:i!=o&&3===a.type,r&ct.Host&&s===a);return null!==l?ni(e,o,l,a):Jn}function ei(t,e,n,i,r){const s=t.providerIndexes,o=e.data,a=65535&s,l=t.directiveStart,c=s>>16,u=r?a+c:t.directiveEnd;for(let h=i?a:a+c;h=l&&t.type===n)return h}if(r){const t=o[l];if(t&&Re(t)&&t.type===n)return l}return null}function ni(t,e,n,i){let r=t[n];const s=e.data;if(r instanceof An){const o=r;if(o.resolving)throw new Error(`Circular dep for ${Un(s[n])}`);const a=$n(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=Xt(o.injectImpl)),hn(t,i);try{r=t[n]=o.factory(void 0,s,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{onChanges:i,onInit:r,doCheck:s}=e;i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)),r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{o.injectImpl&&Xt(l),$n(a),o.resolving=!1,gn()}}return r}function ii(t,e,n){const i=64&t,r=32&t;let s;return s=128&t?i?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:i?r?n[e+3]:n[e+2]:r?n[e+1]:n[e],!!(s&1<{const e=Object.getPrototypeOf(t.prototype).constructor,n=e[Vt]||function t(e){const n=e;if(Tt(e))return()=>{const e=t(Et(n));return e?e():null};let i=Se(n);if(null===i){const t=gt(n);i=t&&t.factory}return i||null}(e);return null!==n?n:t=>new t})}function ai(t){return t.ngDebugContext}function li(t){return t.ngOriginalError}function ci(t,...e){t.error(...e)}class ui{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||ci}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?ai(t)?ai(t):this._findContext(li(t)):null}_findOriginalError(t){let e=li(t);for(;e&&li(e);)e=li(e);return e}}class hi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class di extends hi{getTypeName(){return"HTML"}}class pi extends hi{getTypeName(){return"Style"}}class fi extends hi{getTypeName(){return"Script"}}class mi extends hi{getTypeName(){return"URL"}}class gi extends hi{getTypeName(){return"ResourceURL"}}function _i(t){return t instanceof hi?t.changingThisBreaksApplicationSecurity:t}function yi(t,e){const n=vi(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function vi(t){return t instanceof hi&&t.getTypeName()||null}let bi=!0,wi=!1;function xi(){return wi=!0,bi}class Ci{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='',!e.querySelector||e.querySelector("svg")?(e.innerHTML='

',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t=""+t+"";try{t=encodeURI(t)}catch(i){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t=""+t+"";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0Ei(t.trim())).join(", ")),this.buf.push(" ",e,'="',zi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Pi.hasOwnProperty(e)&&!Ai.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(zi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const ji=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ui=/([^\#-~ |!])/g;function zi(t){return t.replace(/&/g,"&").replace(ji,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Ui,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}let Hi;function Bi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const qi=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),$i=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Wi=/^url\(([^)]+)\)$/;function Gi(t){const e=function(){const t=Ke();return t&&t[12]}();return e?e.sanitize(qi.URL,t)||"":yi(t,"URL")?_i(t):Ei(jn(t))}function Xi(t,e){t.__ngContext__=e}function Ki(t){throw new Error(`Multiple components match node with tagname ${t.tagName}`)}function Yi(){throw new Error("Cannot mix multi providers and regular providers")}function Zi(t,e,n){let i=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const n=e.length;if(r+n===i||t.charCodeAt(r+n)<=32)return r}n=r+1}}function Qi(t,e,n){let i=0;for(;is?"":r[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Zi(e,c,0)||2&i&&c!==t){if(er(i))return!1;o=!0}}}}else{if(!o&&!er(i)&&!er(l))return!1;if(o&&er(l))continue;o=!1,i=l|1&i}}return er(i)||o}function er(t){return 0==(1&t)}function nr(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||er(o)||(e+=sr(s,r),r=""),i=o,s=s||!er(i);n++}return""!==r&&(e+=sr(s,r)),e}const ar={};function lr(t){const e=t[3];return Te(e)?e[3]:e}function cr(t){ur(Ye(),Ke(),yn()+t,nn())}function ur(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Sn(e,i,n)}else{const i=t.preOrderHooks;null!==i&&kn(e,i,0,n)}vn(n)}function hr(t,e){return t<<17|e<<2}function dr(t){return t>>17&32767}function pr(t){return 2|t}function fr(t){return(131068&t)>>2}function mr(t,e){return-131069&t|e<<2}function gr(t){return 1|t}function _r(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i>1==-1){for(let t=9;t19&&ur(t,e,0,nn()),n(i,r)}finally{vn(s)}}function kr(t,e,n){if(Ie(e)){const i=e.directiveEnd;for(let r=e.directiveStart;rPromise.resolve(null))();function es(t){return t[7]||(t[7]=[])}function ns(t){return t.cleanup||(t.cleanup=[])}function is(t,e){return function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(e[t.index])[11]}function rs(t,e){const n=t[9],i=n?n.get(ui,null):null;i&&i.handleError(e)}function ss(t,e,n,i,r){for(let s=0;s0&&(t[n-1][4]=i[4]);const s=se(t,9+e);cs(i[1],i,!1,null);const o=s[5];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function ds(t,e){if(!(256&e[2])){const n=e[11];Ne(n)&&n.destroyNode&&Ss(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return fs(t[1],t);for(;e;){let n=null;if(Ee(e))n=e[13];else{const t=e[9];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Ee(e)&&fs(e[1],e),e=ps(e,t);null===e&&(e=t),Ee(e)&&fs(e[1],e),n=e&&e[4]}e=n}}(e)}}function ps(t,e){let n;return Ee(t)&&(n=t[6])&&2===n.type?os(n,t):t[3]===e?null:t[3]}function fs(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Ne(e[11])&&e[11].destroy();const i=e[17];if(null!==i&&Te(e[3])){i!==e[3]&&us(i,e);const n=e[5];null!==n&&n.detachView(t)}}}function ms(t,e,n){let i=e.parent;for(;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){const t=n[6];return 2===t.type?as(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return Ve(e,n).parentNode;if(2&i.flags){const e=t.data,n=e[e[i.index].directiveStart].encapsulation;if(n!==he.ShadowDom&&n!==he.Native)return null}return Ve(i,n)}function gs(t,e,n,i){Ne(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function _s(t,e,n){Ne(t)?t.appendChild(e,n):e.appendChild(n)}function ys(t,e,n,i){null!==i?gs(t,e,n,i):_s(t,e,n)}function vs(t,e){return Ne(t)?t.parentNode(e):e.parentNode}function bs(t,e){if(2===t.type){const n=os(t,e);return null===n?null:xs(n.indexOf(e,9)-9,n)}return 4===t.type||5===t.type?Ve(t,e):null}function ws(t,e,n,i){const r=ms(t,i,e);if(null!=r){const t=e[11],s=bs(i.parent||e[6],e);if(Array.isArray(n))for(let e=0;e-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}ds(this._lView[1],this._lView)}onDestroy(t){var e,n,i;e=this._lView[1],i=t,es(n=this._lView).push(i),e.firstCreatePass&&ns(e).push(n[7].length-1,null)}markForCheck(){Yr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Zr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){rn(!0);try{Zr(t,e,n)}finally{rn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Ss(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class As extends Is{constructor(t){super(t),this._view=t}detectChanges(){Qr(this._view)}checkNoChanges(){!function(t){rn(!0);try{Qr(t)}finally{rn(!1)}}(this._view)}get context(){return null}}let Os,Rs,Ds;function Ps(t,e,n){return Os||(Os=class extends t{}),new Os(Ve(e,n))}function Ns(t,e,n,i){return Rs||(Rs=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=vr(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[5];null!==i&&(n[5]=i.createEmbeddedView(e)),wr(e,n,t);const r=new Is(n);return r._tViewNode=n[6],r}}),0===n.type?new Rs(i,n,Ps(e,n,i)):null}function Ms(t,e,n,i){let r;Ds||(Ds=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Ps(e,this._hostTNode,this._hostView)}get injector(){return new si(this._hostTNode,this._hostView)}get parentInjector(){const t=Yn(this._hostTNode,this._hostView),e=Vn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let i=Fn(t),r=e,s=e[6];for(;i>1;)r=r[15],s=r[6],i--;return s}(t,this._hostView,this._hostTNode);return Mn(t)&&null!=n?new si(n,e):new si(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-9}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const s=n||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(ee,null);t&&(r=t)}const o=t.create(s,i,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Te(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new Ds(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e);return function(t,e,n,i){const r=9+i,s=n.length;i>0&&(n[r-1][4]=e),i{class t{}return t.__NG_ELEMENT_ID__=()=>Vs(),t})();const Vs=Ls,js=new Ut("Set Injector scope."),Us={},zs={},Hs=[];let Bs=void 0;function qs(){return void 0===Bs&&(Bs=new te),Bs}function $s(t,e=null,n=null,i){return new Ws(t,n,e||qs(),i)}class Ws{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&ie(e,n=>this.processProvider(n,t,e)),ie([t],t=>this.processInjectorType(t,[],r)),this.records.set(zt,Ks(void 0,this));const s=this.records.get(js);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:xt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Ht,n=ct.Default){this.assertNotDestroyed();const i=Gt(this);try{if(!(n&ct.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof Ut)&&ft(t);e=n&&this.injectableDefInScope(n)?Ks(Gs(t),Us):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&ct.Self?qs():this.parent).get(t,e=n&ct.Optional&&e===Ht?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(xt(t)),i)throw s;return function(t,e,n,i){const r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=xt(e);if(Array.isArray(e))r=e.map(xt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):xt(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(Bt,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{Gt(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(xt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=Et(t)))return!1;let i=gt(t);const r=null==i&&t.ngModule||void 0,s=void 0===r?t:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=gt(r)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(s);try{ie(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||Hs))}}this.injectorDefTypes.add(s),this.records.set(s,Ks(i.factory,Us));const a=i.providers;if(null!=a&&!o){const e=t;ie(a,t=>this.processProvider(t,e,a))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=Zs(t=Et(t))?t:Et(t&&t.provide);const r=function(t,e,n){return Ys(t)?Ks(void 0,t.useValue):Ks(Xs(t,e,n),Us)}(t,e,n);if(Zs(t)||!0!==t.multi){const t=this.records.get(i);t&&void 0!==t.multi&&Yi()}else{let e=this.records.get(i);e?void 0===e.multi&&Yi():(e=Ks(void 0,Us,!0),e.factory=()=>Jt(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){var n;return e.value===zs?function(t){throw new Error(`Cannot instantiate cyclic dependency! ${t}`)}(xt(t)):e.value===Us&&(e.value=zs,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Gs(t){const e=ft(t),n=null!==e?e.factory:Se(t);if(null!==n)return n;const i=gt(t);if(null!==i)return i.factory;if(t instanceof Ut)throw new Error(`Token ${xt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=oe(e,"?");throw new Error(`Can't resolve all parameters for ${xt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[_t]||t[bt]||t[vt]&&t[vt]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\n`+`This will become an error in v10. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Xs(t,e,n){let i=void 0;if(Zs(t)){const e=Et(t);return Se(e)||Gs(e)}if(Ys(t))i=()=>Et(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...Jt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Yt(Et(t.useExisting));else{const r=Et(t&&(t.useClass||t.provide));if(r||function(t,e,n){let i="";throw t&&e&&(i=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${xt(t)}'`+i)}(e,n,t),!function(t){return!!t.deps}(t))return Se(r)||Gs(r);i=()=>new r(...Jt(t.deps))}var r;return i}function Ks(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Ys(t){return null!==t&&"object"==typeof t&&qt in t}function Zs(t){return"function"==typeof t}const Qs=function(t,e,n){return function(t,e=null,n=null,i){const r=$s(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let Js=(()=>{class t{static create(t,e){return Array.isArray(t)?Qs(t,e,""):Qs(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Ht,t.NULL=new te,t.\u0275prov=dt({token:t,providedIn:"any",factory:()=>Yt(zt)}),t.__NG_ELEMENT_ID__=-1,t})();const to=new Ut("AnalyzeForEntryComponents");let eo=new Map;const no=new Set;function io(t){return"string"==typeof t?t:t.text()}function ro(t,e){let n=t.styles,i=t.classes,r=0;for(let s=0;sa(Le(t[i.index])).target:i.index;if(Ne(n)){let o=null;if(!a&&l&&(o=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let s=0;sn?t[n]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,h=!1;else{s=Lo(i,e,s,!1);const t=n.listen(p.name||f,r,s);u.push(s,t),c&&c.push(r,g,m,m+1)}}else s=Lo(i,e,s,!0),f.addEventListener(r,s,o),u.push(s),c&&c.push(r,g,m,o)}const d=i.outputs;let p;if(h&&null!==d&&(p=d[r])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Ge.lFrame.contextLView))[8]}(t)}function Vo(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r=0}const qo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function $o(t){return t.substring(qo.key,qo.keyEnd)}function Wo(t,e){const n=qo.textEnd;return n===e?-1:(e=qo.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,qo.key=e,n),Go(t,e,n))}function Go(t,e,n){for(;e=0;n=Wo(e,n))ae(t,$o(e),!0)}function Zo(t,e,n,i){const r=Ke(),s=Ye(),o=an(2);if(s.firstUpdatePass&&Jo(s,t,o,i),e!==ar&&po(r,o,e)){let a;null==n&&(a=function(){const t=Ge.lFrame;return null===t?null:t.currentSanitizer}())&&(n=a),na(s,s.data[yn()+19],r,r[11],t,r[o+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=xt(_i(t)))),t}(e,n),i,o)}}function Qo(t,e){return e>=t.expandoStartIndex}function Jo(t,e,n,i){const r=t.data;if(null===r[n+1]){const s=r[yn()+19],o=Qo(t,n);sa(s,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const r=function(t){const e=Ge.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=ea(n=ta(null,t,e,n,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=ta(r,t,e,n,i),null===s){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==fr(i))return t[dr(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=ta(null,t,e,n[1],i),n=ea(n,e.attrs,i),function(t,e,n,i){t[dr(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else s=function(t,e,n){let i=void 0;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s0)&&(u=!0)}else c=n;if(r)if(0!==l){const e=dr(t[a+1]);t[i+1]=hr(e,a),0!==e&&(t[e+1]=mr(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=hr(a,0),0!==a&&(t[a+1]=mr(t[a+1],i)),a=i;else t[i+1]=hr(l,0),0===a?a=i:t[l+1]=mr(t[l+1],i),l=i;u&&(t[i+1]=pr(t[i+1])),Ho(t,c,i,!0),Ho(t,c,i,!1),function(t,e,n,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&ce(s,e)>=0&&(n[i+1]=gr(n[i+1]))}(e,c,t,i,s),o=hr(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,n,o,i)}}function ta(t,e,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[r],s=Array.isArray(e),l=s?e[1]:e,c=null===l;let u=n[r+1];u===ar&&(u=c?zo:void 0);let h=c?le(u,i):l===i?u:void 0;if(s&&!ra(h)&&(h=le(e,i)),ra(h)&&(a=h,o))return a;const d=t[r+1];r=o?dr(d):fr(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=le(t,i))}return a}function ra(t){return void 0!==t}function sa(t,e){return 0!=(t.flags&(e?16:32))}function oa(t,e=""){const n=Ke(),i=Ye(),r=t+19,s=i.firstCreatePass?br(i,n[6],t,3,null,null):i.data[r],o=n[r]=function(t,e){return Ne(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);ws(i,n,o,s),Je(s,!1)}function aa(t){return la("",t,""),aa}function la(t,e,n){const i=Ke(),r=go(i,t,e,n);return r!==ar&&function(t,e,n){const i=Fe(e,t),r=t[11];Ne(r)?r.setValue(i,n):i.textContent=n}(i,yn(),r),la}function ca(t,e,n){const i=Ke();return po(i,on(),e)&&Dr(Ye(),bn(),i,t,e,i[11],n,!0),ca}function ua(t,e,n){const i=Ke();if(po(i,on(),e)){const r=Ye(),s=bn();Dr(r,s,i,t,e,is(s,i),n,!0)}return ua}function ha(t,e){const n=He(t)[1],i=n.data.length-1;Cn(n,{directiveStart:i,directiveEnd:i+1})}function da(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let r=void 0;if(Re(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);const e=t;e.inputs=pa(t.inputs),e.declaredInputs=pa(t.declaredInputs),e.outputs=pa(t.outputs);const n=r.hostBindings;n&&ga(t,n);const s=r.viewQuery,o=r.contentQueries;if(s&&fa(t,s),o&&ma(t,o),ht(t.inputs,r.inputs),ht(t.declaredInputs,r.declaredInputs),ht(t.outputs,r.outputs),Re(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}e.afterContentChecked=e.afterContentChecked||r.afterContentChecked,e.afterContentInit=t.afterContentInit||r.afterContentInit,e.afterViewChecked=t.afterViewChecked||r.afterViewChecked,e.afterViewInit=t.afterViewInit||r.afterViewInit,e.doCheck=t.doCheck||r.doCheck,e.onDestroy=t.onDestroy||r.onDestroy,e.onInit=t.onInit||r.onInit}const e=r.features;if(e)for(let i=0;i=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Pn(r.hostAttrs,n=Pn(n,r.hostAttrs))}}(i)}function pa(t){return t===de?{}:t===pe?[]:t}function fa(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function ma(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function ga(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}class _a{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function ya(t){t.type.prototype.ngOnChanges&&(t.setInput=va,t.onChanges=function(){const t=ba(this),e=t&&t.current;if(e){const n=t.previous;if(n===de)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function va(t,e,n,i){const r=ba(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:de,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];s[a]=new _a(l&&l.currentValue,e,o===de),t[i]=e}function ba(t){return t.__ngSimpleChanges__||null}function wa(t,e,n,i,r){if(t=Et(t),Array.isArray(t))for(let s=0;s>16;if(Zs(t)||!t.multi){const i=new An(l,r,vo),p=Sa(a,e,r?u:u+d,h);-1===p?(Zn(Gn(c,o),s,a),xa(s,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=65536),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=Sa(a,e,u+d,h),f=Sa(a,e,u,u+d),m=p>=0&&n[p],g=f>=0&&n[f];if(r&&!g||!r&&!m){Zn(Gn(c,o),s,a);const u=function(t,e,n,i,r){const s=new An(t,n,vo);return s.multi=[],s.index=e,s.componentProviders=0,Ca(s,r,i&&!n),s}(r?Ea:ka,n.length,r,i,l);!r&&g&&(n[f].providerFactory=u),xa(s,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=65536),n.push(u),o.push(u)}else xa(s,t,p>-1?p:f),Ca(n[r?f:p],l,!r&&i);!r&&i&&g&&n[f].componentProviders++}}}function xa(t,e,n){if(Zs(e)||e.useClass){const i=(e.useClass||e).prototype.ngOnDestroy;i&&(t.destroyHooks||(t.destroyHooks=[])).push(n,i)}}function Ca(t,e,n){t.multi.push(e),n&&t.componentProviders++}function Sa(t,e,n,i){for(let r=n;r{n.providersResolver=(n,i)=>function(t,e,n){const i=Ye();if(i.firstCreatePass){const r=Re(t);wa(n,i.data,i.blueprint,r,!0),wa(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}ya.ngInherit=!0;class Aa{}class Oa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${xt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Ra=(()=>{class t{}return t.NULL=new Oa,t})(),Da=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Pa(t),t})();const Pa=function(t){return Ps(t,Qe(),Ke())};class Na{}const Ma=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let La=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Fa(),t})();const Fa=function(){const t=Ke(),e=ze(Qe().index,t);return function(t){const e=t[11];if(Ne(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ee(e)?e:t)};let Va=(()=>{class t{}return t.\u0275prov=dt({token:t,providedIn:"root",factory:()=>null}),t})();class ja{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ua=new ja("9.0.7");class za{constructor(){}supports(t){return co(t)}create(t){return new Ba(t)}}const Ha=(t,e)=>e;class Ba{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ha}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const s=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==r&&ao(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,t,i,e)),ao(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),s=!0),r=r._next,e++}),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(ao(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(ao(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):t=this._addAfter(new qa(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Wa),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Wa),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class qa{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class $a{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&ao(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Wa{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new $a,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ga(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new Ya(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){ao(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Ya{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Za=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new lt,new ot]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=dt({token:t,providedIn:"root",factory:()=>new t([new za])}),t})(),Qa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new lt,new ot]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=dt({token:t,providedIn:"root",factory:()=>new t([new Xa])}),t})();const Ja=[new Xa],tl=new Za([new za]),el=new Qa(Ja);let nl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>il(t,Da),t})();const il=function(t,e){return Ns(t,e,Qe(),Ke())};let rl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>sl(t,Da),t})();const sl=function(t,e){return Ms(t,e,Qe(),Ke())},ol={};class al extends Ra{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Ce(t);return new ul(e,this.ngModule)}}function ll(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const cl=new Ut("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>zn});class ul extends Aa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(or).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return ll(this.componentDef.inputs)}get outputs(){return ll(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const s=t.get(n,ol,r);return s!==ol||i===ol?s:e.get(n,i,r)}}}(t,i.injector):t,s=r.get(Na,Me),o=r.get(Va,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Ne(t))return t.selectRootElement(e,n===he.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):yr(l,s.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d={components:[],scheduler:zn,clean:ts,playerHandler:null,flags:0},p=Ar(0,-1,null,1,0,null,null,null,null,null),f=vr(null,p,d,u,null,null,s,a,o,r);let m,g;dn(f,null);try{const t=function(t,e,n,i,r,s){const o=n[1];n[19]=t;const a=br(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(ro(a,l),null!==t&&(On(r,t,l),null!==a.classes&&Ts(r,t,a.classes),null!==a.styles&&Es(r,t,a.styles)));const c=i.createRenderer(t,e),u=vr(n,Ir(e),null,e.onPush?64:16,n[19],a,i,c,void 0);return o.firstCreatePass&&(Zn(Gn(a,n),o,e.type),Vr(o,a),Ur(a,n.length,1)),Kr(n,u),n[19]=u}(c,this.componentDef,f,s,a);if(c)if(n)On(a,c,["ng-version",Ua.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i0&&Ts(a,c,e.join(" "))}g=je(f[1],0),e&&(g.projection=e.map(t=>Array.from(t))),m=function(t,e,n,i,r){const s=n[1],o=function(t,e,n){const i=Qe();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Fr(t,i,1),zr(t,e,n));const r=ni(e,t,e.length-1,i);Xi(r,e);const s=Ve(i,e);return s&&Xi(s,e),r}(s,n,e);i.components.push(o),t[8]=o,r&&r.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=Qe();if(s.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){vn(a.index-19);const t=n[1];Nr(t,e),Mr(t,n,e.hostVars),Lr(e,o)}return o}(t,this.componentDef,f,d,[ha]),wr(p,f,null)}finally{_n()}const _=new hl(this.componentType,m,Ps(Da,g,f),f,g);return n&&!h||(_.hostView._tViewNode.child=g),_}}class hl extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new As(i),this.hostView._tViewNode=function(t,e,n,i){let r=t.node;return null==r&&(t.node=r=Or(0,null,2,-1,null,null)),i[6]=r}(i[1],0,0,i),this.componentType=t}get injector(){return new si(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const dl=void 0;var pl=["en",[["a","p"],["AM","PM"],dl],[["AM","PM"],dl,dl],[["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"]],dl,[["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"]],dl,[["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}",dl,"{1} 'at' {0}",dl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let fl={};function ml(t){return t in fl||(fl[t]=Dt.ng&&Dt.ng.common&&Dt.ng.common.locales&&Dt.ng.common.locales[t]),fl[t]}const gl=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,PluralCase:19,ExtraData:20};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();let _l="en-US";function yl(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(_l=t.toLowerCase().replace(/_/g,"-"))}const vl=new Map;class bl extends ee{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new al(this);const n=ke(t),i=t[Ft]||null;i&&yl(i),this._bootstrapComponents=Bn(n.bootstrap),this._r3Injector=$s(t,e,[{provide:ee,useValue:this},{provide:Ra,useValue:this.componentFactoryResolver}],xt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Js.THROW_IF_NOT_FOUND,n=ct.Default){return t===Js||t===ee||t===zt?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class wl extends ne{constructor(t){super(),this.moduleType=t,null!==ke(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${xt(e)} vs ${xt(e.name)}`)})(t,vl.get(t),e),vl.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new bl(this.moduleType,t)}}function xl(t,e,n){const i=sn()+t,r=Ke();return r[i]===ar?ho(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function Cl(t,e){const n=t[e];return n===ar?void 0:n}function Sl(t,e){const n=Ye();let i;const r=t+19;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=Se(i.type)),o=Xt(vo),a=s();return Xt(o),function(t,e,n,i){const r=n+19;r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=i}(n,Ke(),t,a),a}function kl(t,e,n){const i=Ke(),r=Ue(i,t);return Il(i,Tl(i,t)?function(t,e,n,i,r,s){const o=e+n;return po(t,o,r)?ho(t,o+1,s?i.call(s,r):i(r)):Cl(t,o+1)}(i,sn(),e,r.transform,n,r):r.transform(n))}function El(t,e,n,i,r,s){const o=Ke(),a=Ue(o,t);return Il(o,Tl(o,t)?function(t,e,n,i,r,s,o,a,l){const c=e+n;return function(t,e,n,i,r,s){const o=fo(t,e,n,i);return fo(t,e+2,r,s)||o}(t,c,r,s,o,a)?ho(t,c+4,l?i.call(l,r,s,o,a):i(r,s,o,a)):Cl(t,c+4)}(o,sn(),e,a.transform,n,i,r,s,a):a.transform(n,i,r,s))}function Tl(t,e){return t[1].data[e+19].pure}function Il(t,e){return lo.isWrapped(e)&&(e=lo.unwrap(e),t[Ge.lFrame.bindingIndex]=ar),e}class Al extends E{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,r=t=>null,s=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(r=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(s=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,r,s);return t instanceof d&&t.add(o),o}}function Ol(){return this._results[oo()]()}class Rl{constructor(){this.dirty=!0,this._results=[],this.changes=new Al,this.length=0;const t=oo(),e=Rl.prototype;e[t]||(e[t]=Ol)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let i=0;i0)r.push(a[e/2]);else{const s=o[e+1],a=n[-i];for(let e=9;e{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zl,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Jl=new Ut("AppId"),tc={provide:Jl,useFactory:function(){return`${ec()}${ec()}${ec()}`},deps:[]};function ec(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const nc=new Ut("Platform Initializer"),ic=new Ut("Platform ID"),rc=new Ut("appBootstrapListener");let sc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const oc=new Ut("LocaleId"),ac=new Ut("DefaultCurrencyCode");class lc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const cc=function(t){return new wl(t)},uc=cc,hc=function(t){return Promise.resolve(cc(t))},dc=function(t){const e=cc(t),n=Bn(ke(t).declarations).reduce((t,e)=>{const n=Ce(e);return n&&t.push(new ul(n)),t},[]);return new lc(e,n)},pc=dc,fc=function(t){return Promise.resolve(dc(t))};let mc=(()=>{class t{constructor(){this.compileModuleSync=uc,this.compileModuleAsync=hc,this.compileModuleAndAllComponentsSync=pc,this.compileModuleAndAllComponentsAsync=fc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const gc=new Ut("compilerOptions"),_c=(()=>Promise.resolve(0))();function yc(t){"undefined"==typeof Zone?_c.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class vc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Al(!1),this.onMicrotaskEmpty=new Al(!1),this.onStable=new Al(!1),this.onError=new Al(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Dt.requestAnimationFrame,e=Dt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Dt,()=>{t.lastRequestAnimationFrameId=-1,Cc(t),xc(t)}),Cc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,r,s,o,a)=>{try{return Sc(t),n.invokeTask(r,s,o,a)}finally{e&&"eventTask"===s.type&&e(),kc(t)}},onInvoke:(e,n,i,r,s,o,a)=>{try{return Sc(t),e.invoke(i,r,s,o,a)}finally{kc(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Cc(t),xc(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!vc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(vc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+i,t,wc,bc,bc);try{return r.runTask(s,e,n)}finally{r.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function bc(){}const wc={};function xc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Cc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Sc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function kc(t){t._nesting--,xc(t)}class Ec{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Al,this.onMicrotaskEmpty=new Al,this.onStable=new Al,this.onError=new Al}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let Tc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{vc.assertNotInAngularZone(),yc(()=>{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())yc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Yt(vc))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Ic=(()=>{class t{constructor(){this._applications=new Map,Rc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Rc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class Ac{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Oc,Rc=new Ac,Dc=function(t,e,n){const i=new wl(n);if(0===eo.size)return Promise.resolve(i);const r=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(t.get(gc,[]).concat(e).map(t=>t.providers));if(0===r.length)return Promise.resolve(i);const s=function(){const t=Dt.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),o=Js.create({providers:r}).get(s.ResourceLoader);return function(t){const e=[],n=new Map;function i(t){let e=n.get(t);if(!e){const i=(t=>Promise.resolve(o.get(t)))(t);n.set(t,e=i.then(io))}return e}return eo.forEach((t,n)=>{const r=[];t.templateUrl&&r.push(i(t.templateUrl).then(e=>{t.template=e}));const s=t.styleUrls,o=t.styles||(t.styles=[]),a=t.styles.length;s&&s.forEach((e,n)=>{o.push(""),r.push(i(e).then(i=>{o[a+n]=i,s.splice(s.indexOf(e),1),0==s.length&&(t.styleUrls=void 0)}))});const l=Promise.all(r).then(()=>function(t){no.delete(t)}(n));e.push(l)}),eo=new Map,Promise.all(e).then(()=>{})}().then(()=>i)};const Pc=new Ut("AllowMultipleToken");class Nc{constructor(t,e){this.name=t,this.token=e}}function Mc(t,e,n=[]){const i=`Platform: ${e}`,r=new Ut(i);return(e=[])=>{let s=Lc();if(!s||s.injector.get(Pc,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:js,useValue:"platform"});!function(t){if(Oc&&!Oc.destroyed&&!Oc.injector.get(Pc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Oc=t.get(Fc);const e=t.get(nc,null);e&&e.forEach(t=>t())}(Js.create({providers:t,name:i}))}return function(t){const e=Lc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function Lc(){return Oc&&!Oc.destroyed?Oc:null}let Fc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Ec:("zone.js"===t?void 0:t)||new vc({enableLongStackTrace:xi(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:vc,useValue:n}];return n.run(()=>{const e=Js.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(ui,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>Uc(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{s.handleError(t)}})),function(t,e,n){try{const i=n();return Oo(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(s,n,()=>{const t=r.injector.get(Ql);return t.runInitializers(),t.donePromise.then(()=>(yl(r.injector.get(oc,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Vc({},e);return Dc(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(jc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${xt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Yt(Js))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function Vc(t,e){return Array.isArray(e)?e.reduce(Vc,t):Object.assign(Object.assign({},t),e)}let jc=(()=>{class t{constructor(t,e,n,i,r,s){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=xi(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new w(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new w(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{vc.assertNotInAngularZone(),yc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{vc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=K(o,a.pipe(t=>{return Y()((e=nt,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,tt);return i.source=t,i.subjectFactory=n,i})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Aa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(ee),r=n.create(Js.NULL,[],e||n.selector,i);r.onDestroy(()=>{this._unloadComponent(r)});const s=r.injector.get(Tc,null);return s&&r.injector.get(Ic).registerApplication(r.location.nativeElement,s),this._loadComponent(r),xi()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Uc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(rc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Uc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Yt(vc),Yt(sc),Yt(Js),Yt(ui),Yt(Ra),Yt(Ql))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function Uc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class zc{}class Hc{}const Bc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let qc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Bc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>$c(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+r]).then(t=>$c(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(Yt(mc),Yt(Hc,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function $c(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Wc=Mc(null,"core",[{provide:ic,useValue:"unknown"},{provide:Fc,deps:[Js]},{provide:Ic,deps:[]},{provide:sc,deps:[]}]),Gc=[{provide:jc,useClass:jc,deps:[vc,sc,Js,ui,Ra,Ql]},{provide:cl,deps:[vc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Ql,useClass:Ql,deps:[[new ot,Zl]]},{provide:mc,useClass:mc,deps:[]},tc,{provide:Za,useFactory:function(){return tl},deps:[]},{provide:Qa,useFactory:function(){return el},deps:[]},{provide:oc,useFactory:function(t){return yl(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new st(oc),new ot,new lt]]},{provide:ac,useValue:"USD"}];let Xc=(()=>{class t{constructor(t){}}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)(Yt(jc))},providers:Gc}),t})(),Kc=null;function Yc(){return Kc}const Zc=new Ut("DocumentToken");let Qc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:Jc,token:t,providedIn:"platform"}),t})();function Jc(){return Yt(eu)}const tu=new Ut("Location Initialized");let eu=(()=>{class t extends Qc{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Yc().getLocation(),this._history=Yc().getHistory()}getBaseHrefFromDOM(){return Yc().getBaseHref(this._doc)}onPopState(t){Yc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Yc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){nu()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){nu()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zc))},t.\u0275prov=dt({factory:iu,token:t,providedIn:"platform"}),t})();function nu(){return!!window.history.pushState}function iu(){return new eu(Yt(Zc))}function ru(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function su(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function ou(t){return t&&"?"!==t[0]?"?"+t:t}let au=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:lu,token:t,providedIn:"root"}),t})();function lu(t){const e=Yt(Zc).location;return new uu(Yt(Qc),e&&e.origin||"")}const cu=new Ut("appBaseHref");let uu=(()=>{class t extends au{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return ru(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+ou(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+ou(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+ou(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Yt(Qc),Yt(cu,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),hu=(()=>{class t extends au{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=ru(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let r=this.prepareExternalUrl(n+ou(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){let r=this.prepareExternalUrl(n+ou(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Yt(Qc),Yt(cu,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),du=(()=>{class t{constructor(t,e){this._subject=new Al,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=su(fu(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+ou(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,fu(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ou(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ou(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(Yt(au),Yt(Qc))},t.normalizeQueryParams=ou,t.joinWithSlash=ru,t.stripTrailingSlash=su,t.\u0275prov=dt({factory:pu,token:t,providedIn:"root"}),t})();function pu(){return new du(Yt(au),Yt(Qc))}function fu(t){return t.replace(/\/index.html$/,"")}const mu=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}();class gu{}let _u=(()=>{class t extends gu{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ml(e);if(n)return n;const i=e.split("-")[0];if(n=ml(i),n)return n;if("en"===i)return pl;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[gl.PluralCase]}(e||this.locale)(t)){case mu.Zero:return"zero";case mu.One:return"one";case mu.Two:return"two";case mu.Few:return"few";case mu.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Yt(oc))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function yu(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}let vu=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(co(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${xt(t.item)}`);this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(vo(Za),vo(Qa),vo(Da),vo(La))},t.\u0275dir=we({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class bu{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let wu=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){xi()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. `+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new bu(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new xu(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const s=new xu(t,r);e.push(s)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(vo(rl),vo(nl),vo(Za))},t.\u0275dir=we({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class xu{constructor(t,e){this.record=t,this.view=e}}let Cu=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new Su,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){ku("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){ku("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(vo(rl),vo(nl))},t.\u0275dir=we({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class Su{constructor(){this.$implicit=null,this.ngIf=null}}function ku(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${xt(e)}'.`)}class Eu{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Tu=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Eu(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(vo(rl),vo(nl),vo(Tu,1))},t.\u0275dir=we({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Au=(()=>{class t{constructor(t,e,n){n._addDefault(new Eu(t,e))}}return t.\u0275fac=function(e){return new(e||t)(vo(rl),vo(nl),vo(Tu,1))},t.\u0275dir=we({type:t,selectors:[["","ngSwitchDefault",""]]}),t})();class Ou{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Ru{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Du=new Ru,Pu=new Ou;let Nu=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):ao(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,lo.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Oo(e))return Du;if(Ro(e))return Pu;throw Error(`InvalidPipeArgument: '${e}' for pipe '${xt(t)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(function(t=ct.Default){const e=Ls(!0);if(null!=e||t&ct.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=xe({name:"async",type:t,pure:!1}),t})(),Mu=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[{provide:gu,useClass:_u}]}),t})(),Lu=(()=>{class t{}return t.\u0275prov=dt({token:t,providedIn:"root",factory:()=>new Fu(Yt(Zc),window,Yt(ui))}),t})();class Fu{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector(`#${t}`);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}class Vu extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Vu,Kc||(Kc=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Uu||(Uu=document.querySelector("base"),Uu)?Uu.getAttribute("href"):null;return null==e?null:(n=e,ju||(ju=document.createElement("a")),ju.setAttribute("href",n),"/"===ju.pathname.charAt(0)?ju.pathname:"/"+ju.pathname);var n}resetBaseElement(){Uu=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return yu(document.cookie,t)}}let ju,Uu=null;const zu=new Ut("TRANSITION_ID"),Hu=[{provide:Zl,useFactory:function(t,e,n){return()=>{n.get(Ql).donePromise.then(()=>{const n=Yc();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[zu,Zc,Js],multi:!0}];class Bu{static init(){var t;t=new Bu,Rc=t}addToWindow(t){Dt.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Dt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Dt.getAllAngularRootElements=()=>t.getAllRootElements(),Dt.frameworkStabilizers||(Dt.frameworkStabilizers=[]),Dt.frameworkStabilizers.push(t=>{const e=Dt.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach((function(t){t.whenStable(r)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?Yc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const qu=new Ut("EventManagerPlugins");let $u=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Xu=(()=>{class t extends Gu{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Yc().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zc))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Ku={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/"},Yu=/%COMP%/g;function Zu(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Ju=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new th(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case he.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new eh(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case he.Native:case he.ShadowDom:return new nh(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Zu(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Yt($u),Yt(Xu),Yt(Jl))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class th{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Ku[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const r=Ku[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=Ku[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&Ma.DashCase?t.style.setProperty(e,n,i&Ma.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Ma.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Qu(n)):this.eventManager.addEventListener(t,e,Qu(n))}}class eh extends th{constructor(t,e,n,i){super(t),this.component=n;const r=Zu(i+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(Yu,i+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(Yu,t)}(i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class nh extends th{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===he.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=Zu(i.id,i.styles,[]);for(let s=0;s{class t extends Wu{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zc))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const rh=["alt","control","meta","shift"],sh={"\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"},oh={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"},ah={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let lh=(()=>{class t extends Wu{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const r=t.parseEventName(n),s=t.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Yc().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let s="";if(rh.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),s+=t+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&oh.hasOwnProperty(e)&&(e=oh[e]))}return sh[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),rh.forEach(i=>{i!=n&&(0,ah[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded(()=>n(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zc))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),ch=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return Yt(uh)},token:t,providedIn:"root"}),t})(),uh=(()=>{class t extends ch{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case qi.NONE:return e;case qi.HTML:return yi(e,"HTML")?_i(e):function(t,e){let n=null;try{Hi=Hi||new Ci(t);let i=e?String(e):"";n=Hi.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=Hi.getInertBodyElement(i)}while(i!==s);const o=new Vi,a=o.sanitizeChildren(Bi(n)||n);return xi()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Bi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(this._doc,String(e));case qi.STYLE:return yi(e,"Style")?_i(e):function(t){if(!(t=String(t).trim()))return"";const e=t.match(Wi);return e&&Ei(e[1])===e[1]||t.match($i)&&function(t){let e=!0,n=!0;for(let i=0;i{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Jl,useValue:e.appId},{provide:zu,useExisting:Jl},Hu]}}}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)(Yt(t,12))},providers:dh,imports:[Mu,Xc]}),t})();function fh(){return new mh(Yt(Zc))}let mh=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zc))},t.\u0275prov=dt({factory:fh,token:t,providedIn:"root"}),t})();function gh(t,e){return new w(n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a{c||(c=!0,o++),r[a]=t},error:t=>n.error(t),complete:()=>{s++,s!==i&&c||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}"undefined"!=typeof window&&window;const _h=new Ut("NgValueAccessor"),yh={provide:_h,useExisting:kt(()=>vh),multi:!0};let vh=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(vo(La),vo(Da))},t.\u0275dir=we({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Do("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[Ia([yh])]}),t})();const bh={provide:_h,useExisting:kt(()=>xh),multi:!0},wh=new Ut("CompositionEventMode");let xh=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Yc()?Yc().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(vo(La),vo(Da),vo(wh,8))},t.\u0275dir=we({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Do("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[Ia([bh])]}),t})(),Ch=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t}),t})(),Sh=(()=>{class t extends Ch{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return kh(e||t)},t.\u0275dir=we({type:t,features:[da]}),t})();const kh=oi(Sh);function Eh(){throw new Error("unimplemented")}class Th extends Ch{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return Eh()}get asyncValidator(){return Eh()}}let Ih=(()=>{class t extends class{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(vo(Th,2))},t.\u0275dir=we({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Ko("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[da]}),t})();function Ah(t){return null==t||0===t.length}const Oh=new Ut("NgValidators"),Rh=new Ut("NgAsyncValidators"),Dh=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ph{static min(t){return e=>{if(Ah(e.value)||Ah(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(Ah(e.value)||Ah(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Ah(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Ah(t.value)?null:Dh.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(Ah(e.value))return null;const n=e.value?e.value.length:0;return n{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return Ph.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(Ah(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(Nh);return 0==e.length?null:function(t){return Lh(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(Nh);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(c(e))return gh(e,null);if(u(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return gh(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return gh(t=1===t.length&&c(t[0])?t[0]:t,null).pipe(V(t=>e(...t)))}return gh(t,null)}(function(t,e){return e.map(e=>e(t))}(t,e).map(Mh)).pipe(V(Lh))}}}function Nh(t){return null!=t}function Mh(t){const e=Oo(t)?H(t):t;if(!Ro(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Lh(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Fh(t){return t.validate?e=>t.validate(e):t}function Vh(t){return t.validate?e=>t.validate(e):t}const jh={provide:_h,useExisting:kt(()=>Uh),multi:!0};let Uh=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(vo(La),vo(Da))},t.\u0275dir=we({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&Do("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Ia([jh])]}),t})();const zh={provide:_h,useExisting:kt(()=>Bh),multi:!0};let Hh=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Bh=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Th),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}return t.\u0275fac=function(e){return new(e||t)(vo(La),vo(Da),vo(Hh),vo(Js))},t.\u0275dir=we({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&Do("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Ia([zh])]}),t})();const qh={provide:_h,useExisting:kt(()=>$h),multi:!0};let $h=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(vo(La),vo(Da))},t.\u0275dir=we({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&Do("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Ia([qh])]}),t})();const Wh='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Gh='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Xh='\n
\n
\n \n
\n
',Kh={provide:_h,useExisting:kt(()=>Yh),multi:!0};let Yh=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=ao}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(vo(La),vo(Da))},t.\u0275dir=we({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Do("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Ia([Kh])]}),t})();const Zh={provide:_h,useExisting:kt(()=>Qh),multi:!0};let Qh=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=ao}set compareWith(t){if("function"!=typeof t)throw new Error(`compareWith must be a function, but received ${JSON.stringify(t)}`);this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&ed(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&ed(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function ed(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function nd(t,e){null==t&&rd(e,"Cannot find control with"),t.validator=Ph.compose([t.validator,e.validator]),t.asyncValidator=Ph.composeAsync([t.asyncValidator,e.asyncValidator])}function id(t){return rd(t,"There is no FormControl instance attached to form control element with")}function rd(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function sd(t){return null!=t?Ph.compose(t.map(Fh)):null}function od(t){return null!=t?Ph.composeAsync(t.map(Vh)):null}const ad=[vh,$h,Uh,Yh,Qh,Bh];function ld(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function cd(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function ud(t){const e=dd(t)?t.validators:t;return Array.isArray(e)?sd(e):e||null}function hd(t,e){const n=dd(e)?e.asyncValidators:t;return Array.isArray(n)?od(n):n||null}function dd(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class pd{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=ud(t)}setAsyncValidators(t){this.asyncValidator=hd(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=Mh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof md?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof gd&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Al,this.statusChanges=new Al}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){dd(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class fd extends pd{constructor(t=null,e,n){super(ud(e),hd(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class md extends pd{constructor(t,e,n){super(ud(e),hd(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof fd?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((n,i)=>{e=e||this.contains(i)&&t(n)}),e}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class gd extends pd{constructor(t,e,n){super(ud(e),hd(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof fd?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const _d={provide:Sh,useExisting:kt(()=>vd)},yd=(()=>Promise.resolve(null))();let vd=(()=>{class t extends Sh{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Al,this.form=new md({},sd(t),od(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){yd.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),td(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){yd.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),cd(this._directives,t)})}addFormGroup(t){yd.then(()=>{const e=this._findContainer(t.path),n=new md({});nd(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){yd.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){yd.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,ld(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(vo(Oh,10),vo(Rh,10))},t.\u0275dir=we({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Do("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ia([_d]),da]}),t})(),bd=(()=>{class t extends Sh{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Jh(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return sd(this._validators)}get asyncValidator(){return od(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return wd(e||t)},t.\u0275dir=we({type:t,features:[da]}),t})();const wd=oi(bd);class xd{static modelParentException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup's partner directive "formControlName" instead. Example:\n\n ${Wh}\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n `)}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${Gh}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${Xh}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${Gh}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${Xh}`)}}const Cd={provide:Sh,useExisting:kt(()=>Sd)};let Sd=(()=>{class t extends bd{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof vd||xd.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(vo(Sh,5),vo(Oh,10),vo(Rh,10))},t.\u0275dir=we({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Ia([Cd]),da]}),t})();const kd={provide:Th,useExisting:kt(()=>Td)},Ed=(()=>Promise.resolve(null))();let Td=(()=>{class t extends Th{constructor(t,e,n,i){super(),this.control=new fd,this._registered=!1,this.update=new Al,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||rd(t,"Value accessor was not provided as an array for form control with");let n=void 0,i=void 0,r=void 0;return e.forEach(e=>{var s;e.constructor===xh?n=e:(s=e,ad.some(t=>s.constructor===t)?(i&&rd(t,"More than one built-in value accessor matches form control with"),i=e):(r&&rd(t,"More than one custom value accessor matches form control with"),r=e))}),r||i||n||(rd(t,"No valid value accessor for form control with"),null)}(this,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!ao(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Jh(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return sd(this._rawValidators)}get asyncValidator(){return od(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){td(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Sd)&&this._parent instanceof bd?xd.formGroupNameException():this._parent instanceof Sd||this._parent instanceof vd||xd.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||xd.missingNameException()}_updateValue(t){Ed.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Ed.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(vo(Sh,9),vo(Oh,10),vo(Rh,10),vo(_h,10))},t.\u0275dir=we({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ia([kd]),da,ya]}),t})();const Id=new Ut("NgModelWithFormControlWarning"),Ad={provide:Sh,useExisting:kt(()=>Od)};let Od=(()=>{class t extends Sh{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new Al}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return td(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){cd(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);nd(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);nd(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,ld(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>id(e)),e.valueAccessor.registerOnTouched(()=>id(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&td(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=sd(this._validators);this.form.validator=Ph.compose([this.form.validator,t]);const e=od(this._asyncValidators);this.form.asyncValidator=Ph.composeAsync([this.form.asyncValidator,e])}_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 ${Wh}`)}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 ${Gh}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${Xh}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${Wh}`)}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 ${Gh}`)}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 \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')}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(t){console.warn(`\n It looks like you're using ngModel on the same form field as ${t}. \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"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(vo(Oh,10),vo(Rh,10))},t.\u0275dir=we({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Do("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ia([Ad]),da,ya]}),t})(),Rd=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)}}),t})(),Dd=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,r=null,s=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,s=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new md(n,{asyncValidators:r,updateOn:s,validators:i})}control(t,e,n){return new fd(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new gd(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof fd||t instanceof md||t instanceof gd?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Pd=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[Hh],imports:[Rd]}),t})(),Nd=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Id,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[Dd,Hh],imports:[Rd]}),t})();function Md(...t){let e=t[t.length-1];return I(e)?(t.pop(),z(t,e)):X(t)}class Ld extends E{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new C;return this._value}next(t){super.next(this._value=t)}}const Fd=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Vd={};function jd(...t){let e=null,n=null;return I(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&c(t[0])&&(t=t[0]),X(t,n).lift(new Ud(e))}class Ud{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new zd(t,this.resultSelector))}}class zd extends F{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Vd),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;nt.complete());function Bd(t){return t?function(t){return new w(e=>t.schedule(()=>e.complete()))}(t):Hd}function qd(t){return new w(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?H(n):Bd()).subscribe(e)})}function $d(){return G(1)}function Wd(t,e){return function(n){return n.lift(new Gd(t,e))}}class Gd{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Xd(t,this.predicate,this.thisArg))}}class Xd extends m{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}const Kd=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Yd(t){return function(e){return 0===t?Bd():e.lift(new Zd(t))}}class Zd{constructor(t){if(this.total=t,this.total<0)throw new Kd}call(t,e){return e.subscribe(new Qd(t,this.total))}}class Qd extends m{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;re.lift(new tp(t))}class tp{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new ep(t,this.errorFactory))}}class ep extends m{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function np(){return new Fd}function ip(t=null){return e=>e.lift(new rp(t))}class rp{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new sp(t,this.defaultValue))}}class sp extends m{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function op(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Wd((e,n)=>t(e,n,i)):W,Yd(1),n?ip(e):Jd(()=>new Fd))}function ap(t){return function(e){const n=new lp(t),i=e.lift(n);return n.caught=i}}class lp{constructor(t){this.selector=t}call(t,e){return e.subscribe(new cp(t,this.selector,this.caught))}}class cp extends F{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new A(this,void 0,void 0);this.add(i);const r=L(this,n,void 0,void 0,i);r!==i&&this.add(r)}}}function up(t){return e=>0===t?Bd():e.lift(new hp(t))}class hp{constructor(t){if(this.total=t,this.total<0)throw new Kd}call(t,e){return e.subscribe(new dp(t,this.total))}}class dp extends m{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function pp(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Wd((e,n)=>t(e,n,i)):W,up(1),n?ip(e):Jd(()=>new Fd))}class fp{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new mp(t,this.predicate,this.thisArg,this.source))}}class mp extends m{constructor(t,e,n,i){super(t),this.predicate=e,this.thisArg=n,this.source=i,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function gp(t,e){return"function"==typeof e?n=>n.pipe(gp((n,i)=>H(t(n,i)).pipe(V((t,r)=>e(n,t,i,r))))):e=>e.lift(new _p(t))}class _p{constructor(t){this.project=t}call(t,e){return e.subscribe(new yp(t,this.project))}}class yp extends F{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)}_innerSub(t,e,n){const i=this.innerSubscription;i&&i.unsubscribe();const r=new A(this,e,n),s=this.destination;s.add(r),this.innerSubscription=L(this,t,void 0,void 0,r),this.innerSubscription!==r&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,i,r){this.destination.next(e)}}function vp(...t){return $d()(Md(...t))}function bp(...t){const e=t[t.length-1];return I(e)?(t.pop(),n=>vp(t,n,e)):e=>vp(t,e)}function wp(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new xp(t,e,n))}}class xp{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new Cp(t,this.accumulator,this.seed,this.hasSeed))}}class Cp extends m{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function Sp(t,e){return B(t,e,1)}function kp(t,e,n){return function(i){return i.lift(new Ep(t,e,n))}}class Ep{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Tp(t,this.nextOrObserver,this.error,this.complete))}}class Tp extends m{constructor(t,e,n,i){super(t),this._tapNext=y,this._tapError=y,this._tapComplete=y,this._tapError=n||y,this._tapComplete=i||y,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||y,this._tapError=e.error||y,this._tapComplete=e.complete||y)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class Ip{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Ap(t,this.callback))}}class Ap extends m{constructor(t,e){super(t),this.add(new d(e))}}class Op{constructor(t,e){this.id=t,this.url=e}}class Rp extends Op{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Dp extends Op{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Pp extends Op{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Np extends Op{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Mp extends Op{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lp extends Op{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fp extends Op{constructor(t,e,n,i,r){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Vp extends Op{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jp extends Op{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Up{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class zp{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Hp{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bp{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qp{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $p{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wp{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let Gp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=me({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Eo(0,"router-outlet")},directives:function(){return[Km]},encapsulation:2}),t})();class Xp{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Kp(t){return new Xp(t)}function Yp(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Zp(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthe.indexOf(t)>-1):t===e}function of(t){return Array.prototype.concat.apply([],t)}function af(t){return t.length>0?t[t.length-1]:null}function lf(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function cf(t){return Ro(t)?t:Oo(t)?H(Promise.resolve(t)):Md(t)}function uf(t,e,n){return n?function(t,e){return rf(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!ff(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>sf(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,r){if(n.segments.length>r.length)return!!ff(n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!ff(n.segments,r))return!1;for(const e in i.children){if(!n.children[e])return!1;if(!t(n.children[e],i.children[e]))return!1}return!0}{const t=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!ff(n.segments,t)&&!!n.children.primary&&e(n.children.primary,i,s)}}(e,n,n.segments)}(t.root,e.root)}class hf{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Kp(this.queryParams)),this._queryParamMap}toString(){return yf.serialize(this)}}class df{constructor(t,e){this.segments=t,this.children=e,this.parent=null,lf(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vf(this)}}class pf{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Kp(this.parameters)),this._parameterMap}toString(){return kf(this)}}function ff(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function mf(t,e){let n=[];return lf(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),lf(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}class gf{}class _f{parse(t){const e=new Of(t);return new hf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,n){if(!e.hasChildren())return vf(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",i=[];return lf(e.children,(e,n)=>{"primary"!==n&&i.push(`${n}:${t(e,!1)}`)}),i.length>0?`${n}(${i.join("//")})`:n}{const n=mf(e,(n,i)=>"primary"===i?[t(e.children.primary,!1)]:[`${i}:${t(n,!1)}`]);return`${vf(e)}/(${n.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${wf(e)}=${wf(t)}`).join("&"):`${wf(e)}=${wf(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const yf=new _f;function vf(t){return t.segments.map(t=>kf(t)).join("/")}function bf(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wf(t){return bf(t).replace(/%3B/gi,";")}function xf(t){return bf(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cf(t){return decodeURIComponent(t)}function Sf(t){return Cf(t.replace(/\+/g,"%20"))}function kf(t){return`${xf(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${xf(t)}=${xf(e[t])}`).join("")}`;var e}const Ef=/^[^\/()?;=#]+/;function Tf(t){const e=t.match(Ef);return e?e[0]:""}const If=/^[^=?&#]+/,Af=/^[^?&#]+/;class Of{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new df([],{}):new df([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new df(t,e)),n}parseSegment(){const t=Tf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new pf(Cf(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Tf(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Tf(this.remaining);t&&(n=t,this.capture(n))}t[Cf(e)]=Cf(n)}parseQueryParam(t){const e=function(t){const e=t.match(If);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Af);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Sf(e),r=Sf(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Tf(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");const s=this.parseChildren();e[r]=1===Object.keys(s).length?s.primary:new df([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Rf{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Df(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Df(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Pf(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Pf(t,this._root).map(t=>t.value)}}function Df(t,e){if(t===e.value)return e;for(const n of e.children){const e=Df(t,n);if(e)return e}return null}function Pf(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Pf(t,n);if(i.length)return i.unshift(e),i}return[]}class Nf{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Mf(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Lf extends Rf{constructor(t,e){super(t),this.snapshot=e,Hf(this,t)}toString(){return this.snapshot.toString()}}function Ff(t,e){const n=function(t,e){const n=new Uf([],{},{},"",{},"primary",e,null,t.root,-1,{});return new zf("",new Nf(n,[]))}(t,e),i=new Ld([new pf("",{})]),r=new Ld({}),s=new Ld({}),o=new Ld({}),a=new Ld(""),l=new Vf(i,r,o,a,s,"primary",e,n.root);return l.snapshot=n.root,new Lf(new Nf(l,[]),n)}class Vf{constructor(t,e,n,i,r,s,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,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(V(t=>Kp(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(V(t=>Kp(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function jf(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Uf{constructor(t,e,n,i,r,s,o,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=Kp(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Kp(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class zf extends Rf{constructor(t,e){super(e),this.url=t,Hf(this,e)}toString(){return Bf(this._root)}}function Hf(t,e){e.value._routerState=t,e.children.forEach(e=>Hf(t,e))}function Bf(t){const e=t.children.length>0?` { ${t.children.map(Bf).join(", ")} } `:"";return`${t.value}${e}`}function qf(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,rf(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),rf(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nrf(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||$f(t.parent,e.parent))}function Wf(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Gf(t,e,n,i,r){let s={};return i&&lf(i,(t,e)=>{s[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new hf(n.root===t?e:function t(e,n,i){const r={};return lf(e.children,(e,s)=>{r[s]=e===n?i:t(e,n,i)}),new df(e.segments,r)}(n.root,t,e),s,r)}class Xf{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Wf(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(i&&i!==af(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Kf{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Yf(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function Zf(t,e,n){if(t||(t=new df([],{})),0===t.segments.length&&t.hasChildren())return Qf(t,e,n);const i=function(t,e,n){let i=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return s;const e=t.segments[r],o=Yf(n[i]),a=i0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!nm(o,a,e))return s;i+=2}else{if(!nm(o,{},e))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex{null!==n&&(r[i]=Zf(t.children[i],e,n))}),lf(t.children,(t,e)=>{void 0===i[e]&&(r[e]=t)}),new df(t.segments,r)}}function Jf(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r{null!==t&&(e[n]=Jf(new df([],{}),0,t))}),e}function em(t){const e={};return lf(t,(t,n)=>e[n]=`${t}`),e}function nm(t,e,n){return t==n.path&&rf(e,n.parameters)}class im{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),qf(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Mf(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),lf(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const i=Mf(t),r=t.value.component?n.children:e;lf(i,(t,e)=>this.deactivateRouteAndItsChildren(t,r)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const i=Mf(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new $p(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Bp(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(qf(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),rm(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=r,e.outlet&&e.outlet.activateWith(i,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function rm(t){qf(t.value),t.children.forEach(rm)}function sm(t){return"function"==typeof t}function om(t){return t instanceof hf}class am{constructor(t){this.segmentGroup=t||null}}class lm{constructor(t){this.urlTree=t}}function cm(t){return new w(e=>e.error(new am(t)))}function um(t){return new w(e=>e.error(new lm(t)))}function hm(t){return new w(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class dm{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(ee)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(V(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(ap(t=>{if(t instanceof lm)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof am)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(V(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(ap(t=>{if(t instanceof am)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new df([],{primary:t}):t;return new hf(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(V(t=>new df([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Md({});const n=[],i=[],r={};return lf(t,(t,s)=>{const o=e(s,t).pipe(V(t=>r[s]=t));"primary"===s?n.push(o):i.push(o)}),Md.apply(null,n.concat(i)).pipe($d(),op(),V(()=>r))}(n.children,(n,i)=>this.expandSegmentGroup(t,e,i,n))}expandSegment(t,e,n,i,r,s){return Md(...n).pipe(V(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,r,s).pipe(ap(t=>{if(t instanceof am)return Md(null);throw t}))),$d(),pp(t=>!!t),ap((t,n)=>{if(t instanceof Fd||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,i,r))return Md(new df([],{}));throw new am(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,i,r,s,o){return gm(i)!==s?cm(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s):cm(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?um(r):this.lineralizeSegments(n,r).pipe(B(n=>{const r=new df(n,{});return this.expandSegment(t,r,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=pm(e,i,r);if(!o)return cm(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?um(u):this.lineralizeSegments(i,u).pipe(B(i=>this.expandSegment(t,e,n,i.concat(r.slice(l)),s,!1)))}matchSegmentAgainstRoute(t,e,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(V(t=>(n._loadedConfig=t,new df(i,{})))):Md(new df(i,{}));const{matched:r,consumedSegments:s,lastChild:o}=pm(e,n,i);if(!r)return cm(e);const a=i.slice(o);return this.getChildConfig(t,n,i).pipe(B(t=>{const n=t.module,i=t.routes,{segmentGroup:r,slicedSegments:o}=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some(n=>mm(t,e,n)&&"primary"!==gm(n))}(t,n,i)?{segmentGroup:fm(new df(e,function(t,e){const n={};n.primary=e;for(const i of t)""===i.path&&"primary"!==gm(i)&&(n[gm(i)]=new df([],{}));return n}(i,new df(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>mm(t,e,n))}(t,n,i)?{segmentGroup:fm(new df(t.segments,function(t,e,n,i){const r={};for(const s of n)mm(t,e,s)&&!i[gm(s)]&&(r[gm(s)]=new df([],{}));return Object.assign(Object.assign({},i),r)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,a,i);return 0===o.length&&r.hasChildren()?this.expandChildren(n,i,r).pipe(V(t=>new df(s,t))):0===i.length&&0===o.length?Md(new df(s,{})):this.expandSegment(n,r,i,o,"primary",!0).pipe(V(t=>new df(s.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Md(new Qp(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Md(e._loadedConfig):function(t,e,n){const i=e.canLoad;return i&&0!==i.length?H(i).pipe(V(i=>{const r=t.get(i);let s;if(function(t){return t&&sm(t.canLoad)}(r))s=r.canLoad(e,n);else{if(!sm(r))throw new Error("Invalid CanLoad guard");s=r(e,n)}return cf(s)})).pipe($d(),(r=t=>!0===t,t=>t.lift(new fp(r,void 0,t)))):Md(!0);var r}(t.injector,e,n).pipe(B(n=>n?this.configLoader.load(t.injector,e).pipe(V(t=>(e._loadedConfig=t,t))):function(t){return new w(e=>e.error(Yp(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Md(new Qp([],t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Md(n);if(i.numberOfChildren>1||!i.children.primary)return hm(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const r=this.createSegmentGroup(t,e.root,n,i);return new hf(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return lf(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let s={};return lf(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,n,i)}),new df(r,s)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function pm(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(e.matcher||Zp)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function fm(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new df(t.segments.concat(e.segments),e.children)}return t}function mm(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function gm(t){return t.outlet||"primary"}class _m{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class ym{constructor(t,e){this.component=t,this.route=e}}function vm(t,e,n){const i=t._root;return function t(e,n,i,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=Mf(n);return e.children.forEach(e=>{!function(e,n,i,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,l=i?i.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!ff(t.url,e.url);case"pathParamsOrQueryParamsChange":return!ff(t.url,e.url)||!rf(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$f(t,e)||!rf(t.queryParams,e.queryParams);case"paramsChange":default:return!$f(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new _m(r)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?l?l.children:null:i,r,s),c&&s.canDeactivateChecks.push(new ym(l&&l.outlet&&l.outlet.component||null,a))}else a&&wm(n,l,s),s.canActivateChecks.push(new _m(r)),t(e,null,o.component?l?l.children:null:i,r,s)}(e,o[e.value.outlet],i,r.concat([e.value]),s),delete o[e.value.outlet]}),lf(o,(t,e)=>wm(t,i.getContext(e),s)),s}(i,e?e._root:null,n,[i.value])}function bm(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function wm(t,e,n){const i=Mf(t),r=t.value;lf(i,(t,i)=>{wm(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new ym(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}const xm=Symbol("INITIAL_VALUE");function Cm(){return gp(t=>jd(...t.map(t=>t.pipe(up(1),bp(xm)))).pipe(wp((t,e)=>{let n=!1;return e.reduce((t,i,r)=>{if(t!==xm)return t;if(i===xm&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||om(i))return i}return t},t)},xm),Wd(t=>t!==xm),V(t=>om(t)?t:!0===t),up(1)))}function Sm(t,e){return null!==t&&e&&e(new qp(t)),Md(!0)}function km(t,e){return null!==t&&e&&e(new Hp(t)),Md(!0)}function Em(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Md(i.map(i=>qd(()=>{const r=bm(i,e,n);let s;if(function(t){return t&&sm(t.canActivate)}(r))s=cf(r.canActivate(e,t));else{if(!sm(r))throw new Error("Invalid CanActivate guard");s=cf(r(e,t))}return s.pipe(pp())}))).pipe(Cm()):Md(!0)}function Tm(t,e,n){const i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>qd(()=>Md(e.guards.map(r=>{const s=bm(r,e.node,n);let o;if(function(t){return t&&sm(t.canActivateChild)}(s))o=cf(s.canActivateChild(i,t));else{if(!sm(s))throw new Error("Invalid CanActivateChild guard");o=cf(s(i,t))}return o.pipe(pp())})).pipe(Cm())));return Md(r).pipe(Cm())}class Im{}class Am{constructor(t,e,n,i,r,s){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){try{const t=Dm(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Uf([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Nf(n,e),r=new zf(this.url,i);return this.inheritParamsAndData(r._root),Md(r)}catch(t){return new w(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=jf(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=mf(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),i=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${i}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,i){for(const s of t)try{return this.processSegmentAgainstRoute(s,e,n,i)}catch(r){if(!(r instanceof Im))throw r}if(this.noLeftoversInUrl(e,n,i))return[];throw new Im}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo)throw new Im;if((t.outlet||"primary")!==i)throw new Im;let r,s=[],o=[];if("**"===t.path){const s=n.length>0?af(n).parameters:{};r=new Uf(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Mm(t),i,t.component,t,Om(e),Rm(e)+n.length,Lm(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Im;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(e.matcher||Zp)(n,t,e);if(!i)throw new Im;const r={};lf(i.posParams,(t,e)=>{r[e]=t.path});const s=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s}}(e,t,n);s=a.consumedSegments,o=n.slice(a.lastChild),r=new Uf(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Mm(t),i,t.component,t,Om(e),Rm(e)+s.length,Lm(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Dm(e,s,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new Nf(r,t)]}if(0===a.length&&0===c.length)return[new Nf(r,[])];const u=this.processSegment(a,l,c,"primary");return[new Nf(r,u)]}}function Om(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Rm(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Dm(t,e,n,i,r){if(n.length>0&&function(t,e,n){return n.some(n=>Pm(t,e,n)&&"primary"!==Nm(n))}(t,n,i)){const r=new df(e,function(t,e,n,i){const r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&"primary"!==Nm(s)){const n=new df([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[Nm(s)]=n}return r}(t,e,i,new df(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Pm(t,e,n))}(t,n,i)){const s=new df(t.segments,function(t,e,n,i,r,s){const o={};for(const a of i)if(Pm(t,n,a)&&!r[Nm(a)]){const n=new df([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[Nm(a)]=n}return Object.assign(Object.assign({},r),o)}(t,e,n,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const s=new df(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Pm(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Nm(t){return t.outlet||"primary"}function Mm(t){return t.data||{}}function Lm(t){return t.resolve||{}}function Fm(t,e,n,i){const r=bm(t,e,i);return cf(r.resolve?r.resolve(e,n):r(e,n))}function Vm(t){return function(e){return e.pipe(gp(e=>{const n=t(e);return n?H(n).pipe(V(()=>e)):H([e])}))}}class jm{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const Um=new Ut("ROUTES");class zm{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(V(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new Qp(of(i.injector.get(Um)).map(nf),i)}))}loadModuleFactory(t){return"string"==typeof t?H(this.loader.load(t)):cf(t()).pipe(B(t=>t instanceof ne?Md(t):H(this.compiler.compileModuleAsync(t))))}}class Hm{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Bm(t){throw t}function qm(t,e,n){return e.parse("/")}function $m(t,e){return Md(null)}let Wm=(()=>{class t{constructor(t,e,n,i,r,s,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new E,this.errorHandler=Bm,this.malformedUriErrorHandler=qm,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:$m,afterPreactivation:$m},this.urlHandlingStrategy=new Hm,this.routeReuseStrategy=new jm,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=r.get(ee),this.console=r.get(sc);const l=r.get(vc);this.isNgZoneEnabled=l instanceof vc,this.resetConfig(a),this.currentUrlTree=new hf(new df([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new zm(s,o,t=>this.triggerEvent(new Up(t)),t=>this.triggerEvent(new zp(t))),this.routerState=Ff(this.currentUrlTree,this.rootComponentType),this.transitions=new Ld({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Wd(t=>0!==t.id),V(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),gp(t=>{let n=!1,i=!1;return Md(t).pipe(kp(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),gp(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Md(t).pipe(gp(t=>{const n=this.transitions.getValue();return e.next(new Rp(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?Hd:[t]}),gp(t=>Promise.resolve(t)),(i=this.ngModule.injector,r=this.configLoader,s=this.urlSerializer,o=this.config,function(t){return t.pipe(gp(t=>function(t,e,n,i,r){return new dm(t,e,n,i,r).apply()}(i,r,s,t.extractedUrl,o).pipe(V(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),kp(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,r){return function(s){return s.pipe(B(s=>function(t,e,n,i,r="emptyOnly",s="legacy"){return new Am(t,e,n,i,r,s).recognize()}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe(V(t=>Object.assign(Object.assign({},s),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),kp(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),kp(t=>{const n=new Mp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,r,s,o;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:s,extras:o}=t,a=new Rp(n,this.serializeUrl(i),r,s);e.next(a);const l=Ff(i,this.rootComponentType).snapshot;return Md(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Hd}),Vm(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),kp(t=>{const e=new Lp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),V(t=>Object.assign(Object.assign({},t),{guards:vm(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(B(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?Md(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return H(t).pipe(B(t=>function(t,e,n,i,r){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?Md(s.map(s=>{const o=bm(s,e,r);let a;if(function(t){return t&&sm(t.canDeactivate)}(o))a=cf(o.canDeactivate(t,e,n,i));else{if(!sm(o))throw new Error("Invalid CanDeactivate guard");a=cf(o(t,e,n,i))}return a.pipe(pp())})).pipe(Cm()):Md(!0)}(t.component,t.route,n,e,i)),pp(t=>!0!==t,!0))}(o,i,r,t).pipe(B(n=>n&&"boolean"==typeof n?function(t,e,n,i){return H(e).pipe(Sp(e=>H([km(e.route.parent,i),Sm(e.route,i),Tm(t,e.path,n),Em(t,e.route,n)]).pipe($d(),pp(t=>!0!==t,!0))),pp(t=>!0!==t,!0))}(i,s,t,e):Md(n)),V(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),kp(t=>{if(om(t.guardsResult)){const e=Yp(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),kp(t=>{const e=new Fp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Wd(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Pp(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Vm(t=>{if(t.guards.canActivateChecks.length)return Md(t).pipe(kp(t=>{const e=new Vp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(t){return t.pipe(B(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;return r.length?H(r).pipe(Sp(t=>function(t,e,n,i){return function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return Md({});if(1===r.length){const s=r[0];return Fm(t[s],e,n,i).pipe(V(t=>({[s]:t})))}const s={};return H(r).pipe(B(r=>Fm(t[r],e,n,i).pipe(V(t=>(s[r]=t,t))))).pipe(op(),V(()=>s))}(t._resolve,t,e,i).pipe(V(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),jf(t,n).resolve),null)))}(t.route,i,e,n)),function(t,e){return arguments.length>=2?function(n){return v(wp(t,e),Yd(1),ip(e))(n)}:function(e){return v(wp((e,n,i)=>t(e,n,i+1)),Yd(1))(e)}}((t,e)=>t),V(e=>t)):Md(t)}))}),kp(t=>{const e=new jp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,n}),Vm(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),V(t=>{const e=function(t,e,n){const i=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){const r=i.value;r._futureSnapshot=n.value;const s=function(e,n,i){return n.children.map(n=>{for(const r of i.children)if(e.shouldReuseRoute(r.value.snapshot,n.value))return t(e,n,r);return t(e,n)})}(e,n,i);return new Nf(r,s)}{const i=e.retrieve(n.value);if(i){const t=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let i=0;it(e,n));return new Nf(i,s)}}var r}(t,e._root,n?n._root:void 0);return new Lf(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),kp(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),V(t=>(new im(o,t.targetRouterState,t.currentRouterState,a).activate(s),t))),kp({next(){n=!0},complete(){n=!0}}),(r=()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new Pp(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new Ip(r))),ap(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=om(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new Pp(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new Np(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}var r;return Hd}));var r,s,o,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",i=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,i,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Jp(t),this.config=t.map(nf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:r,preserveQueryParams:s,queryParamsHandling:o,preserveFragment:a}=e;xi()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,c=a?this.currentUrlTree.fragment:r;let u=null;if(o)switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}else u=s?this.currentUrlTree.queryParams:i||null;return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,n,i,r){if(0===n.length)return Gf(e.root,e.root,e,i,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Xf(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return lf(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Xf(n,e,i)}(n);if(s.toRoot())return Gf(e.root,new df([],{}),e,i,r);const o=function(t,e,n){if(t.isAbsolute)return new Kf(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Kf(n.snapshot._urlSegment,!0,0);const i=Wf(t.commands[0])?0:1;return function(t,e,n){let i=t,r=e,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new Kf(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?Qf(o.segmentGroup,o.index,s.commands):Zf(o.segmentGroup,o.index,s.commands);return Gf(o.segmentGroup,a,e,i,r)}(l,this.currentUrlTree,t,u,c)}navigateByUrl(t,e={skipLocationChange:!1}){xi()&&this.isNgZoneEnabled&&!vc.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=om(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new Dp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,r){const s=this.getTransition();if(s&&"imperative"!==e&&"imperative"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"hashchange"==e&&"popstate"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(s&&"popstate"==e&&"hashchange"===s.source&&s.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,l;r?(o=r.resolve,a=r.reject,l=r.promise):l=new Promise((t,e)=>{o=t,a=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:o,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const r=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){wo()},t.\u0275dir=we({type:t}),t})();class Gm{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Xm,this.attachRef=null}}class Xm{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Gm,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let Km=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new Al,this.deactivateEvents=new Al,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new Ym(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(vo(Xm),vo(rl),vo(Ra),bo("name"),vo(Fs))},t.\u0275dir=we({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Ym{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Vf?this.route:t===Xm?this.childContexts:this.parent.get(t,e)}}class Zm{}class Qm{preload(t,e){return Md(null)}}let Jm=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new zm(e,n,e=>t.triggerEvent(new Up(e)),e=>t.triggerEvent(new zp(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Wd(t=>t instanceof Dp),Sp(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(ee);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return H(n).pipe(G(),V(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(B(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Yt(Wm),Yt(zc),Yt(mc),Yt(Js),Yt(Zm))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),tg=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Rp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Dp&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Wp&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Wp(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){wo()},t.\u0275dir=we({type:t}),t})();const eg=new Ut("ROUTER_CONFIGURATION"),ng=new Ut("ROUTER_FORROOT_GUARD"),ig=[du,{provide:gf,useClass:_f},{provide:Wm,useFactory:function(t,e,n,i,r,s,o,a={},l,c){const u=new Wm(null,t,e,n,i,r,s,of(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),a.errorHandler&&(u.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(u.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=Yc();u.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(u.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(u.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(u.relativeLinkResolution=a.relativeLinkResolution),u},deps:[gf,Xm,du,Js,zc,mc,Um,eg,[class{},new ot],[class{},new ot]]},Xm,{provide:Vf,useFactory:function(t){return t.routerState.root},deps:[Wm]},{provide:zc,useClass:qc},Jm,Qm,class{preload(t,e){return e().pipe(ap(()=>Md(null)))}},{provide:eg,useValue:{enableTracing:!1}}];function rg(){return new Nc("Router",Wm)}let sg=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[ig,cg(e),{provide:ng,useFactory:lg,deps:[[Wm,new ot,new lt]]},{provide:eg,useValue:n||{}},{provide:au,useFactory:ag,deps:[Qc,[new st(cu),new ot],eg]},{provide:tg,useFactory:og,deps:[Wm,Lu,eg]},{provide:Zm,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Qm},{provide:Nc,multi:!0,useFactory:rg},[ug,{provide:Zl,multi:!0,useFactory:hg,deps:[ug]},{provide:pg,useFactory:dg,deps:[ug]},{provide:rc,multi:!0,useExisting:pg}]]}}static forChild(e){return{ngModule:t,providers:[cg(e)]}}}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)(Yt(ng,8),Yt(Wm,8))}}),t})();function og(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new tg(t,e,n)}function ag(t,e,n={}){return n.useHash?new hu(t,e):new uu(t,e)}function lg(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function cg(t){return[{provide:to,multi:!0,useValue:t},{provide:Um,multi:!0,useValue:t}]}let ug=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new E}appInitializer(){return this.injector.get(tu,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Wm),i=this.injector.get(eg);if(this.isLegacyDisabled(i)||this.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error(`Invalid initialNavigation options: '${i.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Md(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(eg),n=this.injector.get(Jm),i=this.injector.get(tg),r=this.injector.get(Wm),s=this.injector.get(jc);t===s.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),r.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(Yt(Js))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();function hg(t){return t.appInitializer.bind(t)}function dg(t){return t.bootstrapListener.bind(t)}const pg=new Ut("Router Initializer"),fg=[];let mg=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},imports:[[sg.forRoot(fg)],sg]}),t})(),gg=(()=>{class t{constructor(){this.title="jakija-bingo"}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=me({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(t,e){1&t&&Eo(0,"router-outlet")},directives:[Km],styles:["mat-grid-tile[_ngcontent-%COMP%]{background:#add8e6}tr[_ngcontent-%COMP%]{text-align:center}"]}),t})();class _g{}function yg(t,e){return{type:7,name:t,definitions:e,options:{}}}function vg(t,e=null){return{type:4,styles:e,timings:t}}function bg(t,e=null){return{type:2,steps:t,options:e}}function wg(t){return{type:6,styles:t,offset:null}}function xg(t,e,n){return{type:0,name:t,styles:e,options:n}}function Cg(t){return{type:5,steps:t}}function Sg(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function kg(t=null){return{type:9,options:t}}function Eg(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function Tg(t){Promise.resolve(null).then(t)}class Ig{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Tg(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Ag{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const r=this.players.length;0==r?Tg(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++n==r&&this._onDestroy()}),t.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Og(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Rg(t){switch(t.length){case 0:return new Ig;case 1:return t[0];default:return new Ag(t)}}function Dg(t,e,n,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,u=i&&c||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),a){case"!":a=r[n];break;case"*":a=s[n];break;default:a=e.normalizeStyleValue(n,i,a,o)}u[i]=a}),i||a.push(u),c=u,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Pg(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&Ng(n,"start",t)));break;case"done":t.onDone(()=>i(n&&Ng(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&Ng(n,"destroy",t)))}}function Ng(t,e,n){const i=n.totalTime,r=Mg(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),s=t._data;return null!=s&&(r._data=s),r}function Mg(t,e,n,i,r="",s=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function Lg(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function Fg(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Vg=(t,e)=>!1,jg=(t,e)=>!1,Ug=(t,e,n)=>[];const zg=Og();(zg||"undefined"!=typeof Element)&&(Vg=(t,e)=>t.contains(e),jg=(()=>{if(zg||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):jg}})(),Ug=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let Hg=null,Bg=!1;function qg(t){Hg||(Hg=("undefined"!=typeof document?document.body:null)||{},Bg=!!Hg.style&&"WebkitAppearance"in Hg.style);let e=!0;return Hg.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in Hg.style,!e&&Bg)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Hg.style),e}const $g=jg,Wg=Vg,Gg=Ug;function Xg(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let Kg=(()=>{class t{validateStyleProperty(t){return qg(t)}matchesElement(t,e){return $g(t,e)}containsElement(t,e){return Wg(t,e)}query(t,e,n){return Gg(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,r,s=[],o){return new Ig(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),Yg=(()=>{class t{}return t.NOOP=new Kg,t})();function Zg(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Qg(parseFloat(e[1]),e[2])}function Qg(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Jg(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,r=0,s="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=Qg(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=Qg(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else i=t;if(!n){let n=!1,s=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(s,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:r,easing:s}}(t,e,n)}function t_(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function e_(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else t_(t,n);return n}function n_(t,e,n){return n?e+":"+n+";":""}function i_(t){let e="";for(let n=0;n{const r=d_(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]}),Og()&&i_(t))}function s_(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=d_(e);t.style[n]=""}),Og()&&i_(t))}function o_(t){return Array.isArray(t)?1==t.length?t[0]:bg(t):t}const a_=new RegExp("{{\\s*(.+?)\\s*}}","g");function l_(t){let e=[];if("string"==typeof t){let n;for(;n=a_.exec(t);)e.push(n[1]);a_.lastIndex=0}return e}function c_(t,e,n){const i=t.toString(),r=i.replace(a_,(t,i)=>{let r=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),r=""),r.toString()});return r==i?t:r}function u_(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const h_=/-+([a-z0-9])/g;function d_(t){return t.replace(h_,(...t)=>t[1].toUpperCase())}function p_(t,e){return 0===t||0===e}function f_(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(t=>{s.hasOwnProperty(t)||o.push(t),s[t]=n[t]}),o.length)for(var r=1;rfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const r=i[1],s=i[2],o=i[3];e.push(b_(r,o)),"<"!=s[0]||"*"==r&&"*"==o||e.push(b_(o,r))}(t,n,e)):n.push(t),n}const y_=new Set(["true","1"]),v_=new Set(["false","0"]);function b_(t,e){const n=y_.has(t)||v_.has(t),i=y_.has(e)||v_.has(e);return(r,s)=>{let o="*"==t||t==r,a="*"==e||e==s;return!o&&n&&"boolean"==typeof r&&(o=r?y_.has(t):v_.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?y_.has(e):v_.has(e)),o&&a}}const w_=new RegExp("s*:selfs*,?","g");function x_(t,e,n){return new C_(t).build(e,n)}class C_{constructor(t){this._driver=t}build(t,e){const n=new S_(e);return this._resetContextStyleTimingState(n),m_(this,o_(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const r=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,r.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,i+=r.depCount,s.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:s,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,s=i||{};if(n.styles.forEach(t=>{if(k_(t)){const e=t;Object.keys(e).forEach(t=>{l_(e[t]).forEach(t=>{s.hasOwnProperty(t)||r.add(t)})})}}),r.size){const n=u_(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=m_(this,o_(t.animation),e);return{type:1,matchers:__(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:E_(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>m_(this,t,e)),options:E_(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map(t=>{e.currentTime=n;const r=m_(this,t,e);return i=Math.max(i,e.currentTime),r});return e.currentTime=i,{type:3,steps:r,options:E_(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return T_(Jg(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=T_(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||Jg(i,e),T_(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let r=t.styles?t.styles:wg({});if(5==r.type)i=this.visitKeyframes(r,e);else{let r=t.styles,s=!1;if(!r){s=!0;const t={};n.easing&&(t.easing=n.easing),r=wg(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(r,e);o.isEmptyStep=s,i=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,r=null;return n.forEach(t=>{if(k_(t)){const e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],o=s[n];let a=!0;o&&(r!=i&&r>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=o.startTime),a&&(s[n]={startTime:r,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},r=l_(t);r.length&&r.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let s=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(k_(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(k_(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),o=o||c<0||c>1,s=s||c0&&i{const s=u>0?i==h?1:u*i:r[i],o=s*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=s,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:m_(this,o_(t.animation),e),options:E_(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:E_(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:E_(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(w_,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,Lg(e.collectedStyles,e.currentQuerySelector,{});const o=m_(this,o_(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:o,originalSelector:t.selector,options:E_(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Jg(t.timings,e.errors,!0);return{type:12,animation:m_(this,o_(t.animation),e),timings:n,options:null}}}class S_{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function k_(t){return!Array.isArray(t)&&"object"==typeof t}function E_(t){var e;return t?(t=t_(t)).params&&(t.params=(e=t.params)?t_(e):null):t={},t}function T_(t,e,n){return{duration:t,delay:e,easing:n}}function I_(t,e,n,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class A_{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const O_=new RegExp(":enter","g"),R_=new RegExp(":leave","g");function D_(t,e,n,i,r,s={},o={},a,l,c=[]){return(new P_).buildKeyframes(t,e,n,i,r,s,o,a,l,c)}class P_{buildKeyframes(t,e,n,i,r,s,o,a,l,c=[]){l=l||new A_;const u=new M_(t,e,l,i,r,c,[]);u.options=a,u.currentTimeline.setStyles([s],null,u.errors,a),m_(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[I_(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,i,i.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const r=null!=n.duration?Zg(n.duration):null,s=null!=n.delay?Zg(n.delay):null;return 0!==r&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,r,s);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),m_(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const r=t.options;if(r&&(r.params||r.delay)&&(i=e.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=N_);const t=Zg(r.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>m_(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?Zg(t.options.delay):0;t.steps.forEach(s=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),m_(this,s,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return Jg(e.params?c_(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,s=e.createSubContext().currentTimeline;s.easing=n.easing,t.styles.forEach(t=>{s.forwardTime((t.offset||0)*r),s.setStyles(t.styles,t.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(i+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},r=i.delay?Zg(i.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=N_);let s=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);r&&o.delayNextStep(r),n===e.element&&(a=o.currentTimeline),m_(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),o=s*(e.currentQueryTotal-1);let a=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;m_(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const N_={};class M_{constructor(t,e,n,i,r,s,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=N_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new L_(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=Zg(n.duration)),null!=n.delay&&(i.delay=Zg(n.delay));const r=n.params;if(r){let t=i.params;t||(t=this.options.params={}),Object.keys(r).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=c_(r[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,r=new M_(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=N_,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new F_(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,r,s){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(O_,"."+this._enterClassName)).replace(R_,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return r||0!=o.length||s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class L_{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new L_(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const r=i&&i.params||{},s=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]="*"})):e_(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(s).forEach(t=>{const e=c_(s[t],r,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,s)=>{const o=e_(r,!0);Object.keys(o).forEach(n=>{const i=o[n];"!"==i?t.add(n):"*"==i&&e.add(n)}),n||(o.offset=s/this.duration),i.push(o)});const r=t.size?u_(t.values()):[],s=e.size?u_(e.values()):[];if(n){const t=i[0],e=t_(t);t.offset=0,e.offset=1,i=[t,e]}return I_(this.element,i,r,s,this.duration,this.startTime,this.easing,!1)}}class F_ extends L_{constructor(t,e,n,i,r,s,o=!1){super(t,e,s.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=n+e,o=e/s,a=e_(t[0],!1);a.offset=0,r.push(a);const l=e_(t[0],!1);l.offset=V_(o),r.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let o=e_(t[i],!1);o.offset=V_((e+o.offset*n)/s),r.push(o)}n=s,e=0,i="",t=r}return I_(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function V_(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class j_{}class U_ extends j_{normalizePropertyName(t,e){return d_(t)}normalizeStyleValue(t,e,n,i){let r="";const s=n.toString().trim();if(z_[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return s+r}}const z_=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function H_(t,e,n,i,r,s,o,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const B_={};class q_{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,r){return t.some(t=>t(e,n,i,r))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],r=this._stateStyles[t],s=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):s}build(t,e,n,i,r,s,o,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||B_,d=this.buildStyles(n,o&&o.params||B_,u),p=a&&a.params||B_,f=this.buildStyles(i,p,u),m=new Set,g=new Map,_=new Map,y="void"===i,v={params:Object.assign(Object.assign({},h),p)},b=c?[]:D_(t,e,this.ast.animation,r,s,d,f,v,l,u);let w=0;if(b.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),u.length)return H_(e,this._triggerName,n,i,y,d,f,[],[],g,_,w,u);b.forEach(t=>{const n=t.element,i=Lg(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const r=Lg(_,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&m.add(n)});const x=u_(m.values());return H_(e,this._triggerName,n,i,y,d,f,b,x,g,_,w)}}class $_{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=t_(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach(t=>{let s=r[t];s.length>1&&(s=c_(s,i,e)),n[t]=s})}}),n}}class W_{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new $_(t.style,t.options&&t.options.params||{})}),G_(this.states,"true","1"),G_(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new q_(t,e,this.states))}),this.fallbackTransition=new q_(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(r=>r.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function G_(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const X_=new A_;class K_{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=x_(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,r=Dg(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],r=this._animations[t];let s;const o=new Map;if(r?(s=D_(this._driver,e,r,"ng-enter","ng-leave",{},{},n,X_,i),s.forEach(t=>{const e=Lg(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),s=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,"*")})});const a=Rg(s.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const r=Mg(e,"","","");return Pg(this._getPlayer(t),n,r,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Y_=[],Z_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Q_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class J_{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=t_(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const ty=new J_("void");class ey{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,ly(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var r;const s=Lg(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};s.push(o);const a=Lg(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(ly(t,"ng-trigger"),ly(t,"ng-trigger-"+e),a[e]=ty),()=>{this._engine.afterFlush(()=>{const t=s.indexOf(o);t>=0&&s.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const r=this._getTrigger(e),s=new iy(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(ly(t,"ng-trigger"),ly(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new J_(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=ty),"void"!==l.value&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let r=0;r{s_(t,n),r_(t,i)})}return}const c=Lg(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=r.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:s,isFallbackTransition:h}),h||(ly(t,"ng-animate-queued"),s.onStart(()=>{cy(t,"ng-animate-queued")})),s.onDone(()=>{let e=this.players.indexOf(s);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(s);t>=0&&n.splice(t,1)}}),this.players.push(s),c.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const r=this._engine.statesByElement.get(t);if(r){const s=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Rg(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const r=this._triggers[i].fallbackTransition,s=this._engine.statesByElement.get(t)[i]||ty,o=new J_("void"),a=new iy(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:r,fromState:s,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==Z_||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){ly(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,s=this._elementListeners.get(r);s&&s.forEach(e=>{if(e.name==n.triggerName){const i=Mg(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,Pg(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class ny{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new ey(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),ly(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),cy(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(ry(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,r){return ry(e)?this._fetchNamespace(t).listen(e,n,i,r):()=>{}}_buildInstruction(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Rg(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Z_,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Rg(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new A_,i=[],r=new Map,s=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n="ng-enter"+f++;p.set(e,n),t.forEach(t=>ly(t,n))});const m=[],g=new Set,_=new Set;for(let O=0;Og.add(t)):_.add(t))}const y=new Map,v=ay(h,Array.from(g));v.forEach((t,e)=>{const n="ng-leave"+f++;y.set(e,n),t.forEach(t=>ly(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>cy(t,n))}),v.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>cy(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const b=[],w=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(b.push(e),this.collectedEnterElements.length){const t=r.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!u||!this.driver.containsElement(u,r),h=y.get(r),d=p.get(r),f=this._buildInstruction(t,n,d,h,c);if(!f.errors||!f.errors.length)return c?(e.onStart(()=>s_(r,f.fromStyles)),e.onDestroy(()=>r_(r,f.toStyles)),void i.push(e)):t.isFallbackTransition?(e.onStart(()=>s_(r,f.fromStyles)),e.onDestroy(()=>r_(r,f.toStyles)),void i.push(e)):(f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(r,f.timelines),s.push({instruction:f,player:e,element:r}),f.queriedElements.forEach(t=>Lg(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),void f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.add(t))}));w.push(f)});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),b.forEach(t=>t.destroy()),this.reportError(t)}const x=new Map,C=new Map;s.forEach(t=>{const e=t.element;n.has(e)&&(C.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,x))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Lg(x,e,[]).push(t),t.destroy()})});const S=m.filter(t=>hy(t,a,l)),k=new Map;oy(k,this.driver,_,l,"*").forEach(t=>{hy(t,a,l)&&S.push(t)});const E=new Map;d.forEach((t,e)=>{oy(E,this.driver,new Set(t),a,"!")}),S.forEach(t=>{const e=k.get(t),n=E.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const T=[],I=[],A={};s.forEach(t=>{const{element:e,player:s,instruction:o}=t;if(n.has(e)){if(c.has(e))return s.onDestroy(()=>r_(e,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let t=A;if(C.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=C.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>C.set(e,t))}const n=this._buildAnimation(s.namespaceId,o,x,r,E,k);if(s.setRealPlayer(n),t===A)T.push(s);else{const e=this.playersByElement.get(t);e&&e.length&&(s.parentPlayer=Rg(e)),i.push(s)}}else s_(e,o.fromStyles),s.onDestroy(()=>r_(e,o.toStyles)),I.push(s),c.has(e)&&i.push(s)}),I.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const n=Rg(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let O=0;O!t.destroyed);i.length?uy(this,t,i):this.processLeaveNode(t)}return m.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,r){let s=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(s=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||"void"==r;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&s.push(e)})}}return(n||i)&&(s=s.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),s}_beforeAnimationBuild(t,e,n){const i=e.element,r=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,l=Lg(n,t,[]);this._getPreviousPlayers(t,a,r,s,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}s_(i,e.fromStyles)}_buildAnimation(t,e,n,i,r,s){const o=e.triggerName,a=e.element,l=[],c=new Set,u=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Ig(e.duration,e.delay);const p=h!==a,f=function(t){const e=[];return function t(e,n){for(let i=0;it.getRealPlayer())).filter(t=>!!t.element&&t.element===h),m=r.get(h),g=s.get(h),_=Dg(0,this._normalizer,0,e.keyframes,m,g),y=this._buildPlayer(e,_,f);if(e.subTimeline&&i&&u.add(h),p){const e=new iy(t,o,h);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{Lg(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>ly(t,"ng-animating"));const d=Rg(h);return d.onDestroy(()=>{c.forEach(t=>cy(t,"ng-animating")),r_(a,e.toStyles)}),u.forEach(t=>{Lg(i,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Ig(t.duration,t.delay)}}class iy{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Ig,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Pg(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Lg(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function ry(t){return t&&1===t.nodeType}function sy(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function oy(t,e,n,i,r){const s=[];n.forEach(t=>s.push(sy(t)));const o=[];i.forEach((n,i)=>{const s={};n.forEach(t=>{const n=s[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=Q_,o.push(i))}),t.set(i,s)});let a=0;return n.forEach(t=>sy(t,s[a++])),o}function ay(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),r=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let s=r.get(e);if(s)return s;const o=e.parentNode;return s=n.has(o)?o:i.has(o)?1:t(o),r.set(e,s),s}(t);1!==e&&n.get(e).push(t)}),n}function ly(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function cy(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function uy(t,e,n){Rg(n).onDone(()=>t.processLeaveNode(e))}function hy(t,e,n){const i=n.get(t);if(!i)return!1;let r=e.get(t);return r?i.forEach(t=>r.add(t)):e.set(t,i),n.delete(t),!0}class dy{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new ny(t,e,n),this._timelineEngine=new K_(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,r){const s=t+"-"+i;let o=this._triggerCache[s];if(!o){const t=[],e=x_(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new W_(t,e)}(i,e),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,r]=Fg(n);this._timelineEngine.command(t,e,r,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,r){if("@"==n.charAt(0)){const[t,i]=Fg(n);return this._timelineEngine.listen(t,e,i,r)}return this._transitionEngine.listen(t,e,n,i,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function py(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=my(e[0]),e.length>1&&(i=my(e[e.length-1]))):e&&(n=my(e)),n||i?new fy(t,n,i):null}let fy=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&r_(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(r_(this._element,this._initialStyles),this._endStyles&&(r_(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(s_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(s_(this._element,this._endStyles),this._endStyles=null),r_(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function my(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=Cy(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),wy(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Cy(t,"").split(","),i=by(n,e);i>=0&&(n.splice(i,1),xy(t,"",n.join(",")))}(this._element,this._name))}}function yy(t,e,n){xy(t,"PlayState",n,vy(t,e))}function vy(t,e){const n=Cy(t,"");return n.indexOf(",")>0?by(n.split(","),e):by([n],e)}function by(t,e){for(let n=0;n=0)return n;return-1}function wy(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function xy(t,e,n,i){const r="animation"+e;if(null!=i){const e=t.style[r];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[r]=n}function Cy(t,e){return t.style["animation"+e]}class Sy{constructor(t,e,n,i,r,s,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new _y(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:g_(this.element,n))})}this.currentSnapshot=t}}class ky extends Ig{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Xg(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Ey{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return qg(t)}matchesElement(t,e){return $g(t,e)}containsElement(t,e){return Wg(t,e)}query(t,e,n){return Gg(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>Xg(t));let i=`@keyframes ${e} {\n`,r="";n.forEach(t=>{r=" ";const e=parseFloat(t.offset);i+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${e}: ${n};\n`)}}),i+=`${r}}\n`}),i+="}\n";const s=document.createElement("style");return s.innerHTML=i,s}animate(t,e,n,i,r,s=[],o){o&&this._notifyFaultyScrubber();const a=s.filter(t=>t instanceof Sy),l={};p_(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=f_(t,e,l));if(0==n)return new ky(t,c);const u=`gen_css_kf_${this._count++}`,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=py(t,e),p=new Sy(t,e,u,n,i,r,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),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 Ty{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:g_(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Iy{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Ay().toString()),this._cssKeyframesDriver=new Ey}validateStyleProperty(t){return qg(t)}matchesElement(t,e){return $g(t,e)}containsElement(t,e){return Wg(t,e)}query(t,e,n){return Gg(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,s);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const l={},c=s.filter(t=>t instanceof Ty);p_(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=py(t,e=f_(t,e=e.map(t=>e_(t,!1)),l));return new Ty(t,e,a,u)}}function Ay(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Oy=(()=>{class t extends _g{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:he.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?bg(t):t;return Py(this._renderer,null,e,"register",[n]),new Ry(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Na),Yt(Zc))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class Ry extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Dy(this._id,t,e||{},this._renderer)}}class Dy{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Py(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function Py(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}let Ny=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new My("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const s=e=>{Array.isArray(e)?e.forEach(s):this.engine.registerTrigger(i,r,t,e.name,e)};return e.data.animation.forEach(s),new Ly(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Yt(Na),Yt(dy),Yt(vc))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class My{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Ly extends My{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),s="";return"@"!=r.charAt(0)&&([r,s]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,i,r,s,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Fy=(()=>{class t extends dy{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zc),Yt(Yg),Yt(j_))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Vy=new Ut("AnimationModuleType"),jy=[{provide:Yg,useFactory:function(){return"function"==typeof Ay()?new Iy:new Ey}},{provide:Vy,useValue:"BrowserAnimations"},{provide:_g,useClass:Oy},{provide:j_,useFactory:function(){return new U_}},{provide:dy,useClass:Fy},{provide:Na,useFactory:function(t,e,n){return new Ny(t,e,n)},deps:[Ju,dy,vc]}];let Uy=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:jy,imports:[ph]}),t})();function zy(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}class Hy extends d{constructor(t,e){super()}schedule(t,e=0){return this}}class By extends Hy{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let qy=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class $y extends qy{constructor(t,e=qy.now){super(t,()=>$y.delegate&&$y.delegate!==this?$y.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return $y.delegate&&$y.delegate!==this?$y.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const Wy=new $y(By);function Gy(t,e=Wy){return n=>n.lift(new Xy(t,e))}class Xy{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Ky(t,this.dueTime,this.scheduler))}}class Ky extends m{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Yy,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function Yy(t){t.debouncedNext()}function Zy(t){return null!=t&&"false"!==`${t}`}function Qy(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function Jy(t){return Array.isArray(t)?t:[t]}function tv(t){return null==t?"":"string"==typeof t?t:`${t}px`}function ev(t){return t instanceof Da?t.nativeElement:t}let nv;try{nv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(IA){nv=!1}let iv,rv=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?"browser"===this._platformId:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!nv)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(Yt(ic,8))},t.\u0275prov=dt({factory:function(){return new t(Yt(ic,8))},token:t,providedIn:"root"}),t})(),sv=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)}}),t})();const ov=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function av(){if(iv)return iv;if("object"!=typeof document||!document)return iv=new Set(ov),iv;let t=document.createElement("input");return iv=new Set(ov.filter(e=>(t.setAttribute("type",e),t.type===e))),iv}let lv,cv;function uv(t){return function(){if(null==lv&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>lv=!0}))}finally{lv=lv||!1}return lv}()?t:!!t.capture}let hv=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),dv=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=ev(t);return new w(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new E,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(Yt(hv))},t.\u0275prov=dt({factory:function(){return new t(Yt(hv))},token:t,providedIn:"root"}),t})(),pv=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new Al,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Zy(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Qy(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Gy(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(vo(dv),vo(Da),vo(vc))},t.\u0275dir=we({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),fv=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[hv]}),t})();function mv(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let gv=0;const _v=new Map;let yv=null,vv=(()=>{class t{constructor(t){this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),_v.set(e,{messageElement:e,referenceCount:0})):_v.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=_v.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}yv&&0===yv.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=_v.get(e);!function(t,e,n){const i=mv(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(t,e){const n=_v.get(e);n.referenceCount--,function(t,e,n){const i=mv(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const n=mv(t,"aria-describedby"),i=_v.get(e),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zc))},t.\u0275prov=dt({factory:function(){return new t(Yt(Zc))},token:t,providedIn:"root"}),t})();class bv extends class{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new E,this._typeaheadSubscription=d.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new E,this.change=new E,t instanceof Rl&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){if(this._items.length&&this._items.some(t=>"function"!=typeof t.getLabel))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(kp(t=>this._pressedLetters.push(t)),Gy(t),Wd(()=>this._pressedLetters.length>0),V(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((n||zy(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof Rl?this._items.toArray():this._items}}{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}let wv=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(IA){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===Cv(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===t)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),r=Cv(t);if(t.hasAttribute("contenteditable"))return-1!==r;if("iframe"===i)return!1;if("audio"===i){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===i){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==i||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}isFocusable(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||xv(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(rv))},t.\u0275prov=dt({factory:function(){return new t(Yt(rv))},token:t,providedIn:"root"}),t})();function xv(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Cv(t){if(!xv(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class Sv{constructor(t,e,n,i,r=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], `+`[cdkFocusRegion${t}], `+`[cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(up(1)).subscribe(t)}}let kv=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new Sv(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(Yt(wv),Yt(vc),Yt(Zc))},t.\u0275prov=dt({factory:function(){return new t(Yt(wv),Yt(vc),Yt(Zc))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const Ev=new Ut("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Tv=new Ut("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Iv=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,r;return 1===e.length&&"number"==typeof e[0]?r=e[0]:[i,r]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==r&&n&&(r=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=()=>{this._lastTouchTarget||this._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=t.composedPath?t.composedPath()[0]:t.target,this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return Md(null);const n=ev(t);if(this._elementInfo.has(n)){let t=this._elementInfo.get(n);return t.checkChildren=e,t.subject.asObservable()}let i={unlisten:()=>{},checkChildren:e,subject:new E};this._elementInfo.set(n,i),this._incrementMonitoredElementCount();let r=t=>this._onFocus(t,n),s=t=>this._onBlur(t,n);return this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",r,!0),n.addEventListener("blur",s,!0)}),i.unlisten=()=>{n.removeEventListener("focus",r,!0),n.removeEventListener("blur",s,!0)},i.subject.asObservable()}stopMonitoring(t){const e=ev(t),n=this._elementInfo.get(e);n&&(n.unlisten(),n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}focusVia(t,e,n){const i=ev(t);this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_setClasses(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){let e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==t.target)return;let i=this._origin;i||(i=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_incrementMonitoredElementCount(){1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Ov),t.addEventListener("mousedown",this._documentMousedownListener,Ov),t.addEventListener("touchstart",this._documentTouchstartListener,Ov),e.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Ov),t.removeEventListener("mousedown",this._documentMousedownListener,Ov),t.removeEventListener("touchstart",this._documentTouchstartListener,Ov),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(Yt(vc),Yt(rv),Yt(Zc,8),Yt(Av,8))},t.\u0275prov=dt({factory:function(){return new t(Yt(vc),Yt(rv),Yt(Zc,8),Yt(Av,8))},token:t,providedIn:"root"}),t})(),Dv=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=(this._document.defaultView.getComputedStyle(t).backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),e){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(Yt(rv),Yt(Zc))},t.\u0275prov=dt({factory:function(){return new t(Yt(rv),Yt(Zc))},token:t,providedIn:"root"}),t})(),Pv=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)(Yt(Dv))},imports:[[sv,fv]]}),t})();const Nv=new Ut("cdk-dir-doc",{providedIn:"root",factory:function(){return Zt(Zc)}});let Mv=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Al,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(Yt(Nv,8))},t.\u0275prov=dt({factory:function(){return new t(Yt(Nv,8))},token:t,providedIn:"root"}),t})(),Lv=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)}}),t})();const Fv=new ja("9.2.0"),Vv=["*",[["mat-option"],["ng-container"]]],jv=["*","mat-option, ng-container"];function Uv(t,e){if(1&t&&Eo(0,"mat-pseudo-checkbox",3),2&t){const t=Fo();xo("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const zv=["*"],Hv=new ja("9.2.0"),Bv=new Ut("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let qv,$v=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return xi()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const i=getComputedStyle(n);i&&"none"!==i.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"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Hv.full!==Fv.full&&console.warn("The Angular Material version ("+Hv.full+") does not match the Angular CDK version ("+Fv.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)(Yt(Dv),Yt(Bv,8),Yt(Zc,8))},imports:[[Lv],Lv]}),t})();function Wv(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Zy(t)}}}function Gv(t,e){return class extends t{constructor(...t){super(...t),this.color=e}get color(){return this._color}set color(t){const n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}}}function Xv(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Zy(t)}}}function Kv(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:e}}}function Yv(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new E}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function Zv(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new w(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){if(this._isInitialized)throw Error("This directive has already been marked as initialized and should not be called twice.");this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}try{qv="undefined"!=typeof Intl}catch(IA){qv=!1}let Qv=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Jv=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},imports:[[$v],$v]}),t})();class tb{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const eb={enterDuration:450,exitDuration:400},nb=uv({passive:!0});class ib{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=t=>{const e=function(t){return 0===t.buttons}(t),n=this._lastTouchStartEvent&&Date.now(){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t{this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))},i.isBrowser&&(this._containerElement=ev(n),this._triggerEvents.set("mousedown",this._onMousedown).set("mouseup",this._onPointerUp).set("mouseleave",this._onPointerUp).set("touchstart",this._onTouchStart).set("touchend",this._onPointerUp).set("touchcancel",this._onPointerUp))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},eb),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const s=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}(t,e,i),o=t-i.left,a=e-i.top,l=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${o-s}px`,c.style.top=`${a-s}px`,c.style.height=`${2*s}px`,c.style.width=`${2*s}px`,null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new tb(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,n.persistent||t&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},eb),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=ev(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(()=>{this._triggerEvents.forEach((t,n)=>{e.addEventListener(n,t,nb)})}),this._triggerElement=e)}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_removeTriggerEvents(){this._triggerElement&&this._triggerEvents.forEach((t,e)=>{this._triggerElement.removeEventListener(e,t,nb)})}}const rb=new Ut("mat-ripple-global-options");let sb=(()=>{class t{constructor(t,e,n,i,r){this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new ib(this,e,t,n),"NoopAnimations"===r&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(vo(Da),vo(vc),vo(rv),vo(rb,8),vo(Vy,8))},t.\u0275dir=we({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Ko("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),ob=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},imports:[[$v,sv],$v]}),t})(),ab=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(vo(Vy,8))},t.\u0275cmp=me({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&Ko("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),lb=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)}}),t})();class cb{}const ub=Wv(cb);let hb=0,db=(()=>{class t extends ub{constructor(){super(...arguments),this._labelId=`mat-optgroup-label-${hb++}`}}return t.\u0275fac=function(e){return pb(e||t)},t.\u0275cmp=me({type:t,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(mo("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),Ko("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[da],ngContentSelectors:jv,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(jo(Vv),So(0,"label",0),oa(1),Uo(2),ko(),Uo(3,1)),2&t&&(xo("id",e._labelId),cr(1),la("",e.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();const pb=oi(db);let fb=0;class mb{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const gb=new Ut("MAT_OPTION_PARENT_COMPONENT");let _b=(()=>{class t{constructor(t,e,n,i){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${fb++}`,this.onSelectionChange=new Al,this._stateChanges=new E}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Zy(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){13!==t.keyCode&&32!==t.keyCode||zy(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new mb(this,t))}}return t.\u0275fac=function(e){return new(e||t)(vo(Da),vo(Fs),vo(gb,8),vo(db,8))},t.\u0275cmp=me({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&Do("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(ca("id",e.id),mo("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),Ko("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:zv,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(jo(),_o(0,Uv,1,2,"mat-pseudo-checkbox",0),So(1,"span",1),Uo(2),ko(),Eo(3,"div",2)),2&t&&(xo("ngIf",e.multiple),cr(3),xo("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Cu,sb,ab],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function yb(t,e,n){if(n.length){let i=e.toArray(),r=n.toArray(),s=0;for(let e=0;e{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},imports:[[ob,Mu,lb]]}),t})();const bb=new Ut("mat-label-global-options"),wb=["*"],xb=new Ut("MAT_GRID_LIST");let Cb=(()=>{class t{constructor(t,e){this._element=t,this._gridList=e,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(t){this._rowspan=Math.round(Qy(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round(Qy(t))}_setStyle(t,e){this._element.nativeElement.style[t]=e}}return t.\u0275fac=function(e){return new(e||t)(vo(Da),vo(xb,8))},t.\u0275cmp=me({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&mo("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:wb,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(jo(),So(0,"figure",0),Uo(1),ko())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),t})();class Sb{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const t=Math.max(...this.tracker);return t>1?this.rowCount+t-1:this.rowCount}update(t,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(t=>this._trackTile(t))}_trackTile(t){const e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new kb(this.rowIndex,e)}_findMatchingGap(t){if(t>this.tracker.length)throw Error(`mat-grid-list: tile with colspan ${t} is wider than `+`grid with cols="${this.tracker.length}".`);let e=-1,n=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)):(e=this.tracker.indexOf(0,this.columnIndex),-1!=e?(n=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)))}while(n-e{t._setStyle("top",null),t._setStyle("height",null)})}}class Ab extends Tb{constructor(t){super(),this._parseRatio(t)}setRowStyles(t,e,n,i){this.baseTileHeight=this.getBaseTileSize(n/this.rowHeightRatio,i),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",Rb(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",Rb(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach(t=>{t._setStyle("marginTop",null),t._setStyle("paddingTop",null)})}_parseRatio(t){const e=t.split(":");if(2!==e.length)throw Error(`mat-grid-list: invalid ratio given for row-height: "${t}"`);this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}class Ob extends Tb{setRowStyles(t,e){let n=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(n,e)),t._setStyle("height",Rb(this.getTileSize(n,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function Rb(t){return`calc(${t})`}function Db(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}let Pb=(()=>{class t{constructor(t,e){this._element=t,this._dir=e,this._gutter="1px"}get cols(){return this._cols}set cols(t){this._cols=Math.max(1,Math.round(Qy(t)))}get gutterSize(){return this._gutter}set gutterSize(t){this._gutter=`${null==t?"":t}`}get rowHeight(){return this._rowHeight}set rowHeight(t){const e=`${null==t?"":t}`;e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: ')}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new Ob:t&&t.indexOf(":")>-1?new Ab(t):new Ib(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new Sb);const t=this._tileCoordinator,e=this._tiles.filter(t=>!t._gridList||t._gridList===this),n=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,e),this._tileStyler.init(this.gutterSize,t,this.cols,n),e.forEach((e,n)=>{const i=t.positions[n];this._tileStyler.setStyle(e,i.row,i.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}}return t.\u0275fac=function(e){return new(e||t)(vo(Da),vo(Mv,8))},t.\u0275cmp=me({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,n){var i;1&t&&ql(n,Cb,!0),2&t&&Ul(i=Gl())&&(e._tiles=i)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&mo("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[Ia([{provide:xb,useExisting:t}])],ngContentSelectors:wb,decls:2,vars:0,template:function(t,e){1&t&&(jo(),So(0,"div"),Uo(1),ko())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n"],encapsulation:2,changeDetection:0}),t})(),Nb=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},imports:[[Jv,$v],Jv,$v]}),t})();const Mb=["input"],Lb=function(){return{enterDuration:150}},Fb=["*"],Vb=new Ut("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),jb=new Ut("mat-checkbox-click-action");let Ub=0;const zb={provide:_h,useExisting:kt(()=>$b),multi:!0};class Hb{}class Bb{constructor(t){this._elementRef=t}}const qb=Kv(Gv(Xv(Wv(Bb))));let $b=(()=>{class t extends qb{constructor(t,e,n,i,r,s,o,a){super(t),this._changeDetectorRef=e,this._focusMonitor=n,this._ngZone=i,this._clickAction=s,this._animationMode=o,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId=`mat-checkbox-${++Ub}`,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new Al,this.indeterminateChange=new Al,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this._options.color),this.tabIndex=parseInt(r)||0,this._focusMonitor.monitor(t,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),e.markForCheck()})}),this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(t){this._required=Zy(t)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=Zy(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=Zy(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new Hb;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t="keyboard",e){this._focusMonitor.focusVia(this._inputElement,t,e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${n}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(vo(Da),vo(Fs),vo(Rv),vo(vc),bo("tabindex"),vo(jb,8),vo(Vy,8),vo(Vb,8))},t.\u0275cmp=me({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(Hl(Mb,!0),Hl(sb,!0)),2&t&&(Ul(n=Gl())&&(e._inputElement=n.first),Ul(n=Gl())&&(e.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(ca("id",e.id),mo("tabindex",null),Ko("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Ia([zb]),da],ngContentSelectors:Fb,decls:17,vars:19,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(jo(),So(0,"label",0,1),So(2,"div",2),So(3,"input",3,4),Do("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),ko(),So(5,"div",5),Eo(6,"div",6),ko(),Eo(7,"div",7),So(8,"div",8),wn(),So(9,"svg",9),Eo(10,"path",10),ko(),xn(),Eo(11,"div",11),ko(),ko(),So(12,"span",12,13),Do("cdkObserveContent",(function(){return e._onLabelTextChange()})),So(14,"span",14),oa(15,"\xa0"),ko(),Uo(16),ko(),ko()),2&t){const t=yo(1),n=yo(13);mo("for",e.inputId),cr(2),Ko("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),cr(1),xo("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),mo("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),cr(2),xo("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",xl(18,Lb))}},directives:[sb,pv],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox.cdk-keyboard-focused .cdk-high-contrast-active .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})(),Wb=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)}}),t})(),Gb=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},imports:[[ob,$v,fv,Wb],$v,Wb]}),t})();const Xb=["mat-button",""],Kb=["*"],Yb=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class Zb{constructor(t){this._elementRef=t}}const Qb=Gv(Wv(Xv(Zb)));let Jb=(()=>{class t extends Qb{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of Yb)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(vo(Da),vo(Rv),vo(Vy,8))},t.\u0275cmp=me({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var n;1&t&&Hl(sb,!0),2&t&&Ul(n=Gl())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(mo("disabled",e.disabled||null),Ko("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[da],attrs:Xb,ngContentSelectors:Kb,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(jo(),So(0,"span",0),Uo(1),ko(),Eo(2,"div",1),Eo(3,"div",2)),2&t&&(cr(2),Ko("mat-button-ripple-round",e.isRoundButton||e.isIconButton),xo("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[sb],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),tw=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},imports:[[ob,$v],$v]}),t})();function ew(t,e,n,i){return r(n)&&(i=n,n=void 0),i?ew(t,e,n).pipe(V(t=>c(t)?i(...t):i(t))):new w(i=>{!function t(e,n,i,r,s){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,i,s),o=()=>t.removeEventListener(n,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,i),o=()=>t.off(n,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,i),o=()=>t.removeListener(n,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o1?Array.prototype.slice.call(arguments):t)}),i,n)})}class nw{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new iw(t,this.compare,this.keySelector))}}class iw extends m{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}class rw{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new sw(t,this.durationSelector))}}class sw extends F{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=L(this,n);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,i){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function ow(t){return!c(t)&&t-parseFloat(t)+1>=0}function aw(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function lw(t,e=Wy){return n=()=>function(t=0,e,n){let i=-1;return ow(e)?i=Number(e)<1?1:Number(e):I(e)&&(n=e),I(n)||(n=Wy),new w(e=>{const r=ow(t)?t:+t-n.now();return n.schedule(aw,r,{index:0,period:i,subscriber:e})})}(t,e),function(t){return t.lift(new rw(n))};var n}function cw(t){return e=>e.lift(new uw(t))}class uw{constructor(t){this.notifier=t}call(t,e){const n=new hw(t),i=L(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class hw extends F{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,i,r){this.seenValue=!0,this.complete()}notifyComplete(){}}class dw{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new E,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}}let pw=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new E,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new w(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(lw(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Md()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Wd(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ew(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Yt(vc),Yt(rv),Yt(Zc,8))},t.\u0275prov=dt({factory:function(){return new t(Yt(vc),Yt(rv),Yt(Zc,8))},token:t,providedIn:"root"}),t})(),fw=(()=>{class t{constructor(t,e,n){this._platform=t,this._document=n,e.runOutsideAngular(()=>{const e=this._getWindow();this._change=t.isBrowser?K(ew(e,"resize"),ew(e,"orientationchange")):Md(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(lw(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Yt(rv),Yt(vc),Yt(Zc,8))},t.\u0275prov=dt({factory:function(){return new t(Yt(rv),Yt(vc),Yt(Zc,8))},token:t,providedIn:"root"}),t})(),mw=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},imports:[[Lv,sv],Lv]}),t})();function gw(){throw Error("Host already has a portal attached")}class _w{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&gw(),this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class yw extends _w{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class vw extends _w{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class bw extends _w{constructor(t){super(),this.element=t instanceof Da?t.nativeElement:t}}class ww{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&gw(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof yw?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof vw?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof bw?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class xw extends ww{constructor(t,e,n,i,r){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=r}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.detectChanges(),n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Cw=(()=>{class t extends ww{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new Al,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(vo(Ra),vo(rl),vo(Zc))},t.\u0275dir=we({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[da]}),t})(),Sw=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)}}),t})();class kw{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=tv(-this._previousScrollPosition.left),t.style.top=tv(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=r}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function Ew(){return Error("Scroll strategy has already been attached.")}class Tw{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw Ew();this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Iw{enable(){}disable(){}attach(){}}function Aw(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function Ow(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class Rw{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw Ew();this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();Aw(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Dw=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new Iw,this.close=t=>new Tw(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new kw(this._viewportRuler,this._document),this.reposition=t=>new Rw(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(Yt(pw),Yt(fw),Yt(vc),Yt(Zc))},t.\u0275prov=dt({factory:function(){return new t(Yt(pw),Yt(fw),Yt(vc),Yt(Zc))},token:t,providedIn:"root"}),t})();class Pw{constructor(t){if(this.scrollStrategy=new Iw,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class Nw{constructor(t,e,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Mw{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function Lw(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "top", "bottom" or "center".')}function Fw(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "start", "end" or "center".')}let Vw=(()=>{class t{constructor(t){this._attachedOverlays=[],this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEventSubscriptions>0){e[n]._keydownEvents.next(t);break}},this._document=t}ngOnDestroy(){this._detach()}add(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zc))},t.\u0275prov=dt({factory:function(){return new t(Yt(Zc))},token:t,providedIn:"root"}),t})();const jw=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Uw=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||jw){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEventsObservable=new w(t=>{const e=this._keydownEvents.subscribe(t);return this._keydownEventSubscriptions++,()=>{e.unsubscribe(),this._keydownEventSubscriptions--}}),this._keydownEvents=new E,this._keydownEventSubscriptions=0,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(up(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEventsObservable}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=tv(this._config.width),t.height=tv(this._config.height),t.minWidth=tv(this._config.minWidth),t.minHeight=tv(this._config.minHeight),t.maxWidth=tv(this._config.maxWidth),t.maxHeight=tv(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;Jy(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(cw(K(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const Hw=/([A-Za-z%]+)$/;class Bw{constructor(t,e,n,i,r){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new E,this._resizeSubscription=d.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let r;for(let s of this._preferredPositions){let o=this._getOriginPoint(t,s),a=this._getOverlayPoint(o,e,s),l=this._getOverlayFit(a,e,n,s);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(l,a,n)?i.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&qw(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,r;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+r}}_getOverlayFit(t,e,n,i){let{x:r,y:s}=t,o=this._getOffset(i,"x"),a=this._getOffset(i,"y");o&&(r+=o),a&&(s+=a);let l=0-s,c=s+e.height-n.height,u=this._subtractOverflows(e.width,0-r,r+e.width-n.width),h=this._subtractOverflows(e.height,l,c),d=u*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:u==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,r=n.right-e.x,s=$w(this._overlayRef.getConfig().minHeight),o=$w(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=r;return(t.fitsInViewportVertically||null!=s&&s<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=this._viewportRect,r=Math.max(t.x+e.width-i.right,0),s=Math.max(t.y+e.height-i.bottom,0),o=Math.max(i.top-n.top-t.y,0),a=Math.max(i.left-n.left-t.x,0);let l=0,c=0;return l=e.width<=i.width?a||-r:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-i/2)}return{top:s,left:l,bottom:o,right:c,width:a,height:r}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=tv(n.height),i.top=tv(n.top),i.bottom=tv(n.bottom),i.width=tv(n.width),i.left=tv(n.left),i.right=tv(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=tv(t)),r&&(i.maxWidth=tv(r))}this._lastBoundingBoxSize=n,qw(this._boundingBox.style,i)}_resetBoundingBoxStyles(){qw(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){qw(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();qw(n,this._getExactOverlayY(e,t,i)),qw(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),s.maxHeight&&(i?n.maxHeight=tv(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=tv(s.maxWidth):r&&(n.maxWidth="")),qw(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===t.overlayY?i.bottom=`${this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)}px`:i.top=tv(r.y),i}_getExactOverlayX(t,e,n){let i,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?r.right=`${this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)}px`:r.left=tv(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ow(t,n),isOriginOutsideView:Aw(t,n),isOverlayClipped:Ow(e,n),isOverlayOutsideView:Aw(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{Fw("originX",t.originX),Lw("originY",t.originY),Fw("overlayX",t.overlayX),Lw("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&Jy(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Da)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function qw(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function $w(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(Hw);return n&&"px"!==n?null:parseFloat(e)}return t||null}class Ww{constructor(t,e,n,i,r,s,o){this._preferredPositions=[],this._positionStrategy=new Bw(n,i,r,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const r=new Nw(t,e,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class Gw{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:r,maxWidth:s,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||s&&"100%"!==s&&"100vw"!==s),l=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Xw=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new Gw}connectedTo(t,e,n){return new Ww(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Bw(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Yt(fw),Yt(Zc),Yt(rv),Yt(Uw))},t.\u0275prov=dt({factory:function(){return new t(Yt(fw),Yt(Zc),Yt(rv),Yt(Uw))},token:t,providedIn:"root"}),t})(),Kw=0,Yw=(()=>{class t{constructor(t,e,n,i,r,s,o,a,l,c){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=l,this._location=c}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new Pw(t);return r.direction=r.direction||this._directionality.value,new zw(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id=`cdk-overlay-${Kw++}`,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(jc)),new xw(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Yt(Dw),Yt(Uw),Yt(Ra),Yt(Xw),Yt(Vw),Yt(Js),Yt(vc),Yt(Zc),Yt(Mv),Yt(du,8))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const Zw=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Qw=new Ut("cdk-connected-overlay-scroll-strategy");let Jw=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(vo(Da))},t.\u0275dir=we({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),tx=(()=>{class t{constructor(t,e,n,i,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=d.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new Al,this.positionChange=new Al,this.attach=new Al,this.detach=new Al,this.overlayKeydown=new Al,this._templatePortal=new vw(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Zy(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Zy(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Zy(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Zy(t)}get push(){return this._push}set push(t){this._push=Zy(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=Zw),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||zy(t)||(t.preventDefault(),this._detachOverlay())})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Pw({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t.positionChanges.subscribe(t=>this.positionChange.emit(t)),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe()}_detachOverlay(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(vo(Yw),vo(nl),vo(rl),vo(Qw),vo(Mv,8))},t.\u0275dir=we({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[ya]}),t})();const ex={provide:Qw,deps:[Yw],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let nx=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[Yw,ex],imports:[[Lv,Sw,mw],mw]}),t})();const ix=["underline"],rx=["connectionContainer"],sx=["inputContainer"],ox=["label"];function ax(t,e){1&t&&(To(0),So(1,"div",14),Eo(2,"div",15),Eo(3,"div",16),Eo(4,"div",17),ko(),So(5,"div",18),Eo(6,"div",15),Eo(7,"div",16),Eo(8,"div",17),ko(),Io())}function lx(t,e){1&t&&(So(0,"div",19),Uo(1,1),ko())}function cx(t,e){if(1&t&&(To(0),Uo(1,2),So(2,"span"),oa(3),ko(),Io()),2&t){const t=Fo(2);cr(3),aa(t._control.placeholder)}}function ux(t,e){1&t&&Uo(0,3,["*ngSwitchCase","true"])}function hx(t,e){1&t&&(So(0,"span",23),oa(1," *"),ko())}function dx(t,e){if(1&t){const t=Ao();So(0,"label",20,21),Do("cdkObserveContent",(function(){return Ze(t),Fo().updateOutlineGap()})),_o(2,cx,4,1,"ng-container",12),_o(3,ux,1,0,void 0,12),_o(4,hx,2,0,"span",22),ko()}if(2&t){const t=Fo();Ko("mat-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),xo("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),mo("for",t._control.id)("aria-owns",t._control.id),cr(2),xo("ngSwitchCase",!1),cr(1),xo("ngSwitchCase",!0),cr(1),xo("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function px(t,e){1&t&&(So(0,"div",24),Uo(1,4),ko())}function fx(t,e){if(1&t&&(So(0,"div",25,26),Eo(2,"span",27),ko()),2&t){const t=Fo();cr(2),Ko("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function mx(t,e){1&t&&(So(0,"div"),Uo(1,5),ko()),2&t&&xo("@transitionMessages",Fo()._subscriptAnimationState)}function gx(t,e){if(1&t&&(So(0,"div",31),oa(1),ko()),2&t){const t=Fo(2);xo("id",t._hintLabelId),cr(1),aa(t.hintLabel)}}function _x(t,e){if(1&t&&(So(0,"div",28),_o(1,gx,2,2,"div",29),Uo(2,6),Eo(3,"div",30),Uo(4,7),ko()),2&t){const t=Fo();xo("@transitionMessages",t._subscriptAnimationState),cr(1),xo("ngIf",t.hintLabel)}}const yx=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],vx=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let bx=0,wx=(()=>{class t{constructor(){this.id=`mat-error-${bx++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&mo("id",e.id)},inputs:{id:"id"}}),t})();const xx={transitionMessages:yg("transitionMessages",[xg("enter",wg({opacity:1,transform:"translateY(0%)"})),Sg("void => enter",[wg({opacity:0,transform:"translateY(-100%)"}),vg("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Cx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t}),t})();function Sx(t){return Error(`A hint was already declared for 'align="${t}"'.`)}let kx=0,Ex=(()=>{class t{constructor(){this.align="start",this.id=`mat-hint-${kx++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(mo("id",e.id)("align",null),Ko("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t})(),Tx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["mat-label"]]}),t})(),Ix=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["mat-placeholder"]]}),t})(),Ax=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["","matPrefix",""]]}),t})(),Ox=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["","matSuffix",""]]}),t})(),Rx=0;class Dx{constructor(t){this._elementRef=t}}const Px=Gv(Dx,"primary"),Nx=new Ut("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Mx=new Ut("MatFormField");let Lx=(()=>{class t extends Px{constructor(t,e,n,i,r,s,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=r,this._platform=s,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new E,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId=`mat-hint-${Rx++}`,this._labelId=`mat-form-field-label-${Rx++}`,this._labelOptions=n||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Zy(t)}get _shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}get _canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}get _labelChild(){return this._labelChildNonStatic||this._labelChildStatic}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(bp(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(cw(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(cw(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),K(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(bp(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(bp(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(cw(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!!this._labelChild}_shouldLabelFloat(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,ew(this._label.nativeElement,"transitionend").pipe(up(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){if(this._hintChildren){let t,e;this._hintChildren.forEach(n=>{if("start"===n.align){if(t||this.hintLabel)throw Sx("start");t=n}else if("end"===n.align){if(e)throw Sx("end");e=n}})}}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if("hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),s=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=i.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const s=this._getStartEnd(r),o=this._getStartEnd(t.children[0].getBoundingClientRect());let a=0;for(const e of t.children)a+=e.offsetWidth;e=Math.abs(o-s)-5,n=a>0?.75*a+10:0}for(let o=0;o{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},imports:[[Mu,fv]]}),t})();const Vx=["trigger"],jx=["panel"];function Ux(t,e){if(1&t&&(So(0,"span",8),oa(1),ko()),2&t){const t=Fo();cr(1),aa(t.placeholder||"\xa0")}}function zx(t,e){if(1&t&&(So(0,"span"),oa(1),ko()),2&t){const t=Fo(2);cr(1),aa(t.triggerValue||"\xa0")}}function Hx(t,e){1&t&&Uo(0,0,["*ngSwitchCase","true"])}function Bx(t,e){1&t&&(So(0,"span",9),_o(1,zx,2,1,"span",10),_o(2,Hx,1,0,void 0,11),ko()),2&t&&(xo("ngSwitch",!!Fo().customTrigger),cr(2),xo("ngSwitchCase",!0))}function qx(t,e){if(1&t){const t=Ao();So(0,"div",12),So(1,"div",13,14),Do("@transformPanel.done",(function(e){return Ze(t),Fo()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return Ze(t),Fo()._handleKeydown(e)})),Uo(3,1),ko(),ko()}if(2&t){const t=Fo();xo("@transformPanelWrap",void 0),cr(1),n="mat-select-panel ",i=t._getPanelTheme(),r="",function(t,e,n,i){const r=Ye(),s=an(2);r.firstUpdatePass&&Jo(r,null,s,!0);const o=Ke();if(n!==ar&&po(o,s,n)){const i=r.data[yn()+19];if(sa(i,!0)&&!Qo(r,s)){let t=i.classes;null!==t&&(n=Ct(t,n||"")),Co(r,i,o,n,!0)}else!function(t,e,n,i,r,s,o,a){r===ar&&(r=zo);let l=0,c=0,u=0 void",Eg("@transformPanel",[kg()],{optional:!0}))]),transformPanel:yg("transformPanel",[xg("void",wg({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),xg("showing",wg({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),xg("showing-multiple",wg({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Sg("void => *",vg("120ms cubic-bezier(0, 0, 0.2, 1)")),Sg("* => void",vg("100ms 25ms linear",wg({opacity:0})))])};let Xx=0;const Kx=new Ut("mat-select-scroll-strategy"),Yx=new Ut("MAT_SELECT_CONFIG"),Zx={provide:Kx,deps:[Yw],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Qx{constructor(t,e){this.source=t,this.value=e}}class Jx{constructor(t,e,n,i,r){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}const tC=Xv(Kv(Wv(Yv(Jx))));let eC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["mat-select-trigger"]]}),t})(),nC=(()=>{class t extends tC{constructor(t,e,n,i,r,s,o,a,l,c,u,h,d,p){super(r,i,o,a,c),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=s,this._parentFormField=l,this.ngControl=c,this._liveAnnouncer=d,this._panelOpen=!1,this._required=!1,this._scrollTop=0,this._multiple=!1,this._compareWith=(t,e)=>t===e,this._uid=`mat-select-${Xx++}`,this._destroy=new E,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._optionIds="",this._transformOrigin="top",this._panelDoneAnimatingStream=new E,this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],this._disableOptionCentering=!1,this._focused=!1,this.controlType="mat-select",this.ariaLabel="",this.optionSelectionChanges=qd(()=>{const t=this.options;return t?t.changes.pipe(bp(t),gp(()=>K(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.asObservable().pipe(up(1),gp(()=>this.optionSelectionChanges))}),this.openedChange=new Al,this._openedStream=this.openedChange.pipe(Wd(t=>t),V(()=>{})),this._closedStream=this.openedChange.pipe(Wd(t=>!t),V(()=>{})),this.selectionChange=new Al,this.valueChange=new Al,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=h,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(u)||0,this.id=this.id,p&&(null!=p.disableOptionCentering&&(this.disableOptionCentering=p.disableOptionCentering),null!=p.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=p.typeaheadDebounceInterval))}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Zy(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Zy(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Zy(t)}get compareWith(){return this._compareWith}set compareWith(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.writeValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Qy(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new dw(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(t=>t.lift(new nw(void 0,void 0)),cw(this._destroy)).subscribe(()=>{this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())}),this._viewportRuler.change().pipe(cw(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(cw(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(bp(null),cw(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(up(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.options&&this._setSelectionByValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=40===e||38===e||37===e||39===e,i=13===e||32===e,r=this._keyManager;if(!r.isTyping()&&i&&!zy(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const n=this.selected;36===e||35===e?(36===e?r.setFirstItemActive():r.setLastItemActive(),t.preventDefault()):r.onKeydown(t);const i=this.selected;i&&n!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=40===n||38===n,r=e.isTyping();if(36===n||35===n)t.preventDefault(),36===n?e.setFirstItemActive():e.setLastItemActive();else if(i&&t.altKey)t.preventDefault(),this.close();else if(r||13!==n&&32!==n||!e.activeItem||zy(t))if(!r&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(up(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach(t=>this._selectValue(t)),this._sortValues()}else{this._selectionModel.clear();const e=this._selectValue(t);e?this._keyManager.setActiveItem(e):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return xi()&&console.warn(n),!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new bv(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(cw(this._destroy)).subscribe(()=>{!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close()}),this._keyManager.change.pipe(cw(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=K(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(cw(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),K(...this.options.map(t=>t._stateChanges)).pipe(cw(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()}),this._setOptionIds()}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new Qx(this,e)),this._changeDetectorRef.markForCheck()}_setOptionIds(){this._optionIds=this.options.map(t=>t.id).join(" ")}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_scrollActiveOptionIntoView(){const t=this._keyManager.activeItemIndex||0,e=yb(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=function(t,e,n,i){const r=t*e;return rn+256?Math.max(0,r-256+e):n}(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop)}focus(t){this._elementRef.nativeElement.focus(t)}_getOptionIndex(t){return this.options.reduce((e,n,i)=>void 0!==e?e:t===n?i:void 0,void 0)}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n;let r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=yb(r,this.options,this.optionGroups);const s=n/2;this._scrollTop=this._calculateOverlayScroll(r,s,i),this._offsetY=this._calculateOverlayOffsetY(r,s,i),this._checkOverlayWithinViewport(i)}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}_getAriaLabel(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}_getAriaLabelledby(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let r;if(this.multiple)r=40;else{let t=this._selectionModel.selected[0]||this.options.first;r=t&&t.group?32:16}n||(r*=-1);const s=0-(t.left+r-(n?i:0)),o=t.right+r-e.width+(n?0:i);s>0?r+=s+8:o>0&&(r-=o+8),this.overlayDir.offsetX=Math.round(r),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),r=(i-this._triggerRect.height)/2,s=Math.floor(256/i);let o;return this._disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-s))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-r))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-s-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):s>i?this._adjustPanelDown(s,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemCount(){return this.options.length+this.optionGroups.length}_getItemHeight(){return 3*this._triggerFontSize}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(vo(fw),vo(Fs),vo(vc),vo(Qv),vo(Da),vo(Mv,8),vo(vd,8),vo(Od,8),vo(Mx,8),vo(Th,10),bo("tabindex"),vo(Kx),vo(Iv),vo(Yx,8))},t.\u0275cmp=me({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(ql(n,eC,!0),ql(n,_b,!0),ql(n,db,!0)),2&t&&(Ul(i=Gl())&&(e.customTrigger=i.first),Ul(i=Gl())&&(e.options=i),Ul(i=Gl())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(Hl(Vx,!0),Hl(jx,!0),Hl(tx,!0)),2&t&&(Ul(n=Gl())&&(e.trigger=n.first),Ul(n=Gl())&&(e.panel=n.first),Ul(n=Gl())&&(e.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&Do("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(mo("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),Ko("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Ia([{provide:Cx,useExisting:t},{provide:gb,useExisting:t}]),da,ya],ngContentSelectors:Wx,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(jo($x),So(0,"div",0,1),Do("click",(function(){return e.toggle()})),So(3,"div",2),_o(4,Ux,2,1,"span",3),_o(5,Bx,3,2,"span",4),ko(),So(6,"div",5),Eo(7,"div",6),ko(),ko(),_o(8,qx,4,10,"ng-template",7),Do("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){const t=yo(1);cr(3),xo("ngSwitch",e.empty),cr(1),xo("ngSwitchCase",!0),cr(1),xo("ngSwitchCase",!1),cr(3),xo("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Jw,Tu,Iu,tx,Au,vu],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[Gx.transformPanelWrap,Gx.transformPanel]},changeDetection:0}),t})(),iC=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[Zx],imports:[[Mu,nx,vb,$v],Fx,vb,$v]}),t})();class rC{constructor(t){this.total=t}call(t,e){return e.subscribe(new sC(t,this.total))}}class sC extends m{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const oC=new Set;let aC,lC=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):cC}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!oC.has(t))try{aC||(aC=document.createElement("style"),aC.setAttribute("type","text/css"),document.head.appendChild(aC)),aC.sheet&&(aC.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),oC.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(rv))},t.\u0275prov=dt({factory:function(){return new t(Yt(rv))},token:t,providedIn:"root"}),t})();function cC(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let uC=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new E}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return hC(Jy(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=jd(hC(Jy(t)).map(t=>this._registerQuery(t).observable));return e=vp(e.pipe(up(1)),e.pipe(t=>t.lift(new rC(1)),Gy(0))),e.pipe(V(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(t=>{e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new w(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(bp(e),V(e=>({query:t,matches:e.matches})),cw(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(Yt(lC),Yt(vc))},t.\u0275prov=dt({factory:function(){return new t(Yt(lC),Yt(vc))},token:t,providedIn:"root"}),t})();function hC(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const dC={tooltipState:yg("state",[xg("initial, void, hidden",wg({opacity:0,transform:"scale(0)"})),xg("visible",wg({transform:"scale(1)"})),Sg("* => visible",vg("200ms cubic-bezier(0, 0, 0.2, 1)",Cg([wg({opacity:0,transform:"scale(0)",offset:0}),wg({opacity:.5,transform:"scale(0.99)",offset:.5}),wg({opacity:1,transform:"scale(1)",offset:1})]))),Sg("* => hidden",vg("100ms cubic-bezier(0, 0, 0.2, 1)",wg({opacity:0})))])},pC=uv({passive:!0});function fC(t){return Error(`Tooltip position "${t}" is invalid.`)}const mC=new Ut("mat-tooltip-scroll-strategy"),gC={provide:mC,deps:[Yw],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},_C=new Ut("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let yC=(()=>{class t{constructor(t,e,n,i,r,s,o,a,l,c,u,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=r,this._platform=s,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=u,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new E,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!zy(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),a.monitor(e).pipe(cw(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&r.run(()=>this.show()):r.run(()=>this.hide(0))}),r.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Zy(t),this._disabled&&this.hide(0)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?`${t}`.trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngOnInit(){this._setupPointerEvents()}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((e,n)=>{t.removeEventListener(n,e,pC)}),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new yw(vC,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(cw(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(cw(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(cw(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;if("above"==e||"below"==e)n={originX:"center",originY:"above"==e?"top":"bottom"};else if("before"==e||"left"==e&&t||"right"==e&&!t)n={originX:"start",originY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw fC(e);n={originX:"end",originY:"center"}}const{x:i,y:r}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:r}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;if("above"==e)n={overlayX:"center",overlayY:"bottom"};else if("below"==e)n={overlayX:"center",overlayY:"top"};else if("before"==e||"left"==e&&t||"right"==e&&!t)n={overlayX:"end",overlayY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw fC(e);n={overlayX:"start",overlayY:"center"}}const{x:i,y:r}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(up(1),cw(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEvents(){if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",()=>{clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)})}}else this._passiveListeners.set("mouseenter",()=>this.show()).set("mouseleave",()=>this.hide());this._passiveListeners.forEach((t,e)=>{this._elementRef.nativeElement.addEventListener(e,t,pC)})}_disableNativeGesturesIfNecessary(){const t=this._elementRef.nativeElement,e=t.style,n=this.touchGestures;"off"!==n&&(("on"===n||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==n&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}}return t.\u0275fac=function(e){return new(e||t)(vo(Yw),vo(Da),vo(pw),vo(rl),vo(vc),vo(rv),vo(vv),vo(Rv),vo(mC),vo(Mv,8),vo(_C,8),vo(Da))},t.\u0275dir=we({type:t,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),vC=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new E,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide.asObservable()}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(vo(Fs),vo(uC))},t.\u0275cmp=me({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&Do("click",(function(){return e._handleBodyInteraction()}),!1,Hn),2&t&&Xo("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(So(0,"div",0),Do("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),Sl(1,"async"),oa(2),ko()),2&t&&(Ko("mat-tooltip-handset",null==(n=kl(1,5,e._isHandset))?null:n.matches),xo("ngClass",e.tooltipClass)("@state",e._visibility),cr(2),aa(e.message))},directives:[vu],pipes:[Nu],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[dC.tooltipState]},changeDetection:0}),t})(),bC=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[gC],imports:[[Pv,Mu,nx,$v],$v]}),t})();function wC(t,e){if(1&t&&(So(0,"mat-option",19),oa(1),ko()),2&t){const t=e.$implicit;xo("value",t),cr(1),la(" ",t," ")}}function xC(t,e){if(1&t){const t=Ao();So(0,"mat-form-field",16),So(1,"mat-select",17),Do("selectionChange",(function(e){return Ze(t),Fo(2)._changePageSize(e.value)})),_o(2,wC,2,2,"mat-option",18),ko(),ko()}if(2&t){const t=Fo(2);xo("color",t.color),cr(1),xo("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),cr(1),xo("ngForOf",t._displayedPageSizeOptions)}}function CC(t,e){if(1&t&&(So(0,"div",20),oa(1),ko()),2&t){const t=Fo(2);cr(1),aa(t.pageSize)}}function SC(t,e){if(1&t&&(So(0,"div",12),So(1,"div",13),oa(2),ko(),_o(3,xC,3,5,"mat-form-field",14),_o(4,CC,2,1,"div",15),ko()),2&t){const t=Fo();cr(2),la(" ",t._intl.itemsPerPageLabel," "),cr(1),xo("ngIf",t._displayedPageSizeOptions.length>1),cr(1),xo("ngIf",t._displayedPageSizeOptions.length<=1)}}function kC(t,e){if(1&t){const t=Ao();So(0,"button",21),Do("click",(function(){return Ze(t),Fo().firstPage()})),wn(),So(1,"svg",7),Eo(2,"path",22),ko(),ko()}if(2&t){const t=Fo();xo("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),mo("aria-label",t._intl.firstPageLabel)}}function EC(t,e){if(1&t){const t=Ao();wn(),xn(),So(0,"button",23),Do("click",(function(){return Ze(t),Fo().lastPage()})),wn(),So(1,"svg",7),Eo(2,"path",24),ko(),ko()}if(2&t){const t=Fo();xo("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),mo("aria-label",t._intl.lastPageLabel)}}let TC=(()=>{class t{constructor(){this.changes=new E,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,n)=>{if(0==n||0==e)return`0 of ${n}`;const i=t*e;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} of ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({factory:function(){return new t},token:t,providedIn:"root"}),t})();const IC={provide:TC,deps:[[new ot,new lt,TC]],useFactory:function(t){return t||new TC}},AC=new Ut("MAT_PAGINATOR_DEFAULT_OPTIONS");class OC{}const RC=Wv(Zv(OC));let DC=(()=>{class t extends RC{constructor(t,e,n){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new Al,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:t,pageSizeOptions:e,hidePageSize:i,showFirstLastButtons:r}=n;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=i&&(this._hidePageSize=i),null!=r&&(this._showFirstLastButtons=r)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Qy(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Qy(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Qy(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Qy(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=Zy(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=Zy(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(vo(TC),vo(Fs),vo(AC,8))},t.\u0275cmp=me({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},exportAs:["matPaginator"],features:[da],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(So(0,"div",0),So(1,"div",1),_o(2,SC,5,3,"div",2),So(3,"div",3),So(4,"div",4),oa(5),ko(),_o(6,kC,3,5,"button",5),So(7,"button",6),Do("click",(function(){return e.previousPage()})),wn(),So(8,"svg",7),Eo(9,"path",8),ko(),ko(),xn(),So(10,"button",9),Do("click",(function(){return e.nextPage()})),wn(),So(11,"svg",7),Eo(12,"path",10),ko(),ko(),_o(13,EC,3,5,"button",11),ko(),ko(),ko()),2&t&&(cr(2),xo("ngIf",!e.hidePageSize),cr(3),la(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),cr(1),xo("ngIf",e.showFirstLastButtons),cr(1),xo("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),mo("aria-label",e._intl.previousPageLabel),cr(3),xo("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),mo("aria-label",e._intl.nextPageLabel),cr(3),xo("ngIf",e.showFirstLastButtons))},directives:[Cu,Jb,yC,Lx,nC,wu,_b],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),PC=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[IC],imports:[[Mu,tw,iC,bC]]}),t})();function NC(t,e){if(1&t&&(wn(),Eo(0,"circle",3)),2&t){const t=Fo();Xo("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),mo("r",t._circleRadius)}}function MC(t,e){if(1&t&&(wn(),Eo(0,"circle",3)),2&t){const t=Fo();Xo("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),mo("r",t._circleRadius)}}function LC(t,e){if(1&t&&(wn(),Eo(0,"circle",3)),2&t){const t=Fo();Xo("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),mo("r",t._circleRadius)}}function FC(t,e){if(1&t&&(wn(),Eo(0,"circle",3)),2&t){const t=Fo();Xo("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),mo("r",t._circleRadius)}}class VC{constructor(t){this._elementRef=t}}const jC=Gv(VC,"primary"),UC=new Ut("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let zC=(()=>{class t extends jC{constructor(e,n,i,r,s){super(e),this._elementRef=e,this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;o.has(i.head)||o.set(i.head,new Set([100])),this._fallbackAnimation=n.EDGE||n.TRIDENT,this._noopAnimations="NoopAnimations"===r&&!!s&&!s._forceAnimations,s&&(s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Qy(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Qy(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Qy(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=function(t){if(function(){if(null==cv){const t="undefined"!=typeof document?document.head:null;cv=!(!t||!t.createShadowRoot&&!t.attachShadow)}return cv}()){const e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}get _circleRadius(){return(this.diameter-10)/2}get _viewBox(){const t=2*this._circleRadius+this.strokeWidth;return`0 0 ${t} ${t}`}get _strokeCircumference(){return 2*Math.PI*this._circleRadius}get _strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}get _circleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,n=this._diameter,i=t._diameters;let r=i.get(e);if(!r||!r.has(n)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",n+""),t.textContent=this._getAnimationText(),e.appendChild(t),r||(r=new Set,i.set(e,r)),r.add(n)}}_getAnimationText(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,`${.95*this._strokeCircumference}`).replace(/END_VALUE/g,`${.2*this._strokeCircumference}`).replace(/DIAMETER/g,`${this.diameter}`)}}return t.\u0275fac=function(e){return new(e||t)(vo(Da),vo(rv),vo(Zc,8),vo(Vy,8),vo(UC))},t.\u0275cmp=me({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(mo("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Xo("width",e.diameter,"px")("height",e.diameter,"px"),Ko("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[da],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(wn(),So(0,"svg",0),_o(1,NC,1,9,"circle",1),_o(2,MC,1,7,"circle",2),ko()),2&t&&(Xo("width",e.diameter,"px")("height",e.diameter,"px"),xo("ngSwitch","indeterminate"===e.mode),mo("viewBox",e._viewBox),cr(1),xo("ngSwitchCase",!0),cr(1),xo("ngSwitchCase",!1))},directives:[Tu,Iu],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),HC=(()=>{class t extends zC{constructor(t,e,n,i,r){super(t,e,n,i,r),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(vo(Da),vo(rv),vo(Zc,8),vo(Vy,8),vo(UC))},t.\u0275cmp=me({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(Xo("width",e.diameter,"px")("height",e.diameter,"px"),Ko("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[da],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(wn(),So(0,"svg",0),_o(1,LC,1,9,"circle",1),_o(2,FC,1,7,"circle",2),ko()),2&t&&(Xo("width",e.diameter,"px")("height",e.diameter,"px"),xo("ngSwitch","indeterminate"===e.mode),mo("viewBox",e._viewBox),cr(1),xo("ngSwitchCase",!0),cr(1),xo("ngSwitchCase",!1))},directives:[Tu,Iu],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),t})(),BC=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},imports:[[$v,Mu],$v]}),t})();function qC(t,e){}class $C{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const WC={dialogContainer:yg("dialogContainer",[xg("void, exit",wg({opacity:0,transform:"scale(0.7)"})),xg("enter",wg({transform:"none"})),Sg("* => enter",vg("150ms cubic-bezier(0, 0, 0.2, 1)",wg({transform:"none",opacity:1}))),Sg("* => void, * => exit",vg("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",wg({opacity:0})))])};function GC(){throw Error("Attempting to attach dialog content after content is already attached")}let XC=(()=>{class t extends ww{constructor(t,e,n,i,r){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=r,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new Al,this.attachDomPortal=t=>(this._portalOutlet.hasAttached()&&GC(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=i}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&GC(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&GC(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)}_trapFocus(){const t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const e=this._document.activeElement;e===t||t.contains(e)||t.focus()}}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_onAnimationDone(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(vo(Da),vo(kv),vo(Fs),vo(Zc,8),vo($C))},t.\u0275cmp=me({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var n;1&t&&zl(Cw,!0),2&t&&Ul(n=Gl())&&(e._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Po("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(mo("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),ua("@dialogContainer",e._state))},features:[da],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&_o(0,qC,0,0,"ng-template",0)},directives:[Cw],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[WC.dialogContainer]}}),t})(),KC=0;class YC{constructor(t,e,n=`mat-dialog-${KC++}`){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new E,this._afterClosed=new E,this._beforeClosed=new E,this._state=0,e._id=n,e._animationStateChanged.pipe(Wd(t=>"done"===t.phaseName&&"enter"===t.toState),up(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Wd(t=>"done"===t.phaseName&&"exit"===t.toState),up(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._overlayRef.dispose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Wd(t=>27===t.keyCode&&!this.disableClose&&!zy(t))).subscribe(t=>{t.preventDefault(),this.close()})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Wd(t=>"start"===t.phaseName),up(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._state=2,this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},e.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}const ZC=new Ut("MatDialogData"),QC=new Ut("mat-dialog-default-options"),JC=new Ut("mat-dialog-scroll-strategy"),tS={provide:JC,deps:[Yw],useFactory:function(t){return()=>t.scrollStrategies.block()}};let eS=(()=>{class t{constructor(t,e,n,i,r,s,o){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=s,this._overlayContainer=o,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new E,this._afterOpenedAtThisLevel=new E,this._ariaHiddenElements=new Map,this.afterAllClosed=qd(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(bp(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}get _afterAllClosed(){const t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}open(t,e){if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new $C)).id&&this.getDialogById(e.id))throw Error(`Dialog with id "${e.id}" exists already. The dialog id must be unique.`);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),r=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new Pw({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=Js.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:$C,useValue:e}]}),i=new yw(XC,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const r=new YC(n,e,i.id);if(i.hasBackdrop&&n.backdropClick().subscribe(()=>{r.disableClose||r.close()}),t instanceof nl)e.attachTemplatePortal(new vw(t,null,{$implicit:i.data,dialogRef:r}));else{const n=this._createInjector(i,r,e),s=e.attachComponentPortal(new yw(t,i.viewContainerRef,n));r.componentInstance=s.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:XC,useValue:n},{provide:ZC,useValue:t.data},{provide:YC,useValue:e}];return!t.direction||i&&i.get(Mv,null)||r.push({provide:Mv,useValue:{value:t.direction,change:Md()}}),Js.create({parent:i||this._injector,providers:r})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(Yt(Yw),Yt(Js),Yt(du,8),Yt(QC,8),Yt(JC),Yt(t,12),Yt(Uw))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),nS=0,iS=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=aS(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}}return t.\u0275fac=function(e){return new(e||t)(vo(YC,8),vo(Da),vo(eS))},t.\u0275dir=we({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&Do("click",(function(){return e.dialogRef.close(e.dialogResult)})),2&t&&mo("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[ya]}),t})(),rS=(()=>{class t{constructor(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id=`mat-dialog-title-${nS++}`}ngOnInit(){this._dialogRef||(this._dialogRef=aS(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(vo(YC,8),vo(Da),vo(eS))},t.\u0275dir=we({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&ca("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),sS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),oS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function aS(t,e){let n=t.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(t=>t.id===n.id):null}let lS=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[eS,tS],imports:[[nx,Sw,$v],$v]}),t})();class cS{}class uS{}class hS{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof hS?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new hS;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof hS?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class dS{encodeKey(t){return pS(t)}encodeValue(t){return pS(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function pS(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class fS{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new dS,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[r,s]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new fS({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function mS(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function gS(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _S(t){return"undefined"!=typeof FormData&&t instanceof FormData}class yS{constructor(t,e,n,i){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new hS),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new yS(e,n,r,{params:l,headers:a,reportProgress:o,responseType:i,withCredentials:s})}}const vS=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class bS{constructor(t,e=200,n="OK"){this.headers=t.headers||new hS,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class wS extends bS{constructor(t={}){super(t),this.type=vS.ResponseHeader}clone(t={}){return new wS({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class xS extends bS{constructor(t={}){super(t),this.type=vS.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new xS({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class CS extends bS{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function SS(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let kS=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof yS)i=t;else{let r=void 0;r=n.headers instanceof hS?n.headers:new hS(n.headers);let s=void 0;n.params&&(s=n.params instanceof fS?n.params:new fS({fromObject:n.params})),i=new yS(t,e,void 0!==n.body?n.body:null,{headers:r,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=Md(i).pipe(Sp(t=>this.handler.handle(t)));if(t instanceof yS||"events"===n.observe)return r;const s=r.pipe(Wd(t=>t instanceof xS));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe(V(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe(V(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe(V(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return s.pipe(V(t=>t.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new fS).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,SS(n,e))}post(t,e,n={}){return this.request("POST",t,SS(n,e))}put(t,e,n={}){return this.request("PUT",t,SS(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Yt(cS))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();class ES{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const TS=new Ut("HTTP_INTERCEPTORS");let IS=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const AS=/^\)\]\}',?\n/;class OS{}let RS=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),DS=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new w(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",s=new hS(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new wS({headers:s,status:e,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(AS,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new xS({body:l,headers:i,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new CS({error:l,headers:i,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=s(),r=new CS({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let l=!1;const c=i=>{l||(e.next(s()),l=!0);let r={type:vS.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},u=t=>{let n={type:vS.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:vS.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Yt(OS))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})();const PS=new Ut("XSRF_COOKIE_NAME"),NS=new Ut("XSRF_HEADER_NAME");class MS{}let LS=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=yu(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Yt(Zc),Yt(ic),Yt(PS))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),FS=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(MS),Yt(NS))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),VS=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(TS,[]);this.chain=t.reduceRight((t,e)=>new ES(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Yt(uS),Yt(Js))},t.\u0275prov=dt({token:t,factory:t.\u0275fac}),t})(),jS=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:FS,useClass:IS}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:PS,useValue:e.cookieName}:[],e.headerName?{provide:NS,useValue:e.headerName}:[]]}}}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[FS,{provide:TS,useExisting:FS,multi:!0},{provide:MS,useClass:LS},{provide:PS,useValue:"XSRF-TOKEN"},{provide:NS,useValue:"X-XSRF-TOKEN"}]}),t})(),US=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[kS,{provide:cS,useClass:VS},DS,{provide:uS,useExisting:DS},RS,{provide:OS,useExisting:RS}],imports:[[jS.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();var zS=function(t,e){return(zS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function HS(t,e){function n(){this.constructor=t}zS(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function BS(){return"undefined"!=typeof globalThis&&globalThis?globalThis:"undefined"!=typeof self&&self?self:"undefined"!=typeof window&&window?window:"undefined"!=typeof global&&global?global:null}function qS(t){var e=BS();return e&&e[t]?e[t]:"window"===t&&$S()?window:null}function $S(){return Boolean("object"==typeof window&&window)}function WS(){return $S()?window:qS("window")}function GS(){return Boolean("object"==typeof document&&document)}function XS(){return GS()?document:qS("document")}function KS(){return Boolean("object"==typeof navigator&&navigator)?navigator:qS("navigator")}function YS(){return"object"==typeof location&&location?location:qS("location")}function ZS(){return qS("performance")}function QS(){return Boolean("object"==typeof JSON&&JSON||null!==qS("JSON"))}function JS(){return QS()?JSON||qS("JSON"):null}function tk(t,e){return typeof t===e}function ek(t){return tk(t,"undefined")||void 0===t}function nk(t){return ek(t)||null===t}function ik(t,e){return t&&Object.prototype.hasOwnProperty.call(t,e)}function rk(t){return tk(t,"object")}function sk(t){return tk(t,"function")}function ok(t,e,n,i){void 0===i&&(i=!1);var r=!1;if(!nk(t))try{nk(t.addEventListener)?nk(t.attachEvent)||(t.attachEvent("on"+e,n),r=!0):(t.addEventListener(e,n,i),r=!0)}catch(s){}return r}function ak(t,e,n,i){if(void 0===i&&(i=!1),!nk(t))try{nk(t.removeEventListener)?nk(t.detachEvent)||t.detachEvent("on"+e,n):t.removeEventListener(e,n,i)}catch(r){}}var lk,ck=function(){function t(){}return t.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},t.isString=function(t){return tk(t,"string")},t.isNumber=function(t){return tk(t,"number")},t.isBoolean=function(t){return tk(t,"boolean")},t.disableCookies=function(){t._canUseCookies=!1},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(uk,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))},t.toISOString=function(e){if(t.isDate(e)){var n=function(t){var e=String(t);return 1===e.length&&(e="0"+e),e};return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},t.arrForEach=function(t,e,n){for(var i=t.length,r=0;r=0?r:i-Math.abs(r),0);s=3)i=arguments[2];else{for(;s=lk.WARNING&&(this.warnToConsole(s.message),this._messageLogged[o]=!0)}else this.consoleLoggingLevel()>=lk.WARNING&&this.warnToConsole(s.message);this.logInternalMessage(t,s)}},t.prototype.warnToConsole=function(t){!ck.isUndefined(console)&&console&&(ck.isFunction(console.warn)?console.warn(t):ck.isFunction(console.log)&&console.log(t))},t.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},t.prototype.logInternalMessage=function(t,e){if(!this._areInternalMessagesThrottled()){var n=!0,i=this.AIInternalMessagePrefix+e.messageId;if(this._messageLogged[i]?n=!1:this._messageLogged[i]=!0,n&&(t<=this.telemetryLoggingLevel()&&(this.queue.push(e),this._messageCount++),this._messageCount===this.maxInternalMessageLimit())){var r="Internal events throttle limit per PageView reached for this app.",s=new dk(23,r,!1);this.queue.push(s),this.warnToConsole(r)}}},t.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},t}(),fk=ck.isFunction,mk=function(t,e){var n=this,i=null,r=fk(t.processTelemetry),s=fk(t.setNextPlugin);n._hasRun=!1,n.getPlugin=function(){return t},n.getNext=function(){return i},n.setNext=function(t){i=t},n.processTelemetry=function(o,a){if(a||(a=e),t&&r){n._hasRun=!0;try{a.setNext(i),s&&t.setNextPlugin(i),i&&(i._hasRun=!1),t.processTelemetry(o,a)}catch(c){var l=i&&i._hasRun;i&&l||a.diagLog().throwInternal(lk.CRITICAL,73,"Plugin ["+t.identifier+"] failed during processTelemetry - "+c),i&&!l&&i.processTelemetry(o,a)}}else i&&(n._hasRun=!0,i.processTelemetry(o,a))}},gk=ck.isNullOrUndefined;function _k(t,e){var n=[];if(t&&t.length>0)for(var i=null,r=0;r0?n[0]:null}var yk=function t(e,n,i,r){var s=this,o=null;null!==r&&(e&&ck.isFunction(e.getPlugin)?o=function(t,e,n){var i=[],r=!n;if(t)for(;t;){var s=t.getPlugin();(r||s===n)&&(r=!0,i.push(s)),t=t.getNext()}return r||i.push(n),_k(i,e)}(e,s,r||e.getPlugin()):r?o=function(t,e,n){var i=t,r=!1;return n&&t&&(i=[],ck.arrForEach(t,(function(t){(r||t===n)&&(r=!0,i.push(t))}))),n&&!r&&(i||(i=[]),i.push(n)),_k(i,e)}(e,s,r):ck.isUndefined(r)&&(o=_k(e,s))),s.core=function(){return i},s.diagLog=function(){var t=(i||{}).logger;return t||(t=new pk(n||{})),t},s.getCfg=function(){return n},s.getExtCfg=function(t,e){var i;if(void 0===e&&(e={}),n){var r=n.extensionConfig;r&&t&&(i=r[t])}return i||e},s.getConfig=function(t,e,i){var r;void 0===i&&(i=!1);var o=s.getExtCfg(t,null);return o&&!gk(o[e])?r=o[e]:n&&!gk(n[e])&&(r=n[e]),gk(r)?i:r},s.hasNext=function(){return null!=o},s.getNext=function(){return o},s.setNext=function(t){o=t},s.processNext=function(t){var e=o;e&&(o=e.getNext(),e.processTelemetry(t,s))},s.createNew=function(e,r){return void 0===e&&(e=null),new t(e||o,n,i,r)}},vk=ck.isFunction,bk=function(){function t(){var t=this,e=!1,n=null,i=null;t.core=null,t.diagLog=function(e){return t._getTelCtx(e).diagLog()},t.isInitialized=function(){return e},t.setInitialized=function(t){e=t},t.setNextPlugin=function(t){i=t},t.processNext=function(t,e){e?e.processNext(t):i&&vk(i.processTelemetry)&&i.processTelemetry(t,null)},t._getTelCtx=function(e){void 0===e&&(e=null);var r=e;return r||(r=(n||new yk(null,{},t.core)).createNew(null,i&&i.getPlugin?i.getPlugin:i)),r},t._baseTelInit=function(r,s,o,a){r&&(r.extensionConfig=r.extensionConfig||[]),!a&&s&&(a=s.getProcessTelContext().getNext());var l=i;i&&i.getPlugin&&(l=i.getPlugin()),t.core=s,n=new yk(a,r,s,l),e=!0}}return t.prototype.initialize=function(t,e,n,i){this._baseTelInit(t,e,n,i)},t}(),wk=ck.isFunction;function xk(t,e){for(var n=[],i=null,r=t.getNext();r;){var s=r.getPlugin();s&&(i&&wk(i.setNextPlugin)&&wk(s.processTelemetry)&&i.setNextPlugin(s),wk(s.isInitialized)&&s.isInitialized()||n.push(s),i=s,r=r.getNext())}ck.arrForEach(n,(function(n){n.initialize(t.getCfg(),t.core(),e,t.getNext())}))}function Ck(t){return t.sort((function(t,e){var n=0,i=wk(e.processTelemetry);return wk(t.processTelemetry)?n=i?t.priority-e.priority:1:i&&(n=-1),n}))}var Sk=ck.arrForEach,kk=ck.objDefineAccessors;function Ek(t,e){e&&e.length>0&&(function(t){Sk(t,(function(t){if(t.priority<500)throw Error("Channel has invalid priority"+t.identifier)}))}(e=e.sort((function(t,e){return t.priority-e.priority}))),t.push(e))}var Tk,Ik,Ak,Ok=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.identifier="ChannelControllerPlugin",e.priority=500,e}return HS(e,t),e.prototype.processTelemetry=function(t,e){var n=this;this._channelQueue&&Sk(this._channelQueue,(function(i){i.length>0&&n._getTelCtx(e).createNew(i).processNext(t)}))},e.prototype.getChannelControls=function(){return this._channelQueue},e.prototype.initialize=function(e,n,i){if(!this.isInitialized()){t.prototype.initialize.call(this,e,n,i),e.isCookieUseDisabled&&ck.disableCookies();var r=this._channelQueue=function(t,e){var n=[];if(t&&Sk(t,(function(t){return Ek(n,t)})),e){var i=[];Sk(e,(function(t){t.priority>500&&i.push(t)})),Ek(n,i)}return n}((e||{}).channels,i);Sk(r,(function(t){return xk(new yk(t,e,n),i)}))}},e._staticInit=(kk(e.prototype,"ChannelControls",e.prototype.getChannelControls),void kk(e.prototype,"channelQueue",e.prototype.getChannelControls)),e}(bk),Rk=ck.arrForEach,Dk=ck.isNullOrUndefined,Pk=function(){function t(){var t=!1;this._extensions=new Array,this._channelController=new Ok,this.isInitialized=function(){return t},this._setInit=function(e){t=e},this._eventQueue=[]}return t.prototype.initialize=function(t,e,n,i){if(this.isInitialized())throw Error("Core should not be initialized more than once");if(!t||Dk(t.instrumentationKey))throw Error("Please provide instrumentation key");this.config=t;var r=this._channelController;i||(i=ck.objCreate({addNotificationListener:function(t){},removeNotificationListener:function(t){},eventsSent:function(t){},eventsDiscarded:function(t,e){}})),this._notificationManager=i,t.extensions=Dk(t.extensions)?[]:t.extensions,(t.extensionConfig=Dk(t.extensionConfig)?{}:t.extensionConfig).NotificationManager=i,n||(n=ck.objCreate({throwInternal:function(t,e,n,i,r){void 0===r&&(r=!1)},warnToConsole:function(t){},resetInternalMessageCount:function(){}})),this.logger=n;var s=[];s.push.apply(s,e.concat(t.extensions)),s=Ck(s);var o=[],a=[],l={};if(Rk(s,(function(t){if(Dk(t)||Dk(t.initialize))throw Error("Extensions must provide callback to initialize");var e=t.priority,i=t.identifier;t&&e&&(Dk(l[e])?l[e]=i:n.warnToConsole("Two extensions have same priority #"+e+" - "+l[e]+", "+i)),!e||e0&&(Rk(e._eventQueue,(function(t){e.getProcessTelContext().processNext(t)})),e._eventQueue=[]),e.getProcessTelContext().processNext(t)):e._eventQueue.push(t)},t.prototype.getProcessTelContext=function(){var t=this._extensions,e=t;return t&&0!==t.length||(e=[this._channelController]),new yk(e,this.config,this)},t}(),Nk=function(){function t(){this.listeners=[]}return t.prototype.addNotificationListener=function(t){this.listeners.push(t)},t.prototype.removeNotificationListener=function(t){for(var e=ck.arrIndexOf(this.listeners,t);e>-1;)this.listeners.splice(e,1),e=ck.arrIndexOf(this.listeners,t)},t.prototype.eventsSent=function(t){for(var e=this,n=function(n){i.listeners[n].eventsSent&&setTimeout((function(){return e.listeners[n].eventsSent(t)}),0)},i=this,r=0;r0||(n=1e4),setInterval((function(){var n=e,i=n.logger?n.logger.queue:[];ck.arrForEach(i,(function(e){var i={name:t||"InternalMessageId: "+e.messageId,iKey:n.config.instrumentationKey,time:ck.toISOString(new Date),baseType:dk.dataType,baseData:{message:e.message}};n.track(i)})),i.length=0}),n)},e.prototype._validateTelemetryItem=function(t){if(ck.isNullOrUndefined(t.name))throw this._notifyInvalidEvent(t),Error("telemetry name required")},e.prototype._notifyInvalidEvent=function(t){this._notificationManager&&this._notificationManager.eventsDiscarded([t],2)},e}(Pk),Lk=function(t,e){return(Lk=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},Fk=function(){return(Fk=Object.assign||function(t){for(var e,n=1,i=arguments.length;nt.MAX_NAME_LENGTH&&(i=n.substring(0,t.MAX_NAME_LENGTH),e.throwInternal(lk.WARNING,57,"name is too long. It has been truncated to "+t.MAX_NAME_LENGTH+" characters.",{name:n},!0)),i||n},t.sanitizeString=function(e,n,i){var r;return void 0===i&&(i=t.MAX_STRING_LENGTH),n&&(i=i||t.MAX_STRING_LENGTH,(n=t.trim(n)).toString().length>i&&(r=n.toString().substring(0,i),e.throwInternal(lk.WARNING,61,"string value is too long. It has been truncated to "+i+" characters.",{value:n},!0))),r||n},t.sanitizeUrl=function(e,n){return t.sanitizeInput(e,n,t.MAX_URL_LENGTH,66)},t.sanitizeMessage=function(e,n){var i;return n&&n.length>t.MAX_MESSAGE_LENGTH&&(i=n.substring(0,t.MAX_MESSAGE_LENGTH),e.throwInternal(lk.WARNING,56,"message is too long, it has been truncated to "+t.MAX_MESSAGE_LENGTH+" characters.",{message:n},!0)),i||n},t.sanitizeException=function(e,n){var i;return n&&n.length>t.MAX_EXCEPTION_LENGTH&&(i=n.substring(0,t.MAX_EXCEPTION_LENGTH),e.throwInternal(lk.WARNING,52,"exception is too long, it has been truncated to "+t.MAX_EXCEPTION_LENGTH+" characters.",{exception:n},!0)),i||n},t.sanitizeProperties=function(e,n){if(n){var i={};for(var r in n){var s=n[r];if(ck.isObject(s)&&QS())try{s=JS().stringify(s)}catch(o){e.throwInternal(lk.WARNING,49,"custom property is not valid",{exception:o},!0)}s=t.sanitizeString(e,s,t.MAX_PROPERTY_LENGTH),i[r=t.sanitizeKeyAndAddUniqueness(e,r,i)]=s}n=i}return n},t.sanitizeMeasurements=function(e,n){if(n){var i={};for(var r in n){var s=n[r];i[r=t.sanitizeKeyAndAddUniqueness(e,r,i)]=s}n=i}return n},t.sanitizeId=function(e,n){return n?t.sanitizeInput(e,n,t.MAX_ID_LENGTH,69).toString():n},t.sanitizeInput=function(e,n,i,r){var s;return n&&(n=t.trim(n)).length>i&&(s=n.substring(0,i),e.throwInternal(lk.WARNING,r,"input is too long, it has been truncated to "+i+" characters.",{data:n},!0)),s||n},t.padNumber=function(t){var e="00"+t;return e.substr(e.length-3)},t.trim=function(t){return ck.isString(t)?t.replace(/^\s+|\s+$/g,""):t},t.MAX_NAME_LENGTH=150,t.MAX_ID_LENGTH=128,t.MAX_PROPERTY_LENGTH=8192,t.MAX_STRING_LENGTH=1024,t.MAX_URL_LENGTH=2048,t.MAX_MESSAGE_LENGTH=32768,t.MAX_EXCEPTION_LENGTH=32768,t}(),Uk=KS(),zk=ck.isString,Hk=null,Bk=function(){function t(){}return t.createDomEvent=function(t){var e=null;if(ck.isFunction(Event))e=new Event(t);else{var n=XS();n&&n.createEvent&&(e=n.createEvent("Event")).initEvent(t,!0,!0)}return e},t.disableStorage=function(){t._canUseLocalStorage=!1,t._canUseSessionStorage=!1},t._getLocalStorageObject=function(){return t.canUseLocalStorage()?t._getVerifiedStorageObject(Tk.LocalStorage):null},t._getVerifiedStorageObject=function(t){var e,n,i=null;try{if(ck.isNullOrUndefined(BS()))return null;n=new Date,(i=qS(t===Tk.LocalStorage?"localStorage":"sessionStorage")).setItem(n.toString(),n.toString()),e=i.getItem(n.toString())!==n.toString(),i.removeItem(n.toString()),e&&(i=null)}catch(r){i=null}return i},t.isInternalApplicationInsightsEndpoint=function(e){return-1!==t._internalEndpoints.indexOf(e.toLowerCase())},t.canUseLocalStorage=function(){return void 0===t._canUseLocalStorage&&(t._canUseLocalStorage=!!t._getVerifiedStorageObject(Tk.LocalStorage)),t._canUseLocalStorage},t.getStorage=function(e,n){var i=t._getLocalStorageObject();if(null!==i)try{return i.getItem(n)}catch(r){t._canUseLocalStorage=!1,e.throwInternal(lk.WARNING,1,"Browser failed read of local storage. "+t.getExceptionName(r),{exception:t.dump(r)})}return null},t.setStorage=function(e,n,i){var r=t._getLocalStorageObject();if(null!==r)try{return r.setItem(n,i),!0}catch(s){t._canUseLocalStorage=!1,e.throwInternal(lk.WARNING,3,"Browser failed write to local storage. "+t.getExceptionName(s),{exception:t.dump(s)})}return!1},t.removeStorage=function(e,n){var i=t._getLocalStorageObject();if(null!==i)try{return i.removeItem(n),!0}catch(r){t._canUseLocalStorage=!1,e.throwInternal(lk.WARNING,5,"Browser failed removal of local storage item. "+t.getExceptionName(r),{exception:t.dump(r)})}return!1},t._getSessionStorageObject=function(){return t.canUseSessionStorage()?t._getVerifiedStorageObject(Tk.SessionStorage):null},t.canUseSessionStorage=function(){return void 0===t._canUseSessionStorage&&(t._canUseSessionStorage=!!t._getVerifiedStorageObject(Tk.SessionStorage)),t._canUseSessionStorage},t.getSessionStorageKeys=function(){var e=[];if(t.canUseSessionStorage())for(var n in qS("sessionStorage"))e.push(n);return e},t.getSessionStorage=function(e,n){var i=t._getSessionStorageObject();if(null!==i)try{return i.getItem(n)}catch(r){t._canUseSessionStorage=!1,e.throwInternal(lk.WARNING,2,"Browser failed read of session storage. "+t.getExceptionName(r),{exception:t.dump(r)})}return null},t.setSessionStorage=function(e,n,i){var r=t._getSessionStorageObject();if(null!==r)try{return r.setItem(n,i),!0}catch(s){t._canUseSessionStorage=!1,e.throwInternal(lk.WARNING,4,"Browser failed write to session storage. "+t.getExceptionName(s),{exception:t.dump(s)})}return!1},t.removeSessionStorage=function(e,n){var i=t._getSessionStorageObject();if(null!==i)try{return i.removeItem(n),!0}catch(r){t._canUseSessionStorage=!1,e.throwInternal(lk.WARNING,6,"Browser failed removal of session storage item. "+t.getExceptionName(r),{exception:t.dump(r)})}return!1},t.disableCookies=function(){ck.disableCookies()},t.canUseCookies=function(e){if(void 0===ck._canUseCookies){ck._canUseCookies=!1;try{ck._canUseCookies=void 0!==t.document.cookie}catch(n){e.throwInternal(lk.WARNING,68,"Cannot access document.cookie - "+t.getExceptionName(n),{exception:t.dump(n)})}}return ck._canUseCookies},t.disallowsSameSiteNone=function(t){return!!zk(t)&&(-1!==t.indexOf("CPU iPhone OS 12")||-1!==t.indexOf("iPad; CPU OS 12")||-1!==t.indexOf("Macintosh; Intel Mac OS X 10_14")&&-1!==t.indexOf("Version/")&&-1!==t.indexOf("Safari")||-1!==t.indexOf("Macintosh; Intel Mac OS X 10_14")&&"AppleWebKit/605.1.15 (KHTML, like Gecko)"===(e=t).substring((i=(n=e.length)-"AppleWebKit/605.1.15 (KHTML, like Gecko)".length)>=0?i:0,n)||-1!==t.indexOf("Chrome/5")||-1!==t.indexOf("Chrome/6")||-1!==t.indexOf("UnrealEngine")&&-1===t.indexOf("Chrome")||-1!==t.indexOf("UCBrowser/12")||-1!==t.indexOf("UCBrowser/11"));var e,n,i},t.setCookie=function(e,n,i,r){if(t.canUseCookies(e)){var s="",o="";r&&(s=";domain="+r);var a=YS();a&&"https:"===a.protocol&&(o=";secure",null===Hk&&(Hk=t.disallowsSameSiteNone((KS()||{}).userAgent)),Hk||(i+=";SameSite=None")),t.document.cookie=n+"="+i+s+";path=/"+o}},t.stringToBoolOrDefault=function(t,e){return void 0===e&&(e=!1),null==t?e:"true"===t.toString().toLowerCase()},t.getCookie=function(e,n){if(t.canUseCookies(e)){var i="";if(n&&n.length)for(var r=n+"=",s=t.document.cookie.split(";"),o=0;o0;)t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e%64),e=Math.floor(e/64);return t},t.random32=function(){return 4294967296*Math.random()|0},t.generateW3CId=function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],i="",r=0;r<4;r++)i+=n[15&(e=t.random32())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var s=n[8+4*Math.random()|0];return i.substr(0,8)+i.substr(9,4)+"4"+i.substr(13,3)+s+i.substr(16,3)+i.substr(19,12)},t.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},t.isError=function(t){return"[object Error]"===Object.prototype.toString.call(t)},t.getIEVersion=function(t){void 0===t&&(t=null);var e=t?t.toLowerCase():Uk?(Uk.userAgent||"").toLowerCase():"";return-1!==e.indexOf("msie")?parseInt(e.split("msie")[1]):null},t.msToTimeSpan=function(t){(isNaN(t)||t<0)&&(t=0);var e=""+(t=Math.round(t))%1e3,n=""+Math.floor(t/1e3)%60,i=""+Math.floor(t/6e4)%60,r=""+Math.floor(t/36e5)%24,s=Math.floor(t/864e5);return(s>0?s+".":"")+(r=r.length<2?"0"+r:r)+":"+(i=i.length<2?"0"+i:i)+":"+(n=n.length<2?"0"+n:n)+"."+(1===e.length?"00"+e:2===e.length?"0"+e:e)},t.isCrossOriginError=function(t,e,n,i,r){return("Script error."===t||"Script error"===t)&&!r},t.dump=function(t){var e=Object.prototype.toString.call(t),n="";return"[object Error]"===e?n="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'":QS()&&(n=JS().stringify(t)),e+n},t.getExceptionName=function(t){return"[object Error]"===Object.prototype.toString.call(t)?t.name:""},t.addEventHandler=function(t,e){return hk.Attach(WS(),t,e)},t.IsBeaconApiSupported=function(){return"sendBeacon"in Uk&&Uk.sendBeacon},t.getExtension=function(t,e){for(var n=null,i=0;!n&&i2&&zk(e[2])&&e[2].length>0)return e[2]}return null},t.document=XS()||{},t}(),$k=function(){function t(){}return t.canIncludeCorrelationHeader=function(t,e,n){if(t&&t.disableCorrelationHeaders)return!1;if(!e)return!1;var i=qk.parseUrl(e).host.toLowerCase();if(!(t&&t.enableCorsCorrelation||i===n))return!1;var r,s=t&&t.correlationHeaderDomains;if(s&&(ck.arrForEach(s,(function(t){var e=new RegExp(t.toLowerCase().replace(/\./g,".").replace(/\*/g,".*"));r=r||e.test(i)})),!r))return!1;var o=t&&t.correlationHeaderExcludedDomains;if(!o||0===o.length)return!0;for(var a=0;a0},t.getCorrelationContext=function(e){if(e){var n=t.getCorrelationContextValue(e,Vk.requestContextTargetKey);if(n&&n!==t.correlationIdPrefix)return n}},t.getCorrelationContextValue=function(t,e){if(t)for(var n=t.split(","),i=0;i0){var a=qk.parseUrl(e);if(r=a.host,!s)if(null!=a.pathname){var l=0===a.pathname.length?"/":a.pathname;"/"!==l.charAt(0)&&(l="/"+l),o=a.pathname,s=jk.sanitizeString(t,n?n+" "+l:l)}else s=jk.sanitizeString(t,e)}else r=i,s=i;return{target:r,name:s,data:o}},t}(),Gk=function(){function t(){}return t.Now=function(){var t=ZS();return t&&t.now&&t.timing?t.now()+t.timing.navigationStart:(new Date).getTime()},t.GetDuration=function(t,e){var n=null;return 0===t||0===e||ck.isNullOrUndefined(t)||ck.isNullOrUndefined(e)||(n=e-t),n},t}(),Xk="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Kk="sampleRate",Yk="ProcessLegacy",Zk="http.method",Qk="https://dc.services.visualstudio.com",Jk=function(){function t(){}return t.parse=function(e){if(!e)return{};var n=e.split(t._FIELDS_SEPARATOR),i=ck.arrReduce(n,(function(e,n){var i=n.split(t._FIELD_KEY_VALUE_SEPARATOR);return 2===i.length&&(e[i[0].toLowerCase()]=i[1]),e}),{});return ck.objKeys(i).length>0&&(i.endpointsuffix&&(i.ingestionendpoint=i.ingestionendpoint||"https://"+(i.location?i.location+".":"")+"dc."+i.endpointsuffix),i.ingestionendpoint=i.ingestionendpoint||Qk),i},t._FIELDS_SEPARATOR=";",t._FIELD_KEY_VALUE_SEPARATOR="=",t}(),tE=function(t,e){return(tE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function eE(t,e){function n(){this.constructor=t}tE(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var nE,iE=function(){return(iE=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0}else r.typeName=i.typeName,r.message=i.message,r.stack=i.stack,r.parsedStack=i.parsedStack,r.hasFullStack=i.hasFullStack;return r}return eE(e,t),e.prototype.toInterface=function(){var t=this.parsedStack instanceof Array&&ck.arrMap(this.parsedStack,(function(t){return t.toInterface()}));return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:t||void 0}},e.CreateFromInterface=function(t,n){var i=n.parsedStack instanceof Array&&ck.arrMap(n.parsedStack,(function(t){return dE.CreateFromInterface(t)}))||n.parsedStack;return new e(t,iE({},n,{parsedStack:i}))},e.parseStack=function(t){var e;if(ck.isString(t)){var n=t.split("\n");e=[];for(var i=0,r=0,s=0;s<=n.length;s++)if(dE.regex.test(n[s])){var o=new dE(n[s],i++);r+=o.sizeInBytes,e.push(o)}if(r>32768)for(var a=0,l=e.length-1,c=0,u=a,h=l;a32768){e.splice(u,h-u+1);break}u=a,h=l,a++,l--}}return e},e}((function(){this.hasFullStack=!0,this.parsedStack=[]})),dE=function(t){function e(n,i){var r=t.call(this)||this;if(r.sizeInBytes=0,r.aiDataContract={level:Ik.Required,method:Ik.Required,assembly:Ik.Default,fileName:Ik.Default,line:Ik.Default},"string"==typeof n){var s=n;r.level=i,r.method="",r.assembly=Bk.trim(s),r.fileName="",r.line=0;var o=s.match(e.regex);o&&o.length>=5&&(r.method=Bk.trim(o[2])||r.method,r.fileName=Bk.trim(o[4]),r.line=parseInt(o[5])||0)}else r.level=n.level,r.method=n.method,r.assembly=n.assembly,r.fileName=n.fileName,r.line=n.line,r.sizeInBytes=0;return r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=e.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}return eE(e,t),e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},e.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}((function(){})),pE=function(t){function e(){var e=t.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e.measurements={},e}return eE(e,t),e}(aE);!function(t){t[t.Measurement=0]="Measurement",t[t.Aggregation=1]="Aggregation"}(nE||(nE={}));var fE,mE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.aiDataContract={name:Ik.Required,kind:Ik.Default,value:Ik.Required,count:Ik.Default,min:Ik.Default,max:Ik.Default,stdDev:Ik.Default},e}return eE(e,t),e}((function(){this.kind=nE.Measurement})),gE=function(t){function e(e,n,i,r,s,o,a,l){var c=t.call(this)||this;c.aiDataContract={ver:Ik.Required,metrics:Ik.Required,properties:Ik.Default};var u=new mE;return u.count=r>0?r:void 0,u.max=isNaN(o)||null===o?void 0:o,u.min=isNaN(s)||null===s?void 0:s,u.name=jk.sanitizeString(e,n)||Bk.NotSpecified,u.value=i,c.metrics=[u],c.properties=jk.sanitizeProperties(e,a),c.measurements=jk.sanitizeMeasurements(e,l),c}return eE(e,t),e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(pE),_E=function(t){function e(){var e=t.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}return eE(e,t),e}(lE),yE=function(t){function e(e,n,i,r,s,o,a){var l=t.call(this)||this;return l.aiDataContract={ver:Ik.Required,name:Ik.Default,url:Ik.Default,duration:Ik.Default,properties:Ik.Default,measurements:Ik.Default,id:Ik.Default},l.id=jk.sanitizeId(e,a),l.url=jk.sanitizeUrl(e,i),l.name=jk.sanitizeString(e,n)||Bk.NotSpecified,isNaN(r)||(l.duration=Bk.msToTimeSpan(r)),l.properties=jk.sanitizeProperties(e,s),l.measurements=jk.sanitizeMeasurements(e,o),l}return eE(e,t),e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(_E),vE=function(t){function e(e,n,i,r,s,o,a,l,c,u,h,d){void 0===c&&(c="Ajax");var p=t.call(this)||this;p.aiDataContract={id:Ik.Required,ver:Ik.Required,name:Ik.Default,resultCode:Ik.Default,duration:Ik.Default,success:Ik.Default,data:Ik.Default,target:Ik.Default,type:Ik.Default,properties:Ik.Default,measurements:Ik.Default,kind:Ik.Default,value:Ik.Default,count:Ik.Default,min:Ik.Default,max:Ik.Default,stdDev:Ik.Default,dependencyKind:Ik.Default,dependencySource:Ik.Default,commandName:Ik.Default,dependencyTypeName:Ik.Default},p.id=n,p.duration=Bk.msToTimeSpan(s),p.success=o,p.resultCode=a+"",p.type=jk.sanitizeString(e,c);var f=Wk.ParseDependencyPath(e,i,l,r);return p.data=jk.sanitizeUrl(e,r)||f.data,p.target=jk.sanitizeString(e,f.target),u&&(p.target=p.target+" | "+u),p.name=jk.sanitizeString(e,f.name),p.properties=jk.sanitizeProperties(e,h),p.measurements=jk.sanitizeMeasurements(e,d),p}return eE(e,t),e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(function(t){function e(){var e=t.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}return eE(e,t),e}(aE)),bE=function(t){function e(e,n,i,r,s){var o=t.call(this)||this;return o.aiDataContract={ver:Ik.Required,message:Ik.Required,severityLevel:Ik.Default,properties:Ik.Default},o.message=jk.sanitizeMessage(e,n=n||Bk.NotSpecified),o.properties=jk.sanitizeProperties(e,r),o.measurements=jk.sanitizeMeasurements(e,s),i&&(o.severityLevel=i),o}return eE(e,t),e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(function(t){function e(){var e=t.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}return eE(e,t),e}(aE)),wE=function(t){function e(e,n,i,r,s,o,a){var l=t.call(this)||this;return l.aiDataContract={ver:Ik.Required,name:Ik.Default,url:Ik.Default,duration:Ik.Default,perfTotal:Ik.Default,networkConnect:Ik.Default,sentRequest:Ik.Default,receivedResponse:Ik.Default,domProcessing:Ik.Default,properties:Ik.Default,measurements:Ik.Default},l.url=jk.sanitizeUrl(e,i),l.name=jk.sanitizeString(e,n)||Bk.NotSpecified,l.properties=jk.sanitizeProperties(e,s),l.measurements=jk.sanitizeMeasurements(e,o),a&&(l.domProcessing=a.domProcessing,l.duration=a.duration,l.networkConnect=a.networkConnect,l.perfTotal=a.perfTotal,l.receivedResponse=a.receivedResponse,l.sentRequest=a.sentRequest),l}return eE(e,t),e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(function(t){function e(){var e=t.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}return eE(e,t),e}(_E)),xE=function(t){function e(e,n){var i=t.call(this)||this;return i.aiDataContract={baseType:Ik.Required,baseData:Ik.Required},i.baseType=e,i.baseData=n,i}return eE(e,t),e}(sE);!function(t){t[t.Verbose=0]="Verbose",t[t.Information=1]="Information",t[t.Warning=2]="Warning",t[t.Error=3]="Error",t[t.Critical=4]="Critical"}(fE||(fE={}));var CE=function(){function t(){}return t.getConfig=function(t,e,n,i){var r;return void 0===i&&(i=!1),r=n&&t.extensionConfig&&t.extensionConfig[n]&&!ck.isNullOrUndefined(t.extensionConfig[n][e])?t.extensionConfig[n][e]:t[e],ck.isNullOrUndefined(r)?i:r},t}(),SE=function(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion"},kE=function(){function t(){}return t.create=function(t,e,n,i,r,s){if(n=jk.sanitizeString(i,n)||Bk.NotSpecified,ck.isNullOrUndefined(t)||ck.isNullOrUndefined(e)||ck.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var o={name:n,time:ck.toISOString(new Date),iKey:"",ext:s||{},tags:[],data:{},baseType:e,baseData:t};if(!ck.isNullOrUndefined(r))for(var a in r)r.hasOwnProperty(a)&&(o.data[a]=r[a]);return o},t}(),EE=function(){function t(){}return t.UserExt="user",t.DeviceExt="device",t.TraceExt="trace",t.WebExt="web",t.AppExt="app",t.OSExt="os",t.SessionExt="ses",t.SDKExt="sdk",t}(),TE=new SE,IE="AppInsightsPropertiesPlugin",AE="AppInsightsChannelPlugin",OE="ApplicationInsightsAnalytics",RE=Object.getPrototypeOf,DE=0;function PE(t,e){return t&&Object.prototype.hasOwnProperty.call(t,e)}function NE(t){return"function"==typeof t}function ME(t){return t&&(t===Object.prototype||t===Array.prototype)}function LE(t){return ME(t)||t===Function.prototype}function FE(t){if(t){if(RE)return RE(t);var e=t.__proto__||t.prototype||t.constructor;if(e)return e}return null}function VE(t,e,n){return"constructor"!==e&&NE(t[e])&&(n||PE(t,e))}function jE(t){throw new TypeError("DynamicProto: "+t)}function UE(t,e){for(var n=t.length-1;n>=0;n--)if(t[n]===e)return!0;return!1}function zE(t,e){return PE(t,"prototype")?t.name||e||"_unknown_":((t||{}).constructor||{}).name||e||"_unknown_"}var HE=function(t,e,n){PE(t,"prototype")||jE("theClass is an invalid class definition.");var i=t.prototype;(function(t,e){for(var n=FE(e);n&&!LE(n);){if(n===t)return!0;n=FE(n)}return!1})(i,e)||jE("["+zE(t)+"] is not in class heirarchy of ["+zE(e)+"]");var r=null;PE(i,"_dynClass")?r=i._dynClass:(r="_dynCls$"+zE(t,"_")+"$"+DE,DE++,i._dynClass=r);var s=function(t){var e={};for(var n in t)!e[n]&&VE(t,n,!1)&&(e[n]=t[n]);return e}(e);n(e,function(t,e,n){function i(t,e){return function(){return e.apply(t,arguments)}}var r={};for(var s in n)r[s]=i(e,n[s]);for(var o=FE(t),a=[];o&&!LE(o)&&!UE(a,o);){for(var s in o)!r[s]&&VE(o,s,!RE)&&(r[s]=i(e,o[s]));a.push(o),o=FE(o)}return r}(i,e,s)),function(t,e,n,i){function r(t,e){var n=function(){var i=this;if(i&&PE(t,"_dynClass")){var r=((i._dynInstFuncs||{})[t._dynClass]||{})[e];if(r)return r.apply(i,arguments);jE("Missing ["+e+"] function")}var s=t[e];return s===n&&(s=FE(t)[e]),NE(s)||jE("["+e+"] is not a function"),s.apply(i,arguments)};return n._isDynProxy=1,n}if(!ME(t)){var s=n._dynInstFuncs=n._dynInstFuncs||{},o=s[e]=s[e]||{};for(var a in n)VE(n,a,!1)&&n[a]!==i[a]&&(o[a]=n[a],delete n[a],(!PE(t,a)||t[a]&&!t[a]._isDynProxy)&&(t[a]=r(t,a)))}}(i,r,e,s)},BE=function t(e,n,i,r){HE(t,this,(function(t){var s,o=ck.arrForEach,a=ck.isNullOrUndefined,l=null,c=[],u=!1;function h(){i&&o(i.getTransmissionControls(),(function(t){o(t,(function(t){return t.flush(!0)}))}))}i&&(s=i.logger),t.trackPageView=function(t,i){var d=t.name;if(a(d)||"string"!=typeof d){var p=XS();d=t.name=p&&p.title||""}var f=t.uri;if(a(f)||"string"!=typeof f){var m=YS();f=t.uri=m&&m.href||""}if(!r.isPerformanceTimingSupported())return e.sendPageViewInternal(t,i),h(),void s.throwInternal(lk.WARNING,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var g,_,y=!1,v=r.getPerformanceTiming().navigationStart;g=Gk.GetDuration(v,+new Date),r.shouldCollectDuration(g)||(g=void 0),a(i)||a(i.duration)||(_=i.duration),!n&&isNaN(_)||(isNaN(_)&&(i||(i={}),i.duration=g),e.sendPageViewInternal(t,i),h(),y=!0),i||(i={}),c.push((function(){var n=!1;try{if(r.isPerformanceTimingDataReady()){n=!0;var o={name:d,uri:f};r.populatePageViewPerformanceEvent(o),o.isValid||y?(y||(i.duration=o.durationMs,e.sendPageViewInternal(t,i)),u||(e.sendPageViewPerformanceInternal(o,i),u=!0)):(i.duration=g,e.sendPageViewInternal(t,i))}else Gk.GetDuration(v,+new Date)>6e4&&(n=!0,y||(i.duration=6e4,e.sendPageViewInternal(t,i)))}catch(a){s.throwInternal(lk.CRITICAL,38,"trackPageView failed on page load calculation: "+Bk.getExceptionName(a),{exception:Bk.dump(a)})}return n})),l||(l=setInterval((function(){var t=c.slice(0),e=!1;c=[],o(t,(function(t){t()?e=!0:c.push(t)})),0===c.length&&(clearInterval(l),l=null),e&&h()}),100))}}))},qE=function(){function t(t,e){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=e,this._logger=t}return t.prototype.trackPreviousPageVisit=function(t,e){try{var n=this.restartPageVisitTimer(t,e);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(i){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+Bk.dump(i))}},t.prototype.restartPageVisitTimer=function(t,e){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(t,e),n}catch(i){return this._logger.warnToConsole("Call to restart failed: "+Bk.dump(i)),null}},t.prototype.startPageVisitTimer=function(t,e){try{if(Bk.canUseSessionStorage()){if(null!=Bk.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw new Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new $E(t,e),i=JS().stringify(n);Bk.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,i)}}catch(r){this._logger.warnToConsole("Call to start failed: "+Bk.dump(r))}},t.prototype.stopPageVisitTimer=function(){try{if(Bk.canUseSessionStorage()){var t=Date.now(),e=Bk.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);if(e&&QS()){var n=JS().parse(e);return n.pageVisitTime=t-n.pageVisitStartTime,Bk.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(i){return this._logger.warnToConsole("Stop page visit timer failed: "+Bk.dump(i)),null}},t}(),$E=function(t,e){this.pageVisitStartTime=Date.now(),this.pageName=t,this.pageUrl=e},WE=function(){function t(t){this.MAX_DURATION_ALLOWED=36e5,t&&(this._logger=t.logger)}return t.prototype.populatePageViewPerformanceEvent=function(t){t.isValid=!1;var e=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming();if(e||n){if(e)var i=e.duration,r=Gk.GetDuration(e.startTime,e.connectEnd),s=Gk.GetDuration(e.requestStart,e.responseStart),o=Gk.GetDuration(e.responseStart,e.responseEnd),a=Gk.GetDuration(e.responseEnd,e.loadEventEnd);else i=Gk.GetDuration(n.navigationStart,n.loadEventEnd),r=Gk.GetDuration(n.navigationStart,n.connectEnd),s=Gk.GetDuration(n.requestStart,n.responseStart),o=Gk.GetDuration(n.responseStart,n.responseEnd),a=Gk.GetDuration(n.responseEnd,n.loadEventEnd);0===i?this._logger.throwInternal(lk.WARNING,10,"error calculating page view performance.",{total:i,network:r,request:s,response:o,dom:a}):this.shouldCollectDuration(i,r,s,o,a)?i0},t.prototype.isPerformanceTimingSupported=function(){var t=ZS();return t&&t.timing},t.prototype.isPerformanceTimingDataReady=function(){var t=ZS(),e=t?t.timing:0;return e&&e.domainLookupStart>0&&e.navigationStart>0&&e.responseStart>0&&e.requestStart>0&&e.loadEventEnd>0&&e.responseEnd>0&&e.connectEnd>0&&e.domLoading>0},t.prototype.shouldCollectDuration=function(){for(var t=[],e=0;e=this.MAX_DURATION_ALLOWED)return!1;return!0},t}();function GE(t,e){t&&t.dispatchEvent&&e&&t.dispatchEvent(e)}var XE=function(t){function e(){var e=t.call(this)||this;e.identifier=OE,e.priority=180,e.autoRoutePVDelay=500,e._trackAjaxAttempts=0;var n=YS();return e._prevUri=n&&n.href||"",e}return function(t,e){function n(){this.constructor=t}Lk(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.getDefaultConfig=function(t){return t||(t={}),t.sessionRenewalMs=18e5,t.sessionExpirationMs=864e5,t.disableExceptionTracking=Bk.stringToBoolOrDefault(t.disableExceptionTracking),t.autoTrackPageVisitTime=Bk.stringToBoolOrDefault(t.autoTrackPageVisitTime),t.overridePageViewDuration=Bk.stringToBoolOrDefault(t.overridePageViewDuration),t.enableUnhandledPromiseRejectionTracking=Bk.stringToBoolOrDefault(t.enableUnhandledPromiseRejectionTracking),(isNaN(t.samplingPercentage)||t.samplingPercentage<=0||t.samplingPercentage>=100)&&(t.samplingPercentage=100),t.isCookieUseDisabled=Bk.stringToBoolOrDefault(t.isCookieUseDisabled),t.isStorageUseDisabled=Bk.stringToBoolOrDefault(t.isStorageUseDisabled),t.isBrowserLinkTrackingEnabled=Bk.stringToBoolOrDefault(t.isBrowserLinkTrackingEnabled),t.enableAutoRouteTracking=Bk.stringToBoolOrDefault(t.enableAutoRouteTracking),t.namePrefix=t.namePrefix||"",t},e.prototype.processTelemetry=function(t,e){var n=!1,i=this._telemetryInitializers.length;e=this._getTelCtx(e);for(var r=0;r=0)return!1}return!0}))}},e.prototype._addTelemetryInitializer=function(t){this._telemetryInitializers.push(t)},e.prototype._sendCORSException=function(t){var e=kE.create({message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:t,lineNumber:0,columnNumber:0,error:void 0},uE.dataType,uE.envelopeType,this.diagLog(),{url:t});this.core.track(e)},e.Version="2.5.3",e}(bk),KE=function(){function t(t,e){this._name=e,this._events={},this._logger=t}return t.prototype.start=function(t){void 0!==this._events[t]&&this._logger.throwInternal(lk.WARNING,62,"start was called more than once for this event without calling stop.",{name:this._name,key:t},!0),this._events[t]=+new Date},t.prototype.stop=function(t,e,n,i){var r=this._events[t];if(isNaN(r))this._logger.throwInternal(lk.WARNING,63,"stop was called without a corresponding start.",{name:this._name,key:t},!0);else{var s=+new Date,o=Gk.GetDuration(r,s);this.action(t,e,o,n,i)}delete this._events[t],this._events[t]=void 0},t}(),YE=function(t,e){return(YE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function ZE(t,e){function n(){this.constructor=t}YE(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var QE=function(){return(QE=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0?this._config.emitLineDelimitedJson()?t.join("\n"):"["+t.join(",")+"]":null},t.prototype.markAsSent=function(t){this.clear()},t.prototype.clearSent=function(t){},t}(),tT=function(){function t(e,n){this._bufferFullMessageSent=!1,this._logger=e,this._config=n;var i=this.getBuffer(t.BUFFER_KEY),r=this.getBuffer(t.SENT_BUFFER_KEY);this._buffer=i.concat(r),this._buffer.length>t.MAX_BUFFER_SIZE&&(this._buffer.length=t.MAX_BUFFER_SIZE),this.setBuffer(t.SENT_BUFFER_KEY,[]),this.setBuffer(t.BUFFER_KEY,this._buffer)}return t.prototype.enqueue=function(e){this._buffer.length>=t.MAX_BUFFER_SIZE?this._bufferFullMessageSent||(this._logger.throwInternal(lk.WARNING,67,"Maximum buffer size reached: "+this._buffer.length,!0),this._bufferFullMessageSent=!0):(this._buffer.push(e),this.setBuffer(t.BUFFER_KEY,this._buffer))},t.prototype.count=function(){return this._buffer.length},t.prototype.clear=function(){this._buffer.length=0,this.setBuffer(t.BUFFER_KEY,[]),this.setBuffer(t.SENT_BUFFER_KEY,[]),this._bufferFullMessageSent=!1},t.prototype.getItems=function(){return this._buffer.slice(0)},t.prototype.batchPayloads=function(t){return t&&t.length>0?this._config.emitLineDelimitedJson()?t.join("\n"):"["+t.join(",")+"]":null},t.prototype.markAsSent=function(e){this._buffer=this.removePayloadsFromBuffer(e,this._buffer),this.setBuffer(t.BUFFER_KEY,this._buffer);var n=this.getBuffer(t.SENT_BUFFER_KEY);n instanceof Array&&e instanceof Array&&((n=n.concat(e)).length>t.MAX_BUFFER_SIZE&&(this._logger.throwInternal(lk.CRITICAL,67,"Sent buffer reached its maximum size: "+n.length,!0),n.length=t.MAX_BUFFER_SIZE),this.setBuffer(t.SENT_BUFFER_KEY,n))},t.prototype.clearSent=function(e){var n=this.getBuffer(t.SENT_BUFFER_KEY);n=this.removePayloadsFromBuffer(e,n),this.setBuffer(t.SENT_BUFFER_KEY,n)},t.prototype.removePayloadsFromBuffer=function(t,e){var n=[];for(var i in e){var r=!1;for(var s in t)if(t[s]===e[i]){r=!0;break}r||n.push(e[i])}return n},t.prototype.getBuffer=function(t){var e=t;try{e=this._config.namePrefix&&this._config.namePrefix()?this._config.namePrefix()+"_"+e:e;var n=Bk.getSessionStorage(this._logger,e);if(n){var i=JS().parse(n);if(i)return i}}catch(r){this._logger.throwInternal(lk.CRITICAL,42," storage key: "+e+", "+Bk.getExceptionName(r),{exception:Bk.dump(r)})}return[]},t.prototype.setBuffer=function(t,e){var n=t;try{n=this._config.namePrefix&&this._config.namePrefix()?this._config.namePrefix()+"_"+n:n;var i=JSON.stringify(e);Bk.setSessionStorage(this._logger,n,i)}catch(r){Bk.setSessionStorage(this._logger,n,JSON.stringify([])),this._logger.throwInternal(lk.WARNING,41," storage key: "+n+", "+Bk.getExceptionName(r)+". Buffer cleared",{exception:Bk.dump(r)})}},t.BUFFER_KEY="AI_buffer",t.SENT_BUFFER_KEY="AI_sentBuffer",t.MAX_BUFFER_SIZE=2e3,t}(),eT=function(){function t(){}return t.extractPropsAndMeasurements=function(t,e,n){if(!ck.isNullOrUndefined(t))for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];ck.isNumber(r)?n[i]=r:ck.isString(r)?e[i]=r:QS()&&(e[i]=JS().stringify(r))}},t.createEnvelope=function(e,n,i,r){var s=new oE(e,r,n);i[Kk]&&(s.sampleRate=i[Kk]),s.iKey=i.iKey;var o=i.iKey.replace(/-/g,"");return s.name=s.name.replace("{0}",o),t.extractPartAExtensions(i,s),i.tags||(i.tags=[]),s},t.extractPartAExtensions=function(e,n){if(n.tags||(n.tags={}),e.ext||(e.ext={}),e.tags||(e.tags=[]),e.ext.user){e.ext.user.authId&&(n.tags[TE.userAuthUserId]=e.ext.user.authId);var i=e.ext.user.id||e.ext.user.localId;i&&(n.tags[TE.userId]=i)}if(e.ext.app&&e.ext.app.sesId&&(n.tags[TE.sessionId]=e.ext.app.sesId),e.ext.device&&((e.ext.device.id||e.ext.device.localId)&&(n.tags[TE.deviceId]=e.ext.device.id||e.ext.device.localId),e.ext.device.deviceClass&&(n.tags[TE.deviceType]=e.ext.device.deviceClass),e.ext.device.ip&&(n.tags[TE.deviceIp]=e.ext.device.ip)),e.ext.web){var r=e.ext.web;r.browserLang&&(n.tags[TE.deviceLanguage]=r.browserLang),r.browserVer&&(n.tags[TE.deviceBrowserVersion]=r.browserVer),r.browser&&(n.tags[TE.deviceBrowser]=r.browser),n.data=n.data||{},n.data.baseData=n.data.baseData||{},n.data.baseData.properties=n.data.baseData.properties||{},r.domain&&(n.data.baseData.properties.domain=r.domain),r.isManual&&(n.data.baseData.properties.isManual=r.isManual.toString()),r.screenRes&&(n.data.baseData.properties.screenRes=r.screenRes),r.userConsent&&(n.data.baseData.properties.userConsent=r.userConsent.toString())}e.ext.device&&e.ext.device.model&&(n.tags[TE.deviceModel]=e.ext.device.model),e.ext.os&&e.ext.os.name&&(n.tags[TE.deviceOS]=e.ext.os.name),e.ext.device&&e.ext.device.deviceType&&(n.tags[TE.deviceType]=e.ext.device.deviceType),e.ext.trace&&(e.ext.trace.parentID&&(n.tags[TE.operationParentId]=e.ext.trace.parentID),e.ext.trace.name&&(n.tags[TE.operationName]=e.ext.trace.name),e.ext.trace.traceID&&(n.tags[TE.operationId]=e.ext.trace.traceID));for(var s={},o=function(t){var n=e.tags[t];ck.arrForEach(ck.objKeys(n),(function(t){s[t]=n[t]})),e.tags.splice(t,1)},a=e.tags.length-1;a>=0;a--)o(a);for(var l in e.tags)s[l]=e.tags[l];n.tags=QE({},n.tags,s),n.tags[TE.internalSdkVersion]||(n.tags[TE.internalSdkVersion]="javascript:"+t.Version)},t.Version="2.5.3",t}(),nT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ZE(e,t),e.prototype.Create=function(t,e){this._logger=t,ck.isNullOrUndefined(e.baseData)&&this._logger.throwInternal(lk.CRITICAL,46,"telemetryItem.baseData cannot be null.");var n=e.baseData.measurements||{},i=e.baseData.properties||{};eT.extractPropsAndMeasurements(e.data,i,n);var r=e.baseData;if(ck.isNullOrUndefined(r))return t.warnToConsole("Invalid input for dependency data"),null;var s=new vE(t,r.id,r.target,r.name,r.duration,r.success,r.responseCode,r.properties&&r.properties[Zk]?r.properties[Zk]:"GET",r.type,r.correlationContext,i,n),o=new xE(vE.dataType,s);return eT.createEnvelope(t,vE.envelopeType,e,o)},e.DependencyEnvelopeCreator=new e,e}(eT),iT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ZE(e,t),e.prototype.Create=function(t,e){this._logger=t,ck.isNullOrUndefined(e.baseData)&&this._logger.throwInternal(lk.CRITICAL,46,"telemetryItem.baseData cannot be null.");var n={},i={};e.baseType!==cE.dataType&&(n.baseTypeSource=e.baseType),e.baseType===cE.dataType?(n=e.baseData.properties||{},i=e.baseData.measurements||{}):e.baseData&&eT.extractPropsAndMeasurements(e.baseData,n,i),eT.extractPropsAndMeasurements(e.data,n,i);var r=new cE(t,e.baseData.name,n,i),s=new xE(cE.dataType,r);return eT.createEnvelope(t,cE.envelopeType,e,s)},e.EventEnvelopeCreator=new e,e}(eT),rT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ZE(e,t),e.prototype.Create=function(t,e){this._logger=t,ck.isNullOrUndefined(e.baseData)&&this._logger.throwInternal(lk.CRITICAL,46,"telemetryItem.baseData cannot be null.");var n=uE.CreateFromInterface(t,e.baseData),i=new xE(uE.dataType,n);return eT.createEnvelope(t,uE.envelopeType,e,i)},e.ExceptionEnvelopeCreator=new e,e}(eT),sT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ZE(e,t),e.prototype.Create=function(t,e){this._logger=t,ck.isNullOrUndefined(e.baseData)&&this._logger.throwInternal(lk.CRITICAL,46,"telemetryItem.baseData cannot be null.");var n=e.baseData.properties||{},i=e.baseData.measurements||{};eT.extractPropsAndMeasurements(e.data,n,i);var r=new gE(t,e.baseData.name,e.baseData.average,e.baseData.sampleCount,e.baseData.min,e.baseData.max,n,i),s=new xE(gE.dataType,r);return eT.createEnvelope(t,gE.envelopeType,e,s)},e.MetricEnvelopeCreator=new e,e}(eT),oT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ZE(e,t),e.prototype.Create=function(t,e){var n;this._logger=t,ck.isNullOrUndefined(e.baseData)&&this._logger.throwInternal(lk.CRITICAL,46,"telemetryItem.baseData cannot be null."),ck.isNullOrUndefined(e.baseData)||ck.isNullOrUndefined(e.baseData.properties)||ck.isNullOrUndefined(e.baseData.properties.duration)?ck.isNullOrUndefined(e.data)||ck.isNullOrUndefined(e.data.duration)||(n=e.data.duration,delete e.data.duration):(n=e.baseData.properties.duration,delete e.baseData.properties.duration);var i,r=e.baseData;e.ext&&e.ext.trace&&e.ext.trace.traceID&&(i=e.ext.trace.traceID);var s=r.id||i,o=r.name,a=r.uri,l=r.properties||{},c=r.measurements||{};if(ck.isNullOrUndefined(r.refUri)||(l.refUri=r.refUri),ck.isNullOrUndefined(r.pageType)||(l.pageType=r.pageType),ck.isNullOrUndefined(r.isLoggedIn)||(l.isLoggedIn=r.isLoggedIn.toString()),!ck.isNullOrUndefined(r.properties)){var u=r.properties;for(var h in u)u.hasOwnProperty(h)&&(l[h]=u[h])}eT.extractPropsAndMeasurements(e.data,l,c);var d=new yE(t,o,a,n,l,c,s),p=new xE(yE.dataType,d);return eT.createEnvelope(t,yE.envelopeType,e,p)},e.PageViewEnvelopeCreator=new e,e}(eT),aT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ZE(e,t),e.prototype.Create=function(t,e){this._logger=t,ck.isNullOrUndefined(e.baseData)&&this._logger.throwInternal(lk.CRITICAL,46,"telemetryItem.baseData cannot be null.");var n=e.baseData,i=n.name,r=n.uri||n.url,s=n.properties||{},o=n.measurements||{};eT.extractPropsAndMeasurements(e.data,s,o);var a=new wE(t,i,r,void 0,s,o,n),l=new xE(wE.dataType,a);return eT.createEnvelope(t,wE.envelopeType,e,l)},e.PageViewPerformanceEnvelopeCreator=new e,e}(eT),lT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ZE(e,t),e.prototype.Create=function(t,e){this._logger=t,ck.isNullOrUndefined(e.baseData)&&this._logger.throwInternal(lk.CRITICAL,46,"telemetryItem.baseData cannot be null.");var n=e.baseData.message,i=e.baseData.severityLevel,r=e.baseData.properties||{},s=e.baseData.measurements||{};eT.extractPropsAndMeasurements(e.data,r,s);var o=new bE(t,n,i,r,s),a=new xE(bE.dataType,o);return eT.createEnvelope(t,bE.envelopeType,e,a)},e.TraceEnvelopeCreator=new e,e}(eT),cT=function(){function t(t){this._logger=t}return t.prototype.serialize=function(t){var e=this._serializeObject(t,"root");try{return JS().stringify(e)}catch(n){this._logger.throwInternal(lk.CRITICAL,48,n&&ck.isFunction(n.toString)?n.toString():"Error serializing object",null,!0)}},t.prototype._serializeObject=function(t,e){var n={};if(!t)return this._logger.throwInternal(lk.CRITICAL,48,"cannot serialize object because it is null or undefined",{name:e},!0),n;if(t.__aiCircularRefCheck)return this._logger.throwInternal(lk.WARNING,50,"Circular reference detected while serializing object",{name:e},!0),n;if(!t.aiDataContract){if("measurements"===e)n=this._serializeStringMap(t,"number",e);else if("properties"===e)n=this._serializeStringMap(t,"string",e);else if("tags"===e)n=this._serializeStringMap(t,"string",e);else if(Bk.isArray(t))n=this._serializeArray(t,e);else{this._logger.throwInternal(lk.WARNING,49,"Attempting to serialize an object which does not implement ISerializable",{name:e},!0);try{JS().stringify(t),n=t}catch(h){this._logger.throwInternal(lk.CRITICAL,48,h&&ck.isFunction(h.toString)?h.toString():"Error serializing object",null,!0)}}return n}for(var i in t.__aiCircularRefCheck=!0,t.aiDataContract){var r=t.aiDataContract[i],s=ck.isFunction(r)?r()&Ik.Required:r&Ik.Required,o=ck.isFunction(r)?r()&Ik.Hidden:r&Ik.Hidden,a=r&Ik.Array,l=void 0!==t[i],c=ck.isObject(t[i])&&null!==t[i];if(!s||l||a){if(!o){var u;void 0!==(u=c?a?this._serializeArray(t[i],i):this._serializeObject(t[i],i):t[i])&&(n[i]=u)}}else this._logger.throwInternal(lk.CRITICAL,24,"Missing required field specification. The field is required but not present on source",{field:i,name:e})}return delete t.__aiCircularRefCheck,n},t.prototype._serializeArray=function(t,e){var n;if(t)if(Bk.isArray(t)){n=[];for(var i=0;i100||t<0)&&(this._logger.throwInternal(lk.WARNING,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:t},!0),this.sampleRate=100),this.sampleRate=t,this.samplingScoreGenerator=new dT}return t.prototype.isSampledIn=function(t){var e=this.sampleRate;return null==e||e>=100||t.baseType===gE.dataType||this.samplingScoreGenerator.getSamplingScore(t)this._senderConfig.maxBatchSizeInBytes()&&this.triggerSend(),this._buffer.enqueue(s),this._setupTimer()}catch(l){n.diagLog().throwInternal(lk.WARNING,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+Bk.getExceptionName(l),{exception:Bk.dump(l)})}this.processNext(t,n)},e.prototype._xhrReadyStateChange=function(t,e,n){if(4===t.readyState){var i=null;this._appId||(i=this._parseResponse(fT(t)||t.response))&&i.appId&&(this._appId=i.appId),(t.status<200||t.status>=300)&&0!==t.status?!this._senderConfig.isRetryDisabled()&&this._isRetriable(t.status)?(this._resendPayload(e),this.diagLog().throwInternal(lk.WARNING,40,". Response code "+t.status+". Will retry to send "+e.length+" items.")):this._onError(e,this._formatErrorMessageXhr(t)):uT.isOffline()?this._senderConfig.isRetryDisabled()||(this._resendPayload(e,10),this.diagLog().throwInternal(lk.WARNING,40,". Offline - Response Code: "+t.status+". Offline status: "+uT.isOffline()+". Will retry to send "+e.length+" items.")):206===t.status?(i||(i=this._parseResponse(fT(t)||t.response)),i&&!this._senderConfig.isRetryDisabled()?this._onPartialSuccess(e,i):this._onError(e,this._formatErrorMessageXhr(t))):(this._consecutiveErrors=0,this._onSuccess(e,n))}},e.prototype.triggerSend=function(t,e){void 0===t&&(t=!0);try{if(this._senderConfig.disableTelemetry())this._buffer.clear();else{if(this._buffer.count()>0){var n=this._buffer.getItems();e?e.call(this,n,t):this._sender(n,t)}this._lastSend=+new Date}clearTimeout(this._timeoutHandle),this._timeoutHandle=null,this._retryAt=null}catch(i){(!Bk.getIEVersion()||Bk.getIEVersion()>9)&&this.diagLog().throwInternal(lk.CRITICAL,40,"Telemetry transmission failed, some telemetry will be lost: "+Bk.getExceptionName(i),{exception:Bk.dump(i)})}},e.prototype._onError=function(t,e,n){this.diagLog().throwInternal(lk.WARNING,26,"Failed to send telemetry.",{message:e}),this._buffer.clearSent(t)},e.prototype._onPartialSuccess=function(t,e){for(var n=[],i=[],r=0,s=e.errors.reverse();r0&&this._onSuccess(t,e.itemsAccepted),n.length>0&&this._onError(n,this._formatErrorMessageXhr(null,["partial success",e.itemsAccepted,"of",e.itemsReceived].join(" "))),i.length>0&&(this._resendPayload(i),this.diagLog().throwInternal(lk.WARNING,40,"Partial success. Delivered: "+t.length+", Failed: "+n.length+". Will retry to send "+i.length+" our of "+e.itemsReceived+" items"))},e.prototype._onSuccess=function(t,e){this._buffer.clearSent(t)},e.prototype._xdrOnLoad=function(t,e){var n=fT(t);if(!t||n+""!="200"&&""!==n){var i=this._parseResponse(n);i&&i.itemsReceived&&i.itemsReceived>i.itemsAccepted&&!this._senderConfig.isRetryDisabled()?this._onPartialSuccess(e,i):this._onError(e,this._formatErrorMessageXdr(t))}else this._consecutiveErrors=0,this._onSuccess(e,0)},e.prototype._isSampledIn=function(t){return this._sample.isSampledIn(t)},e.prototype._beaconSender=function(t,e){var n=this._senderConfig.endpointUrl(),i=this._buffer.batchPayloads(t),r=new Blob([i],{type:"text/plain;charset=UTF-8"});KS().sendBeacon(n,r)?(this._buffer.markAsSent(t),this._onSuccess(t,t.length)):(this._xhrSender(t,!0),this.diagLog().throwInternal(lk.WARNING,40,". Failed to send telemetry with Beacon API, retried with xhrSender."))},e.prototype._xhrSender=function(t,e){var n=this,i=new XMLHttpRequest,r=this._senderConfig.endpointUrl();try{i[Xk]=!0}catch(o){}i.open("POST",r,e),i.setRequestHeader("Content-type","application/json"),Bk.isInternalApplicationInsightsEndpoint(r)&&i.setRequestHeader(Vk.sdkContextHeader,Vk.sdkContextHeaderAppIdRequest),i.onreadystatechange=function(){return n._xhrReadyStateChange(i,t,t.length)},i.onerror=function(e){return n._onError(t,n._formatErrorMessageXhr(i),e)};var s=this._buffer.batchPayloads(t);i.send(s),this._buffer.markAsSent(t)},e.prototype._parseResponse=function(t){try{if(t&&""!==t){var e=JS().parse(t);if(e&&e.itemsReceived&&e.itemsReceived>=e.itemsAccepted&&e.itemsReceived-e.itemsAccepted===e.errors.length)return e}}catch(n){this.diagLog().throwInternal(lk.CRITICAL,43,"Cannot parse the response. "+Bk.getExceptionName(n),{response:t})}return null},e.prototype._resendPayload=function(t,e){if(void 0===e&&(e=1),t&&0!==t.length){this._buffer.clearSent(t),this._consecutiveErrors++;for(var n=0,i=t;nthis.config.sessionExpirationMs(),i=0!==this.config.sessionExpirationMs()&&e-this.automaticSession.renewalDate>this.config.sessionRenewalMs();n||i?this.renew():(!this.cookieUpdatedTimestamp||e-this.cookieUpdatedTimestamp>t.cookieUpdateInterval)&&(this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},t.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},t.prototype.initializeAutomaticSession=function(){var t=Bk.getCookie(this._logger,this._storageNamePrefix());if(t&&"function"==typeof t.split)this.initializeAutomaticSessionWithData(t);else{var e=Bk.getStorage(this._logger,this._storageNamePrefix());e&&this.initializeAutomaticSessionWithData(e)}this.automaticSession.id||this.renew()},t.prototype.initializeAutomaticSessionWithData=function(t){var e=t.split("|");e.length>0&&(this.automaticSession.id=e[0]);try{e.length>1&&(this.automaticSession.acquisitionDate=+new Date(+e[1]),this.automaticSession.acquisitionDate=this.automaticSession.acquisitionDate>0?this.automaticSession.acquisitionDate:0),e.length>2&&(this.automaticSession.renewalDate=+new Date(+e[2]),this.automaticSession.renewalDate=this.automaticSession.renewalDate>0?this.automaticSession.renewalDate:0)}catch(n){this._logger.throwInternal(lk.CRITICAL,9,"Error parsing ai_session cookie, session will be reset: "+Bk.getExceptionName(n),{exception:Bk.dump(n)})}0===this.automaticSession.renewalDate&&this._logger.throwInternal(lk.WARNING,27,"AI session renewal date is 0, session will be reset.")},t.prototype.renew=function(){var t=Gk.Now();this.automaticSession.id=Bk.newId(),this.automaticSession.acquisitionDate=t,this.automaticSession.renewalDate=t,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),Bk.canUseLocalStorage()||this._logger.throwInternal(lk.WARNING,0,"Browser does not support local storage. Session durations will be inaccurate.")},t.prototype.setCookie=function(t,e,n){var i=e+this.config.sessionExpirationMs(),r=n+this.config.sessionRenewalMs(),s=new Date,o=[t,e,n];s.setTime(i0&&(this.id=r[0])}if(this.config=e,!this.id){this.id=Bk.newId();var s=new Date,o=ck.toISOString(s);this.accountAcquisitionDate=o,this.isNewUser=!0,s.setTime(s.getTime()+31536e6);var a=[this.id,o],l=this.config.cookieDomain?this.config.cookieDomain():void 0;Bk.setCookie(this._logger,t.userCookieName,a.join(t.cookieSeparator)+";expires="+s.toUTCString(),l);var c=e.namePrefix&&e.namePrefix()?e.namePrefix()+"ai_session":"ai_session";Bk.removeStorage(this._logger,c)}this.accountId=e.accountId?e.accountId():void 0;var u=Bk.getCookie(this._logger,t.authUserCookieName);if(u){var h=(u=decodeURI(u)).split(t.cookieSeparator);h[0]&&(this.authenticatedId=h[0]),h.length>1&&h[1]&&(this.accountId=h[1])}}return t.prototype.setAuthenticatedUserContext=function(e,n,i){if(void 0===i&&(i=!1),!this.validateUserInput(e)||n&&!this.validateUserInput(n))this._logger.throwInternal(lk.WARNING,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{this.authenticatedId=e;var r=this.authenticatedId;n&&(this.accountId=n,r=[this.authenticatedId,this.accountId].join(t.cookieSeparator)),i&&Bk.setCookie(this._logger,t.authUserCookieName,encodeURI(r),this.config.cookieDomain())}},t.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,Bk.deleteCookie(this._logger,t.authUserCookieName)},t.prototype.validateUserInput=function(t){return!("string"!=typeof t||!t||t.match(/,|;|=| |\|/))},t.cookieSeparator="|",t.userCookieName="ai_user",t.authUserCookieName="ai_authUser",t}(),CT=function(){},ST=function(t,e,n,i){this.traceID=t||Bk.generateW3CId(),this.parentID=e,this.name=n;var r=YS();!n&&r&&r.pathname&&(this.name=r.pathname),this.name=jk.sanitizeString(i,this.name)},kT=function(){function t(t,e){$S()&&(this.sessionManager=new yT(e,t),this.application=new vT,this.device=new bT,this.internal=new wT(e),this.location=new CT,this.user=new xT(e,t),this.telemetryTrace=new ST(void 0,void 0,void 0,t),this.session=new _T),this.appId=function(){return null}}return t.prototype.applySessionContext=function(t,e){var n=this.session||this.sessionManager&&this.sessionManager.automaticSession;n&&"string"==typeof n.id&&(t.ext.app.sesId=n.id),this.session&&(t.ext.app.sesId="string"==typeof this.session.id?this.session.id:this.sessionManager.automaticSession.id)},t.prototype.applyOperatingSystemContxt=function(t,e){this.os&&this.os.name&&(t.ext.os=this.os)},t.prototype.applyApplicationContext=function(t,e){this.application&&("string"==typeof this.application.ver&&(t.tags[TE.applicationVersion]=this.application.ver),"string"==typeof this.application.build&&(t.tags[TE.applicationBuild]=this.application.build))},t.prototype.applyDeviceContext=function(t,e){this.device&&("string"==typeof this.device.id&&(t.ext.device.localId=this.device.id),"string"==typeof this.device.ip&&(t.ext.device.ip=this.device.ip),"string"==typeof this.device.model&&(t.ext.device.model=this.device.model),"string"==typeof this.device.deviceClass&&(t.ext.device.deviceClass=this.device.deviceClass))},t.prototype.applyInternalContext=function(t,e){this.internal&&("string"==typeof this.internal.agentVersion&&(t.tags[TE.internalAgentVersion]=this.internal.agentVersion),"string"==typeof this.internal.sdkVersion&&(t.tags[TE.internalSdkVersion]=this.internal.sdkVersion))},t.prototype.applyLocationContext=function(t,e){this.location&&"string"==typeof this.location.ip&&(t.tags[TE.locationIp]=this.location.ip)},t.prototype.applyOperationContext=function(t,e){if(this.telemetryTrace){var n=t.ext.trace||{traceID:void 0,parentID:void 0};"string"==typeof this.telemetryTrace.traceID&&(n.traceID=this.telemetryTrace.traceID),"string"==typeof this.telemetryTrace.name&&(n.name=this.telemetryTrace.name),"string"==typeof this.telemetryTrace.parentID&&(n.parentID=this.telemetryTrace.parentID),t.ext.trace=n}},t.prototype.applyWebContext=function(t,e){this.web&&(t.ext.web=t.ext.web||{},t.ext.web=this.web)},t.prototype.applyUserContext=function(t,e){this.user&&(t.tags||(t.tags=[]),"string"==typeof this.user.accountId&&(t.tags[TE.userAccountId]=this.user.accountId),"string"==typeof this.user.id&&(t.ext.user.id=this.user.id),"string"==typeof this.user.authenticatedId&&(t.ext.user.authId=this.user.authenticatedId))},t.prototype.cleanUp=function(t,e){t.ext[EE.DeviceExt]&&0===ck.objKeys(t.ext[EE.DeviceExt]).length&&delete t.ext[EE.DeviceExt],t.ext[EE.UserExt]&&0===ck.objKeys(t.ext[EE.UserExt]).length&&delete t.ext[EE.UserExt],t.ext[EE.WebExt]&&0===ck.objKeys(t.ext[EE.WebExt]).length&&delete t.ext[EE.WebExt],t.ext[EE.OSExt]&&0===ck.objKeys(t.ext[EE.OSExt]).length&&delete t.ext[EE.OSExt],t.ext[EE.AppExt]&&0===ck.objKeys(t.ext[EE.AppExt]).length&&delete t.ext[EE.AppExt],t.ext[EE.TraceExt]&&0===ck.objKeys(t.ext[EE.TraceExt]).length&&delete t.ext[EE.TraceExt]},t}(),ET=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.priority=110,e.identifier=IE,e}return function(t,e){function n(){this.constructor=t}gT(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.getDefaultConfig=function(){return{instrumentationKey:function(){},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},namePrefix:function(){}}},e.prototype.initialize=function(n,i,r,s){var o=this;t.prototype.initialize.call(this,n,i,r,s);var a=this._getTelCtx(),l=this.identifier,c=e.getDefaultConfig();this._extensionConfig=this._extensionConfig||e.getDefaultConfig();var u=function(t){h._extensionConfig[t]=function(){return a.getConfig(l,t,c[t]())}},h=this;for(var d in c)u(d);this.context=new kT(i.logger,this._extensionConfig),this._breezeChannel=Bk.getExtension(r,AE),this.context.appId=function(){return o._breezeChannel?o._breezeChannel._appId:null}},e.prototype.processTelemetry=function(t,e){if(ck.isNullOrUndefined(t));else{if(e=this._getTelCtx(e),t.name===yE.envelopeType&&e.diagLog().resetInternalMessageCount(),this.context.session&&"string"!=typeof this.context.session.id&&this.context.sessionManager.update(),this._processTelemetryInternal(t,e),this.context&&this.context.user&&this.context.user.isNewUser){this.context.user.isNewUser=!1;var n=new dk(72,(KS()||{}).userAgent||"");e.diagLog().logInternalMessage(lk.CRITICAL,n)}this.processNext(t,e)}},e.prototype._processTelemetryInternal=function(t,e){t.tags||(t.tags=[]),t.ext||(t.ext={});var n=t.ext;n[EE.DeviceExt]=n[EE.DeviceExt]||{},n[EE.WebExt]=n[EE.WebExt]||{},n[EE.UserExt]=n[EE.UserExt]||{},n[EE.OSExt]=n[EE.OSExt]||{},n[EE.AppExt]=n[EE.AppExt]||{},n[EE.TraceExt]=n[EE.TraceExt]||{};var i=this.context;i.applySessionContext(t,e),i.applyApplicationContext(t,e),i.applyDeviceContext(t,e),i.applyOperationContext(t,e),i.applyUserContext(t,e),i.applyOperatingSystemContxt(t,e),i.applyWebContext(t,e),i.applyLocationContext(t,e),i.applyInternalContext(t,e),i.cleanUp(t,e)},e}(bk),TT=function(t,e){return(TT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},IT=["req","rsp","hkErr","fnErr"];function AT(t,e){if(t)for(var n=0;n=0&&r<=2&&AT(t,(function(t,s){var o=t.cbks,a=o[IT[r]];if(a){e.ctx=function(){return i[s]=i[s]||{}};try{a.apply(e.inst,n)}catch(u){var l=e.err;try{var c=o[IT[2]];c&&(e.err=u,c.apply(e.inst,n))}catch(h){}finally{e.err=l}}}}))}function RT(t,e,n,i){if(void 0===i&&(i=!0),t&&e&&n){var r=function t(e,n,i){var r=null;return e&&(ck.hasOwnProperty(e,n)?r=e:i&&(r=t(e.prototype,n,!1))),r}(t,e,i),s=r[e];if("function"==typeof s){var o=s._aiHooks;if(!o){var a=(c=o={i:0,n:e,f:s,h:[]},function(){var t=this,e=arguments,n=c.h,i={name:c.n,inst:t,ctx:null},r=[],s=[i];AT(e,(function(t){s.push(t)})),OT(n,i,s,r,0);var o=c.f;try{i.rslt=o.apply(t,e)}catch(a){throw i.err=a,OT(n,i,s,r,3),a}return OT(n,i,s,r,1),i.rslt});a._aiHooks=o,r[e]=a}var l={id:o.i,cbks:n,rm:function(){var t=this.id;AT(o.h,(function(e,n){if(e.id===t)return o.h.splice(n,1),1}))}};return o.i++,o.h.push(l),l}}var c;return null}var DT=ck.objKeys,PT=ck.arrForEach;function NT(t,e,n){var i=0,r=t[e],s=t[n];return r&&s&&(i=Gk.GetDuration(r,s)),i}function MT(t,e,n,i,r){var s=0,o=NT(n,i,r);return o&&(s=LT(t,e,Bk.msToTimeSpan(o))),s}function LT(t,e,n){var i=0;return t&&e&&n&&((t.ajaxPerf=t.ajaxPerf||{})[e]=n,i=1),i}var FT=function(){this.openDone=!1,this.setRequestHeaderDone=!1,this.sendDone=!1,this.abortDone=!1,this.stateChangeAttached=!1},VT=function t(e,n,i){var r=i;this.perfMark=null,this.completed=!1,this.requestHeadersSize=null,this.requestHeaders=null,this.responseReceivingDuration=null,this.callbackDuration=null,this.ajaxTotalDuration=null,this.aborted=0,this.pageUrl=null,this.requestUrl=null,this.requestSize=0,this.method=null,this.status=null,this.requestSentTime=null,this.responseStartedTime=null,this.responseFinishedTime=null,this.callbackFinishedTime=null,this.endTime=null,this.xhrMonitoringState=new FT,this.clientFailure=0,this.traceID=e,this.spanID=n,HE(t,this,(function(t){t.getAbsoluteUrl=function(){return t.requestUrl?qk.getAbsoluteUrl(t.requestUrl):null},t.getPathName=function(){return t.requestUrl?jk.sanitizeUrl(r,qk.getCompleteUrl(t.method,t.requestUrl)):null},t.CreateTrackItem=function(e,n,i){if(t.ajaxTotalDuration=Math.round(1e3*Gk.GetDuration(t.requestSentTime,t.responseFinishedTime))/1e3,t.ajaxTotalDuration<0)return null;var r,s=((r={id:"|"+t.traceID+"."+t.spanID,target:t.getAbsoluteUrl(),name:t.getPathName(),type:e,duration:t.ajaxTotalDuration,success:+t.status>=200&&+t.status<400,responseCode:+t.status,method:t.method}).properties={HttpMethod:t.method},r);if(function(t,e){var n=t.perfTiming,i=e.properties||{},r=0,s=ck.isString,o="redirect",a=o+"Start",l=o="End";if(n){r|=MT(i,o,n,a,l),r|=MT(i,"domainLookup",n,"domainLookupStart","domainLookupEnd"),r|=MT(i,"connect",n,"connectStart","connectEnd"),r|=MT(i,"request",n,"requestStart","requestEnd"),r|=MT(i,"response",n,"responseStart","responseEnd"),r|=MT(i,"networkConnect",n,"startTime","connectEnd"),r|=MT(i,"sentRequest",n,"requestStart","responseEnd");var c=n.duration;c||(c=NT(n,"startTime","responseEnd")||0),r|=LT(i,"duration",c),r|=LT(i,"perfTotal",c);var u=n.serverTiming;if(u){var h={};PT(u,(function(t,e){var n=function(t){var e=t,n=/([^\w\d_$])/g;return n.test(t)&&(e=t.replace(n,"_")),e}(t.name||""+e),i=h[n]||{};PT(DT(t),(function(e){var n=t[e];("name"!==e&&s(n)||ck.isNumber(n))&&(i[e]&&(n=i[e]+";"+n),!n&&s(n)||(i[e]=n))})),h[n]=i})),r|=LT(i,"serverTiming",h)}r|=LT(i,"transferSize",n.transferSize),r|=LT(i,"encodedBodySize",n.encodedBodySize),r|=LT(i,"decodedBodySize",n.decodedBodySize)}else t.perfMark&&(r|=LT(i,"missing",t.perfAttempts));r&&(e.properties=i)}(t,s),n&&DT(t.requestHeaders).length>0&&(s.properties=s.properties||{},s.properties.requestHeaders=t.requestHeaders),i){var o=i();if(o){var a=o.correlationContext;if(a&&(s.correlationContext=a),o.headerMap&&DT(o.headerMap).length>0&&(s.properties=s.properties||{},s.properties.responseHeaders=o.headerMap),t.status>=400){var l=o.type;s.properties=s.properties||{},""!==l&&"text"!==l||(s.properties.responseText=o.responseText?o.statusText+" - "+o.responseText:o.statusText),"json"===l&&(s.properties.responseText=o.response?o.statusText+" - "+JSON.stringify(o.response):o.statusText)}}}return s}}))},jT=function(){function t(e,n){this.traceFlag=t.DEFAULT_TRACE_FLAG,this.version=t.DEFAULT_VERSION,this.traceId=e&&t.isValidTraceId(e)?e:Bk.generateW3CId(),this.spanId=n&&t.isValidSpanId(n)?n:Bk.generateW3CId().substr(0,16)}return t.isValidTraceId=function(t){return t.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==t},t.isValidSpanId=function(t){return t.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==t},t.prototype.toString=function(){return this.version+"-"+this.traceId+"-"+this.spanId+"-"+this.traceFlag},t.DEFAULT_TRACE_FLAG="01",t.DEFAULT_VERSION="00",t}(),UT=ck.isNullOrUndefined,zT=ck.arrForEach,HT=ck.objKeys,BT=0;function qT(t){var e="";try{UT(t)||UT(t.ajaxData)||UT(t.ajaxData.requestUrl)||(e+="(url: '"+t.ajaxData.requestUrl+"')")}catch(n){}return e}function $T(t,e,n,i,r){t.diagLog().throwInternal(lk.CRITICAL,e,n,i,r)}function WT(t,e,n,i,r){t.diagLog().throwInternal(lk.WARNING,e,n,i,r)}function GT(t,e,n){return function(i){$T(t,e,n,{ajaxDiagnosticsMessage:qT(i.inst),exception:Bk.dump(i.err)})}}function XT(t,e){return t&&e?t.indexOf(e):-1}var KT=function(t){function e(){var n=t.call(this)||this;n.identifier=e.identifier,n.priority=120;var i,r,s,o,a=YS(),l=!1,c=!1,u=a&&a.host&&a.host.toLowerCase(),h=e.getEmptyConfig(),d=!1,p=0,f=!1,m=0,g=!1,_=[],y={};return HE(e,n,(function(t,n){function a(t,e,n){_.push(function(t,e,n){return t?RT(t.prototype,e,n,!1):null}(t,e,n))}function v(t,e,n){var i=!1,r=((ck.isString(e)?e:(e||{}).url||"")||"").toLowerCase(),s=XT(r,"?"),o=XT(r,"#");return(-1===s||-1!==o&&o=0;p--){var f=d[p];if(f){if("resource"===f.entryType)f.initiatorType!==t||-1===XT(f.name,l)&&-1===XT(l,f.name)||(h=f);else if("mark"===f.entryType&&f.name===r.name){e.perfTiming=h;break}if(f.startTime=o||!1===e.async?(r&&ck.isFunction(s.clearMarks)&&s.clearMarks(r.name),e.perfAttempts=c,n()):setTimeout(u,a)}catch(m){i(m)}}()}function k(e){var n="";try{UT(e)||(n+="string"==typeof e?"(url: '"+e+"')":"(url: '"+e.url+"')")}catch(i){$T(t,15,"Failed to grab failed fetch diagnostics message",{exception:Bk.dump(i)})}return n}function E(e,n,i,r,s,o){function a(e,n,r){var s=r||{};s.fetchDiagnosticsMessage=k(i),n&&(s.exception=Bk.dump(n)),WT(t,e,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",s)}r&&(r.responseFinishedTime=Gk.Now(),r.status=n,S("fetch",r,(function(){var e=r.CreateTrackItem("Fetch",d,s);e?t.trackDependencyDataInternal(e):a(14,null,{requestSentTime:r.requestSentTime,responseFinishedTime:r.responseFinishedTime})}),(function(t){a(18,t,null)})))}function T(e){if(e&&e.headers)try{var n=e.headers.get(Vk.requestContextHeader);return $k.getCorrelationContext(n)}catch(i){WT(t,18,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:k(e),exception:Bk.dump(i)})}}t.initialize=function(u,p,y,k){if(!t.isInitialized()){n.initialize(u,p,y,k);var I=t._getTelCtx(),A=e.getDefaultConfig();zT(HT(A),(function(t){h[t]=I.getConfig(e.identifier,t,A[t])}));var O=h.distributedTracingMode;if(d=h.enableRequestHeaderTracking,m=h.maxAjaxCallsPerView,g=h.enableResponseHeaderTracking,s=O===Ak.AI||O===Ak.AI_AND_W3C,r=O===Ak.AI_AND_W3C||O===Ak.W3C,f=h.enableAjaxPerfTracking){var R=u.instrumentationKey||"unkwn";o=R.length>5?"ai.ajxmn."+R.substring(R.length-5)+".":"ai.ajxmn."+R+"."}if(!1===h.disableAjaxTracking&&function(t){var e=!1;if("undefined"!=typeof XMLHttpRequest&&!UT(XMLHttpRequest)){var n=XMLHttpRequest.prototype;e=!(UT(n)||UT(n.open)||UT(n.send)||UT(n.abort))}try{" a ".trim()}catch(r){e=!1}if(e)try{(new XMLHttpRequest).ajaxData={};var i=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=i}catch(s){e=!1,$T(t,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:Bk.dump(s)})}return e}(t)&&!c&&(a(XMLHttpRequest,"open",{req:function(e,n,r,s){var o=e.inst,a=o.ajaxData;v(o,r)||!b(o,!0)||a&&a.xhrMonitoringState.openDone||function(e,n,r,s){var o=i&&i.telemetryTrace&&i.telemetryTrace.traceID||Bk.generateW3CId(),a=Bk.generateW3CId().substr(0,16),l=new VT(o,a,t.diagLog());l.method=n,l.requestUrl=r,l.xhrMonitoringState.openDone=!0,l.requestHeaders={},l.async=s,e.ajaxData=l,function(e){e.ajaxData.xhrMonitoringState.stateChangeAttached=hk.Attach(e,"readystatechange",(function(){try{e&&4===e.readyState&&b(e)&&function(e){var n=e.ajaxData;function i(n,i){var r=i||{};r.ajaxDiagnosticsMessage=qT(e),n&&(r.exception=Bk.dump(n)),WT(t,14,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",r)}n.responseFinishedTime=Gk.Now(),n.status=e.status,S("xmlhttprequest",n,(function(){try{var r=n.CreateTrackItem("Ajax",d,(function(){var t={statusText:e.statusText,headerMap:null,correlationContext:x(e),type:e.responseType,responseText:w(e),response:e.response};if(g){var n=e.getAllResponseHeaders();if(n){var i=n.trim().split(/[\r\n]+/),r={};zT(i,(function(t){var e=t.split(": "),n=e.shift(),i=e.join(": ");r[n]=i})),t.headerMap=r}}return t}));r?t.trackDependencyDataInternal(r):i(null,{requestSentTime:n.requestSentTime,responseFinishedTime:n.responseFinishedTime})}finally{try{e.ajaxData=null}catch(s){}}}),(function(t){i(t,null)}))}(e)}catch(i){var n=Bk.dump(i);n&&-1!==XT(n.toLowerCase(),"c00c023f")||$T(t,16,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:qT(e),exception:n})}}))}(e)}(o,n,r,s)},hkErr:GT(t,15,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),a(XMLHttpRequest,"send",{req:function(e,n){var i=e.inst,r=i.ajaxData;b(i)&&!r.xhrMonitoringState.sendDone&&(C("xhr",r),r.requestSentTime=Gk.Now(),i=t.includeCorrelationHeaders(r,void 0,void 0,i),r.xhrMonitoringState.sendDone=!0)},hkErr:GT(t,17,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),a(XMLHttpRequest,"abort",{req:function(t){var e=t.inst,n=e.ajaxData;b(e)&&!n.xhrMonitoringState.abortDone&&(n.aborted=1,n.xhrMonitoringState.abortDone=!0)},hkErr:GT(t,13,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),d&&a(XMLHttpRequest,"setRequestHeader",{req:function(t,e,n){var i=t.inst;b(i)&&(i.ajaxData.requestHeaders[e]=n)},hkErr:GT(t,71,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),c=!0),function(){var e,n=!(e=BS())||UT(e.Request)||UT(e.Request.prototype)||UT(e.fetch)?null:e.fetch;if(n){var r=BS(),s=n.polyfill;!1===h.disableFetchTracking?(_.push(RT(r,"fetch",{req:function(e,n,r){var o;if(l&&!v(null,n,r)&&(!s||!c)){var a=e.ctx();o=function(e,n){var r=i&&i.telemetryTrace&&i.telemetryTrace.traceID||Bk.generateW3CId(),s=Bk.generateW3CId().substr(0,16),o=new VT(r,s,t.diagLog());o.requestSentTime=Gk.Now(),o.requestUrl=e instanceof Request?e?e.url:"":e;var a="GET";n&&n.method?a=n.method:e&&e instanceof Request&&(a=e.method),o.method=a;var l={};return n&&n.headers&&d&&(l=n.headers),o.requestHeaders=l,C("fetch",o),o}(n,r),r=t.includeCorrelationHeaders(o,n,r),a.data=o}},rsp:function(t,e){var n=t.ctx().data;n&&(t.rslt=t.rslt.then((function(t){return E(0,(t||{}).status,t,n,(function(){var e={statusText:t.statusText,headerMap:null,correlationContext:T(t)};if(g){var n={};t.headers.forEach((function(t,e){n[e]=t})),e.headerMap=n}return e})),t})).catch((function(t){throw E(0,0,e,n,null),t})))},hkErr:GT(t,15,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),l=!0):s&&_.push(RT(r,"fetch",{req:function(t,e,n){v(null,e,n)}})),s&&(r.fetch.polyfill=s)}}(),y.length>0&&y){for(var D=void 0,P=0;!D&&P0)throw new Error("Extensions not allowed in legacy mode");var e=[],n=new mT;return e.push(n),e.push(this.properties),e.push(this.dependencies),e.push(this.appInsights),this.core.initialize(this.config,e),this.emptyQueue(),this.pollInternalLogs(),this.addHousekeepingBeforeUnload(this),this.context=this.properties.context,this},t.prototype.updateSnippetDefinitions=function(t){for(var e in this)ck.isString(e)&&(t[e]=this[e])},t.prototype.emptyQueue=function(){try{if(Bk.isArray(this.snippet.queue)){for(var t=this.snippet.queue.length,e=0;e0?this.config.diagnosticLogInterval:1e4},t}();function ZT(t,e){if(1&t&&(So(0,"div"),oa(1),ko()),2&t){const t=Fo();cr(1),la(" Sorry, ",t.cardNumber," is not a valid Bingo card.\n")}}function QT(t,e){if(1&t&&(So(0,"div"),So(1,"mat-grid-tile"),So(2,"div"),So(3,"table"),So(4,"tr"),oa(5),ko(),So(6,"tr"),Eo(7,"mat-checkbox"),ko(),ko(),ko(),ko(),ko()),2&t){const t=e.$implicit,n=Fo().$implicit,i=Fo(2);cr(5),aa(i.cardValue(n,t))}}function JT(t,e){if(1&t&&(So(0,"div"),_o(1,QT,8,1,"div",6),ko()),2&t){const t=Fo(2);cr(1),xo("ngForOf",t.numbers)}}function tI(t,e){if(1&t&&(So(0,"div"),So(1,"mat-grid-list",3),So(2,"div",4),So(3,"mat-grid-tile"),oa(4,"B"),ko(),So(5,"mat-grid-tile"),oa(6,"I"),ko(),So(7,"mat-grid-tile"),oa(8,"N"),ko(),So(9,"mat-grid-tile"),oa(10,"G"),ko(),So(11,"mat-grid-tile"),oa(12,"O"),ko(),ko(),Eo(13,"hr"),ko(),So(14,"mat-grid-list",5),_o(15,JT,2,1,"div",6),ko(),ko()),2&t){const t=Fo();cr(15),xo("ngForOf",t.numbers)}}let eI=(()=>{class t{constructor(t,e){this.route=t,this.http=e,this.title="jakija-bingo",this.appInsights=new YT({config:{instrumentationKey:"7b528cae-344b-481a-bda9-e1ec88b7de05"}}),this.card=[],this.cardReady=!1,this.cardInvalid=!1,this.numbers=Array(5).fill(0).map((t,e)=>e),this.uploadResponseText=""}ngOnInit(){this.appInsights.loadAppInsights(),this.route.queryParams.subscribe(t=>{null!=t.card&&(this.CardValid(t.card)?(this.cardNumber=t.card,this.GenerateCard(t.card),this.appInsights.trackEvent({name:"CardGenerated"})):(this.cardNumber=t.card,this.cardInvalid=!0,this.appInsights.trackEvent({name:"InvalidCard"})))})}CardValid(t){return Math.floor(t/100).toString().split("").map(Number).reduce((t,e)=>t+e,0)===parseInt(t.toString().slice(-2),10)}GenerateCard(t){const e=n("YSVl")(t);for(let n=0;n<5;n++){this.card[n]=[];for(let t=0;t<5;t++)this.card[n][t]=0}for(let n=0;n<5;n++)for(let t=0;t<5;t++){let i,r=!1;for(;!1===r;)i=Math.floor(15*e())+1+15*n,r=this.NumberIsUniqueInColumn(i,this.card,n);this.card[t][n]=i}this.cardReady=!0}cardValue(t,e){return 2===t&&2===e?"FREE":this.card[t][e].toString()}NumberIsUniqueInColumn(t,e,n){let i=!0;for(let r=0;r<5;r++)if(t===e[r][n]){i=!1;break}return i}OnSubmit(t){}handleFileInput(t){if(0===t.length)return;console.log(t);const e=new FileReader;e.onload=e=>{let n=e.target.result;console.log(n);const i={headers:new hS({"Content-type":t.item(0).type}),observe:"response"};this.http.post("http://localhost:7071/api/uploadphoto",n,i).subscribe(e=>{200===e.status&&(this.uploadResponseText=`Photo ${t.item(0).name} uploaded!`),this.inputFiles=""},e=>{console.log("Upload error. Code: "+e.status),this.uploadResponseText=`Photo ${t.item(0).name} upload error!`})},e.readAsArrayBuffer(t.item(0))}uploadImage(t,e){const n=new FormData;return n.append("Image",e,e.name),n.append("ComponentId",t),this.http.post("/api/dashboard/UploadImage",n)}}return t.\u0275fac=function(e){return new(e||t)(vo(Vf),vo(kS))},t.\u0275cmp=me({type:t,selectors:[["app-bingo-card"]],decls:9,vars:2,consts:[["href","https://www.facebook.com/statecollegelive","target","_blank"],[4,"ngIf"],["href","sendphoto","target","_blank"],["cols","5","rowHeight","3:1"],[2,"font-size","x-large"],["cols","5","rowHeight","1:1"],[4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(oa(0,"JaKiJa Bingo! Play along at "),So(1,"a",0),oa(2,"State College Live"),ko(),_o(3,ZT,2,1,"div",1),_o(4,tI,16,1,"div",1),Eo(5,"br"),So(6,"a",2),oa(7,"Send a photo"),ko(),oa(8," to JaKiJa!\n")),2&t&&(cr(3),xo("ngIf",e.cardInvalid),cr(1),xo("ngIf",e.cardReady))},directives:[Cu,Pb,Cb,wu,$b],styles:["mat-grid-tile[_ngcontent-%COMP%]{background:#add8e6}tr[_ngcontent-%COMP%]{text-align:center}"]}),t})();var nI=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),iI=function(t){function e(e,n){var i=this,r=this.constructor.prototype;return(i=t.call(this,e)||this).statusCode=n,i.__proto__=r,i}return nI(e,t),e}(Error),rI=function(t){function e(e){void 0===e&&(e="A timeout occurred.");var n=this,i=this.constructor.prototype;return(n=t.call(this,e)||this).__proto__=i,n}return nI(e,t),e}(Error),sI=function(t){function e(e){void 0===e&&(e="An abort occurred.");var n=this,i=this.constructor.prototype;return(n=t.call(this,e)||this).__proto__=i,n}return nI(e,t),e}(Error),oI=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]-1&&this.subject.observers.splice(t,1),0===this.subject.observers.length&&this.subject.cancelCallback&&this.subject.cancelCallback().catch((function(t){}))},t}(),yI=function(){function t(t){this.minimumLogLevel=t,this.outputConsole=console}return t.prototype.log=function(t,e){if(t>=this.minimumLogLevel)switch(t){case cI.Critical:case cI.Error:this.outputConsole.error("["+(new Date).toISOString()+"] "+cI[t]+": "+e);break;case cI.Warning:this.outputConsole.warn("["+(new Date).toISOString()+"] "+cI[t]+": "+e);break;case cI.Information:this.outputConsole.info("["+(new Date).toISOString()+"] "+cI[t]+": "+e);break;default:this.outputConsole.log("["+(new Date).toISOString()+"] "+cI[t]+": "+e)}},t}(),vI=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),bI=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=200&&s.statusCode<300?n(new aI(s.statusCode,s.statusMessage||"",o)):i(new iI(s.statusMessage||"",s.statusCode||0))}));t.abortSignal&&(t.abortSignal.onabort=function(){s.abort(),i(new sI)})}))},e.prototype.getCookieString=function(t){return this.cookieJar.getCookieString(t)},e}(lI),CI=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),SI=function(t){function e(e){var n=t.call(this)||this;return n.logger=e,n}return CI(e,t),e.prototype.send=function(t){var e=this;return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new sI):t.method?t.url?new Promise((function(n,i){var r=new XMLHttpRequest;r.open(t.method,t.url,!0),r.withCredentials=!0,r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var s=t.headers;s&&Object.keys(s).forEach((function(t){r.setRequestHeader(t,s[t])})),t.responseType&&(r.responseType=t.responseType),t.abortSignal&&(t.abortSignal.onabort=function(){r.abort(),i(new sI)}),t.timeout&&(r.timeout=t.timeout),r.onload=function(){t.abortSignal&&(t.abortSignal.onabort=null),r.status>=200&&r.status<300?n(new aI(r.status,r.statusText,r.response||r.responseText)):i(new iI(r.statusText,r.status))},r.onerror=function(){e.logger.log(cI.Warning,"Error from HTTP request. "+r.status+": "+r.statusText+"."),i(new iI(r.statusText,r.status))},r.ontimeout=function(){e.logger.log(cI.Warning,"Timeout from HTTP request."),i(new rI)},r.send(t.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},e}(lI),kI=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),EI=function(t){function e(e){var n=t.call(this)||this;return n.httpClient="undefined"!=typeof XMLHttpRequest?new SI(e):new xI(e),n}return kI(e,t),e.prototype.send=function(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new sI):t.method?t.url?this.httpClient.send(t):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},e.prototype.getCookieString=function(t){return this.httpClient.getCookieString(t)},e}(lI),TI=function(){function t(){}return t.write=function(e){return""+e+t.RecordSeparator},t.parse=function(e){if(e[e.length-1]!==t.RecordSeparator)throw new Error("Message is incomplete.");var n=e.split(t.RecordSeparator);return n.pop(),n},t.RecordSeparatorCode=30,t.RecordSeparator=String.fromCharCode(t.RecordSeparatorCode),t}(),II=function(){function t(){}return t.prototype.writeHandshakeRequest=function(t){return TI.write(JSON.stringify(t))},t.prototype.parseHandshakeResponse=function(t){var e,n;if(fI(t)||"undefined"!=typeof Buffer&&t instanceof Buffer){var i=new Uint8Array(t);if(-1===(s=i.indexOf(TI.RecordSeparatorCode)))throw new Error("Message is incomplete.");var r=s+1;e=String.fromCharCode.apply(null,i.slice(0,r)),n=i.byteLength>r?i.slice(r).buffer:null}else{var s,o=t;if(-1===(s=o.indexOf(TI.RecordSeparator)))throw new Error("Message is incomplete.");e=o.substring(0,r=s+1),n=o.length>r?o.substring(r):null}var a=TI.parse(e),l=JSON.parse(a[0]);if(l.type)throw new Error("Expected a handshake response from the server.");return[n,l]},t}(),AI=function(t){return t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close",t}({}),OI=function(){function t(){this.observers=[]}return t.prototype.next=function(t){for(var e=0,n=this.observers;e0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]0&&r[r.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+s.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}}))}))},t.prototype.constructTransport=function(t){switch(t){case FI.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new WI(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case FI.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new $I(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case FI.LongPolling:return new HI(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+t+".")}},t.prototype.startTransport=function(t,e){var n=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(t){return n.stopConnection(t)},this.transport.connect(t,e)},t.prototype.resolveTransportOrError=function(t,e,n){var i=FI[t.transport];if(null==i)return this.logger.log(cI.Debug,"Skipping transport '"+t.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+t.transport+"' because it is not supported by this client.");if(!function(t,e){return!t||0!=(e&t)}(e,i))return this.logger.log(cI.Debug,"Skipping transport '"+FI[i]+"' because it was disabled by the client."),new Error("'"+FI[i]+"' is disabled by the client.");if(!(t.transferFormats.map((function(t){return VI[t]})).indexOf(n)>=0))return this.logger.log(cI.Debug,"Skipping transport '"+FI[i]+"' because it does not support the requested transfer format '"+VI[n]+"'."),new Error("'"+FI[i]+"' does not support "+VI[n]+".");if(i===FI.WebSockets&&!this.options.WebSocket||i===FI.ServerSentEvents&&!this.options.EventSource)return this.logger.log(cI.Debug,"Skipping transport '"+FI[i]+"' because it is not supported in your environment.'"),new Error("'"+FI[i]+"' is not supported in your environment.");this.logger.log(cI.Debug,"Selecting transport '"+FI[i]+"'.");try{return this.constructTransport(i)}catch(r){return r}},t.prototype.isITransport=function(t){return t&&"object"==typeof t&&"connect"in t},t.prototype.stopConnection=function(t){if(this.logger.log(cI.Debug,"HttpConnection.stopConnection("+t+") called while in state "+this.connectionState+"."),this.transport=void 0,t=this.stopError||t,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),t?this.logger.log(cI.Error,"Connection disconnected with error '"+t+"'."):this.logger.log(cI.Information,"Connection disconnected."),this.connectionId=void 0,this.connectionState="Disconnected",this.onclose&&this.connectionStarted){this.connectionStarted=!1;try{this.onclose(t)}catch(e){this.logger.log(cI.Error,"HttpConnection.onclose("+t+") threw error '"+e+"'.")}}}else this.logger.log(cI.Warning,"Call to HttpConnection.stopConnection("+t+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log(cI.Debug,"Call to HttpConnection.stopConnection("+t+") was ignored because the connection is already in the disconnected state.")},t.prototype.resolveUrl=function(t){if(0===t.lastIndexOf("https://",0)||0===t.lastIndexOf("http://",0))return t;if(!dI.isBrowser||!window.document)throw new Error("Cannot resolve '"+t+"'.");var e=window.document.createElement("a");return e.href=t,this.logger.log(cI.Information,"Normalizing '"+t+"' to '"+e.href+"'."),e.href},t.prototype.resolveNegotiateUrl=function(t){var e=t.indexOf("?"),n=t.substring(0,-1===e?t.length:e);return"/"!==n[n.length-1]&&(n+="/"),n+="negotiate",-1===(n+=-1===e?"":t.substring(e)).indexOf("negotiateVersion")&&(n+=-1===e?"?":"&",n+="negotiateVersion="+this.negotiateVersion),n},t}(),JI=function(){function t(t){this.transport=t,this.buffer=[],this.executing=!0,this.sendBufferedData=new tA,this.transportResult=new tA,this.sendLoopPromise=this.sendLoop()}return t.prototype.send=function(t){return this.bufferData(t),this.transportResult||(this.transportResult=new tA),this.transportResult.promise},t.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},t.prototype.bufferData=function(t){if(this.buffer.length&&typeof this.buffer[0]!=typeof t)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof t);this.buffer.push(t),this.sendBufferedData.resolve()},t.prototype.sendLoop=function(){return GI(this,void 0,void 0,(function(){var e,n,i;return XI(this,(function(r){switch(r.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(r.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new tA,e=this.transportResult,this.transportResult=void 0,n="string"==typeof this.buffer[0]?this.buffer.join(""):t.concatBuffers(this.buffer),this.buffer.length=0,r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.transport.send(n)];case 3:return r.sent(),e.resolve(),[3,5];case 4:return i=r.sent(),e.reject(i),[3,5];case 5:return[3,0];case 6:return[2]}}))}))},t.concatBuffers=function(t){for(var e=t.map((function(t){return t.byteLength})).reduce((function(t,e){return t+e})),n=new Uint8Array(e),i=0,r=0,s=t;r{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Hd;const e=ev(t),n=this._monitoredElements.get(e);if(n)return n.subject.asObservable();const i=new E,r="cdk-text-field-autofilled",s=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(r)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(r)&&(e.classList.remove(r),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(r),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",s,oA),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",s,oA)}}),i.asObservable()}stopMonitoring(t){const e=ev(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(Yt(rv),Yt(vc))},t.\u0275prov=dt({factory:function(){return new t(Yt(rv),Yt(vc))},token:t,providedIn:"root"}),t})(),lA=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},imports:[[sv]]}),t})();const cA=new Ut("MAT_INPUT_VALUE_ACCESSOR"),uA=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let hA=0;class dA{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const pA=Yv(dA);let fA=(()=>{class t extends pA{constructor(t,e,n,i,r,s,o,a,l){super(s,i,r,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=a,this._uid=`mat-input-${hA++}`,this._isServer=!1,this._isNativeSelect=!1,this.focused=!1,this.stateChanges=new E,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>av().has(t));const c=this._elementRef.nativeElement;this._inputValueAccessor=o||c,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===c.nodeName.toLowerCase(),this._isNativeSelect&&(this.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Zy(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=Zy(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&av().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Zy(t)}ngOnInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_isTextarea(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){if(uA.indexOf(this._type)>-1)throw Error(`Input type "${this._type}" isn't supported by matInput.`)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(vo(Da),vo(rv),vo(Th,10),vo(vd,8),vo(Od,8),vo(Qv),vo(cA,10),vo(aA),vo(vc))},t.\u0275dir=we({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&Do("blur",(function(){return e._focusChanged(!1)}))("focus",(function(){return e._focusChanged(!0)}))("input",(function(){return e._onInput()})),2&t&&(ca("disabled",e.disabled)("required",e.required),mo("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),Ko("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[Ia([{provide:Cx,useExisting:t}]),da,ya]}),t})(),mA=(()=>{class t{}return t.\u0275mod=ve({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[Qv],imports:[[lA,Fx],lA,Fx]}),t})();function gA(t,e){1&t&&(So(0,"div"),oa(1," Warming up the server... "),Eo(2,"mat-spinner",6),ko())}function _A(t,e){if(1&t){const t=Ao();To(0),So(1,"img",7),Do("click",(function(){Ze(t);const n=e.$implicit;return Fo().openPhotoDialog(n)})),Sl(2,"async"),Sl(3,"loadimg"),ko(),Io()}if(2&t){const t=e.$implicit,n=Fo();cr(1),xo("src",kl(2,1,El(3,3,t,n.url,n.password,!0)),Gi)}}const yA=function(){return[4,8,16]};let vA=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}onOKClick(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(vo(YC),vo(ZC))},t.\u0275cmp=me({type:t,selectors:[["photo-dialog"]],decls:4,vars:8,consts:[["mat-dialog-content",""],[2,"max-width","100%","max-height","100%",3,"src","click"]],template:function(t,e){1&t&&(So(0,"div",0),So(1,"img",1),Do("click",(function(){return e.onOKClick()})),Sl(2,"async"),Sl(3,"loadimg"),ko(),ko()),2&t&&(cr(1),xo("src",kl(2,1,El(3,3,e.data.i,e.data.url,e.data.password,!1)),Gi))},directives:function(){return[sS]},pipes:function(){return[Nu,xA]},styles:[".mat-dialog-content[_ngcontent-%COMP%]{margin:0;padding:0;height:calc(100% - 5px);width:calc(100% - 5px);max-height:calc(100% - 5px);max-width:calc(100% - 5px)}"]}),t})(),bA=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}onNoClick(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(vo(YC),vo(ZC))},t.\u0275cmp=me({type:t,selectors:[["password-dialog"]],decls:12,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matInput","","type","password",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(So(0,"h1",0),oa(1,"Enter Password"),ko(),So(2,"div",1),So(3,"mat-form-field"),So(4,"mat-label"),oa(5,"Password"),ko(),So(6,"input",2),Do("ngModelChange",(function(t){return e.data.password=t})),ko(),ko(),ko(),So(7,"div",3),So(8,"button",4),oa(9,"Ok"),ko(),So(10,"button",5),Do("click",(function(){return e.onNoClick()})),oa(11,"Cancel"),ko(),ko()),2&t&&(cr(6),xo("ngModel",e.data.password),cr(2),xo("mat-dialog-close",e.data.password))},directives:[rS,sS,Lx,Tx,fA,xh,Ih,Td,oS,Jb,iS],encapsulation:2}),t})(),wA=(()=>{class t{constructor(t,e,n){this.http=t,this.dialog=e,this.sanitizer=n,this.serverReady=!1,this.loggedIn=!1,this.page=0,this.size=4,this.photoCount=0,this.url="https://jakijaphotosapi.azurewebsites.net"}ngAfterViewInit(){this.paginator.initialized.subscribe(()=>{this.HeartbeatCheck=new w(t=>{const e=setInterval(()=>{this.http.get(this.url+"/api/heartbeat",{observe:"response"}).subscribe(n=>{const i=n.body.apiReady,r=n.body.databaseReady;console.log("apiReady: "+i),console.log("databaseReady: "+r),i&&r?(clearInterval(e),t.next(!0)):t.next(!1)})},5e3)}),this.HeartbeatCheck.subscribe(t=>{if(t){if(this.serverReady=!0,this.loggedIn)return;this.loggedIn=!0,this.dialog.open(bA,{data:{password:this.password}}).afterClosed().subscribe(t=>{void 0!==t&&(this.password=t,this.pw=this.password,this.sound=new sA.Howl({src:["https://jakija.z13.web.core.windows.net/plucky.mp3"]}),this.http.get(this.url+"/api/photos/?metaonly=True",{observe:"response"}).subscribe(t=>{this.photoCount=t.body.count;const e=this.photoCount;let n=e-this.size;n<0&&(n=0),this.data=Array(e-n).fill(0).map((t,n)=>e-n)}))})}})});const t=(new rA).withUrl(this.url+"/api/").configureLogging(cI.Information).withAutomaticReconnect().build();t.on("NewPhoto",t=>{void 0!==this.password&&(console.log(t),this.sound.play(),this.http.get(this.url+"/api/photos/?metaonly=True",{observe:"response"}).subscribe(t=>{this.photoCount=t.body.count;const e=this.photoCount-this.paginator.pageIndex*this.paginator.pageSize;let n=e-this.paginator.pageSize;n<0&&(n=0),this.data=Array(e-n).fill(0).map((t,n)=>e-n)}))}),t.start().catch(t=>document.write(t))}ngOnInit(){}openPhotoDialog(t){this.dialog.open(vA,{height:"calc(100% - 5px)",width:"calc(100% - 5px)",maxWidth:"100%",maxHeight:"100%",data:{i:t,password:this.password,url:this.url}})}getData(t){const e=t.length-t.pageIndex*t.pageSize;let n=e-t.pageSize;n<0&&(n=0),this.data=Array(e-n).fill(0).map((t,n)=>e-n)}}return t.\u0275fac=function(e){return new(e||t)(vo(kS),vo(eS),vo(ch))},t.\u0275cmp=me({type:t,selectors:[["app-photo-viewer"]],viewQuery:function(t,e){var n;1&t&&Hl(DC,!0),2&t&&Ul(n=Gl())&&(e.paginator=n.first)},decls:6,vars:7,consts:[[4,"ngIf"],["fxFill","","fxLayout","column","fxLayoutAlign","space-between"],[3,"length","pageSize","pageIndex","pageSizeOptions","page"],["paginator",""],["fxLayout","row wrap"],[4,"ngFor","ngForOf"],["diameter","20"],[3,"src","click"]],template:function(t,e){1&t&&(_o(0,gA,3,0,"div",0),So(1,"div",1),So(2,"mat-paginator",2,3),Do("page",(function(t){return e.getData(t)})),ko(),So(4,"div",4),_o(5,_A,4,8,"ng-container",5),ko(),ko()),2&t&&(xo("ngIf",!1===e.serverReady),cr(2),xo("length",e.photoCount)("pageSize",e.size)("pageIndex",e.page)("pageSizeOptions",xl(6,yA)),cr(3),xo("ngForOf",e.data))},directives:function(){return[Cu,DC,wu,HC]},pipes:function(){return[Nu,xA]},styles:[""]}),t})(),xA=(()=>{class t{constructor(t,e){this.http=t,this.sanitizer=e}transform(t,e,n,i){return this.http.get(e+"/api/photos/"+t+"?thumb="+i+"&pw="+n,{responseType:"blob"}).pipe(V(t=>{const e=URL.createObjectURL(t);return this.sanitizer.bypassSecurityTrustUrl(e)}))}}return t.\u0275fac=function(e){return new(e||t)(vo(kS),vo(ch))},t.\u0275pipe=xe({name:"loadimg",type:t,pure:!0}),t})();function CA(t,e){1&t&&(So(0,"div"),oa(1," Please wait... "),Eo(2,"mat-spinner",1),ko())}function SA(t,e){1&t&&(So(0,"div"),Eo(1,"br"),oa(2," Sending photo... "),Eo(3,"mat-spinner",1),ko())}function kA(t,e){if(1&t){const t=Ao();So(0,"div"),So(1,"div",2),Eo(2,"label",3),So(3,"input",4,5),Do("change",(function(e){return Ze(t),Fo().handleFileInput(e.target.files)}))("ngModelChange",(function(e){return Ze(t),Fo().inputFiles=e})),ko(),ko(),_o(5,SA,4,0,"div",0),oa(6),ko()}if(2&t){const t=Fo();cr(3),xo("ngModel",t.inputFiles),cr(2),xo("ngIf",t.sendphotoWaitVisible),cr(1),la(" ",t.uploadResponseText,"\n")}}var EA=[{path:"",component:eI},{path:"photoviewer",component:wA},{path:"sendphoto",component:(()=>{class t{constructor(t,e){this.http=t,this.titleService=e,this.title="Send a Photo",this.appInsights=new YT({config:{instrumentationKey:"7b528cae-344b-481a-bda9-e1ec88b7de05"}}),this.uploadResponseText="",this.uploadUIVisible=!1,this.sendphotoWaitVisible=!1,this.apiReady=!1,this.databaseReady=!1,this.url="https://jakijaphotosapi.azurewebsites.net"}ngOnInit(){this.titleService.setTitle("Send a photo!"),this.appInsights.loadAppInsights(),this.HeartbeatCheck()}HeartbeatCheck(){this.http.get(this.url+"/api/heartbeat",{observe:"response"}).subscribe(t=>{this.apiReady=t.body.apiReady,this.databaseReady=t.body.databaseReady,console.log("apiReady: "+this.apiReady),console.log("databaseReady: "+this.databaseReady),this.uploadUIVisible=this.apiReady})}handleFileInput(t){if(console.log("handleFileInput() called"),0===t.length)return;this.uploadResponseText="",this.sendphotoWaitVisible=!0,this.databaseReady=!1;const e=setInterval(()=>{if(console.log("Checking if database ready..."),this.databaseReady){clearInterval(e);const n=new FileReader;n.onload=e=>{console.log("reader.onload event...");const n=e.target.result,i={headers:new hS({"Content-type":t.item(0).type}),observe:"response"};this.http.post(this.url+"/api/uploadphoto",n,i).subscribe(e=>{200===e.status&&(this.uploadResponseText=`Photo ${t.item(0).name} uploaded!`,this.appInsights.trackEvent({name:"PhotoUploadOK"})),this.inputFiles="",this.sendphotoWaitVisible=!1},e=>{console.log("Upload error. Code: "+e.status),this.uploadResponseText=`Photo ${t.item(0).name} upload error!`,this.appInsights.trackEvent({name:"PhotoUploadError"}),this.inputFiles="",this.sendphotoWaitVisible=!1})},n.readAsArrayBuffer(t.item(0))}else this.HeartbeatCheck()},5e3)}}return t.\u0275fac=function(e){return new(e||t)(vo(kS),vo(mh))},t.\u0275cmp=me({type:t,selectors:[["app-send-photo"]],decls:5,vars:2,consts:[[4,"ngIf"],["diameter","20"],[1,"image-upload"],["for","file-input"],["id","file-input","type","file","accept","image/*",3,"ngModel","change","ngModelChange"],["fileinput",""]],template:function(t,e){1&t&&(oa(0,"Send a photo to JaKiJa!\n"),Eo(1,"br"),Eo(2,"br"),_o(3,CA,3,0,"div",0),_o(4,kA,7,3,"div",0)),2&t&&(cr(3),xo("ngIf",!1===e.uploadUIVisible),cr(1),xo("ngIf",e.uploadUIVisible))},directives:[Cu,HC,xh,Ih,Td],styles:[""]}),t})()}];let TA=(()=>{class t{}return t.\u0275mod=ve({type:t,bootstrap:[gg]}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[{provide:Nx,useValue:{appearance:"fill"}}],imports:[[ph,sg,sg.forRoot(EA),mg,Pd,Nd,Uy,Nb,Gb,PC,mA,BC,lS,tw,US]]}),t})();(function(){if(wi)throw new Error("Cannot enable prod mode after platform setup.");bi=!1})(),hh().bootstrapModule(TA).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);