diff --git a/backend/public/1-es2015.a859adcc71d2f1ac2903.js b/backend/public/1-es2015.a859adcc71d2f1ac2903.js new file mode 100644 index 0000000..6846fd9 --- /dev/null +++ b/backend/public/1-es2015.a859adcc71d2f1ac2903.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"2Yyj":function(t,e,i){var n,s,a;!function(r){if("object"==typeof t.exports){var o=r(0,e);void 0!==o&&(t.exports=o)}else s=[i,e],void 0===(a="function"==typeof(n=r)?n.apply(e,s):n)||(t.exports=a)}((function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=void 0;e.default=["es",[["a.\xa0m.","p.\xa0m."],i,i],i,[["D","L","M","X","J","V","S"],["dom.","lun.","mar.","mi\xe9.","jue.","vie.","s\xe1b."],["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"],["DO","LU","MA","MI","JU","VI","SA"]],i,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],i,[["a. C.","d. C."],i,["antes de Cristo","despu\xe9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1} {0}",i,"{1}, {0}",i],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{AUD:[i,"$"],BRL:[i,"R$"],CNY:[i,"\xa5"],EGP:[],ESP:["\u20a7"],GBP:[i,"\xa3"],HKD:[i,"$"],ILS:[i,"\u20aa"],INR:[i,"\u20b9"],JPY:[i,"\xa5"],KRW:[i,"\u20a9"],MXN:[i,"$"],NZD:[i,"$"],RON:[i,"L"],THB:["\u0e3f"],TWD:[i,"NT$"],USD:["US$","$"],XAF:[],XCD:[i,"$"],XOF:[]},function(t){return 1===t?1:5}]}))},"4fRq":function(t,e){var i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(i){var n=new Uint8Array(16);t.exports=function(){return i(n),n}}else{var s=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),s[e]=t>>>((3&e)<<3)&255;return s}}},EcEN:function(t,e,i){var n=i("xDdU"),s=i("xk4V"),a=s;a.v1=n,a.v4=s,t.exports=a},I2ZF:function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},Iab2:function(t,e,i){var n,s;void 0===(s="function"==typeof(n=function(){"use strict";function e(t,e,i){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){a(n.response,e,i)},n.onerror=function(){console.error("could not download file")},n.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,a=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype?function(t,a,r){var o=s.URL||s.webkitURL,l=document.createElement("a");l.download=a=a||t.name||"download",l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?n(l):i(l.href)?e(t,a,r):n(l,l.target="_blank")):(l.href=o.createObjectURL(t),setTimeout((function(){o.revokeObjectURL(l.href)}),4e4),setTimeout((function(){n(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,s,a){if(s=s||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,a),s);else if(i(t))e(t,s,a);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout((function(){n(r)}))}}:function(t,i,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return e(t,i,n);var r="application/octet-stream"===t.type,o=/constructor/i.test(s.HTMLElement)||s.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||r&&o)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},c.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(t);a?a.location=d:location.href=d,a=null,setTimeout((function(){h.revokeObjectURL(d)}),4e4)}});s.saveAs=a.saveAs=a,t.exports=a})?n.apply(e,[]):n)||(t.exports=s)},XypG:function(t,e){},ZAI4:function(t,e,i){"use strict";i.r(e);var n=i("jhN1"),s=i("fXoL");class a{}function r(t,e){return{type:7,name:t,definitions:e,options:{}}}function o(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:3,steps:t,options:e}}function c(t,e=null){return{type:2,steps:t,options:e}}function h(t){return{type:6,styles:t,offset:null}}function d(t,e,i){return{type:0,name:t,styles:e,options:i}}function u(t){return{type:5,steps:t}}function m(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function p(t=null){return{type:9,options:t}}function g(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function f(t){Promise.resolve(null).then(t)}class b{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(){f(()=>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 _{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,i=0,n=0;const s=this.players.length;0==s?f(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==s&&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 i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){let t=0;return this.players.forEach(e=>{const i=e.getPosition();t=Math.min(i,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 y(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function v(t){switch(t.length){case 0:return new b;case 1:return t[0];default:return new _(t)}}function w(t,e,i,n,s={},a={}){const r=[],o=[];let l=-1,c=null;if(n.forEach(t=>{const i=t.offset,n=i==l,h=n&&c||{};Object.keys(t).forEach(i=>{let n=i,o=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,r),o){case"!":o=s[i];break;case"*":o=a[i];break;default:o=e.normalizeStyleValue(i,n,o,r)}h[n]=o}),n||o.push(h),c=h,l=i}),r.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${r.join(t)}`)}return o}function k(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&x(i,"start",t)));break;case"done":t.onDone(()=>n(i&&x(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&x(i,"destroy",t)))}}function x(t,e,i){const n=i.totalTime,s=C(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),a=t._data;return null!=a&&(s._data=a),s}function C(t,e,i,n,s="",a=0,r){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:a,disabled:!!r}}function S(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function D(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let E=(t,e)=>!1,A=(t,e)=>!1,O=(t,e,i)=>[];const R=y();(R||"undefined"!=typeof Element)&&(E=(t,e)=>t.contains(e),A=(()=>{if(R||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,i)=>e.apply(t,[i]):A}})(),O=(t,e,i)=>{let n=[];if(i)n.push(...t.querySelectorAll(e));else{const i=t.querySelector(e);i&&n.push(i)}return n});let P=null,I=!1;function T(t){P||(P=("undefined"!=typeof document?document.body:null)||{},I=!!P.style&&"WebkitAppearance"in P.style);let e=!0;return P.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in P.style,!e&&I)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in P.style),e}const M=A,F=E,N=O;function L(t){const e={};return Object.keys(t).forEach(i=>{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let z=(()=>{class t{validateStyleProperty(t){return T(t)}matchesElement(t,e){return M(t,e)}containsElement(t,e){return F(t,e)}query(t,e,i){return N(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,a=[],r){return new b(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{}return t.NOOP=new z,t})();function V(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:j(parseFloat(e[1]),e[2])}function j(t,e){switch(e){case"s":return 1e3*t;default:return t}}function q(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,a="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=j(parseFloat(i[1]),i[2]);const r=i[3];null!=r&&(s=j(parseFloat(r),i[4]));const o=i[5];o&&(a=o)}else n=t;if(!i){let i=!1,a=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(a,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:a}}(t,e,i)}function $(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function U(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else $(t,i);return i}function H(t,e,i){return i?e+":"+i+";":""}function X(t){let e="";for(let i=0;i{const s=et(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),y()&&X(t))}function W(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=et(e);t.style[i]=""}),y()&&X(t))}function Y(t){return Array.isArray(t)?1==t.length?t[0]:c(t):t}const K=new RegExp("{{\\s*(.+?)\\s*}}","g");function J(t){let e=[];if("string"==typeof t){let i;for(;i=K.exec(t);)e.push(i[1]);K.lastIndex=0}return e}function Q(t,e,i){const n=t.toString(),s=n.replace(K,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push(`Please provide a value for the animation param ${n}`),s=""),s.toString()});return s==n?t:s}function Z(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const tt=/-+([a-z0-9])/g;function et(t){return t.replace(tt,(...t)=>t[1].toUpperCase())}function it(t,e){return 0===t||0===e}function nt(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let a=e[0],r=[];if(n.forEach(t=>{a.hasOwnProperty(t)||r.push(t),a[t]=i[t]}),r.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=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,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],a=n[2],r=n[3];e.push(ct(s,r)),"<"!=a[0]||"*"==s&&"*"==r||e.push(ct(r,s))}(t,i,e)):i.push(t),i}const ot=new Set(["true","1"]),lt=new Set(["false","0"]);function ct(t,e){const i=ot.has(t)||lt.has(t),n=ot.has(e)||lt.has(e);return(s,a)=>{let r="*"==t||t==s,o="*"==e||e==a;return!r&&i&&"boolean"==typeof s&&(r=s?ot.has(t):lt.has(t)),!o&&n&&"boolean"==typeof a&&(o=a?ot.has(e):lt.has(e)),r&&o}}const ht=new RegExp("s*:selfs*,?","g");function dt(t,e,i){return new ut(t).build(e,i)}class ut{constructor(t){this._driver=t}build(t,e){const i=new mt(e);return this._resetContextStyleTimingState(i),st(this,Y(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0;const s=[],a=[];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 i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=s.depCount,a.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:a,queryCount:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,a=n||{};if(i.styles.forEach(t=>{if(pt(t)){const e=t;Object.keys(e).forEach(t=>{J(e[t]).forEach(t=>{a.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=Z(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=st(this,Y(t.animation),e);return{type:1,matchers:rt(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:gt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>st(this,t,e)),options:gt(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=st(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:gt(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return ft(q(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ft(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||q(n,e),ft(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:h({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,a=!1;if(!s){a=!0;const t={};i.easing&&(t.easing=i.easing),s=h(t)}e.currentTime+=i.duration+i.delay;const r=this.visitStyle(s,e);r.isEmptyStep=a,n=r}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(pt(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const a=e.collectedStyles[e.currentQuerySelector],r=a[i];let o=!0;r&&(s!=n&&s>=r.startTime&&n<=r.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),o=!1),s=r.startTime),o&&(a[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=J(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let a=!1,r=!1,o=0;const l=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(pt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(pt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),c=0;return null!=l&&(n++,c=i.offset=l),r=r||c<0||c>1,a=a||c0&&n{const a=h>0?n==d?1:h*n:s[n],r=a*p;e.currentTime=u+m.delay+r,m.duration=r,this._validateStyleAst(t,e),t.offset=a,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:st(this,Y(t.animation),e),options:gt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:gt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:gt(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;const[s,a]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(ht,"")),[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=i.length?i+" "+s:s,S(e.collectedStyles,e.currentQuerySelector,{});const r=st(this,Y(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:a,animation:r,originalSelector:t.selector,options:gt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:q(t.timings,e.errors,!0);return{type:12,animation:st(this,Y(t.animation),e),timings:i,options:null}}}class mt{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 pt(t){return!Array.isArray(t)&&"object"==typeof t}function gt(t){var e;return t?(t=$(t)).params&&(t.params=(e=t.params)?$(e):null):t={},t}function ft(t,e,i){return{duration:t,delay:e,easing:i}}function bt(t,e,i,n,s,a,r=null,o=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:a,totalTime:s+a,easing:r,subTimeline:o}}class _t{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 i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const yt=new RegExp(":enter","g"),vt=new RegExp(":leave","g");function wt(t,e,i,n,s,a={},r={},o,l,c=[]){return(new kt).buildKeyframes(t,e,i,n,s,a,r,o,l,c)}class kt{buildKeyframes(t,e,i,n,s,a,r,o,l,c=[]){l=l||new _t;const h=new Ct(t,e,l,n,s,c,[]);h.options=o,h.currentTimeline.setStyles([a],null,h.errors,o),st(this,i,h);const d=h.timelines.filter(t=>t.containsAnimation());if(d.length&&Object.keys(r).length){const t=d[d.length-1];t.allowOnlyTimelineStyles()||t.setStyles([r],null,h.errors,o)}return d.length?d.map(t=>t.buildKeyframes()):[bt(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,n,n.options);s!=a&&e.transformIntoNewTimeline(a)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?V(i.duration):null,a=null!=i.delay?V(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,a);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),st(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=xt);const t=V(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>st(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?V(t.options.delay):0;t.steps.forEach(a=>{const r=e.createSubContext(t.options);s&&r.delayNextStep(s),st(this,a,r),n=Math.max(n,r.currentTimeline.currentTime),i.push(r.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return q(e.params?Q(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(t=>{a.forwardTime((t.offset||0)*s),a.setStyles(t.styles,t.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?V(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=xt);let a=i;const r=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=r.length;let o=null;r.forEach((i,n)=>{e.currentQueryIndex=n;const r=e.createSubContext(t.options,i);s&&r.delayNextStep(s),i===e.element&&(o=r.currentTimeline),st(this,t.animation,r),r.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,r.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,a=Math.abs(s.duration),r=a*(e.currentQueryTotal-1);let o=a*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":o=r-o;break;case"full":o=i.currentStaggerTime}const l=e.currentTimeline;o&&l.delayNextStep(o);const c=l.currentTime;st(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}const xt={};class Ct{constructor(t,e,i,n,s,a,r,o){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=a,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=xt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new St(this._driver,e,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=V(i.duration)),null!=i.delay&&(n.delay=V(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=Q(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new Ct(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=xt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new Dt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,a){let r=[];if(n&&r.push(this.element),t.length>0){t=(t=t.replace(yt,"."+this._enterClassName)).replace(vt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),r.push(...e)}return s||0!=r.length||a.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),r}}class St{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,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 St(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,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},a=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]="*"})):U(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(a).forEach(t=>{const e=Q(a[t],s,i);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 i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,a)=>{const r=U(s,!0);Object.keys(r).forEach(i=>{const n=r[i];"!"==n?t.add(i):"*"==n&&e.add(i)}),i||(r.offset=a/this.duration),n.push(r)});const s=t.size?Z(t.values()):[],a=e.size?Z(e.values()):[];if(i){const t=n[0],e=$(t);t.offset=0,e.offset=1,n=[t,e]}return bt(this.element,n,s,a,this.duration,this.startTime,this.easing,!1)}}class Dt extends St{constructor(t,e,i,n,s,a,r=!1){super(t,e,a.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=r,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],a=i+e,r=e/a,o=U(t[0],!1);o.offset=0,s.push(o);const l=U(t[0],!1);l.offset=Et(r),s.push(l);const c=t.length-1;for(let n=1;n<=c;n++){let r=U(t[n],!1);r.offset=Et((e+r.offset*i)/a),s.push(r)}i=a,e=0,n="",t=s}return bt(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function Et(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class At{}class Ot extends At{normalizePropertyName(t,e){return et(t)}normalizeStyleValue(t,e,i,n){let s="";const a=i.toString().trim();if(Rt[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return a+s}}const Rt=(()=>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 Pt(t,e,i,n,s,a,r,o,l,c,h,d,u){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:a,toState:n,toStyles:r,timelines:o,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:d,errors:u}}const It={};class Tt{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],a=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):a}build(t,e,i,n,s,a,r,o,l,c){const h=[],d=this.ast.options&&this.ast.options.params||It,u=this.buildStyles(i,r&&r.params||It,h),m=o&&o.params||It,p=this.buildStyles(n,m,h),g=new Set,f=new Map,b=new Map,_="void"===n,y={params:Object.assign(Object.assign({},d),m)},v=c?[]:wt(t,e,this.ast.animation,s,a,u,p,y,l,h);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return Pt(e,this._triggerName,i,n,_,u,p,[],[],f,b,w,h);v.forEach(t=>{const i=t.element,n=S(f,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=S(b,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const k=Z(g.values());return Pt(e,this._triggerName,i,n,_,u,p,v,k,f,b,w)}}class Mt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=$(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let a=s[t];a.length>1&&(a=Q(a,n,e)),i[t]=a})}}),i}}class Ft{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Mt(t.style,t.options&&t.options.params||{})}),Nt(this.states,"true","1"),Nt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Tt(t,e,this.states))}),this.fallbackTransition=new Tt(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,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Nt(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Lt=new _t;class zt{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=dt(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=w(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let a;const r=new Map;if(s?(a=wt(this._driver,e,s,"ng-enter","ng-leave",{},{},i,Lt,n),a.forEach(t=>{const e=S(r,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),a=[]),n.length)throw new Error(`Unable to create the animation due to the following errors: ${n.join("\n")}`);r.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,"*")})});const o=v(a.map(t=>{const e=r.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=o,o.onDestroy(()=>this.destroy(t)),this.players.push(o),o}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,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,i,n){const s=C(e,"","","");return k(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(t)}}}const Bt=[],Vt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class qt{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=$(t);delete e.value,this.options=e}else this.options={};var n;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(i=>{null==t[i]&&(t[i]=e[i])})}}}const $t=new qt("void");class Ut{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Jt(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const a=S(this._elementListeners,t,[]),r={name:e,phase:i,callback:n};a.push(r);const o=S(this._engine.statesByElement,t,{});return o.hasOwnProperty(e)||(Jt(t,"ng-trigger"),Jt(t,"ng-trigger-"+e),o[e]=$t),()=>{this._engine.afterFlush(()=>{const t=a.indexOf(r);t>=0&&a.splice(t,1),this._triggers[e]||delete o[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,i,n=!0){const s=this._getTrigger(e),a=new Xt(this.id,e,t);let r=this._engine.statesByElement.get(t);r||(Jt(t,"ng-trigger"),Jt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,r={}));let o=r[e];const l=new qt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&o&&l.absorbOptions(o.options),r[e]=l,o||(o=$t),"void"!==l.value&&o.value===l.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{W(t,i),G(t,n)})}return}const c=S(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(o.value,l.value,t,l.params),d=!1;if(!h){if(!n)return;h=s.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:o,toState:l,player:a,isFallbackTransition:d}),d||(Jt(t,"ng-animate-queued"),a.onStart(()=>{Qt(t,"ng-animate-queued")})),a.onDone(()=>{let e=this.players.indexOf(a);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(a);t>=0&&i.splice(t,1)}}),this.players.push(a),c.push(a),a}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,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 i=this._engine.driver.query(t,".ng-trigger",!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const a=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,"void",n);i&&a.push(i)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&v(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const i=new Set;e.forEach(e=>{const n=e.name;if(i.has(n))return;i.add(n);const s=this._triggers[n].fallbackTransition,a=this._engine.statesByElement.get(t)[n]||$t,r=new qt("void"),o=new Xt(this.id,n,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:s,fromState:a,toState:r,player:o,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==Vt||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Jt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,a=this._elementListeners.get(s);a&&a.forEach(e=>{if(e.name==i.triggerName){const n=C(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,k(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n: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 Ht{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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 i=new Ut(t,e,this);return e.parentNode?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Jt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Qt(t,"ng-animate-disabled"))}removeNode(t,e,i,n){if(Gt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return Gt(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}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 v(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Vt,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.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 i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?v(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 i=new _t,n=[],s=new Map,a=[],r=new Map,o=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 i=0;i{const i="ng-enter"+p++;m.set(e,i),t.forEach(t=>Jt(t,i))});const g=[],f=new Set,b=new Set;for(let v=0;vf.add(t)):b.add(t))}const _=new Map,y=Kt(d,Array.from(f));y.forEach((t,e)=>{const i="ng-leave"+p++;_.set(e,i),t.forEach(t=>Jt(t,i))}),t.push(()=>{u.forEach((t,e)=>{const i=m.get(e);t.forEach(t=>Qt(t,i))}),y.forEach((t,e)=>{const i=_.get(e);t.forEach(t=>Qt(t,i))}),g.forEach(t=>{this.processLeaveNode(t)})});const w=[],k=[];for(let v=this._namespaceList.length-1;v>=0;v--)this._namespaceList[v].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(w.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,s),d=_.get(s),u=m.get(s),p=this._buildInstruction(t,i,u,d,c);if(!p.errors||!p.errors.length)return c?(e.onStart(()=>W(s,p.fromStyles)),e.onDestroy(()=>G(s,p.toStyles)),void n.push(e)):t.isFallbackTransition?(e.onStart(()=>W(s,p.fromStyles)),e.onDestroy(()=>G(s,p.toStyles)),void n.push(e)):(p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,p.timelines),a.push({instruction:p,player:e,element:s}),p.queriedElements.forEach(t=>S(r,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=o.get(e);t||o.set(e,t=new Set),i.forEach(e=>t.add(e))}}),void p.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=l.get(e);n||l.set(e,n=new Set),i.forEach(t=>n.add(t))}));k.push(p)});if(k.length){const t=[];k.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),w.forEach(t=>t.destroy()),this.reportError(t)}const x=new Map,C=new Map;a.forEach(t=>{const e=t.element;i.has(e)&&(C.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,x))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{S(x,e,[]).push(t),t.destroy()})});const D=g.filter(t=>te(t,o,l)),E=new Map;Yt(E,this.driver,b,l,"*").forEach(t=>{te(t,o,l)&&D.push(t)});const A=new Map;u.forEach((t,e)=>{Yt(A,this.driver,new Set(t),o,"!")}),D.forEach(t=>{const e=E.get(t),i=A.get(t);E.set(t,Object.assign(Object.assign({},e),i))});const O=[],R=[],P={};a.forEach(t=>{const{element:e,player:a,instruction:r}=t;if(i.has(e)){if(c.has(e))return a.onDestroy(()=>G(e,r.toStyles)),a.disabled=!0,a.overrideTotalTime(r.totalTime),void n.push(a);let t=P;if(C.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=C.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>C.set(e,t))}const i=this._buildAnimation(a.namespaceId,r,x,s,A,E);if(a.setRealPlayer(i),t===P)O.push(a);else{const e=this.playersByElement.get(t);e&&e.length&&(a.parentPlayer=v(e)),n.push(a)}}else W(e,r.fromStyles),a.onDestroy(()=>G(e,r.toStyles)),R.push(a),c.has(e)&&n.push(a)}),R.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=v(e);t.setRealPlayer(i)}}),n.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let v=0;v!t.destroyed);n.length?Zt(this,t,n):this.processLeaveNode(t)}return g.length=0,O.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),O}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let a=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(a=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&a.push(e)})}}return(i||n)&&(a=a.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),a}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const r of e.timelines){const t=r.element,o=t!==n,l=S(i,t,[]);this._getPreviousPlayers(t,o,s,a,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}W(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,a){const r=e.triggerName,o=e.element,l=[],c=new Set,h=new Set,d=e.timelines.map(e=>{const d=e.element;c.add(d);const u=d.__ng_removed;if(u&&u.removedBeforeQueried)return new b(e.duration,e.delay);const m=d!==o,p=function(t){const e=[];return function t(e,i){for(let n=0;nt.getRealPlayer())).filter(t=>!!t.element&&t.element===d),g=s.get(d),f=a.get(d),y=w(0,this._normalizer,0,e.keyframes,g,f),v=this._buildPlayer(e,y,p);if(e.subTimeline&&n&&h.add(d),m){const e=new Xt(t,r,d);e.setRealPlayer(v),l.push(e)}return v});l.forEach(t=>{S(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>Jt(t,"ng-animating"));const u=v(d);return u.onDestroy(()=>{c.forEach(t=>Qt(t,"ng-animating")),G(o,e.toStyles)}),h.forEach(t=>{S(n,t,[]).push(u)}),u}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new b(t.duration,t.delay)}}class Xt{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new b,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(i=>k(t,e,void 0,i))}),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){S(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 Gt(t){return t&&1===t.nodeType}function Wt(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function Yt(t,e,i,n,s){const a=[];i.forEach(t=>a.push(Wt(t)));const r=[];n.forEach((i,n)=>{const a={};i.forEach(t=>{const i=a[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=jt,r.push(n))}),t.set(n,a)});let o=0;return i.forEach(t=>Wt(t,a[o++])),r}function Kt(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let a=s.get(e);if(a)return a;const r=e.parentNode;return a=i.has(r)?r:n.has(r)?1:t(r),s.set(e,a),a}(t);1!==e&&i.get(e).push(t)}),i}function Jt(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Qt(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function Zt(t,e,i){v(i).onDone(()=>t.processLeaveNode(e))}function te(t,e,i){const n=i.get(t);if(!n)return!1;let s=e.get(t);return s?n.forEach(t=>s.add(t)):e.set(t,n),i.delete(t),!0}class ee{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Ht(t,e,i),this._timelineEngine=new zt(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const a=t+"-"+n;let r=this._triggerCache[a];if(!r){const t=[],e=dt(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);r=function(t,e){return new Ft(t,e)}(n,e),this._triggerCache[a]=r}this._transitionEngine.registerTrigger(e,n,r)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=D(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=D(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ie(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=se(e[0]),e.length>1&&(n=se(e[e.length-1]))):e&&(i=se(e)),i||n?new ne(t,i,n):null}let ne=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&G(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(G(this._element,this._initialStyles),this._endStyles&&(G(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),G(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function se(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=ue(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),he(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=ue(t,"").split(","),n=ce(i,e);n>=0&&(i.splice(n,1),de(t,"",i.join(",")))}(this._element,this._name))}}function oe(t,e,i){de(t,"PlayState",i,le(t,e))}function le(t,e){const i=ue(t,"");return i.indexOf(",")>0?ce(i.split(","),e):ce([i],e)}function ce(t,e){for(let i=0;i=0)return i;return-1}function he(t,e,i){i?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function de(t,e,i,n){const s="animation"+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function ue(t,e){return t.style["animation"+e]}class me{constructor(t,e,i,n,s,a,r,o){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=r,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=n+s,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 re(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(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:at(this.element,i))})}this.currentSnapshot=t}}class pe extends b{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=L(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 ge{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return T(t)}matchesElement(t,e){return M(t,e)}containsElement(t,e){return F(t,e)}query(t,e,i){return N(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>L(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=`${s}}\n`}),n+="}\n";const a=document.createElement("style");return a.innerHTML=n,a}animate(t,e,i,n,s,a=[],r){r&&this._notifyFaultyScrubber();const o=a.filter(t=>t instanceof me),l={};it(i,n)&&o.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(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=nt(t,e,l));if(0==i)return new pe(t,c);const h=`gen_css_kf_${this._count++}`,d=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(d);const u=ie(t,e),m=new me(t,e,h,i,n,s,c,u);return m.onDestroy(()=>{var t;(t=d).parentNode.removeChild(t)}),m}_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 fe{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,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=i.duration,this._delay=i.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,i){return t.animate(e,i)}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]:at(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class be{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(_e().toString()),this._cssKeyframesDriver=new ge}validateStyleProperty(t){return T(t)}matchesElement(t,e){return M(t,e)}containsElement(t,e){return F(t,e)}query(t,e,i){return N(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,a=[],r){if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,a);const o={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(o.easing=s);const l={},c=a.filter(t=>t instanceof fe);it(i,n)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=ie(t,e=nt(t,e=e.map(t=>U(t,!1)),l));return new fe(t,e,o,h)}}function _e(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ye=i("ofXK");let ve=(()=>{class t extends a{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:s.Y.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?c(t):t;return xe(this._renderer,null,e,"register",[i]),new we(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(s.M),s.Jc(ye.e))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class we extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ke(this._id,t,e||{},this._renderer)}}class ke{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return xe(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 xe(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}let Ce=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,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 i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new Se("",i,this.engine),this._rendererCache.set(i,t)),t}const n=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const a=e=>{Array.isArray(e)?e.forEach(a):this.engine.registerTrigger(n,s,t,e.name,e)};return e.data.animation.forEach(a),new De(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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)(s.Jc(s.M),s.Jc(ee),s.Jc(s.F))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class Se{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,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,i){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}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,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class De extends Se{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const n=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),a="";return"@"!=s.charAt(0)&&([s,a]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,a,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let Ee=(()=>{class t extends ee{constructor(t,e,i){super(t.body,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(ye.e),s.Jc(B),s.Jc(At))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();const Ae=new s.v("AnimationModuleType"),Oe=[{provide:B,useFactory:function(){return"function"==typeof _e()?new be:new ge}},{provide:Ae,useValue:"BrowserAnimations"},{provide:a,useClass:ve},{provide:At,useFactory:function(){return new Ot}},{provide:ee,useClass:Ee},{provide:s.M,useFactory:function(t,e,i){return new Ce(t,e,i)},deps:[n.d,ee,s.F]}];let Re=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:Oe,imports:[n.a]}),t})();var Pe=i("XNiG"),Ie=i("quSY"),Te=i("z+Ro"),Me=i("yCtX"),Fe=i("jZKg");function Ne(...t){let e=t[t.length-1];return Object(Te.a)(e)?(t.pop(),Object(Fe.a)(t,e)):Object(Me.a)(t)}function Le(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var ze=i("7o/Q"),Be=i("KqfI"),Ve=i("n6bG");function je(t,e,i){return function(n){return n.lift(new qe(t,e,i))}}class qe{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new $e(t,this.nextOrObserver,this.error,this.complete))}}class $e extends ze.a{constructor(t,e,i,n){super(t),this._tapNext=Be.a,this._tapError=Be.a,this._tapComplete=Be.a,this._tapError=i||Be.a,this._tapComplete=n||Be.a,Object(Ve.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Be.a,this._tapError=e.error||Be.a,this._tapComplete=e.complete||Be.a)}_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 Ue extends Ie.a{constructor(t,e){super()}schedule(t,e=0){return this}}class He extends Ue{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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i=!1,n=void 0;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let Xe=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class Ge extends Xe{constructor(t,e=Xe.now){super(t,()=>Ge.delegate&&Ge.delegate!==this?Ge.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Ge.delegate&&Ge.delegate!==this?Ge.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const We=new Ge(He);function Ye(t,e=We){return i=>i.lift(new Ke(t,e))}class Ke{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Je(t,this.dueTime,this.scheduler))}}class Je extends ze.a{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,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(Qe,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 Qe(t){t.debouncedNext()}function Ze(t,e){return function(i){return i.lift(new ti(t,e))}}class ti{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new ei(t,this.predicate,this.thisArg))}}class ei extends ze.a{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}var ii=i("lJxs");const ni=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();var si=i("HDdC");const ai=new si.a(t=>t.complete());function ri(t){return t?function(t){return new si.a(e=>t.schedule(()=>e.complete()))}(t):ai}function oi(t){return e=>0===t?ri():e.lift(new li(t))}class li{constructor(t){if(this.total=t,this.total<0)throw new ni}call(t,e){return e.subscribe(new ci(t,this.total))}}class ci extends ze.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function hi(t){return null!=t&&"false"!==`${t}`}function di(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function ui(t){return Array.isArray(t)?t:[t]}function mi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function pi(t){return t instanceof s.q?t.nativeElement:t}let gi;try{gi="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(PE){gi=!1}let fi,bi=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(ye.I)(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&&!gi)&&"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)(s.Jc(s.I,8))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(s.I,8))},token:t,providedIn:"root"}),t})(),_i=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();const yi=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function vi(){if(fi)return fi;if("object"!=typeof document||!document)return fi=new Set(yi),fi;let t=document.createElement("input");return fi=new Set(yi.filter(e=>(t.setAttribute("type",e),t.type===e))),fi}let wi,ki,xi;function Ci(t){return function(){if(null==wi&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>wi=!0}))}finally{wi=wi||!1}return wi}()?t:!!t.capture}function Si(){if("object"!=typeof document||!document)return 0;if(null==ki){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),document.body.appendChild(t),ki=0,0===t.scrollLeft&&(t.scrollLeft=1,ki=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return ki}function Di(){if(null==xi){const t="undefined"!=typeof document?document.head:null;xi=!(!t||!t.createShadowRoot&&!t.attachShadow)}return xi}let Ei=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.uc)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Ai=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=pi(t);return new si.a(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new Pe.a,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,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:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(Ei))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(Ei))},token:t,providedIn:"root"}),t})(),Oi=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.s,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=di(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(Ye(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ai),s.yc(s.q),s.yc(s.F))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Ri=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Ei]}),t})();function Pi(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Ii=0;const Ti=new Map;let Mi=null,Fi=(()=>{class t{constructor(t){this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Ti.set(e,{messageElement:e,referenceCount:0})):Ti.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=Ti.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}Mi&&0===Mi.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 i=Ti.get(e);!function(t,e,i){const n=Pi(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute("cdk-describedby-host",""),i.referenceCount++}_removeMessageReference(t,e){const i=Ti.get(e);i.referenceCount--,function(t,e,i){const n=Pi(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const i=Pi(t,"aria-describedby"),n=Ti.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":`${e}`.trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(ye.e))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(ye.e))},token:t,providedIn:"root"}),t})();class Ni{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Pe.a,this._typeaheadSubscription=Ie.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new Pe.a,this.change=new Pe.a,t instanceof s.K&&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(je(t=>this._pressedLetters.push(t)),Ye(t),Ze(()=>this._pressedLetters.length>0),Object(ii.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||Le(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(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.K?this._items.toArray():this._items}}class Li extends Ni{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class zi extends Ni{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Bi=(()=>{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(PE){return null}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===ji(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 n=t.nodeName.toLowerCase(),s=ji(t);if(t.hasAttribute("contenteditable"))return-1!==s;if("iframe"===n)return!1;if("audio"===n){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===n){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==n||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"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")||Vi(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(bi))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(bi))},token:t,providedIn:"root"}),t})();function Vi(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 ji(t){if(!Vi(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class qi{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||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 i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):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(oi(1)).subscribe(t)}}let $i=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new qi(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(Bi),s.Jc(s.F),s.Jc(ye.e))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(Bi),Object(s.Jc)(s.F),Object(s.Jc)(ye.e))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&∈const Ui=new s.v("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Hi=new s.v("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Xi=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let i=0;i{class t{constructor(t,e){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=()=>{this._lastTouchTarget||this._setOriginForCurrentEventQueue("mouse")},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=t.composedPath?t.composedPath()[0]:t.target,this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)}}monitor(t,e=!1){if(!this._platform.isBrowser)return Ne(null);const i=pi(t);if(this._elementInfo.has(i)){let t=this._elementInfo.get(i);return t.checkChildren=e,t.subject.asObservable()}let n={unlisten:()=>{},checkChildren:e,subject:new Pe.a};this._elementInfo.set(i,n),this._incrementMonitoredElementCount();let s=t=>this._onFocus(t,i),a=t=>this._onBlur(t,i);return this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",s,!0),i.addEventListener("blur",a,!0)}),n.unlisten=()=>{i.removeEventListener("focus",s,!0),i.removeEventListener("blur",a,!0)},n.subject.asObservable()}stopMonitoring(t){const e=pi(t),i=this._elementInfo.get(e);i&&(i.unlisten(),i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}focusVia(t,e,i){const n=pi(t);this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_setClasses(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originTimeoutId=setTimeout(()=>this._origin=null,1)})}_wasCausedByTouch(t){let e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);if(!i||!i.checkChildren&&e!==t.target)return;let n=this._origin;n||(n=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,n),this._emitOrigin(i.subject,n),this._lastFocusOrigin=n}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_incrementMonitoredElementCount(){1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular(()=>{document.addEventListener("keydown",this._documentKeydownListener,Gi),document.addEventListener("mousedown",this._documentMousedownListener,Gi),document.addEventListener("touchstart",this._documentTouchstartListener,Gi),window.addEventListener("focus",this._windowFocusListener)})}_decrementMonitoredElementCount(){--this._monitoredElementCount||(document.removeEventListener("keydown",this._documentKeydownListener,Gi),document.removeEventListener("mousedown",this._documentMousedownListener,Gi),document.removeEventListener("touchstart",this._documentTouchstartListener,Gi),window.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId))}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(s.F),s.Jc(bi))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(s.F),Object(s.Jc)(bi))},token:t,providedIn:"root"}),t})();function Yi(t){return 0===t.buttons}let Ki=(()=>{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)(s.Jc(bi),s.Jc(ye.e))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(bi),Object(s.Jc)(ye.e))},token:t,providedIn:"root"}),t})(),Ji=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)(s.Jc(Ki))},imports:[[_i,Ri]]}),t})();const Qi=new s.v("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(s.db)(ye.e)}});let Zi=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new s.s,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(Qi,8))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(Qi,8))},token:t,providedIn:"root"}),t})(),tn=(()=>{class t{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new s.s}get dir(){return this._dir}set dir(t){const e=this._dir,i=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===i||"rtl"===i?i:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.lc("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[s.jc([{provide:Zi,useExisting:t}])]}),t})(),en=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();const nn=new s.W("9.1.2");var sn=i("bHdf");function an(){return Object(sn.a)(1)}function rn(...t){return an()(Ne(...t))}function on(...t){const e=t[t.length-1];return Object(Te.a)(e)?(t.pop(),i=>rn(t,i,e)):e=>rn(t,e)}const ln=["*",[["mat-option"],["ng-container"]]],cn=["*","mat-option, ng-container"];function hn(t,e){if(1&t&&s.zc(0,"mat-pseudo-checkbox",3),2&t){const t=s.Rc();s.Xc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const dn=["*"],un=new s.W("9.1.2"),mn=new s.v("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let pn=(()=>{class t{constructor(t,e){this._hasDoneGlobalChecks=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checksAreEnabled(){return Object(s.eb)()&&!this._isTestEnv()}_isTestEnv(){const t=this._window;return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document&&this._document.body&&"function"==typeof getComputedStyle))return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&un.full!==nn.full&&console.warn("The Angular Material version ("+un.full+") does not match the Angular CDK version ("+nn.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)(s.Jc(Ki),s.Jc(mn,8))},imports:[[en],en]}),t})();function gn(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t)}}}function fn(t,e){return class extends t{constructor(...t){super(...t),this.color=e}get color(){return this._color}set color(t){const i=t||e;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function bn(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=hi(t)}}}function _n(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 yn(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new Pe.a}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())}}}const vn=new s.v("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(s.db)(s.z)}});class wn{constructor(){this._localeChanges=new Pe.a}get localeChanges(){return this._localeChanges}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const kn=new s.v("mat-date-formats");let xn;try{xn="undefined"!=typeof Intl}catch(PE){xn=!1}const Cn={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Sn=An(31,t=>String(t+1)),Dn={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},En=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function An(t,e){const i=Array(t);for(let n=0;n{class t extends wn{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(xn){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return An(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return Cn[t]}getDateNames(){if(xn){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return An(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return Sn}getDayOfWeekNames(t){if(xn){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return An(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return Dn[t]}getYearName(t){if(xn){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,i){if(e<0||e>11)throw Error(`Invalid month index "${e}". Month index has to be between 0 and 11.`);if(i<1)throw Error(`Invalid date "${i}". Date has to be greater than 0.`);let n=this._createDateWithOverflow(t,e,i);if(n.getMonth()!=e)throw Error(`Invalid date "${i}" for month with index "${e}".`);return n}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(xn){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(En.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,i){const n=new Date(t,e,i);return t>=0&&t<100&&n.setFullYear(this.getYear(n)-1900),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(vn,8),s.Jc(bi))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Rn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[{provide:wn,useClass:On}],imports:[[_i]]}),t})();const Pn={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let In=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[{provide:kn,useValue:Pn}],imports:[[Rn]]}),t})(),Tn=(()=>{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=Object(s.uc)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Mn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function Fn(t,e){t.changes.pipe(on(t)).subscribe(({length:t})=>{Nn(e,"mat-2-line",!1),Nn(e,"mat-3-line",!1),Nn(e,"mat-multi-line",!1),2===t||3===t?Nn(e,`mat-${t}-line`,!0):t>3&&Nn(e,"mat-multi-line",!0)})}function Nn(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let Ln=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn],pn]}),t})();class zn{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Bn={enterDuration:450,exitDuration:400},Vn=Ci({passive:!0});class jn{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=t=>{const e=Yi(t),i=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()}))},n.isBrowser&&(this._containerElement=pi(i),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,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},Bn),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const a=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),r=t-n.left,o=e-n.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${r-a}px`,c.style.top=`${o-a}px`,c.style.height=`${2*a}px`,c.style.width=`${2*a}px`,null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new zn(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,i.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,n=Object.assign(Object.assign({},Bn),t.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=pi(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(()=>{this._triggerEvents.forEach((t,i)=>{e.addEventListener(i,t,Vn)})}),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,Vn)})}}const qn=new s.v("mat-ripple-global-options");let $n=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new jn(this,e,t,i),"NoopAnimations"===s&&(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,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.F),s.yc(bi),s.yc(qn,8),s.yc(Ae,8))},t.\u0275dir=s.tc({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&s.oc("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})(),Un=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn,_i],pn]}),t})(),Hn=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ae,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&s.oc("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})(),Xn=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();class Gn{}const Wn=gn(Gn);let Yn=0,Kn=(()=>{class t extends Wn{constructor(){super(...arguments),this._labelId=`mat-optgroup-label-${Yn++}`}}return t.\u0275fac=function(e){return Jn(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(s.lc("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),s.oc("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[s.hc],ngContentSelectors:cn,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(s.Wc(ln),s.Dc(0,"label",0),s.sd(1),s.Vc(2),s.Cc(),s.Vc(3,1)),2&t&&(s.Xc("id",e._labelId),s.kc(1),s.ud("",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 Jn=s.Fc(Kn);let Qn=0;class Zn{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const ts=new s.v("MAT_OPTION_PARENT_COMPONENT");let es=(()=>{class t{constructor(t,e,i,n){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=n,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${Qn++}`,this.onSelectionChange=new s.s,this._stateChanges=new Pe.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=hi(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 i=this._getHostElement();"function"==typeof i.focus&&i.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||Le(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 Zn(this,t))}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.j),s.yc(ts,8),s.yc(Kn,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&s.Nc("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(s.Gc("id",e.id),s.lc("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),s.oc("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:dn,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&&(s.Wc(),s.qd(0,hn,1,2,"mat-pseudo-checkbox",0),s.Dc(1,"span",1),s.Vc(2),s.Cc(),s.zc(3,"div",2)),2&t&&(s.Xc("ngIf",e.multiple),s.kc(3),s.Xc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[ye.t,$n,Hn],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 is(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),a=0;for(let e=0;ei+n?Math.max(0,s-n+e):i}let ss=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Un,ye.c,Xn]]}),t})();const as=new s.v("mat-label-global-options"),rs=["mat-button",""],os=["*"],ls=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class cs{constructor(t){this._elementRef=t}}const hs=fn(gn(bn(cs)));let ds=(()=>{class t extends hs{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of ls)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);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)(s.yc(s.q),s.yc(Wi),s.yc(Ae,8))},t.\u0275cmp=s.sc({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 i;1&t&&s.wd($n,!0),2&t&&s.dd(i=s.Oc())&&(e.ripple=i.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(s.lc("disabled",e.disabled||null),s.oc("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.hc],attrs:rs,ngContentSelectors:os,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&&(s.Wc(),s.Dc(0,"span",0),s.Vc(1),s.Cc(),s.zc(2,"div",1),s.zc(3,"div",2)),2&t&&(s.kc(2),s.oc("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.Xc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[$n],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})(),us=(()=>{class t extends ds{constructor(t,e,i){super(e,t,i)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Wi),s.yc(s.q),s.yc(Ae,8))},t.\u0275cmp=s.sc({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){1&t&&s.Nc("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(s.lc("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),s.oc("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[s.hc],attrs:rs,ngContentSelectors:os,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&&(s.Wc(),s.Dc(0,"span",0),s.Vc(1),s.Cc(),s.zc(2,"div",1),s.zc(3,"div",2)),2&t&&(s.kc(2),s.oc("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.Xc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[$n],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})(),ms=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Un,pn],pn]}),t})();class ps{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Pe.a,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 gs=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let i of this._listeners)i(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.uc)({factory:function(){return new t},token:t,providedIn:"root"}),t})();var fs=i("DH7j"),bs=i("XoHu"),_s=i("Cfvw");function ys(...t){if(1===t.length){const e=t[0];if(Object(fs.a)(e))return vs(e,null);if(Object(bs.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return vs(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return vs(t=1===t.length&&Object(fs.a)(t[0])?t[0]:t,null).pipe(Object(ii.a)(t=>e(...t)))}return vs(t,null)}function vs(t,e){return new si.a(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let a=0,r=0;for(let o=0;o{c||(c=!0,r++),s[o]=t},error:t=>i.error(t),complete:()=>{a++,a!==n&&c||(r===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}const ws=new s.v("NgValueAccessor"),ks={provide:ws,useExisting:Object(s.cb)(()=>xs),multi:!0};let xs=(()=>{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)(s.yc(s.L),s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&s.Nc("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[s.jc([ks])]}),t})();const Cs={provide:ws,useExisting:Object(s.cb)(()=>Ds),multi:!0},Ss=new s.v("CompositionEventMode");let Ds=(()=>{class t{constructor(t,e,i){this._renderer=t,this._elementRef=e,this._compositionMode=i,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(ye.N)()?Object(ye.N)().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)(s.yc(s.L),s.yc(s.q),s.yc(Ss,8))},t.\u0275dir=s.tc({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&&s.Nc("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:[s.jc([Cs])]}),t})(),Es=(()=>{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=s.tc({type:t}),t})(),As=(()=>{class t extends Es{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Os(e||t)},t.\u0275dir=s.tc({type:t,features:[s.hc]}),t})();const Os=s.Fc(As);function Rs(){throw new Error("unimplemented")}class Ps extends Es{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return Rs()}get asyncValidator(){return Rs()}}class Is{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}}let Ts=(()=>{class t extends Is{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ps,2))},t.\u0275dir=s.tc({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.oc("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:[s.hc]}),t})(),Ms=(()=>{class t extends Is{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(As,2))},t.\u0275dir=s.tc({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.oc("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:[s.hc]}),t})();function Fs(t){return null==t||0===t.length}const Ns=new s.v("NgValidators"),Ls=new s.v("NgAsyncValidators"),zs=/^(?=.{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 Bs{static min(t){return e=>{if(Fs(e.value)||Fs(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(Fs(e.value)||Fs(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Fs(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Fs(t.value)?null:zs.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(Fs(e.value))return null;const i=e.value?e.value.length:0;return i{const i=e.value?e.value.length:0;return i>t?{maxlength:{requiredLength:t,actualLength:i}}:null}}static pattern(t){if(!t)return Bs.nullValidator;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(Fs(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(Vs);return 0==e.length?null:function(t){return qs(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(Vs);return 0==e.length?null:function(t){return ys(function(t,e){return e.map(e=>e(t))}(t,e).map(js)).pipe(Object(ii.a)(qs))}}}function Vs(t){return null!=t}function js(t){const e=Object(s.Nb)(t)?Object(_s.a)(t):t;if(!Object(s.Mb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function qs(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 $s(t){return t.validate?e=>t.validate(e):t}function Us(t){return t.validate?e=>t.validate(e):t}const Hs={provide:ws,useExisting:Object(s.cb)(()=>Xs),multi:!0};let Xs=(()=>{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)(s.yc(s.L),s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&s.Nc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[s.jc([Hs])]}),t})();const Gs={provide:ws,useExisting:Object(s.cb)(()=>Ys),multi:!0};let Ws=(()=>{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=s.uc({token:t,factory:t.\u0275fac}),t})(),Ys=(()=>{class t{constructor(t,e,i,n){this._renderer=t,this._elementRef=e,this._registry=i,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Ps),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)(s.yc(s.L),s.yc(s.q),s.yc(Ws),s.yc(s.w))},t.\u0275dir=s.tc({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&s.Nc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[s.jc([Gs])]}),t})();const Ks={provide:ws,useExisting:Object(s.cb)(()=>Js),multi:!0};let Js=(()=>{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)(s.yc(s.L),s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&s.Nc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[s.jc([Ks])]}),t})();const Qs='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Zs='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',ta='\n
\n
\n \n
\n
';class ea{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 ${Qs}`)}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 ${Zs}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${ta}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${Qs}`)}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 ${Zs}`)}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 `)}}const ia={provide:ws,useExisting:Object(s.cb)(()=>sa),multi:!0};function na(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let sa=(()=>{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=s.Ob}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 i=na(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}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)(s.yc(s.L),s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&s.Nc("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[s.jc([ia])]}),t})(),aa=(()=>{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(na(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.L),s.yc(sa,9))},t.\u0275dir=s.tc({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const ra={provide:ws,useExisting:Object(s.cb)(()=>la),multi:!0};function oa(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let la=(()=>{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=s.Ob}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 i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,i){this._element=t,this._renderer=e,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(oa(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(oa(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.L),s.yc(la,9))},t.\u0275dir=s.tc({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function ha(t,e){return[...e.path,t]}function da(t,e){t||ga(e,"Cannot find control with"),e.valueAccessor||ga(e,"No value accessor for form control with"),t.validator=Bs.compose([t.validator,e.validator]),t.asyncValidator=Bs.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&ua(t,e)})}(t,e),function(t,e){t.registerOnChange((t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&ua(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 ua(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ma(t,e){null==t&&ga(e,"Cannot find control with"),t.validator=Bs.compose([t.validator,e.validator]),t.asyncValidator=Bs.composeAsync([t.asyncValidator,e.asyncValidator])}function pa(t){return ga(t,"There is no FormControl instance attached to form control element with")}function ga(t,e){let i;throw i=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${i}`)}function fa(t){return null!=t?Bs.compose(t.map($s)):null}function ba(t){return null!=t?Bs.composeAsync(t.map(Us)):null}function _a(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object(s.Ob)(e,i.currentValue)}const ya=[xs,Js,Xs,sa,la,Ys];function va(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function wa(t,e){if(!e)return null;Array.isArray(e)||ga(t,"Value accessor was not provided as an array for form control with");let i=void 0,n=void 0,s=void 0;return e.forEach(e=>{var a;e.constructor===Ds?i=e:(a=e,ya.some(t=>a.constructor===t)?(n&&ga(t,"More than one built-in value accessor matches form control with"),n=e):(s&&ga(t,"More than one custom value accessor matches form control with"),s=e))}),s||n||i||(ga(t,"No valid value accessor for form control with"),null)}function ka(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function xa(t,e,i,n){Object(s.eb)()&&"never"!==n&&((null!==n&&"once"!==n||e._ngModelWarningSentOnce)&&("always"!==n||i._ngModelWarningSent)||(ea.ngModelWarning(t),e._ngModelWarningSentOnce=!0,i._ngModelWarningSent=!0))}function Ca(t){const e=Da(t)?t.validators:t;return Array.isArray(e)?fa(e):e||null}function Sa(t,e){const i=Da(e)?e.asyncValidators:t;return Array.isArray(i)?ba(i):i||null}function Da(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Ea{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=Ca(t)}setAsyncValidators(t){this.asyncValidator=Sa(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=js(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,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof Oa?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof Ra&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.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 s.s,this.statusChanges=new s.s}_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){Da(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Aa extends Ea{constructor(t=null,e,i){super(Ca(e),Sa(i,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 Oa extends Ea{constructor(t,e,i){super(Ca(e),Sa(i,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(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof Aa?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((i,n)=>{e=e||this.contains(n)&&t(i)}),e}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_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,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class Ra extends Ea{constructor(t,e,i){super(Ca(e),Sa(i,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,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Aa?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,i)=>{t(e,i)})}_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,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_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 Pa={provide:As,useExisting:Object(s.cb)(()=>Ta)},Ia=(()=>Promise.resolve(null))();let Ta=(()=>{class t extends As{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.s,this.form=new Oa({},fa(t),ba(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ia.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),da(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ia.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),ka(this._directives,t)})}addFormGroup(t){Ia.then(()=>{const e=this._findContainer(t.path),i=new Oa({});ma(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ia.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Ia.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,va(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)(s.yc(Ns,10),s.yc(Ls,10))},t.\u0275dir=s.tc({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&s.Nc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.jc([Pa]),s.hc]}),t})(),Ma=(()=>{class t extends As{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ha(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return fa(this._validators)}get asyncValidator(){return ba(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return Fa(e||t)},t.\u0275dir=s.tc({type:t,features:[s.hc]}),t})();const Fa=s.Fc(Ma);class Na{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 ${Qs}\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 ${Zs}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${ta}`)}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 ${Zs}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${ta}`)}}const La={provide:As,useExisting:Object(s.cb)(()=>za)};let za=(()=>{class t extends Ma{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){this._parent instanceof t||this._parent instanceof Ta||Na.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(As,5),s.yc(Ns,10),s.yc(Ls,10))},t.\u0275dir=s.tc({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[s.jc([La]),s.hc]}),t})();const Ba={provide:Ps,useExisting:Object(s.cb)(()=>ja)},Va=(()=>Promise.resolve(null))();let ja=(()=>{class t extends Ps{constructor(t,e,i,n){super(),this.control=new Aa,this._registered=!1,this.update=new s.s,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=wa(this,n)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),_a(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?ha(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return fa(this._rawValidators)}get asyncValidator(){return ba(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(){da(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof za)&&this._parent instanceof Ma?Na.formGroupNameException():this._parent instanceof za||this._parent instanceof Ta||Na.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Na.missingNameException()}_updateValue(t){Va.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Va.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(As,9),s.yc(Ns,10),s.yc(Ls,10),s.yc(ws,10))},t.\u0275dir=s.tc({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:[s.jc([Ba]),s.hc,s.ic]}),t})(),qa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const $a=new s.v("NgModelWithFormControlWarning"),Ua={provide:Ps,useExisting:Object(s.cb)(()=>Ha)};let Ha=(()=>{class t extends Ps{constructor(t,e,i,n){super(),this._ngModelWarningConfig=n,this.update=new s.s,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=wa(this,i)}set isDisabled(t){ea.disabledAttrWarning()}ngOnChanges(e){this._isControlChanged(e)&&(da(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),_a(e,this.viewModel)&&(xa("formControl",t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return fa(this._rawValidators)}get asyncValidator(){return ba(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ns,10),s.yc(Ls,10),s.yc(ws,10),s.yc($a,8))},t.\u0275dir=s.tc({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[s.jc([Ua]),s.hc,s.ic]}),t._ngModelWarningSentOnce=!1,t})();const Xa={provide:As,useExisting:Object(s.cb)(()=>Ga)};let Ga=(()=>{class t extends As{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new s.s}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 da(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){ka(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);ma(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);ma(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,va(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(()=>pa(e)),e.valueAccessor.registerOnTouched(()=>pa(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&&da(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=fa(this._validators);this.form.validator=Bs.compose([this.form.validator,t]);const e=ba(this._asyncValidators);this.form.asyncValidator=Bs.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||ea.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ns,10),s.yc(Ls,10))},t.\u0275dir=s.tc({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.Nc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.jc([Xa]),s.hc,s.ic]}),t})();const Wa={provide:As,useExisting:Object(s.cb)(()=>Ya)};let Ya=(()=>{class t extends Ma{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}_checkParentType(){Qa(this._parent)&&ea.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(As,13),s.yc(Ns,10),s.yc(Ls,10))},t.\u0275dir=s.tc({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[s.jc([Wa]),s.hc]}),t})();const Ka={provide:As,useExisting:Object(s.cb)(()=>Ja)};let Ja=(()=>{class t extends As{constructor(t,e,i){super(),this._parent=t,this._validators=e,this._asyncValidators=i}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ha(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return fa(this._validators)}get asyncValidator(){return ba(this._asyncValidators)}_checkParentType(){Qa(this._parent)&&ea.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(As,13),s.yc(Ns,10),s.yc(Ls,10))},t.\u0275dir=s.tc({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[s.jc([Ka]),s.hc]}),t})();function Qa(t){return!(t instanceof Ya||t instanceof Ga||t instanceof Ja)}const Za={provide:Ps,useExisting:Object(s.cb)(()=>tr)};let tr=(()=>{class t extends Ps{constructor(t,e,i,n,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new s.s,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=wa(this,n)}set isDisabled(t){ea.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),_a(e,this.viewModel)&&(xa("formControlName",t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return ha(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return fa(this._rawValidators)}get asyncValidator(){return ba(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Ya)&&this._parent instanceof Ma?ea.ngModelGroupException():this._parent instanceof Ya||this._parent instanceof Ga||this._parent instanceof Ja||ea.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(s.yc(As,13),s.yc(Ns,10),s.yc(Ls,10),s.yc(ws,10),s.yc($a,8))},t.\u0275dir=s.tc({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[s.jc([Za]),s.hc,s.ic]}),t._ngModelWarningSentOnce=!1,t})();const er={provide:Ns,useExisting:Object(s.cb)(()=>nr),multi:!0},ir={provide:Ns,useExisting:Object(s.cb)(()=>sr),multi:!0};let nr=(()=>{class t{get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!==`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?Bs.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&s.lc("required",e.required?"":null)},inputs:{required:"required"},features:[s.jc([er])]}),t})(),sr=(()=>{class t extends nr{validate(t){return this.required?Bs.requiredTrue(t):null}}return t.\u0275fac=function(e){return ar(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.lc("required",e.required?"":null)},features:[s.jc([ir]),s.hc]}),t})();const ar=s.Fc(sr),rr={provide:Ns,useExisting:Object(s.cb)(()=>or),multi:!0};let or=(()=>{class t{set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?Bs.email(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[s.jc([rr])]}),t})();const lr={provide:Ns,useExisting:Object(s.cb)(()=>cr),multi:!0};let cr=(()=>{class t{ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Bs.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.lc("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[s.jc([lr]),s.ic]}),t})();const hr={provide:Ns,useExisting:Object(s.cb)(()=>dr),multi:!0};let dr=(()=>{class t{ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Bs.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.lc("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[s.jc([hr]),s.ic]}),t})();const ur={provide:Ns,useExisting:Object(s.cb)(()=>mr),multi:!0};let mr=(()=>{class t{ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Bs.pattern(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&s.lc("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[s.jc([ur]),s.ic]}),t})(),pr=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})(),gr=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n=null,s=null,a=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(n=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,a=null!=e.updateOn?e.updateOn:void 0):(n=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new Oa(i,{asyncValidators:s,updateOn:a,validators:n})}control(t,e,i){return new Aa(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new Ra(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof Aa||t instanceof Oa||t instanceof Ra?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=s.uc({token:t,factory:t.\u0275fac}),t})(),fr=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Ws],imports:[pr]}),t})(),br=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:$a,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[gr,Ws],imports:[pr]}),t})();const _r=["button"],yr=["*"],vr=new s.v("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),wr={provide:ws,useExisting:Object(s.cb)(()=>Sr),multi:!0};class kr{}let xr=0;class Cr{constructor(t,e){this.source=t,this.value=e}}let Sr=(()=>{class t{constructor(t,e){this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${xr++}`,this.valueChange=new s.s,this.change=new s.s,this.appearance=e&&e.appearance?e.appearance:"standard"}get name(){return this._name}set name(t){this._name=t,this._buttonToggles&&this._buttonToggles.forEach(t=>{t.name=this._name,t._markForCheck()})}get vertical(){return this._vertical}set vertical(t){this._vertical=hi(t)}get value(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(t=>t.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=hi(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t),this._buttonToggles&&this._buttonToggles.forEach(t=>t._markForCheck())}ngOnInit(){this._selectionModel=new ps(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked))}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_emitChangeEvent(){const t=this.selected,e=Array.isArray(t)?t[t.length-1]:t,i=new Cr(e,this.value);this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(t,e,i=!1,n=!1){this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):n=!0,n?Promise.resolve(()=>this._updateModelValue(i)):this._updateModelValue(i)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(e=>null!=t.value&&e===t.value):t.value===this._rawValue)}_setSelectionByValue(t){if(this._rawValue=t,this._buttonToggles)if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),t.forEach(t=>this._selectValue(t))}else this._clearSelection(),this._selectValue(t)}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>t.checked=!1)}_selectValue(t){const e=this._buttonToggles.find(e=>null!=e.value&&e.value===t);e&&(e.checked=!0,this._selectionModel.select(e))}_updateModelValue(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.j),s.yc(vr,8))},t.\u0275dir=s.tc({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Ar,!0),2&t&&s.dd(n=s.Oc())&&(e._buttonToggles=n)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(s.lc("aria-disabled",e.disabled),s.oc("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard","standard"===e.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[s.jc([wr,{provide:kr,useExisting:t}])]}),t})();class Dr{}const Er=bn(Dr);let Ar=(()=>{class t extends Er{constructor(t,e,i,n,a,r){super(),this._changeDetectorRef=e,this._elementRef=i,this._focusMonitor=n,this._isSingleSelector=!1,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new s.s;const o=Number(a);this.tabIndex=o||0===o?o:null,this.buttonToggleGroup=t,this.appearance=r&&r.appearance?r.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){const e=hi(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=hi(t)}ngOnInit(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||`mat-button-toggle-${xr++}`,this._isSingleSelector&&(this.name=this.buttonToggleGroup.name),this.buttonToggleGroup&&this.buttonToggleGroup._isPrechecked(this)&&(this.checked=!0),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){const t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new Cr(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Sr,8),s.yc(s.j),s.yc(s.q),s.yc(Wi),s.Kc("tabindex"),s.yc(vr,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var i;1&t&&s.wd(_r,!0),2&t&&s.dd(i=s.Oc())&&(e._buttonElement=i.first)},hostAttrs:[1,"mat-button-toggle","mat-focus-indicator"],hostVars:11,hostBindings:function(t,e){1&t&&s.Nc("focus",(function(){return e.focus()})),2&t&&(s.lc("tabindex",-1)("id",e.id)("name",null),s.oc("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard","standard"===e.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[s.hc],ngContentSelectors:yr,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,e){if(1&t&&(s.Wc(),s.Dc(0,"button",0,1),s.Nc("click",(function(){return e._onButtonClick()})),s.Dc(2,"div",2),s.Vc(3),s.Cc(),s.Cc(),s.zc(4,"div",3),s.zc(5,"div",4)),2&t){const t=s.ed(1);s.Xc("id",e.buttonId)("disabled",e.disabled||null),s.lc("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.kc(5),s.Xc("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[$n],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px;padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 48px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),t})(),Or=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn,Un],pn]}),t})();const Rr=["*",[["mat-card-footer"]]],Pr=["*","mat-card-footer"],Ir=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],Tr=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],Mr=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],Fr=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let Nr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),Lr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),zr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),Br=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&s.oc("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t})(),Vr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),t})(),jr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),t})(),qr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),t})(),$r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),t})(),Ur=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),t})(),Hr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),t})(),Xr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),Gr=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ae,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&s.oc("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:Pr,decls:2,vars:0,template:function(t,e){1&t&&(s.Wc(Rr),s.Vc(0),s.Vc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),Wr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:Tr,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(s.Wc(Ir),s.Vc(0),s.Dc(1,"div",0),s.Vc(2,1),s.Cc(),s.Vc(3,2))},encapsulation:2,changeDetection:0}),t})(),Yr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:Fr,decls:4,vars:0,template:function(t,e){1&t&&(s.Wc(Mr),s.Dc(0,"div"),s.Vc(1),s.Cc(),s.Vc(2,1),s.Vc(3,2))},encapsulation:2,changeDetection:0}),t})(),Kr=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn],pn]}),t})();const Jr=["input"],Qr=function(){return{enterDuration:150}},Zr=["*"],to=new s.v("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),eo=new s.v("mat-checkbox-click-action");let io=0;const no={provide:ws,useExisting:Object(s.cb)(()=>oo),multi:!0};class so{}class ao{constructor(t){this._elementRef=t}}const ro=_n(fn(bn(gn(ao))));let oo=(()=>{class t extends ro{constructor(t,e,i,n,a,r,o,l){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._clickAction=r,this._animationMode=o,this._options=l,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId=`mat-checkbox-${++io}`,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.s,this.indeterminateChange=new s.s,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(a)||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=hi(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=hi(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=hi(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,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new so;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 i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${i}`}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.j),s.yc(Wi),s.yc(s.F),s.Kc("tabindex"),s.yc(eo,8),s.yc(Ae,8),s.yc(to,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var i;1&t&&(s.wd(Jr,!0),s.wd($n,!0)),2&t&&(s.dd(i=s.Oc())&&(e._inputElement=i.first),s.dd(i=s.Oc())&&(e.ripple=i.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Gc("id",e.id),s.lc("tabindex",null),s.oc("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:[s.jc([no]),s.hc],ngContentSelectors:Zr,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&&(s.Wc(),s.Dc(0,"label",0,1),s.Dc(2,"div",2),s.Dc(3,"input",3,4),s.Nc("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),s.Cc(),s.Dc(5,"div",5),s.zc(6,"div",6),s.Cc(),s.zc(7,"div",7),s.Dc(8,"div",8),s.Qc(),s.Dc(9,"svg",9),s.zc(10,"path",10),s.Cc(),s.Pc(),s.zc(11,"div",11),s.Cc(),s.Cc(),s.Dc(12,"span",12,13),s.Nc("cdkObserveContent",(function(){return e._onLabelTextChange()})),s.Dc(14,"span",14),s.sd(15,"\xa0"),s.Cc(),s.Vc(16),s.Cc(),s.Cc()),2&t){const t=s.ed(1),i=s.ed(13);s.lc("for",e.inputId),s.kc(2),s.oc("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.kc(1),s.Xc("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.lc("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),s.kc(2),s.Xc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.Zc(18,Qr))}},directives:[$n,Oi],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})();const lo={provide:Ns,useExisting:Object(s.cb)(()=>co),multi:!0};let co=(()=>{class t extends sr{}return t.\u0275fac=function(e){return ho(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[s.jc([lo]),s.hc]}),t})();const ho=s.Fc(co);let uo=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})(),mo=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Un,pn,Ri,uo],pn,uo]}),t})();function po(t){return new si.a(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?Object(_s.a)(i):ri()).subscribe(e)})}var go=i("VRyK");function fo(t,e,i,n){return Object(Ve.a)(i)&&(n=i,i=void 0),n?fo(t,e,i).pipe(Object(ii.a)(t=>Object(fs.a)(t)?n(...t):n(t))):new si.a(n=>{!function t(e,i,n,s,a){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(i,n,a),r=()=>t.removeEventListener(i,n,a)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(i,n),r=()=>t.off(i,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(i,n),r=()=>t.removeListener(i,n)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let r=0,o=e.length;r1?Array.prototype.slice.call(arguments):t)}),n,i)})}class bo extends He{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}class _o extends Ge{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nfunction(t){const e=wo[t];e&&e()}(e)),e},clearImmediate(t){delete wo[t]}};class xo extends He{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=ko.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(ko.clearImmediate(e),t.scheduled=void 0)}}class Co extends Ge{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++ni.lift(new Eo(t,e))}class Eo{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Ao(t,this.compare,this.keySelector))}}class Ao extends ze.a{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}var Oo=i("l7GE"),Ro=i("ZUHj");class Po{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new Io(t,this.durationSelector))}}class Io extends Oo.a{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=Object(Ro.a)(this,i);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=null,i.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,i,n){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function To(t){return!Object(fs.a)(t)&&t-parseFloat(t)+1>=0}function Mo(t=0,e,i){let n=-1;return To(e)?n=Number(e)<1?1:Number(e):Object(Te.a)(e)&&(i=e),Object(Te.a)(i)||(i=We),new si.a(e=>{const s=To(t)?t:+t-i.now();return i.schedule(Fo,s,{index:0,period:n,subscriber:e})})}function Fo(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}function No(t,e=We){return i=()=>Mo(t,e),function(t){return t.lift(new Po(i))};var i}function Lo(t){return e=>e.lift(new zo(t))}class zo{constructor(t){this.notifier=t}call(t,e){const i=new Bo(t),n=Object(Ro.a)(i,this.notifier);return n&&!i.seenValue?(i.add(n),e.subscribe(i)):i}}class Bo extends Oo.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,i,n,s){this.seenValue=!0,this.complete()}notifyComplete(){}}var Vo=i("51Dv");function jo(t,e){return"function"==typeof e?i=>i.pipe(jo((i,n)=>Object(_s.a)(t(i,n)).pipe(Object(ii.a)((t,s)=>e(i,t,n,s))))):e=>e.lift(new qo(t))}class qo{constructor(t){this.project=t}call(t,e){return e.subscribe(new $o(t,this.project))}}class $o extends Oo.a{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e,t,i)}_innerSub(t,e,i){const n=this.innerSubscription;n&&n.unsubscribe();const s=new Vo.a(this,void 0,void 0);this.destination.add(s),this.innerSubscription=Object(Ro.a)(this,t,e,i,s)}_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,i,n,s){this.destination.next(e)}}class Uo extends He{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}class Ho extends Ge{}const Xo=new Ho(Uo);function Go(t,e){return new si.a(e?i=>e.schedule(Wo,0,{error:t,subscriber:i}):e=>e.error(t))}function Wo({error:t,subscriber:e}){e.error(t)}let Yo=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Ne(this.value);case"E":return Go(this.error);case"C":return ri()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class Ko extends ze.a{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Ko.dispatch,this.delay,new Jo(t,this.destination)))}_next(t){this.scheduleMessage(Yo.createNext(t))}_error(t){this.scheduleMessage(Yo.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Yo.createComplete()),this.unsubscribe()}}class Jo{constructor(t,e){this.notification=t,this.destination=e}}var Qo=i("9ppp"),Zo=i("Ylt2");class tl extends Pe.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new el(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let a;if(this.closed)throw new Qo.a;if(this.isStopped||this.hasError?a=Ie.a.EMPTY:(this.observers.push(t),a=new Zo.a(this,t)),n&&t.add(t=new Ko(t,n)),e)for(let r=0;re&&(a=Math.max(a,s-e)),a>0&&n.splice(0,a),n}}class el{constructor(t,e){this.time=t,this.value=e}}let il=(()=>{class t{constructor(t,e){this._ngZone=t,this._platform=e,this._scrolled=new Pe.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new si.a(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(No(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ne()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Ze(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_scrollableContainsElement(t,e){let i=e.nativeElement,n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>fo(window.document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(s.F),s.Jc(bi))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(s.F),Object(s.Jc)(bi))},token:t,providedIn:"root"}),t})(),nl=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new Pe.a,this._elementScrolled=new si.a(t=>this.ngZone.runOutsideAngular(()=>fo(this.elementRef.nativeElement,"scroll").pipe(Lo(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&0!=Si()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Si()?t.left=t.right:1==Si()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const i=this.dir&&"rtl"==this.dir.value;return"start"==t?t=i?"right":"left":"end"==t&&(t=i?"left":"right"),i&&2==Si()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:i&&1==Si()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(il),s.yc(s.F),s.yc(Zi,8))},t.\u0275dir=s.tc({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),sl=(()=>{class t{constructor(t,e){this._platform=t,e.runOutsideAngular(()=>{this._change=t.isBrowser?Object(go.a)(fo(window,"resize"),fo(window,"orientationchange")):Ne(),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:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=document.documentElement,e=t.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||t.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||t.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(No(t)):this._change}_updateViewportSize(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(bi),s.Jc(s.F))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(bi),Object(s.Jc)(s.F))},token:t,providedIn:"root"}),t})(),al=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[en,_i],en]}),t})();function rl(){throw Error("Host already has a portal attached")}class ol{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&rl(),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 ll extends ol{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class cl extends ol{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}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 hl extends ol{constructor(t){super(),this.element=t instanceof s.q?t.nativeElement:t}}class dl{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()&&rl(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof ll?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof cl?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof hl?(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 ul extends dl{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,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 i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let ml=(()=>{class t extends dl{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new s.s,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 i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}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,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}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)(s.yc(s.n),s.yc(s.X),s.yc(ye.e))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[s.hc]}),t})(),pl=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();class gl{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const i=this._customTokens.get(t);return void 0!==i?i:this._parentInjector.get(t,e)}}class fl{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=mi(-this._previousScrollPosition.left),t.style.top=mi(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=n,i.scrollBehavior=s}}_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 bl(){return Error("Scroll strategy has already been attached.")}class _l{constructor(t,e,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw bl();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 yl{enable(){}disable(){}attach(){}}function vl(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function wl(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class kl{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw bl();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:i}=this._viewportRuler.getViewportSize();vl(t,[{width:e,height:i,bottom:i,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 xl=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new yl,this.close=t=>new _l(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new fl(this._viewportRuler,this._document),this.reposition=t=>new kl(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(il),s.Jc(sl),s.Jc(s.F),s.Jc(ye.e))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(il),Object(s.Jc)(sl),Object(s.Jc)(s.F),Object(s.Jc)(ye.e))},token:t,providedIn:"root"}),t})();class Cl{constructor(t){if(this.scrollStrategy=new yl,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class Sl{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Dl{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function El(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "top", "bottom" or "center".')}function Al(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". `+'Expected "start", "end" or "center".')}let Ol=(()=>{class t{constructor(t){this._attachedOverlays=[],this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEventSubscriptions>0){e[i]._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)(s.Jc(ye.e))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(ye.e))},token:t,providedIn:"root"}),t})();const Rl=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let Pl=(()=>{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||Rl){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 si.a(t=>{const e=this._keydownEvents.subscribe(t);return this._keydownEventSubscriptions++,()=>{e.unsubscribe(),this._keydownEventSubscriptions--}}),this._keydownEvents=new Pe.a,this._keydownEventSubscriptions=0,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.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(oi(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=mi(this._config.width),t.height=mi(this._config.height),t.minWidth=mi(this._config.minWidth),t.minHeight=mi(this._config.minHeight),t.maxWidth=mi(this._config.maxWidth),t.maxHeight=mi(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 i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),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",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;ui(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(Lo(Object(go.a)(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 Tl=/([A-Za-z%]+)$/;class Ml{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Pe.a,this._resizeSubscription=Ie.a.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,i=this._viewportRect,n=[];let s;for(let a of this._preferredPositions){let r=this._getOriginPoint(t,a),o=this._getOverlayPoint(r,e,a),l=this._getOverlayFit(o,e,i,a);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,r);this._canFitWithFlexibleDimensions(l,o,i)?n.push({position:a,origin:r,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(r,a)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Fl(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 i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){let{x:s,y:a}=t,r=this._getOffset(n,"x"),o=this._getOffset(n,"y");r&&(s+=r),o&&(a+=o);let l=0-a,c=a+e.height-i.height,h=this._subtractOverflows(e.width,0-s,s+e.width-i.width),d=this._subtractOverflows(e.height,l,c),u=h*d;return{visibleArea:u,isCompletelyWithinViewport:e.width*e.height===u,fitsInViewportVertically:d===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,a=Nl(this._overlayRef.getConfig().minHeight),r=Nl(this._overlayRef.getConfig().minWidth),o=t.fitsInViewportHorizontally||null!=r&&r<=s;return(t.fitsInViewportVertically||null!=a&&a<=n)&&o}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=this._viewportRect,s=Math.max(t.x+e.width-n.right,0),a=Math.max(t.y+e.height-n.bottom,0),r=Math.max(n.top-i.top-t.y,0),o=Math.max(n.left-i.left-t.x,0);let l=0,c=0;return l=e.width<=n.width?o||-s:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)c=i.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)l=t.x,o=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;o=2*e,l=t.x-e,o>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-n/2)}return{top:a,left:l,bottom:r,right:c,width:o,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=mi(i.height),n.top=mi(i.top),n.bottom=mi(i.bottom),n.width=mi(i.width),n.left=mi(i.left),n.right=mi(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=mi(t)),s&&(n.maxWidth=mi(s))}this._lastBoundingBoxSize=i,Fl(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Fl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Fl(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();Fl(i,this._getExactOverlayY(e,t,n)),Fl(i,this._getExactOverlayX(e,t,n))}else i.position="static";let r="",o=this._getOffset(e,"x"),l=this._getOffset(e,"y");o&&(r+=`translateX(${o}px) `),l&&(r+=`translateY(${l}px)`),i.transform=r.trim(),a.maxHeight&&(n?i.maxHeight=mi(a.maxHeight):s&&(i.maxHeight="")),a.maxWidth&&(n?i.maxWidth=mi(a.maxWidth):s&&(i.maxWidth="")),Fl(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=a,"bottom"===t.overlayY?n.bottom=`${this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)}px`:n.top=mi(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},a=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=`${this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)}px`:s.left=mi(a.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:wl(t,i),isOriginOutsideView:vl(t,i),isOverlayClipped:wl(e,i),isOverlayOutsideView:vl(e,i)}}_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,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.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=>{Al("originX",t.originX),El("originY",t.originY),Al("overlayX",t.overlayX),El("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&ui(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 s.q)return t.nativeElement.getBoundingClientRect();if(t instanceof HTMLElement)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function Fl(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Nl(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(Tl);return i&&"px"!==i?null:parseFloat(e)}return t||null}class Ll{constructor(t,e,i,n,s,a,r){this._preferredPositions=[],this._positionStrategy=new Ml(i,n,s,a,r).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,i,n){const s=new Sl(t,e,i,n);return this._preferredPositions.push(s),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 zl{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,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:a,maxHeight:r}=i,o=!("100%"!==n&&"100vw"!==n||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r);t.position=this._cssPosition,t.marginLeft=o?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,o?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,i=e.style;e.classList.remove("cdk-global-overlay-wrapper"),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Bl=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new zl}connectedTo(t,e,i){return new Ll(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Ml(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(sl),s.Jc(ye.e),s.Jc(bi),s.Jc(Pl))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(sl),Object(s.Jc)(ye.e),Object(s.Jc)(bi),Object(s.Jc)(Pl))},token:t,providedIn:"root"}),t})(),Vl=0,jl=(()=>{class t{constructor(t,e,i,n,s,a,r,o,l,c){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=a,this._ngZone=r,this._document=o,this._directionality=l,this._location=c}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new Cl(t);return s.direction=s.direction||this._directionality.value,new Il(n,e,i,s,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-${Vl++}`,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(s.g)),new ul(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(xl),s.Jc(Pl),s.Jc(s.n),s.Jc(Bl),s.Jc(Ol),s.Jc(s.w),s.Jc(s.F),s.Jc(ye.e),s.Jc(Zi),s.Jc(ye.n,8))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();const ql=[{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"}],$l=new s.v("cdk-connected-overlay-scroll-strategy");let Ul=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),Hl=(()=>{class t{constructor(t,e,i,n,a){this._overlay=t,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Ie.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new s.s,this.positionChange=new s.s,this.attach=new s.s,this.detach=new s.s,this.overlayKeydown=new s.s,this._templatePortal=new cl(e,i),this._scrollStrategyFactory=n,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=hi(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=hi(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=hi(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=hi(t)}get push(){return this._push}set push(t){this._push=hi(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=ql),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||Le(t)||(t.preventDefault(),this._detachOverlay())})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Cl({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)(s.yc(jl),s.yc(s.U),s.yc(s.X),s.yc($l),s.yc(Zi,8))},t.\u0275dir=s.tc({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:[s.ic]}),t})();const Xl={provide:$l,deps:[jl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Gl=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[jl,Xl],imports:[[en,pl,al],al]}),t})();function Wl(t,e=We){var i;const n=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new Yl(n,e))}class Yl{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new Kl(t,this.delay,this.scheduler))}}class Kl extends ze.a{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(Kl.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new Jl(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Yo.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Yo.createComplete()),this.unsubscribe()}}class Jl{constructor(t,e){this.time=t,this.notification=e}}const Ql=["underline"],Zl=["connectionContainer"],tc=["inputContainer"],ec=["label"];function ic(t,e){1&t&&(s.Bc(0),s.Dc(1,"div",14),s.zc(2,"div",15),s.zc(3,"div",16),s.zc(4,"div",17),s.Cc(),s.Dc(5,"div",18),s.zc(6,"div",15),s.zc(7,"div",16),s.zc(8,"div",17),s.Cc(),s.Ac())}function nc(t,e){1&t&&(s.Dc(0,"div",19),s.Vc(1,1),s.Cc())}function sc(t,e){if(1&t&&(s.Bc(0),s.Vc(1,2),s.Dc(2,"span"),s.sd(3),s.Cc(),s.Ac()),2&t){const t=s.Rc(2);s.kc(3),s.td(t._control.placeholder)}}function ac(t,e){1&t&&s.Vc(0,3,["*ngSwitchCase","true"])}function rc(t,e){1&t&&(s.Dc(0,"span",23),s.sd(1," *"),s.Cc())}function oc(t,e){if(1&t){const t=s.Ec();s.Dc(0,"label",20,21),s.Nc("cdkObserveContent",(function(){return s.id(t),s.Rc().updateOutlineGap()})),s.qd(2,sc,4,1,"ng-container",12),s.qd(3,ac,1,0,void 0,12),s.qd(4,rc,2,0,"span",22),s.Cc()}if(2&t){const t=s.Rc();s.oc("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),s.Xc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.lc("for",t._control.id)("aria-owns",t._control.id),s.kc(2),s.Xc("ngSwitchCase",!1),s.kc(1),s.Xc("ngSwitchCase",!0),s.kc(1),s.Xc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function lc(t,e){1&t&&(s.Dc(0,"div",24),s.Vc(1,4),s.Cc())}function cc(t,e){if(1&t&&(s.Dc(0,"div",25,26),s.zc(2,"span",27),s.Cc()),2&t){const t=s.Rc();s.kc(2),s.oc("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function hc(t,e){if(1&t&&(s.Dc(0,"div"),s.Vc(1,5),s.Cc()),2&t){const t=s.Rc();s.Xc("@transitionMessages",t._subscriptAnimationState)}}function dc(t,e){if(1&t&&(s.Dc(0,"div",31),s.sd(1),s.Cc()),2&t){const t=s.Rc(2);s.Xc("id",t._hintLabelId),s.kc(1),s.td(t.hintLabel)}}function uc(t,e){if(1&t&&(s.Dc(0,"div",28),s.qd(1,dc,2,2,"div",29),s.Vc(2,6),s.zc(3,"div",30),s.Vc(4,7),s.Cc()),2&t){const t=s.Rc();s.Xc("@transitionMessages",t._subscriptAnimationState),s.kc(1),s.Xc("ngIf",t.hintLabel)}}const mc=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],pc=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let gc=0,fc=(()=>{class t{constructor(){this.id=`mat-error-${gc++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.lc("id",e.id)},inputs:{id:"id"}}),t})();const bc={transitionMessages:r("transitionMessages",[d("enter",h({opacity:1,transform:"translateY(0%)"})),m("void => enter",[h({opacity:0,transform:"translateY(-100%)"}),o("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let _c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t}),t})();function yc(t){return Error(`A hint was already declared for 'align="${t}"'.`)}let vc=0,wc=(()=>{class t{constructor(){this.align="start",this.id=`mat-hint-${vc++}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.lc("id",e.id)("align",null),s.oc("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t})(),kc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-label"]]}),t})(),xc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-placeholder"]]}),t})(),Cc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","matPrefix",""]]}),t})(),Sc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","matSuffix",""]]}),t})(),Dc=0;class Ec{constructor(t){this._elementRef=t}}const Ac=fn(Ec,"primary"),Oc=new s.v("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Rc=(()=>{class t extends Ac{constructor(t,e,i,n,s,a,r,o){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=a,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Pe.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId=`mat-hint-${Dc++}`,this._labelId=`mat-form-field-label-${Dc++}`,this._labelOptions=i||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.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=hi(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(on(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Lo(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(Lo(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(go.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(on(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(on(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Lo(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._showAlwaysAnimate=!0,fo(this._label.nativeElement,"transitionend").pipe(oi(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(i=>{if("start"===i.align){if(t||this.hintLabel)throw yc("start");t=i}else if("end"===i.align){if(e)throw yc("end");e=i}})}}_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,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.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,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),a=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const a=this._getStartEnd(s),r=this._getStartEnd(t.children[0].getBoundingClientRect());let o=0;for(const e of t.children)o+=e.offsetWidth;e=r-a-5,i=o>0?.75*o+10:0}for(let r=0;r{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,Ri]]}),t})();const Ic=["panel"];function Tc(t,e){if(1&t&&(s.Dc(0,"div",0,1),s.Vc(2),s.Cc()),2&t){const t=s.Rc();s.Xc("id",t.id)("ngClass",t._classList)}}const Mc=["*"];let Fc=0;class Nc{constructor(t,e){this.source=t,this.option=e}}class Lc{}const zc=bn(Lc),Bc=new s.v("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let Vc=(()=>{class t extends zc{constructor(t,e,i){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=Ie.a.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new s.s,this.opened=new s.s,this.closed=new s.s,this.optionActivated=new s.s,this._classList={},this.id=`mat-autocomplete-${Fc++}`,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=hi(t)}set classList(t){this._classList=t&&t.length?t.split(" ").reduce((t,e)=>(t[e.trim()]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new Li(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new Nc(this,t);this.optionSelected.emit(e)}_setVisibilityClasses(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.j),s.yc(s.q),s.yc(Bc))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,es,!0),s.qc(i,Kn,!0)),2&t&&(s.dd(n=s.Oc())&&(e.options=n),s.dd(n=s.Oc())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(s.od(s.U,!0),s.wd(Ic,!0)),2&t&&(s.dd(i=s.Oc())&&(e.template=i.first),s.dd(i=s.Oc())&&(e.panel=i.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[s.jc([{provide:ts,useExisting:t}]),s.hc],ngContentSelectors:Mc,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(s.Wc(),s.qd(0,Tc,3,2,"ng-template"))},directives:[ye.q],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),jc=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),t})();const qc=new s.v("mat-autocomplete-scroll-strategy"),$c={provide:qc,deps:[jl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},Uc={provide:ws,useExisting:Object(s.cb)(()=>Hc),multi:!0};let Hc=(()=>{class t{constructor(t,e,i,n,s,a,r,o,l,c){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=n,this._changeDetectorRef=s,this._dir=r,this._formField=o,this._document=l,this._viewportRuler=c,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Ie.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Pe.a,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=po(()=>this.autocomplete&&this.autocomplete.options?Object(go.a)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.asObservable().pipe(oi(1),jo(()=>this.optionSelections))),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=hi(t)}ngAfterViewInit(){if("undefined"!=typeof window&&(this._zone.runOutsideAngular(()=>{window.addEventListener("blur",this._windowBlurHandler)}),Di())){const t=this._element.nativeElement,e=t.getRootNode?t.getRootNode():null;this._isInsideShadowRoot=e instanceof window.ShadowRoot}}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){"undefined"!=typeof window&&window.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Object(go.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ze(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ze(()=>this._overlayAttached)):Ne()).pipe(Object(ii.a)(t=>t instanceof Zn?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Object(go.a)(fo(this._document,"click"),fo(this._document,"touchend")).pipe(Ze(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(27===e&&t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,n=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption()}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_scrollToOption(){const t=this.autocomplete._keyManager.activeItemIndex||0,e=is(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{const i=ns(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(i)}}_subscribeToClosingActions(){const t=this._zone.onStable.asObservable().pipe(oi(1)),e=this.autocomplete.options.changes.pipe(je(()=>this._positionStrategy.reapplyLastPosition()),Wl(0));return Object(go.a)(t,e).pipe(jo(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),oi(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!=t&&e.selected&&e.deselect()})}_attachOverlay(){if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new cl(this.autocomplete.template,this._viewContainerRef),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe(t=>{(27===t.keyCode||38===t.keyCode&&t.altKey)&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()})}))),t&&!t.hasAttached()&&(t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const e=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&e!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new Cl({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e={originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},i={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"};let n;n="above"===this.position?[i]:"below"===this.position?[e]:[e,i],t.withPositions(n)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(jl),s.yc(s.X),s.yc(s.F),s.yc(s.j),s.yc(qc),s.yc(Zi,8),s.yc(Rc,9),s.yc(ye.e,8),s.yc(sl))},t.\u0275dir=s.tc({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&s.Nc("focusin",(function(){return e._handleFocus()}))("blur",(function(){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&s.lc("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen?null:null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[s.jc([Uc]),s.ic]}),t})(),Xc=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[$c],imports:[[ss,Gl,pn,ye.c],ss,pn]}),t})();function Gc(t,e){}class Wc{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 Yc={dialogContainer:r("dialogContainer",[d("void, exit",h({opacity:0,transform:"scale(0.7)"})),d("enter",h({transform:"none"})),m("* => enter",o("150ms cubic-bezier(0, 0, 0.2, 1)",h({transform:"none",opacity:1}))),m("* => void, * => exit",o("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",h({opacity:0})))])};function Kc(){throw Error("Attempting to attach dialog content after content is already attached")}let Jc=(()=>{class t extends dl{constructor(t,e,i,n,a){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=a,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new s.s,this.attachDomPortal=t=>(this._portalOutlet.hasAttached()&&Kc(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=a.ariaLabelledBy||null,this._document=n}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&Kc(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&Kc(),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,i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.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)(s.yc(s.q),s.yc($i),s.yc(s.j),s.yc(ye.e,8),s.yc(Wc))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var i;1&t&&s.od(ml,!0),2&t&&s.dd(i=s.Oc())&&(e._portalOutlet=i.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.pc("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(s.lc("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),s.vd("@dialogContainer",e._state))},features:[s.hc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.qd(0,Gc,0,0,"ng-template",0)},directives:[ml],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:[Yc.dialogContainer]}}),t})(),Qc=0;class Zc{constructor(t,e,i=`mat-dialog-${Qc++}`){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Pe.a,this._afterClosed=new Pe.a,this._beforeClosed=new Pe.a,this._state=0,e._id=i,e._animationStateChanged.pipe(Ze(t=>"done"===t.phaseName&&"enter"===t.toState),oi(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Ze(t=>"done"===t.phaseName&&"exit"===t.toState),oi(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(Ze(t=>27===t.keyCode&&!this.disableClose&&!Le(t))).subscribe(t=>{t.preventDefault(),this.close()})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Ze(t=>"start"===t.phaseName),oi(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 th=new s.v("MatDialogData"),eh=new s.v("mat-dialog-default-options"),ih=new s.v("mat-dialog-scroll-strategy"),nh={provide:ih,deps:[jl],useFactory:function(t){return()=>t.scrollStrategies.block()}};let sh=(()=>{class t{constructor(t,e,i,n,s,a,r){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=a,this._overlayContainer=r,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pe.a,this._afterOpenedAtThisLevel=new Pe.a,this._ariaHiddenElements=new Map,this.afterAllClosed=po(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(on(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}get _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 Wc)).id&&this.getDialogById(e.id))throw Error(`Dialog with id "${e.id}" exists already. The dialog id must be unique.`);const i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(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 Cl({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 i=s.w.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Wc,useValue:e}]}),n=new ll(Jc,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const a=new Zc(i,e,n.id);if(n.hasBackdrop&&i.backdropClick().subscribe(()=>{a.disableClose||a.close()}),t instanceof s.U)e.attachTemplatePortal(new cl(t,null,{$implicit:n.data,dialogRef:a}));else{const i=this._createInjector(n,a,e),s=e.attachComponentPortal(new ll(t,n.viewContainerRef,i));a.componentInstance=s.instance}return a.updateSize(n.width,n.height).updatePosition(n.position),a}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,a=[{provide:Jc,useValue:i},{provide:th,useValue:t.data},{provide:Zc,useValue:e}];return!t.direction||n&&n.get(Zi,null)||a.push({provide:Zi,useValue:{value:t.direction,change:Ne()}}),s.w.create({parent:n||this._injector,providers:a})}_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 i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(jl),s.Jc(s.w),s.Jc(ye.n,8),s.Jc(eh,8),s.Jc(ih),s.Jc(t,12),s.Jc(Pl))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),ah=0,rh=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=hh(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)(s.yc(Zc,8),s.yc(s.q),s.yc(sh))},t.\u0275dir=s.tc({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.Nc("click",(function(){return e.dialogRef.close(e.dialogResult)})),2&t&&s.lc("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:[s.ic]}),t})(),oh=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id=`mat-dialog-title-${ah++}`}ngOnInit(){this._dialogRef||(this._dialogRef=hh(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)(s.yc(Zc,8),s.yc(s.q),s.yc(sh))},t.\u0275dir=s.tc({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&s.Gc("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),lh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),ch=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function hh(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}let dh=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[sh,nh],imports:[[Gl,pl,pn],pn]}),t})(),uh=0,mh=(()=>{class t{constructor(){this._stateChanges=new Pe.a,this._openCloseAllActions=new Pe.a,this.id=`cdk-accordion-${uh++}`,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=hi(t)}openAll(){this._openCloseAll(!0)}closeAll(){this._openCloseAll(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete()}_openCloseAll(t){this.multi&&this._openCloseAllActions.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[s.ic]}),t})(),ph=0,gh=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=Ie.a.EMPTY,this.closed=new s.s,this.opened=new s.s,this.destroyed=new s.s,this.expandedChange=new s.s,this.id=`cdk-accordion-child-${ph++}`,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=hi(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(mh,12),s.yc(s.j),s.yc(gs))},t.\u0275dir=s.tc({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[s.jc([{provide:mh,useValue:void 0}])]}),t})(),fh=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();const bh=["body"];function _h(t,e){}const yh=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],vh=["mat-expansion-panel-header","*","mat-action-row"],wh=function(t,e){return{collapsedHeight:t,expandedHeight:e}},kh=function(t,e){return{value:t,params:e}};function xh(t,e){if(1&t&&s.zc(0,"span",2),2&t){const t=s.Rc();s.Xc("@indicatorRotate",t._getExpandedState())}}const Ch=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Sh=["mat-panel-title","mat-panel-description","*"],Dh=new s.v("MAT_ACCORDION"),Eh={indicatorRotate:r("indicatorRotate",[d("collapsed, void",h({transform:"rotate(0deg)"})),d("expanded",h({transform:"rotate(180deg)"})),m("expanded <=> collapsed, void => collapsed",o("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:r("expansionHeight",[d("collapsed, void",h({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),d("expanded",h({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),m("expanded <=> collapsed, void => collapsed",l([g("@indicatorRotate",p(),{optional:!0}),o("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:r("bodyExpansion",[d("collapsed, void",h({height:"0px",visibility:"hidden"})),d("expanded",h({height:"*",visibility:"visible"})),m("expanded <=> collapsed, void => collapsed",o("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let Ah=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.U))},t.\u0275dir=s.tc({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),Oh=0;const Rh=new s.v("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Ph=(()=>{class t extends gh{constructor(t,e,i,n,a,r,o){super(t,e,i),this._viewContainerRef=n,this._animationMode=r,this._hideToggle=!1,this.afterExpand=new s.s,this.afterCollapse=new s.s,this._inputChanges=new Pe.a,this._headerId=`mat-expansion-panel-header-${Oh++}`,this._bodyAnimationDone=new Pe.a,this.accordion=t,this._document=a,this._bodyAnimationDone.pipe(Do((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=hi(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(on(null),Ze(()=>this.expanded&&!this._portal),oi(1)).subscribe(()=>{this._portal=new cl(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Dh,12),s.yc(s.j),s.yc(gs),s.yc(s.X),s.yc(ye.e),s.yc(Ae,8),s.yc(Rh,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Ah,!0),2&t&&s.dd(n=s.Oc())&&(e._lazyContent=n.first)},viewQuery:function(t,e){var i;1&t&&s.wd(bh,!0),2&t&&s.dd(i=s.Oc())&&(e._body=i.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&s.oc("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[s.jc([{provide:Dh,useValue:void 0}]),s.hc,s.ic],ngContentSelectors:vh,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(s.Wc(yh),s.Vc(0),s.Dc(1,"div",0,1),s.Nc("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),s.Dc(3,"div",2),s.Vc(4,1),s.qd(5,_h,0,0,"ng-template",3),s.Cc(),s.Vc(6,2),s.Cc()),2&t&&(s.kc(1),s.Xc("@bodyExpansion",e._getExpandedState())("id",e.id),s.lc("aria-labelledby",e._headerId),s.kc(4),s.Xc("cdkPortalOutlet",e._portal))},directives:[ml],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Eh.bodyExpansion]},changeDetection:0}),t})(),Ih=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),t})(),Th=(()=>{class t{constructor(t,e,i,n,s){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._parentChangeSubscription=Ie.a.EMPTY,this._animationsDisabled=!0;const a=t.accordion?t.accordion._stateChanges.pipe(Ze(t=>!(!t.hideToggle&&!t.togglePosition))):ai;this._parentChangeSubscription=Object(go.a)(t.opened,t.closed,a,t._inputChanges.pipe(Ze(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Ze(()=>t._containsFocus())).subscribe(()=>i.focusVia(e,"program")),i.monitor(e).subscribe(e=>{e&&t.accordion&&t.accordion._handleHeaderFocus(this)}),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}_animationStarted(){this._animationsDisabled=!1}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_keydown(t){switch(t.keyCode){case 32:case 13:Le(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t="program",e){this._focusMonitor.focusVia(this._element,t,e)}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Ph,1),s.yc(s.q),s.yc(Wi),s.yc(s.j),s.yc(Rh,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header"],hostVars:19,hostBindings:function(t,e){1&t&&(s.pc("@expansionHeight.start",(function(){return e._animationStarted()})),s.Nc("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(s.lc("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),s.vd("@.disabled",e._animationsDisabled)("@expansionHeight",s.bd(16,kh,e._getExpandedState(),s.bd(13,wh,e.collapsedHeight,e.expandedHeight))),s.oc("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:Sh,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(s.Wc(Ch),s.Dc(0,"span",0),s.Vc(1),s.Vc(2,1),s.Vc(3,2),s.Cc(),s.qd(4,xh,1,1,"span",1)),2&t&&(s.kc(4),s.Xc("ngIf",e._showToggle()))},directives:[ye.t],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[Eh.indicatorRotate,Eh.expansionHeaderHeight]},changeDetection:0}),t})(),Mh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),Fh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),Nh=(()=>{class t extends mh{constructor(){super(...arguments),this._ownHeaders=new s.K,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=hi(t)}ngAfterContentInit(){this._headers.changes.pipe(on(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new zi(this._ownHeaders).withWrap()}_handleHeaderKeydown(t){const{keyCode:e}=t,i=this._keyManager;36===e?Le(t)||(i.setFirstItemActive(),t.preventDefault()):35===e?Le(t)||(i.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}}return t.\u0275fac=function(e){return Lh(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Th,!0),2&t&&s.dd(n=s.Oc())&&(e._headers=n)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&s.oc("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[s.jc([{provide:Dh,useExisting:t}]),s.hc]}),t})();const Lh=s.Fc(Nh);let zh=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,fh,pl]]}),t})();const Bh=["*"],Vh=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],jh=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],qh=new s.v("MAT_GRID_LIST");let $h=(()=>{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(di(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round(di(t))}_setStyle(t,e){this._element.nativeElement.style[t]=e}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(qh,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&s.lc("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:Bh,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(s.Wc(),s.Dc(0,"figure",0),s.Vc(1),s.Cc())},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})(),Uh=(()=>{class t{constructor(t){this._element=t}ngAfterContentInit(){Fn(this._lines,this._element)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Mn,!0),2&t&&s.dd(n=s.Oc())&&(e._lines=n)},ngContentSelectors:jh,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(t,e){1&t&&(s.Wc(Vh),s.Vc(0),s.Dc(1,"div",0),s.Vc(2,1),s.Cc(),s.Vc(3,2))},encapsulation:2,changeDetection:0}),t})(),Hh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),t})(),Xh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),t})(),Gh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),t})();class Wh{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 Yh(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,i=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)):(e=this.tracker.indexOf(0,this.columnIndex),-1!=e?(i=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),i=this._findGapEndIndex(e)))}while(i-e{t._setStyle("top",null),t._setStyle("height",null)})}}class Zh extends Jh{constructor(t){super(),this._parseRatio(t)}setRowStyles(t,e,i,n){this.baseTileHeight=this.getBaseTileSize(i/this.rowHeightRatio,n),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",ed(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",ed(`${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 td extends Jh{setRowStyles(t,e){let i=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(i,e)),t._setStyle("height",ed(this.getTileSize(i,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function ed(t){return`calc(${t})`}function id(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}let nd=(()=>{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(di(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 td:t&&t.indexOf(":")>-1?new Zh(t):new Qh(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new Wh);const t=this._tileCoordinator,e=this._tiles.filter(t=>!t._gridList||t._gridList===this),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,e),this._tileStyler.init(this.gutterSize,t,this.cols,i),e.forEach((e,i)=>{const n=t.positions[i];this._tileStyler.setStyle(e,n.row,n.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)(s.yc(s.q),s.yc(Zi,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,$h,!0),2&t&&s.dd(n=s.Oc())&&(e._tiles=n)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&s.lc("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[s.jc([{provide:qh,useExisting:t}])],ngContentSelectors:Bh,decls:2,vars:0,template:function(t,e){1&t&&(s.Wc(),s.Dc(0,"div"),s.Vc(1),s.Cc())},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})(),sd=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Ln,pn],Ln,pn]}),t})();function ad(t){return function(e){const i=new rd(t),n=e.lift(i);return i.caught=n}}class rd{constructor(t){this.selector=t}call(t,e){return e.subscribe(new od(t,this.selector,this.caught))}}class od extends Oo.a{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const n=new Vo.a(this,void 0,void 0);this.add(n),Object(Ro.a)(this,i,void 0,void 0,n)}}}function ld(t){return e=>e.lift(new cd(t))}class cd{constructor(t){this.callback=t}call(t,e){return e.subscribe(new hd(t,this.callback))}}class hd extends ze.a{constructor(t,e){super(t),this.add(new Ie.a(e))}}var dd=i("w1tV"),ud=i("5+tZ");function md(t,e){return Object(ud.a)(t,e,1)}class pd{}class gd{}class fd{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 i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}: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 fd?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 fd;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof fd?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 i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.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 bd{encodeKey(t){return _d(t)}encodeValue(t){return _d(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function _d(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 yd{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new bd,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.split("&").forEach(t=>{const n=t.indexOf("="),[s,a]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],r=i.get(s)||[];r.push(a),i.set(s,r)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):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 yd({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 i=e.indexOf(t.value);-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function vd(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function wd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function kd(t){return"undefined"!=typeof FormData&&t instanceof FormData}class xd{constructor(t,e,i,n){let s;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)||n?(this.body=void 0!==i?i:null,s=n):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new fd),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),o)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new xd(e,i,s,{params:l,headers:o,reportProgress:r,responseType:n,withCredentials:a})}}const Cd=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 Sd{constructor(t,e=200,i="OK"){this.headers=t.headers||new fd,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Dd extends Sd{constructor(t={}){super(t),this.type=Cd.ResponseHeader}clone(t={}){return new Dd({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 Ed extends Sd{constructor(t={}){super(t),this.type=Cd.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ed({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 Ad extends Sd{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 Od(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Rd=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof xd)n=t;else{let s=void 0;s=i.headers instanceof fd?i.headers:new fd(i.headers);let a=void 0;i.params&&(a=i.params instanceof yd?i.params:new yd({fromObject:i.params})),n=new xd(t,e,void 0!==i.body?i.body:null,{headers:s,params:a,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const s=Ne(n).pipe(md(t=>this.handler.handle(t)));if(t instanceof xd||"events"===i.observe)return s;const a=s.pipe(Ze(t=>t instanceof Ed));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return a.pipe(Object(ii.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return a.pipe(Object(ii.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return a.pipe(Object(ii.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return a.pipe(Object(ii.a)(t=>t.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.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 yd).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,Od(i,e))}post(t,e,i={}){return this.request("POST",t,Od(i,e))}put(t,e,i={}){return this.request("PUT",t,Od(i,e))}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(pd))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class Pd{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Id=new s.v("HTTP_INTERCEPTORS");let Td=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();const Md=/^\)\]\}',?\n/;class Fd{}let Nd=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Ld=(()=>{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 si.a(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",a=new fd(i.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new Dd({headers:a,status:e,statusText:n,url:r}),s},r=()=>{let{headers:n,status:s,statusText:r,url:o}=a(),l=null;204!==s&&(l=void 0===i.response?i.responseText:i.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Md,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new Ed({body:l,headers:n,status:s,statusText:r,url:o||void 0})),e.complete()):e.error(new Ad({error:l,headers:n,status:s,statusText:r,url:o||void 0}))},o=t=>{const{url:n}=a(),s=new Ad({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let l=!1;const c=n=>{l||(e.next(a()),l=!0);let s={type:Cd.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},h=t=>{let i={type:Cd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",r),i.addEventListener("error",o),t.reportProgress&&(i.addEventListener("progress",c),null!==n&&i.upload&&i.upload.addEventListener("progress",h)),i.send(n),e.next({type:Cd.Sent}),()=>{i.removeEventListener("error",o),i.removeEventListener("load",r),t.reportProgress&&(i.removeEventListener("progress",c),null!==n&&i.upload&&i.upload.removeEventListener("progress",h)),i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(Fd))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();const zd=new s.v("XSRF_COOKIE_NAME"),Bd=new s.v("XSRF_HEADER_NAME");class Vd{}let jd=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,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=Object(ye.O)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(ye.e),s.Jc(s.I),s.Jc(zd))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),qd=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(Vd),s.Jc(Bd))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),$d=(()=>{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(Id,[]);this.chain=t.reduceRight((t,e)=>new Pd(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(gd),s.Jc(s.w))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Ud=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:qd,useClass:Td}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:zd,useValue:e.cookieName}:[],e.headerName?{provide:Bd,useValue:e.headerName}:[]]}}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[qd,{provide:Id,useExisting:qd,multi:!0},{provide:Vd,useClass:jd},{provide:zd,useValue:"XSRF-TOKEN"},{provide:Bd,useValue:"X-XSRF-TOKEN"}]}),t})(),Hd=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Rd,{provide:pd,useClass:$d},Ld,{provide:gd,useExisting:Ld},Nd,{provide:Fd,useExisting:Nd}],imports:[[Ud.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();const Xd=["*"];function Gd(t){return Error(`Unable to find icon with the name "${t}"`)}function Wd(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+`via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Yd(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+`Angular's DomSanitizer. Attempted literal was "${t}".`)}class Kd{constructor(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}let Jd=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new Kd(i,n))}addSvgIconLiteralInNamespace(t,e,i,n){const a=this._sanitizer.sanitize(s.P.HTML,i);if(!a)throw Yd(i);const r=this._createSvgElementForSingleIcon(a,n);return this._addSvgIconConfig(t,e,new Kd(r,n))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new Kd(e,i))}addSvgIconSetLiteralInNamespace(t,e,i){const n=this._sanitizer.sanitize(s.P.HTML,e);if(!n)throw Yd(e);const a=this._svgElementFromString(n);return this._addSvgIconSetConfig(t,new Kd(a,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(s.P.RESOURCE_URL,t);if(!e)throw Wd(t);const i=this._cachedIconsByUrl.get(e);return i?Ne(Qd(i)):this._loadSvgIconFromConfig(new Kd(t)).pipe(je(t=>this._cachedIconsByUrl.set(e,t)),Object(ii.a)(t=>Qd(t)))}getNamedSvgIcon(t,e=""){const i=Zd(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Go(Gd(i))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgElement?Ne(Qd(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(je(e=>t.svgElement=e),Object(ii.a)(t=>Qd(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);return i?Ne(i):ys(e.filter(t=>!t.svgElement).map(t=>this._loadSvgIconSetFromConfig(t).pipe(ad(e=>{const i=`Loading icon set URL: ${this._sanitizer.sanitize(s.P.RESOURCE_URL,t.url)} failed: ${e.message}`;return this._errorHandler?this._errorHandler.handleError(new Error(i)):console.error(i),Ne(null)})))).pipe(Object(ii.a)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw Gd(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgElement){const e=this._extractSvgIconFromSet(n.svgElement,t,n.options);if(e)return e}}return null}_loadSvgIconFromConfig(t){return this._fetchUrl(t.url).pipe(Object(ii.a)(e=>this._createSvgElementForSingleIcon(e,t.options)))}_loadSvgIconSetFromConfig(t){return t.svgElement?Ne(t.svgElement):this._fetchUrl(t.url).pipe(Object(ii.a)(e=>(t.svgElement||(t.svgElement=this._svgElementFromString(e)),t.svgElement)))}_createSvgElementForSingleIcon(t,e){const i=this._svgElementFromString(t);return this._setSvgAttributes(i,e),i}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const a=this._svgElementFromString("");return a.appendChild(s),this._setSvgAttributes(a,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(e)),Object(dd.a)());return this._inProgressUrlFetches.set(e,n),n}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(Zd(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(Rd,8),s.Jc(n.b),s.Jc(ye.e,8),s.Jc(s.r,8))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(Rd,8),Object(s.Jc)(n.b),Object(s.Jc)(ye.e,8),Object(s.Jc)(s.r,8))},token:t,providedIn:"root"}),t})();function Qd(t){return t.cloneNode(!0)}function Zd(t,e){return t+":"+e}class tu{constructor(t){this._elementRef=t}}const eu=fn(tu),iu=new s.v("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(s.db)(ye.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),nu=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],su=nu.map(t=>`[${t}]`).join(", "),au=/^url\(['"]?#(.*?)['"]?\)$/;let ru=(()=>{class t extends eu{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=hi(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnChanges(t){const e=t.svgIcon;if(e)if(this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);this._iconRegistry.getNamedSvgIcon(e,t).pipe(oi(1)).subscribe(t=>this._setSvgElement(t),i=>{const n=`Error retrieving icon ${t}:${e}! ${i.message}`;this._errorHandler?this._errorHandler.handleError(new Error(n)):console.error(n)})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&this._location&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(su),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],a=s.getAttribute(t),r=a?a.match(au):null;if(r){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:r[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(Jd),s.Kc("aria-hidden"),s.yc(iu,8),s.yc(s.r,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(t,e){2&t&&s.oc("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[s.hc,s.ic],ngContentSelectors:Xd,decls:1,vars:0,template:function(t,e){1&t&&(s.Wc(),s.Vc(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),ou=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn],pn]}),t})();const lu=Ci({passive:!0});let cu=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return ai;const e=pi(t),i=this._monitoredElements.get(e);if(i)return i.subject.asObservable();const n=new Pe.a,s="cdk-text-field-autofilled",a=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",a,lu),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",a,lu)}}),n.asObservable()}stopMonitoring(t){const e=pi(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.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)(s.Jc(bi),s.Jc(s.F))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(bi),Object(s.Jc)(s.F))},token:t,providedIn:"root"}),t})(),hu=(()=>{class t{constructor(t,e){this._elementRef=t,this._autofillMonitor=e,this.cdkAutofill=new s.s}ngOnInit(){this._autofillMonitor.monitor(this._elementRef).subscribe(t=>this.cdkAutofill.emit(t))}ngOnDestroy(){this._autofillMonitor.stopMonitoring(this._elementRef)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(cu))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),t})(),du=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._platform=e,this._ngZone=i,this._destroyed=new Pe.a,this._enabled=!0,this._previousMinRows=-1,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(t){this._minRows=di(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=di(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=hi(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{fo(window,"resize").pipe(No(16),Lo(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,i=e.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;const n=e.placeholder;e.classList.add("cdk-textarea-autosize-measuring"),e.placeholder="",e.style.height=`${e.scrollHeight-4}px`,e.classList.remove("cdk-textarea-autosize-measuring"),e.placeholder=n,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=i,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(t){const{selectionStart:e,selectionEnd:i}=t;this._destroyed.isStopped||document.activeElement!==t||t.setSelectionRange(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(bi),s.yc(s.F))},t.\u0275dir=s.tc({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&s.Nc("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t})(),uu=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[_i]]}),t})(),mu=(()=>{class t extends du{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(e){return pu(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[s.hc]}),t})();const pu=s.Fc(mu),gu=new s.v("MAT_INPUT_VALUE_ACCESSOR"),fu=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let bu=0;class _u{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const yu=yn(_u);let vu=(()=>{class t extends yu{constructor(t,e,i,n,s,a,r,o,l){super(a,n,s,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=o,this._uid=`mat-input-${bu++}`,this._isServer=!1,this._isNativeSelect=!1,this.focused=!1,this.stateChanges=new Pe.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>vi().has(t));const c=this._elementRef.nativeElement;this._inputValueAccessor=r||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=hi(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=hi(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&vi().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=hi(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(fu.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)(s.yc(s.q),s.yc(bi),s.yc(Ps,10),s.yc(Ta,8),s.yc(Ga,8),s.yc(Tn),s.yc(gu,10),s.yc(cu),s.yc(s.F))},t.\u0275dir=s.tc({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&&s.Nc("blur",(function(){return e._focusChanged(!1)}))("focus",(function(){return e._focusChanged(!0)}))("input",(function(){return e._onInput()})),2&t&&(s.Gc("disabled",e.disabled)("required",e.required),s.lc("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()),s.oc("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:[s.jc([{provide:_c,useExisting:t}]),s.hc,s.ic]}),t})(),wu=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Tn],imports:[[uu,Pc],uu,Pc]}),t})(),ku=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=hi(t)}get inset(){return this._inset}set inset(t){this._inset=hi(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(s.lc("aria-orientation",e.vertical?"vertical":"horizontal"),s.oc("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),xu=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn],pn]}),t})();const Cu=["*"],Su=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Du=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Eu=["text"];function Au(t,e){if(1&t&&s.zc(0,"mat-pseudo-checkbox",5),2&t){const t=s.Rc();s.Xc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const Ou=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Ru=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];class Pu{}const Iu=gn(bn(Pu));class Tu{}const Mu=bn(Tu);let Fu=(()=>{class t extends Iu{constructor(){super(...arguments),this._stateChanges=new Pe.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return Nu(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s.hc,s.ic],ngContentSelectors:Cu,decls:1,vars:0,template:function(t,e){1&t&&(s.Wc(),s.Vc(0))},styles:[".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"],encapsulation:2,changeDetection:0}),t})();const Nu=s.Fc(Fu);let Lu=(()=>{class t extends Iu{constructor(t){super(),this._elementRef=t,this._stateChanges=new Pe.a,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[s.hc,s.ic],ngContentSelectors:Cu,decls:1,vars:0,template:function(t,e){1&t&&(s.Wc(),s.Vc(0))},styles:[".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"],encapsulation:2,changeDetection:0}),t})(),zu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),Bu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),Vu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),ju=(()=>{class t extends Mu{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new Pe.a,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Lo(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=hi(t)}ngAfterContentInit(){Fn(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.j),s.yc(Fu,8),s.yc(Lu,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,zu,!0),s.qc(i,Bu,!0),s.qc(i,Mn,!0)),2&t&&(s.dd(n=s.Oc())&&(e._avatar=n.first),s.dd(n=s.Oc())&&(e._icon=n.first),s.dd(n=s.Oc())&&(e._lines=n))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.oc("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.hc],ngContentSelectors:Du,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(s.Wc(Su),s.Dc(0,"div",0),s.zc(1,"div",1),s.Vc(2),s.Dc(3,"div",2),s.Vc(4,1),s.Cc(),s.Vc(5,2),s.Cc()),2&t&&(s.kc(1),s.Xc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[$n],encapsulation:2,changeDetection:0}),t})();class qu{}const $u=bn(qu);class Uu{}const Hu=bn(Uu),Xu={provide:ws,useExisting:Object(s.cb)(()=>Yu),multi:!0};class Gu{constructor(t,e){this.source=t,this.option=e}}let Wu=(()=>{class t extends Hu{constructor(t,e,i){super(),this._element=t,this._changeDetector=e,this.selectionList=i,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(t){this._color=t}get value(){return this._value}set value(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(t){const e=hi(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(t){const e=hi(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}ngOnInit(){const t=this.selectionList;t._value&&t._value.some(e=>t.compareWith(e,this._value))&&this._setSelected(!0);const e=this._selected;Promise.resolve().then(()=>{(this._selected||e)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){Fn(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const t=this._hasFocus,e=this.selectionList._removeOptionFromList(this);t&&e&&e.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.j),s.yc(Object(s.cb)(()=>Yu)))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-list-option"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,zu,!0),s.qc(i,Bu,!0),s.qc(i,Mn,!0)),2&t&&(s.dd(n=s.Oc())&&(e._avatar=n.first),s.dd(n=s.Oc())&&(e._icon=n.first),s.dd(n=s.Oc())&&(e._lines=n))},viewQuery:function(t,e){var i;1&t&&s.wd(Eu,!0),2&t&&s.dd(i=s.Oc())&&(e._text=i.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.Nc("focus",(function(){return e._handleFocus()}))("blur",(function(){return e._handleBlur()}))("click",(function(){return e._handleClick()})),2&t&&(s.lc("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),s.oc("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[s.hc],ngContentSelectors:Ru,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&(s.Wc(Ou),s.Dc(0,"div",0),s.zc(1,"div",1),s.qd(2,Au,1,2,"mat-pseudo-checkbox",2),s.Dc(3,"div",3,4),s.Vc(5),s.Cc(),s.Vc(6,1),s.Cc()),2&t&&(s.oc("mat-list-item-content-reverse","after"==e.checkboxPosition),s.kc(1),s.Xc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),s.kc(1),s.Xc("ngIf",e.selectionList.multiple))},directives:[$n,ye.t,Hn],encapsulation:2,changeDetection:0}),t})(),Yu=(()=>{class t extends $u{constructor(t,e,i){super(),this._element=t,this._changeDetector=i,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new s.s,this.tabIndex=0,this.color="accent",this.compareWith=(t,e)=>t===e,this._disabled=!1,this.selectedOptions=new ps(this._multiple),this._tabIndex=-1,this._onChange=t=>{},this._destroyed=new Pe.a,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(t){const e=hi(t);if(e!==this._multiple){if(Object(s.eb)()&&this._contentInitialized)throw new Error("Cannot change `multiple` mode of mat-selection-list after initialization.");this._multiple=e,this.selectedOptions=new ps(this._multiple,this.selectedOptions.selected)}}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new zi(this.options).withWrap().withTypeAhead().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Lo(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(on(null),Lo(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Lo(this._destroyed)).subscribe(t=>{if(t.added)for(let e of t.added)e.selected=!0;if(t.removed)for(let e of t.removed)e.selected=!1})}ngOnChanges(t){const e=t.disableRipple,i=t.color;(e&&!e.firstChange||i&&!i.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(t){this._element.nativeElement.focus(t)}selectAll(){this._setAllOptionsSelected(!0)}deselectAll(){this._setAllOptionsSelected(!1)}_setFocusedOption(t){this._keyManager.updateActiveItem(t)}_removeOptionFromList(t){const e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}_keydown(t){const e=t.keyCode,i=this._keyManager,n=i.activeItemIndex,s=Le(t);switch(e){case 32:case 13:s||i.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;case 36:case 35:s||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:65===e&&this.multiple&&Le(t,"ctrlKey")&&!i.isTyping()?(this.options.find(t=>!t.selected)?this.selectAll():this.deselectAll(),t.preventDefault()):i.onKeydown(t)}38!==e&&40!==e||!t.shiftKey||i.activeItemIndex===n||this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}_emitChangeEvent(t){this.selectionChange.emit(new Gu(this,t))}_onFocus(){const t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}writeValue(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}setDisabledState(t){this.disabled=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}_setOptionsFromValues(t){this.options.forEach(t=>t._setSelected(!1)),t.forEach(t=>{const e=this.options.find(e=>!e.selected&&this.compareWith(e.value,t));e&&e._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(t=>t.selected).map(t=>t.value)}_toggleFocusedOption(){let t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){let e=this.options.toArray()[t];!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent(e))}}_setAllOptionsSelected(t){let e=!1;this.options.forEach(i=>{i._setSelected(t)&&(e=!0)}),e&&this._reportValueChange()}_isValidIndex(t){return t>=0&&tt._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.Kc("tabindex"),s.yc(s.j))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-selection-list"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Wu,!0),2&t&&s.dd(n=s.Oc())&&(e.options=n)},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(t,e){1&t&&s.Nc("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onTouched()}))("keydown",(function(t){return e._keydown(t)})),2&t&&s.lc("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[s.jc([Xu]),s.hc,s.ic],ngContentSelectors:Cu,decls:1,vars:0,template:function(t,e){1&t&&(s.Wc(),s.Vc(0))},styles:[".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"],encapsulation:2,changeDetection:0}),t})(),Ku=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Ln,Un,pn,Xn,ye.c],Ln,pn,Xn,xu]}),t})();const Ju=["mat-menu-item",""],Qu=["*"];function Zu(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",0),s.Nc("keydown",(function(e){return s.id(t),s.Rc()._handleKeydown(e)}))("click",(function(){return s.id(t),s.Rc().closed.emit("click")}))("@transformMenu.start",(function(e){return s.id(t),s.Rc()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return s.id(t),s.Rc()._onAnimationDone(e)})),s.Dc(1,"div",1),s.Vc(2),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.Xc("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),s.lc("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const tm={transformMenu:r("transformMenu",[d("void",h({opacity:0,transform:"scale(0.8)"})),m("void => enter",l([g(".mat-menu-content, .mat-mdc-menu-content",o("100ms linear",h({opacity:1}))),o("120ms cubic-bezier(0, 0, 0.2, 1)",h({transform:"scale(1)"}))])),m("* => void",o("100ms 25ms linear",h({opacity:0})))]),fadeInItems:r("fadeInItems",[d("showing",h({opacity:1})),m("void => *",[h({opacity:0}),o("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let em=(()=>{class t{constructor(t,e,i,n,s,a,r){this._template=t,this._componentFactoryResolver=e,this._appRef=i,this._injector=n,this._viewContainerRef=s,this._document=a,this._changeDetectorRef=r,this._attached=new Pe.a}attach(t={}){this._portal||(this._portal=new cl(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new ul(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.U),s.yc(s.n),s.yc(s.g),s.yc(s.w),s.yc(s.X),s.yc(ye.e),s.yc(s.j))},t.\u0275dir=s.tc({type:t,selectors:[["ng-template","matMenuContent",""]]}),t})();const im=new s.v("MAT_MENU_PANEL");class nm{}const sm=bn(gn(nm));let am=(()=>{class t extends sm{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new Pe.a,this._focused=new Pe.a,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.monitor(this._elementRef,!1),n&&n.addItem&&n.addItem(this),this._document=e}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3;let i="";if(t.childNodes){const n=t.childNodes.length;for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new s.K,this._tabSubscription=Ie.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Pe.a,this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new s.s,this.close=this.closed,this.panelId=`mat-menu-panel-${om++}`}get xPosition(){return this._xPosition}set xPosition(t){"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: ')}(),this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=hi(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=hi(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new zi(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(on(this._directDescendantItems),jo(t=>Object(go.a)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(on(this._directDescendantItems),jo(t=>Object(go.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case 27:Le(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case 36:case 35:Le(t)||(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault());break;default:38!==e&&40!==e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.asObservable().pipe(oi(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e=`mat-elevation-z${Math.min(4+t,24)}`,i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(on(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.F),s.yc(rm))},t.\u0275dir=s.tc({type:t,contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,em,!0),s.qc(i,am,!0),s.qc(i,am,!1)),2&t&&(s.dd(n=s.Oc())&&(e.lazyContent=n.first),s.dd(n=s.Oc())&&(e._allItems=n),s.dd(n=s.Oc())&&(e.items=n))},viewQuery:function(t,e){var i;1&t&&s.wd(s.U,!0),2&t&&s.dd(i=s.Oc())&&(e.templateRef=i.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),cm=(()=>{class t extends lm{}return t.\u0275fac=function(e){return hm(e||t)},t.\u0275dir=s.tc({type:t,features:[s.hc]}),t})();const hm=s.Fc(cm);let dm=(()=>{class t extends cm{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.F),s.yc(rm))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[s.jc([{provide:im,useExisting:cm},{provide:cm,useExisting:t}]),s.hc],ngContentSelectors:Qu,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(s.Wc(),s.qd(0,Zu,3,6,"ng-template"))},directives:[ye.q],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[tm.transformMenu,tm.fadeInItems]},changeDetection:0}),t})();const um=new s.v("mat-menu-scroll-strategy"),mm={provide:um,deps:[jl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},pm=Ci({passive:!0});let gm=(()=>{class t{constructor(t,e,i,n,a,r,o,l){this._overlay=t,this._element=e,this._viewContainerRef=i,this._parentMenu=a,this._menuItemInstance=r,this._dir=o,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ie.a.EMPTY,this._hoverSubscription=Ie.a.EMPTY,this._menuCloseSubscription=Ie.a.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new s.s,this.onMenuOpen=this.menuOpened,this.menuClosed=new s.s,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,pm),r&&(r._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=n}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMenu||this._parentMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,pm),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof cm&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),t instanceof cm?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Ze(t=>"void"===t.toState),oi(1),Lo(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach()),this._restoreFocus()}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Cl({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,r]=[n,s],[o,l]=[e,i],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",i=o="end"===e?"start":"end",c="bottom"===n?8:-8):this.menu.overlapTrigger||(a="top"===n?"bottom":"top",r="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:a,overlayX:o,overlayY:n,offsetY:c},{originX:i,originY:a,overlayX:l,overlayY:n,offsetY:c},{originX:e,originY:r,overlayX:o,overlayY:s,offsetY:-c},{originX:i,originY:r,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMenu?this._parentMenu.closed:Ne(),n=this._parentMenu?this._parentMenu._hovered().pipe(Ze(t=>t!==this._menuItemInstance),Ze(()=>this._menuOpen)):Ne();return Object(go.a)(t,i,n,e)}_handleMousedown(t){Yi(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Ze(t=>t===this._menuItemInstance&&!t.disabled),Wl(0,So)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof cm&&this.menu._isAnimating?this.menu._animationDone.pipe(oi(1),Wl(0,So),Lo(this._parentMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new cl(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(s.yc(jl),s.yc(s.q),s.yc(s.X),s.yc(um),s.yc(cm,8),s.yc(am,10),s.yc(Zi,8),s.yc(Wi))},t.\u0275dir=s.tc({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&s.Nc("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&s.lc("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),fm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[mm],imports:[pn]}),t})(),bm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[mm],imports:[[ye.c,pn,Un,Gl,fm],fm]}),t})();const _m={};function ym(...t){let e=null,i=null;return Object(Te.a)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(fs.a)(t[0])&&(t=t[0]),Object(Me.a)(t,i).lift(new vm(e))}class vm{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new wm(t,this.resultSelector))}}class wm extends Oo.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(_m),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 i=0;ithis.total&&this.destination.next(t)}}const Cm=new Set;let Sm,Dm=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Em}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!Cm.has(t))try{Sm||(Sm=document.createElement("style"),Sm.setAttribute("type","text/css"),document.head.appendChild(Sm)),Sm.sheet&&(Sm.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),Cm.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(bi))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(bi))},token:t,providedIn:"root"}),t})();function Em(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Am=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new Pe.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Om(ui(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=ym(Om(ui(t)).map(t=>this._registerQuery(t).observable));return e=rn(e.pipe(oi(1)),e.pipe(t=>t.lift(new km(1)),Ye(0))),e.pipe(Object(ii.a)(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),i={observable:new si.a(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(on(e),Object(ii.a)(e=>({query:t,matches:e.matches})),Lo(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(Dm),s.Jc(s.F))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(Dm),Object(s.Jc)(s.F))},token:t,providedIn:"root"}),t})();function Om(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Rm={tooltipState:r("state",[d("initial, void, hidden",h({opacity:0,transform:"scale(0)"})),d("visible",h({transform:"scale(1)"})),m("* => visible",o("200ms cubic-bezier(0, 0, 0.2, 1)",u([h({opacity:0,transform:"scale(0)",offset:0}),h({opacity:.5,transform:"scale(0.99)",offset:.5}),h({opacity:1,transform:"scale(1)",offset:1})]))),m("* => hidden",o("100ms cubic-bezier(0, 0, 0.2, 1)",h({opacity:0})))])},Pm=Ci({passive:!0});function Im(t){return Error(`Tooltip position "${t}" is invalid.`)}const Tm=new s.v("mat-tooltip-scroll-strategy"),Mm={provide:Tm,deps:[jl],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Fm=new s.v("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Nm=(()=>{class t{constructor(t,e,i,n,s,a,r,o,l,c,h,d){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=a,this._ariaDescriber=r,this._focusMonitor=o,this._dir=c,this._defaultOptions=h,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 Pe.a,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!Le(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),o.monitor(e).pipe(Lo(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&s.run(()=>this.show()):s.run(()=>this.hide(0))}),s.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=hi(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,i)=>{t.removeEventListener(i,e,Pm)}),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 ll(Lm,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Lo(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(Lo(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(Lo(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(),i=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e||"below"==e)i={originX:"center",originY:"above"==e?"top":"bottom"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={originX:"start",originY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw Im(e);i={originX:"end",originY:"center"}}const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;if("above"==e)i={overlayX:"center",overlayY:"bottom"};else if("below"==e)i={overlayX:"center",overlayY:"top"};else if("before"==e||"left"==e&&t||"right"==e&&!t)i={overlayX:"end",overlayY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw Im(e);i={overlayX:"start",overlayY:"center"}}const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(oi(1),Lo(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,Pm)})}_disableNativeGesturesIfNecessary(){const t=this._elementRef.nativeElement,e=t.style,i=this.touchGestures;"off"!==i&&(("on"===i||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==i&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}}return t.\u0275fac=function(e){return new(e||t)(s.yc(jl),s.yc(s.q),s.yc(il),s.yc(s.X),s.yc(s.F),s.yc(bi),s.yc(Fi),s.yc(Wi),s.yc(Tm),s.yc(Zi,8),s.yc(Fm,8),s.yc(s.q))},t.\u0275dir=s.tc({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})(),Lm=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Pe.a,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)(s.yc(s.j),s.yc(Am))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&s.Nc("click",(function(){return e._handleBodyInteraction()}),!1,s.fd),2&t&&s.pd("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(s.Dc(0,"div",0),s.Nc("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),s.Sc(1,"async"),s.sd(2),s.Cc()),2&t){var i;const t=null==(i=s.Tc(1,5,e._isHandset))?null:i.matches;s.oc("mat-tooltip-handset",t),s.Xc("ngClass",e.tooltipClass)("@state",e._visibility),s.kc(2),s.td(e.message)}},directives:[ye.q],pipes:[ye.b],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:[Rm.tooltipState]},changeDetection:0}),t})(),zm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Mm],imports:[[Ji,ye.c,Gl,pn],pn]}),t})();const Bm=["primaryValueBar"];class Vm{constructor(t){this._elementRef=t}}const jm=fn(Vm,"primary"),qm=new s.v("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=Object(s.db)(ye.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let $m=0,Um=(()=>{class t extends jm{constructor(t,e,i,n){super(t),this._elementRef=t,this._ngZone=e,this._animationMode=i,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new s.s,this._animationEndSubscription=Ie.a.EMPTY,this.mode="determinate",this.progressbarId=`mat-progress-bar-${$m++}`;const a=n?n.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${a}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===i}get value(){return this._value}set value(t){this._value=Hm(di(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=Hm(t||0)}_primaryTransform(){return{transform:`scaleX(${this.value/100})`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scaleX(${this.bufferValue/100})`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=fo(t,"transitionend").pipe(Ze(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.F),s.yc(Ae,8),s.yc(qm,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var i;1&t&&s.wd(Bm,!0),2&t&&s.dd(i=s.Oc())&&(e._primaryValueBar=i.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(s.lc("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),s.oc("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[s.hc],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(s.Qc(),s.Dc(0,"svg",0),s.Dc(1,"defs"),s.Dc(2,"pattern",1),s.zc(3,"circle",2),s.Cc(),s.Cc(),s.zc(4,"rect",3),s.Cc(),s.Pc(),s.zc(5,"div",4),s.zc(6,"div",5,6),s.zc(8,"div",7)),2&t&&(s.kc(2),s.Xc("id",e.progressbarId),s.kc(2),s.lc("fill",e._rectangleFillValue),s.kc(1),s.Xc("ngStyle",e._bufferTransform()),s.kc(1),s.Xc("ngStyle",e._primaryTransform()))},directives:[ye.w],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function Hm(t,e=0,i=100){return Math.max(e,Math.min(i,t))}let Xm=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,pn],pn]}),t})();function Gm(t,e){if(1&t&&(s.Qc(),s.zc(0,"circle",3)),2&t){const t=s.Rc();s.pd("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.lc("r",t._circleRadius)}}function Wm(t,e){if(1&t&&(s.Qc(),s.zc(0,"circle",3)),2&t){const t=s.Rc();s.pd("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.lc("r",t._circleRadius)}}function Ym(t,e){if(1&t&&(s.Qc(),s.zc(0,"circle",3)),2&t){const t=s.Rc();s.pd("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.lc("r",t._circleRadius)}}function Km(t,e){if(1&t&&(s.Qc(),s.zc(0,"circle",3)),2&t){const t=s.Rc();s.pd("stroke-dashoffset",t._strokeDashOffset,"px")("stroke-dasharray",t._strokeCircumference,"px")("stroke-width",t._circleStrokeWidth,"%"),s.lc("r",t._circleRadius)}}class Jm{constructor(t){this._elementRef=t}}const Qm=fn(Jm,"primary"),Zm=new s.v("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let tp=(()=>{class t extends Qm{constructor(e,i,n,s,a){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const r=t._diameters;r.has(n.head)||r.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!a&&!a._forceAnimations,a&&(a.diameter&&(this.diameter=a.diameter),a.strokeWidth&&(this.strokeWidth=a.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=di(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=di(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,di(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=function(t,e){if("undefined"!=typeof window){const i=e.head;if(i&&(i.createShadowRoot||i.attachShadow)){const e=t.getRootNode?t.getRootNode():null;if(e instanceof window.ShadowRoot)return e}}return null}(t,this._document)||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,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",i+""),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_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)(s.yc(s.q),s.yc(bi),s.yc(ye.e,8),s.yc(Ae,8),s.yc(Zm))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(s.lc("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),s.pd("width",e.diameter,"px")("height",e.diameter,"px"),s.oc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[s.hc],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&&(s.Qc(),s.Dc(0,"svg",0),s.qd(1,Gm,1,9,"circle",1),s.qd(2,Wm,1,7,"circle",2),s.Cc()),2&t&&(s.pd("width",e.diameter,"px")("height",e.diameter,"px"),s.Xc("ngSwitch","indeterminate"===e.mode),s.lc("viewBox",e._viewBox),s.kc(1),s.Xc("ngSwitchCase",!0),s.kc(1),s.Xc("ngSwitchCase",!1))},directives:[ye.x,ye.y],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})(),ep=(()=>{class t extends tp{constructor(t,e,i,n,s){super(t,e,i,n,s),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(bi),s.yc(ye.e,8),s.yc(Ae,8),s.yc(Zm))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(s.pd("width",e.diameter,"px")("height",e.diameter,"px"),s.oc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[s.hc],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&&(s.Qc(),s.Dc(0,"svg",0),s.qd(1,Ym,1,9,"circle",1),s.qd(2,Km,1,7,"circle",2),s.Cc()),2&t&&(s.pd("width",e.diameter,"px")("height",e.diameter,"px"),s.Xc("ngSwitch","indeterminate"===e.mode),s.lc("viewBox",e._viewBox),s.kc(1),s.Xc("ngSwitchCase",!0),s.kc(1),s.Xc("ngSwitchCase",!1))},directives:[ye.x,ye.y],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})(),ip=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn,ye.c],pn]}),t})();const np=["input"],sp=function(){return{enterDuration:150}},ap=["*"],rp=new s.v("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let op=0;const lp={provide:ws,useExisting:Object(s.cb)(()=>hp),multi:!0};class cp{constructor(t,e){this.source=t,this.value=e}}let hp=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name=`mat-radio-group-${op++}`,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new s.s}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=hi(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new cp(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.j))},t.\u0275dir=s.tc({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,mp,!0),2&t&&s.dd(n=s.Oc())&&(e._radios=n)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[s.jc([lp])]}),t})();class dp{constructor(t){this._elementRef=t}}const up=bn(_n(dp));let mp=(()=>{class t extends up{constructor(t,e,i,n,a,r,o){super(e),this._changeDetector=i,this._focusMonitor=n,this._radioDispatcher=a,this._animationMode=r,this._providerOverride=o,this._uniqueId=`mat-radio-${++op}`,this.id=this._uniqueId,this.change=new s.s,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._removeUniqueSelectionListener=a.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=hi(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(hi(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=hi(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return`${this.id||this._uniqueId}-input`}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new cp(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(s.yc(hp,8),s.yc(s.q),s.yc(s.j),s.yc(Wi),s.yc(gs),s.yc(Ae,8),s.yc(rp,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-radio-button"]],viewQuery:function(t,e){var i;1&t&&s.wd(np,!0),2&t&&s.dd(i=s.Oc())&&(e._inputElement=i.first)},hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&s.Nc("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(s.lc("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),s.oc("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},exportAs:["matRadioButton"],features:[s.hc],ngContentSelectors:ap,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(s.Wc(),s.Dc(0,"label",0,1),s.Dc(2,"div",2),s.zc(3,"div",3),s.zc(4,"div",4),s.Dc(5,"input",5,6),s.Nc("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),s.Cc(),s.Dc(7,"div",7),s.zc(8,"div",8),s.Cc(),s.Cc(),s.Dc(9,"div",9),s.Dc(10,"span",10),s.sd(11,"\xa0"),s.Cc(),s.Vc(12),s.Cc(),s.Cc()),2&t){const t=s.ed(1);s.lc("for",e.inputId),s.kc(5),s.Xc("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),s.lc("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),s.kc(2),s.Xc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.Zc(18,sp)),s.kc(2),s.oc("mat-radio-label-before","before"==e.labelPosition)}},directives:[$n],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),pp=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Un,pn],pn]}),t})();const gp=["trigger"],fp=["panel"];function bp(t,e){if(1&t&&(s.Dc(0,"span",8),s.sd(1),s.Cc()),2&t){const t=s.Rc();s.kc(1),s.td(t.placeholder||"\xa0")}}function _p(t,e){if(1&t&&(s.Dc(0,"span"),s.sd(1),s.Cc()),2&t){const t=s.Rc(2);s.kc(1),s.td(t.triggerValue||"\xa0")}}function yp(t,e){1&t&&s.Vc(0,0,["*ngSwitchCase","true"])}function vp(t,e){if(1&t&&(s.Dc(0,"span",9),s.qd(1,_p,2,1,"span",10),s.qd(2,yp,1,0,void 0,11),s.Cc()),2&t){const t=s.Rc();s.Xc("ngSwitch",!!t.customTrigger),s.kc(2),s.Xc("ngSwitchCase",!0)}}function wp(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",12),s.Dc(1,"div",13,14),s.Nc("@transformPanel.done",(function(e){return s.id(t),s.Rc()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return s.id(t),s.Rc()._handleKeydown(e)})),s.Vc(3,1),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.Xc("@transformPanelWrap",void 0),s.kc(1),s.nc("mat-select-panel ",t._getPanelTheme(),""),s.pd("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.Xc("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing")}}const kp=[[["mat-select-trigger"]],"*"],xp=["mat-select-trigger","*"],Cp={transformPanelWrap:r("transformPanelWrap",[m("* => void",g("@transformPanel",[p()],{optional:!0}))]),transformPanel:r("transformPanel",[d("void",h({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),d("showing",h({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),d("showing-multiple",h({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),m("void => *",o("120ms cubic-bezier(0, 0, 0.2, 1)")),m("* => void",o("100ms 25ms linear",h({opacity:0})))])};let Sp=0;const Dp=new s.v("mat-select-scroll-strategy"),Ep=new s.v("MAT_SELECT_CONFIG"),Ap={provide:Dp,deps:[jl],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class Op{constructor(t,e){this.source=t,this.value=e}}class Rp{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const Pp=bn(_n(gn(yn(Rp))));let Ip=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-select-trigger"]]}),t})(),Tp=(()=>{class t extends Pp{constructor(t,e,i,n,a,r,o,l,c,h,d,u,m,p){super(a,n,o,l,h),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=r,this._parentFormField=c,this.ngControl=h,this._liveAnnouncer=m,this._panelOpen=!1,this._required=!1,this._scrollTop=0,this._multiple=!1,this._compareWith=(t,e)=>t===e,this._uid=`mat-select-${Sp++}`,this._destroy=new Pe.a,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._optionIds="",this._transformOrigin="top",this._panelDoneAnimatingStream=new Pe.a,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=po(()=>{const t=this.options;return t?t.changes.pipe(on(t),jo(()=>Object(go.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.asObservable().pipe(oi(1),jo(()=>this.optionSelectionChanges))}),this.openedChange=new s.s,this._openedStream=this.openedChange.pipe(Ze(t=>t),Object(ii.a)(()=>{})),this._closedStream=this.openedChange.pipe(Ze(t=>!t),Object(ii.a)(()=>{})),this.selectionChange=new s.s,this.valueChange=new s.s,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=u,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(d)||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=hi(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=hi(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=hi(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=di(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new ps(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Do(),Lo(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(Lo(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Lo(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(on(null),Lo(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(oi(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,i=40===e||38===e||37===e||39===e,n=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&n&&!Le(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const i=this.selected;36===e||35===e?(36===e?s.setFirstItemActive():s.setLastItemActive(),t.preventDefault()):s.onKeydown(t);const n=this.selected;n&&i!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=40===i||38===i,s=e.isTyping();if(36===i||35===i)t.preventDefault(),36===i?e.setFirstItemActive():e.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(s||13!==i&&32!==i||!e.activeItem||Le(t))if(!s&&this._multiple&&65===i&&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 i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&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(oi(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(i){return Object(s.eb)()&&console.warn(i),!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new Li(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Lo(this._destroy)).subscribe(()=>{!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close()}),this._keyManager.change.pipe(Lo(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(go.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Lo(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(go.a)(...this.options.map(t=>t._stateChanges)).pipe(Lo(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()}),this._setOptionIds()}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==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)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),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 Op(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=is(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=ns(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}focus(t){this._elementRef.nativeElement.focus(t)}_getOptionIndex(t){return this.options.reduce((e,i,n)=>void 0!==e?e:t===i?n:void 0,void 0)}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,256),n=e*t-i;let s=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);s+=is(s,this.options,this.optionGroups);const a=i/2;this._scrollTop=this._calculateOverlayScroll(s,a,n),this._offsetY=this._calculateOverlayOffsetY(s,a,n),this._checkOverlayWithinViewport(n)}_calculateOverlayScroll(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}_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(),i=this._isRtl(),n=this.multiple?56:32;let s;if(this.multiple)s=40;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}i||(s*=-1);const a=0-(t.left+s-(i?n:0)),r=t.right+s-e.width+(i?0:n);a>0?s+=a+8:r>0&&(s-=r+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,a=Math.floor(256/n);let r;return this._disableOptionCentering?0:(r=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-a))*n+(n-(this._getItemCount()*n-256)%n):e-n/2,Math.round(-1*r-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),r=Math.min(this._getItemCount()*e,256)-a-this._triggerRect.height;r>s?this._adjustPanelUp(r,s):a>n?this._adjustPanelDown(a,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,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)(s.yc(sl),s.yc(s.j),s.yc(s.F),s.yc(Tn),s.yc(s.q),s.yc(Zi,8),s.yc(Ta,8),s.yc(Ga,8),s.yc(Rc,8),s.yc(Ps,10),s.Kc("tabindex"),s.yc(Dp),s.yc(Xi),s.yc(Ep,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,Ip,!0),s.qc(i,es,!0),s.qc(i,Kn,!0)),2&t&&(s.dd(n=s.Oc())&&(e.customTrigger=n.first),s.dd(n=s.Oc())&&(e.options=n),s.dd(n=s.Oc())&&(e.optionGroups=n))},viewQuery:function(t,e){var i;1&t&&(s.wd(gp,!0),s.wd(fp,!0),s.wd(Hl,!0)),2&t&&(s.dd(i=s.Oc())&&(e.trigger=i.first),s.dd(i=s.Oc())&&(e.panel=i.first),s.dd(i=s.Oc())&&(e.overlayDir=i.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&s.Nc("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(s.lc("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()),s.oc("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:[s.jc([{provide:_c,useExisting:t},{provide:ts,useExisting:t}]),s.hc,s.ic],ngContentSelectors:xp,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&&(s.Wc(kp),s.Dc(0,"div",0,1),s.Nc("click",(function(){return e.toggle()})),s.Dc(3,"div",2),s.qd(4,bp,2,1,"span",3),s.qd(5,vp,3,2,"span",4),s.Cc(),s.Dc(6,"div",5),s.zc(7,"div",6),s.Cc(),s.Cc(),s.qd(8,wp,4,10,"ng-template",7),s.Nc("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){const t=s.ed(1);s.kc(3),s.Xc("ngSwitch",e.empty),s.kc(1),s.Xc("ngSwitchCase",!0),s.kc(1),s.Xc("ngSwitchCase",!1),s.kc(3),s.Xc("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Ul,ye.x,ye.y,Hl,ye.z,ye.q],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:[Cp.transformPanelWrap,Cp.transformPanel]},changeDetection:0}),t})(),Mp=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[Ap],imports:[[ye.c,Gl,ss,pn],Pc,ss,pn]}),t})();const Fp=["*"];function Np(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",2),s.Nc("click",(function(){return s.id(t),s.Rc()._onBackdropClicked()})),s.Cc()}if(2&t){const t=s.Rc();s.oc("mat-drawer-shown",t._isShowingBackdrop())}}function Lp(t,e){1&t&&(s.Dc(0,"mat-drawer-content"),s.Vc(1,2),s.Cc())}const zp=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Bp=["mat-drawer","mat-drawer-content","*"];function Vp(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",2),s.Nc("click",(function(){return s.id(t),s.Rc()._onBackdropClicked()})),s.Cc()}if(2&t){const t=s.Rc();s.oc("mat-drawer-shown",t._isShowingBackdrop())}}function jp(t,e){1&t&&(s.Dc(0,"mat-sidenav-content",3),s.Vc(1,2),s.Cc())}const qp=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],$p=["mat-sidenav","mat-sidenav-content","*"],Up={transformDrawer:r("transform",[d("open, open-instant",h({transform:"none",visibility:"visible"})),d("void",h({"box-shadow":"none",visibility:"hidden"})),m("void => open-instant",o("0ms")),m("void <=> open, open-instant => void",o("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function Hp(t){throw Error(`A drawer was already declared for 'position="${t}"'`)}const Xp=new s.v("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Gp=new s.v("MAT_DRAWER_CONTAINER");let Wp=(()=>{class t extends nl{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.j),s.yc(Object(s.cb)(()=>Kp)),s.yc(s.q),s.yc(il),s.yc(s.F))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.pd("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.hc],ngContentSelectors:Fp,decls:1,vars:0,template:function(t,e){1&t&&(s.Wc(),s.Vc(0))},encapsulation:2,changeDetection:0}),t})(),Yp=(()=>{class t{constructor(t,e,i,n,a,r,o){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=a,this._doc=r,this._container=o,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Pe.a,this._animationEnd=new Pe.a,this._animationState="void",this.openedChange=new s.s(!0),this._destroyed=new Pe.a,this.onPositionChanged=new s.s,this._modeChanged=new Pe.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{fo(this._elementRef.nativeElement,"keydown").pipe(Ze(t=>27===t.keyCode&&!this.disableClose&&!Le(t)),Lo(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Do((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=hi(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=hi(t)}get opened(){return this._opened}set opened(t){this.toggle(hi(t))}get _openedStream(){return this.openedChange.pipe(Ze(t=>t),Object(ii.a)(()=>{}))}get openedStart(){return this._animationStarted.pipe(Ze(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),Object(ii.a)(()=>{}))}get _closedStream(){return this.openedChange.pipe(Ze(t=>!t),Object(ii.a)(()=>{}))}get closedStart(){return this._animationStarted.pipe(Ze(t=>t.fromState!==t.toState&&"void"===t.toState),Object(ii.a)(()=>{}))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){if(!this.autoFocus)return;const t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}toggle(t=!this.opened,e="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(oi(1)).subscribe(e=>t(e?"open":"close"))})}get _width(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc($i),s.yc(Wi),s.yc(bi),s.yc(s.F),s.yc(ye.e,8),s.yc(Gp,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&s.pc("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(s.lc("align",null),s.vd("@transform",e._animationState),s.oc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:Fp,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.Wc(),s.Dc(0,"div",0),s.Vc(1),s.Cc())},encapsulation:2,data:{animation:[Up.transformDrawer]},changeDetection:0}),t})(),Kp=(()=>{class t{constructor(t,e,i,n,a,r=!1,o){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=o,this._drawers=new s.K,this.backdropClick=new s.s,this._destroyed=new Pe.a,this._doCheckSubject=new Pe.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Pe.a,t&&t.change.pipe(Lo(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(Lo(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=hi(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:hi(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(on(this._allDrawers),Lo(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(on(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._doCheckSubject.pipe(Ye(10),Lo(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._width;else if("push"==this._left.mode){const i=this._left._width;t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._width;else if("push"==this._right.mode){const i=this._right._width;e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Ze(t=>t.fromState!==t.toState),Lo(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Lo(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Lo(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.asObservable().pipe(oi(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Lo(Object(go.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?(null!=this._end&&Hp("end"),this._end=t):(null!=this._start&&Hp("start"),this._start=t)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawer()}_closeModalDrawer(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t.close())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Zi,8),s.yc(s.q),s.yc(s.F),s.yc(s.j),s.yc(sl),s.yc(Xp),s.yc(Ae,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,Wp,!0),s.qc(i,Yp,!0)),2&t&&(s.dd(n=s.Oc())&&(e._content=n.first),s.dd(n=s.Oc())&&(e._allDrawers=n))},viewQuery:function(t,e){var i;1&t&&s.wd(Wp,!0),2&t&&s.dd(i=s.Oc())&&(e._userContent=i.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.oc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[s.jc([{provide:Gp,useExisting:t}])],ngContentSelectors:Bp,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(s.Wc(zp),s.qd(0,Np,1,2,"div",0),s.Vc(1),s.Vc(2,1),s.qd(3,Lp,2,0,"mat-drawer-content",1)),2&t&&(s.Xc("ngIf",e.hasBackdrop),s.kc(3),s.Xc("ngIf",!e._content))},directives:[ye.t,Wp],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t})(),Jp=(()=>{class t extends Wp{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.j),s.yc(Object(s.cb)(()=>tg)),s.yc(s.q),s.yc(il),s.yc(s.F))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.pd("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.hc],ngContentSelectors:Fp,decls:1,vars:0,template:function(t,e){1&t&&(s.Wc(),s.Vc(0))},encapsulation:2,changeDetection:0}),t})(),Qp=(()=>{class t extends Yp{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=hi(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=di(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=di(t)}}return t.\u0275fac=function(e){return Zp(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(s.lc("align",null),s.pd("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),s.oc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[s.hc],ngContentSelectors:Fp,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.Wc(),s.Dc(0,"div",0),s.Vc(1),s.Cc())},encapsulation:2,data:{animation:[Up.transformDrawer]},changeDetection:0}),t})();const Zp=s.Fc(Qp);let tg=(()=>{class t extends Kp{}return t.\u0275fac=function(e){return eg(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,Jp,!0),s.qc(i,Qp,!0)),2&t&&(s.dd(n=s.Oc())&&(e._content=n.first),s.dd(n=s.Oc())&&(e._allDrawers=n))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.oc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[s.jc([{provide:Gp,useExisting:t}]),s.hc],ngContentSelectors:$p,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(s.Wc(qp),s.qd(0,Vp,1,2,"div",0),s.Vc(1),s.Vc(2,1),s.qd(3,jp,2,0,"mat-sidenav-content",1)),2&t&&(s.Xc("ngIf",e.hasBackdrop),s.kc(3),s.Xc("ngIf",!e._content))},directives:[ye.t,Jp,nl],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),t})();const eg=s.Fc(tg);let ig=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c,pn,al,_i],pn]}),t})();const ng=["thumbContainer"],sg=["toggleBar"],ag=["input"],rg=function(){return{enterDuration:150}},og=["*"],lg=new s.v("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let cg=0;const hg={provide:ws,useExisting:Object(s.cb)(()=>pg),multi:!0};class dg{constructor(t,e){this.source=t,this.checked=e}}class ug{constructor(t){this._elementRef=t}}const mg=_n(fn(bn(gn(ug)),"accent"));let pg=(()=>{class t extends mg{constructor(t,e,i,n,a,r,o,l){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=r,this._animationMode=o,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId=`mat-slide-toggle-${++cg}`,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new s.s,this.toggleChange=new s.s,this.dragChange=new s.s,this.tabIndex=parseInt(n)||0}get required(){return this._required}set required(t){this._required=hi(t)}get checked(){return this._checked}set checked(t){this._checked=hi(t),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new dg(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(Wi),s.yc(s.j),s.Kc("tabindex"),s.yc(s.F),s.yc(lg),s.yc(Ae,8),s.yc(Zi,8))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var i;1&t&&(s.wd(ng,!0),s.wd(sg,!0),s.wd(ag,!0)),2&t&&(s.dd(i=s.Oc())&&(e._thumbEl=i.first),s.dd(i=s.Oc())&&(e._thumbBarEl=i.first),s.dd(i=s.Oc())&&(e._inputElement=i.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Gc("id",e.id),s.lc("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),s.oc("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[s.jc([hg]),s.hc],ngContentSelectors:og,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.Wc(),s.Dc(0,"label",0,1),s.Dc(2,"div",2,3),s.Dc(4,"input",4,5),s.Nc("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),s.Cc(),s.Dc(6,"div",6,7),s.zc(8,"div",8),s.Dc(9,"div",9),s.zc(10,"div",10),s.Cc(),s.Cc(),s.Cc(),s.Dc(11,"span",11,12),s.Nc("cdkObserveContent",(function(){return e._onLabelTextChange()})),s.Dc(13,"span",13),s.sd(14,"\xa0"),s.Cc(),s.Vc(15),s.Cc(),s.Cc()),2&t){const t=s.ed(1),i=s.ed(12);s.lc("for",e.inputId),s.kc(2),s.oc("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),s.kc(2),s.Xc("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),s.lc("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.kc(5),s.Xc("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.Zc(17,rg))}},directives:[$n,Oi],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})();const gg={provide:Ns,useExisting:Object(s.cb)(()=>fg),multi:!0};let fg=(()=>{class t extends sr{}return t.\u0275fac=function(e){return bg(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[s.jc([gg]),s.hc]}),t})();const bg=s.Fc(fg);let _g=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})(),yg=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[_g,Un,pn,Ri],_g,pn]}),t})();function vg(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",1),s.Dc(1,"button",2),s.Nc("click",(function(){return s.id(t),s.Rc().action()})),s.sd(2),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.kc(2),s.td(t.data.action)}}function wg(t,e){}const kg=Math.pow(2,31)-1;class xg{constructor(t,e){this._overlayRef=e,this._afterDismissed=new Pe.a,this._afterOpened=new Pe.a,this._onAction=new Pe.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,kg))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed.asObservable()}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction.asObservable()}}const Cg=new s.v("MatSnackBarData");class Sg{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let Dg=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(s.yc(xg),s.yc(Cg))},t.\u0275cmp=s.sc({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(s.Dc(0,"span"),s.sd(1),s.Cc(),s.qd(2,vg,3,1,"div",0)),2&t&&(s.kc(1),s.td(e.data.message),s.kc(1),s.Xc("ngIf",e.hasAction))},directives:[ye.t,ds],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t})();const Eg={snackBarState:r("state",[d("void, hidden",h({transform:"scale(0.8)",opacity:0})),d("visible",h({transform:"scale(1)",opacity:1})),m("* => visible",o("150ms cubic-bezier(0, 0, 0.2, 1)")),m("* => void, * => hidden",o("75ms cubic-bezier(0.4, 0.0, 1, 1)",h({opacity:0})))])};let Ag=(()=>{class t extends dl{constructor(t,e,i,n){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=i,this.snackBarConfig=n,this._destroyed=!1,this._onExit=new Pe.a,this._onEnter=new Pe.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._role="assertive"!==n.politeness||n.announcementMessage?"off"===n.politeness?null:"status":"alert"}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:i}=t;if(("void"===i&&"void"!==e||"hidden"===i)&&this._completeExit(),"visible"===i){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){return this._animationState="hidden",this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.asObservable().pipe(oi(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.F),s.yc(s.q),s.yc(s.j),s.yc(Sg))},t.\u0275cmp=s.sc({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var i;1&t&&s.od(ml,!0),2&t&&s.dd(i=s.Oc())&&(e._portalOutlet=i.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&s.pc("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(s.lc("role",e._role),s.vd("@state",e._animationState))},features:[s.hc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.qd(0,wg,0,0,"ng-template",0)},directives:[ml],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[Eg.snackBarState]}}),t})(),Og=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Gl,pl,ye.c,ms,pn],pn]}),t})();const Rg=new s.v("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new Sg}});let Pg=(()=>{class t{constructor(t,e,i,n,s,a){this._overlay=t,this._live=e,this._injector=i,this._breakpointObserver=n,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",i){const n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:t,action:e},n.announcementMessage||(n.announcementMessage=t),this.openFromComponent(Dg,n)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const i=new gl(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[Sg,e]])),n=new ll(Ag,e.viewContainerRef,i),s=t.attach(n);return s.instance.snackBarConfig=e,s.instance}_attach(t,e){const i=Object.assign(Object.assign(Object.assign({},new Sg),this._defaultConfig),e),n=this._createOverlay(i),a=this._attachSnackBarContainer(n,i),r=new xg(a,n);if(t instanceof s.U){const e=new cl(t,null,{$implicit:i.data,snackBarRef:r});r.instance=a.attachTemplatePortal(e)}else{const e=this._createInjector(i,r),n=new ll(t,void 0,e),s=a.attachComponentPortal(n);r.instance=s.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(Lo(n.detachments())).subscribe(t=>{const e=n.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")}),this._animateSnackBar(r,i),this._openedSnackBarRef=r,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}_createOverlay(t){const e=new Cl;e.direction=t.direction;let i=this._overlay.position().global();const n="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!n||"end"===t.horizontalPosition&&n,a=!s&&"center"!==t.horizontalPosition;return s?i.left("0"):a?i.right("0"):i.centerHorizontally(),"top"===t.verticalPosition?i.top("0"):i.bottom("0"),e.positionStrategy=i,this._overlay.create(e)}_createInjector(t,e){return new gl(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[xg,e],[Cg,t.data]]))}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(jl),s.Jc(Xi),s.Jc(s.w),s.Jc(Am),s.Jc(t,12),s.Jc(Rg))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(jl),Object(s.Jc)(Xi),Object(s.Jc)(s.t),Object(s.Jc)(Am),Object(s.Jc)(t,12),Object(s.Jc)(Rg))},token:t,providedIn:Og}),t})();const Ig=["*",[["mat-toolbar-row"]]],Tg=["*","mat-toolbar-row"];class Mg{constructor(t){this._elementRef=t}}const Fg=fn(Mg);let Ng=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),Lg=(()=>{class t extends Fg{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){Object(s.eb)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter(t=>!(t.classList&&t.classList.contains("mat-toolbar-row"))).filter(t=>t.nodeType!==(this._document?this._document.COMMENT_NODE:8)).some(t=>!(!t.textContent||!t.textContent.trim()))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(bi),s.yc(ye.e))},t.\u0275cmp=s.sc({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,Ng,!0),2&t&&s.dd(n=s.Oc())&&(e._toolbarRows=n)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.oc("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.hc],ngContentSelectors:Tg,decls:2,vars:0,template:function(t,e){1&t&&(s.Wc(Ig),s.Vc(0),s.Vc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),t})(),zg=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[pn],pn]}),t})();function Bg(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}function Vg(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function jg(t,e){const i=e?"":"none";Vg(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function qg(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function $g(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}const Ug=Ci({passive:!0}),Hg=Ci({passive:!1});class Xg{constructor(t,e,i,n,s,a){this._config=e,this._document=i,this._ngZone=n,this._viewportRuler=s,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new Pe.a,this._pointerMoveSubscription=Ie.a.EMPTY,this._pointerUpSubscription=Ie.a.EMPTY,this._scrollSubscription=Ie.a.EMPTY,this._resizeSubscription=Ie.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Pe.a,this.started=new Pe.a,this.released=new Pe.a,this.ended=new Pe.a,this.entered=new Pe.a,this.exited=new Pe.a,this.dropped=new Pe.a,this.moved=this._moveEvents.asObservable(),this._pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const i=t.target;return!!i&&(i===e||e.contains(i))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{if(t.preventDefault(),!this._hasStartedDragging){const e=this._getPointerPositionOnPage(t);if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){if(!(Date.now()>=this._dragStartTime+this._getDragStartDelay(t)))return void this._endDragSequence(t);this._dropContainer&&this._dropContainer.isDragging()||(this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()));const e=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._updatePointerDirectionDelta(e),this._dropContainer)this._updateActiveDropContainer(e);else{const t=this._activeTransform;t.x=e.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=e.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:e,event:t,distance:this._getDragDistance(e),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t),a.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=hi(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){return this._handles=t.map(t=>pi(t)),this._handles.forEach(t=>jg(t,!1)),this._toggleNativeDragInteractions(),this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=pi(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),e.addEventListener("mousedown",this._pointerDown,Hg),e.addEventListener("touchstart",this._pointerDown,Ug),this._initialTransform=void 0,this._rootElement=e),this}withBoundaryElement(t){return this._boundaryElement=t?pi(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&Kg(this._rootElement),Kg(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}enableHandle(t){this._disabledHandles.delete(t)}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}_sortFromLastPointerPosition(){const t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&Kg(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&Kg(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(t))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(t){if(this.started.next({source:this}),Jg(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions(),this._dropContainer){const t=this._rootElement,i=t.parentNode,n=this._preview=this._createPreviewElement(),s=this._placeholder=this._createPlaceholderElement(),a=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(a,t),t.style.display="none",this._document.body.appendChild(i.replaceChild(s,t)),(e=this._document,e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body).appendChild(n),this._dropContainer.start(),this._initialContainer=this._dropContainer,this._initialIndex=this._dropContainer.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;var e}_initializeDragSequence(t,e){e.stopPropagation();const i=this.isDragging(),n=Jg(e),s=!n&&0!==e.button,a=this._rootElement,r=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||r)return;this._handles.length&&(this._rootElementTapHighlight=a.style.webkitTapHighlightColor,a.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.pipe(on(null)).subscribe(()=>{this._scrollPosition=this._viewportRuler.getViewportScrollPosition()}),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect());const o=this._previewTemplate;this._pickupPositionInElement=o&&o.template&&!o.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const l=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(this._getPointerPositionOnPage(t)),a=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:s}),e.drop(this,i,this._initialContainer,a,s,this._initialIndex),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e}){let i=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!i&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(i=this._initialContainer),i&&i!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=i,this._dropContainer.enter(this,t,e,i===this._initialContainer?this._initialIndex:void 0),this.entered.next({item:this,container:i,currentIndex:i.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(t,e),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._preview.style.transform=Gg(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y)}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i){const e=t.viewContainer.createEmbeddedView(i,t.context);n=Qg(e,this._document),this._previewRef=e,t.matchSize?Zg(n,this._rootElement):n.style.transform=Gg(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=Wg(t),Zg(n,t)}return Vg(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),jg(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=Gg(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=$g(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),a=$g(e,"transition-duration"),r=$g(e,"transition-delay");return qg(a[s])+qg(r[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),i=Qg(this._placeholderRef,this._document)):i=Wg(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,a=Jg(e)?e.targetTouches[0]:e;return{x:s.left-i.left+(a.pageX-s.left-this._scrollPosition.left),y:s.top-i.top+(a.pageY-s.top-this._scrollPosition.top)}}_getPointerPositionOnPage(t){const e=Jg(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.pageX-this._scrollPosition.left,y:e.pageY-this._scrollPosition.top}}_getConstrainedPointerPosition(t){const e=this._getPointerPositionOnPage(t),i=this.constrainPosition?this.constrainPosition(e,this):e,n=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===n?i.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==n||(i.x=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,n=this._boundaryRect,s=this._previewRect,a=n.top+e,r=n.bottom-(s.height-e);i.x=Yg(i.x,n.left+t,n.right-(s.width-t)),i.y=Yg(i.y,a,r)}return i}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-s.x),r=Math.abs(i-s.y);return a>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),r>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,jg(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Hg),t.removeEventListener("touchstart",this._pointerDown,Ug)}_applyRootElementTransform(t,e){const i=Gg(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,a=n.right-i.right,r=i.top-n.top,o=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),a>0&&(t-=a)):t=0,i.height>n.height?(r>0&&(e+=r),o>0&&(e-=o)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:Jg(t)?e.touch:e?e.mouse:0}}function Gg(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function Wg(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=t.querySelectorAll("canvas");e.removeAttribute("id");for(let s=0;s!0,this.beforeStarted=new Pe.a,this.entered=new Pe.a,this.exited=new Pe.a,this.dropped=new Pe.a,this.sorted=new Pe.a,this._isDragging=!1,this._itemPositions=[],this._parentPositions=new Map,this._previousSwap={drag:null,delta:0},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Ie.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Pe.a,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=We){return(!To(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=We),new si.a(i=>(i.add(e.schedule(Bg,t,{subscriber:i,counter:0,period:t})),i))}(0,yo).pipe(Lo(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode;1===this._verticalScrollDirection?cf(t,-2):2===this._verticalScrollDirection&&cf(t,2),1===this._horizontalScrollDirection?hf(t,-2):2===this._horizontalScrollDirection&&hf(t,2)})},this.element=pi(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){const t=pi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach(t=>t._startReceiving(this)),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}enter(t,e,i,n){let s;this.start(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const a=this._activeDraggables,r=a.indexOf(t),o=t.getPlaceholderElement();let l=a[s];if(l===t&&(l=a[s+1]),r>-1&&a.splice(r,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(o,e),a.splice(s,0,t)}else pi(this.element).appendChild(o),a.push(t);o.style.transform="",this._cacheItemPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,s,a){this._reset(),null==a&&(a=i.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:a,container:this,previousContainer:i,isPointerOverContainer:n,distance:s})}withItems(t){return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&this._cacheItems(),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=pi(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getItemIndex(t){return this._isDragging?rf("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!af(this._clientRect,e,i))return;const s=this._itemPositions,a=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===a&&s.length>0)return;const r="horizontal"===this._orientation,o=rf(s,e=>e.drag===t),l=s[a],c=s[o].clientRect,h=l.clientRect,d=o>a?1:-1;this._previousSwap.drag=l.drag,this._previousSwap.delta=r?n.x:n.y;const u=this._getItemOffsetPx(c,h,d),m=this._getSiblingOffsetPx(o,s,d),p=s.slice();tf(s,o,a),this.sorted.next({previousIndex:o,currentIndex:a,container:this,item:t}),s.forEach((e,i)=>{if(p[i]===e)return;const n=e.drag===t,s=n?u:m,a=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,r?(a.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,sf(e.clientRect,0,s)):(a.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,sf(e.clientRect,s,0))})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.forEach((a,r)=>{r!==this._document&&a.clientRect&&!i&&af(a.clientRect,t,e)&&([n,s]=function(t,e,i,n){const s=df(e,n),a=uf(e,i);let r=0,o=0;if(s){const e=t.scrollTop;1===s?e>0&&(r=1):t.scrollHeight-e>t.clientHeight&&(r=2)}if(a){const e=t.scrollLeft;1===a?e>0&&(o=1):t.scrollWidth-e>t.clientWidth&&(o=2)}return[r,o]}(r,a.clientRect,t,e),(n||s)&&(i=r))}),!n&&!s){const{width:a,height:r}=this._viewportRuler.getViewportSize(),o={width:a,height:r,top:0,right:a,bottom:r,left:0};n=df(o,e),s=uf(o,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_cacheParentPositions(){this._parentPositions.clear(),this._parentPositions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),this._scrollableElements.forEach(t=>{const e=lf(t);t===this.element&&(this._clientRect=e),this._parentPositions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:e})})}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,clientRect:lf(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const t=pi(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>t.getRootElement().style.transform=""),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,i){const n="horizontal"===this._orientation,s=e[t].clientRect,a=e[t+-1*i];let r=s[n?"width":"height"]*i;if(a){const t=n?"left":"top",e=n?"right":"bottom";-1===i?r-=a.clientRect[t]-s[e]:r+=s[t]-a.clientRect[e]}return r}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation;return rf(this._itemPositions,({drag:a,clientRect:r},o,l)=>{if(a===t)return l.length<2;if(n){const t=s?n.x:n.y;if(a===this._previousSwap.drag&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(r.left)&&e<=Math.floor(r.right):i>=Math.floor(r.top)&&i<=Math.floor(r.bottom)})}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_updateAfterScroll(t,e,i){const n=this._parentPositions.get(t).scrollPosition,s=n.top-e,a=n.left-i;this._parentPositions.forEach((e,i)=>{e.clientRect&&t!==i&&t.contains(i)&&sf(e.clientRect,s,a)}),this._itemPositions.forEach(({clientRect:t})=>{sf(t,s,a)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}),n.top=e,n.left=i}_isOverContainer(t,e){return of(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(n=>n._canReceive(t,e,i))}_canReceive(t,e,i){if(!of(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=pi(this.element);return n===s||s.contains(n)}_startReceiving(t){const e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=t.target;if(this._parentPositions.get(e)){let t,i;if(e===this._document){const e=this._viewportRuler.getViewportScrollPosition();t=e.top,i=e.left}else t=e.scrollTop,i=e.scrollLeft;this._updateAfterScroll(e,t,i)}}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){return this._cachedShadowRoot||(this._cachedShadowRoot=function(t){if(Di()){const e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}(pi(this.element))||this._document),this._cachedShadowRoot}}function sf(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function af(t,e,i){const{top:n,right:s,bottom:a,left:r,width:o,height:l}=t,c=.05*o,h=.05*l;return i>n-h&&ir-c&&e=n&&i<=s&&e>=a&&e<=r}function lf(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function cf(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function hf(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function df(t,e){const{top:i,bottom:n,height:s}=t,a=.05*s;return e>=i-a&&e<=i+a?1:e>=n-a&&e<=n+a?2:0}function uf(t,e){const{left:i,right:n,width:s}=t,a=.05*s;return e>=i-a&&e<=i+a?1:e>=n-a&&e<=n+a?2:0}const mf=Ci({passive:!1,capture:!0});let pf=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new Pe.a,this.pointerUp=new Pe.a,this.scroll=new Pe.a,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.size&&t.preventDefault()},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._preventDefaultWhileDragging,mf)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,mf)}startDragging(t,e){if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){const t=e.type.startsWith("touch"),i=t?"touchend":"mouseup";this._globalListeners.set(t?"touchmove":"mousemove",{handler:t=>this.pointerMove.next(t),options:mf}).set(i,{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:mf}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances.has(t)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(s.F),s.Jc(ye.e))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(s.F),Object(s.Jc)(ye.e))},token:t,providedIn:"root"}),t})();const gf={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let ff=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=gf){return new Xg(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new nf(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(ye.e),s.Jc(s.F),s.Jc(sl),s.Jc(pf))},t.\u0275prov=Object(s.uc)({factory:function(){return new t(Object(s.Jc)(ye.e),Object(s.Jc)(s.F),Object(s.Jc)(sl),Object(s.Jc)(pf))},token:t,providedIn:"root"}),t})();const bf=new s.v("CDK_DRAG_PARENT");let _f=(()=>{class t{constructor(t,e){this.element=t,this._stateChanges=new Pe.a,this._disabled=!1,this._parentDrag=e,jg(t.nativeElement,!1)}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(bf,8))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),t})(),yf=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.U))},t.\u0275dir=s.tc({type:t,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),t})(),vf=(()=>{class t{constructor(t){this.templateRef=t,this._matchSize=!1}get matchSize(){return this._matchSize}set matchSize(t){this._matchSize=hi(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.U))},t.\u0275dir=s.tc({type:t,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),t})();const wf=new s.v("CDK_DRAG_CONFIG"),kf=new s.v("CDK_DROP_LIST");let xf=(()=>{class t{constructor(t,e,i,n,a,r,o,l,c){this.element=t,this.dropContainer=e,this._document=i,this._ngZone=n,this._viewContainerRef=a,this._dir=o,this._changeDetectorRef=c,this._destroyed=new Pe.a,this.started=new s.s,this.released=new s.s,this.ended=new s.s,this.entered=new s.s,this.exited=new s.s,this.dropped=new s.s,this.moved=new si.a(t=>{const e=this._dragRef.moved.pipe(Object(ii.a)(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=l.createDrag(t,{dragStartThreshold:r&&null!=r.dragStartThreshold?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&null!=r.pointerDirectionChangeThreshold?r.pointerDirectionChangeThreshold:5}),this._dragRef.data=this,r&&this._assignDefaults(r),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=hi(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.asObservable().pipe(oi(1),Lo(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(on(this._handles),je(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._dragRef.withHandles(e)}),jo(t=>Object(go.a)(...t.map(t=>t._stateChanges.pipe(on(t))))),Lo(this._destroyed)).subscribe(t=>{const e=this._dragRef,i=t.element.nativeElement;t.disabled?e.disableHandle(i):e.enableHandle(i)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,i=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?Cf(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error("cdkDrag must be attached to an element node. "+`Currently attached to "${e.nodeName}".`);this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return Cf(this.element.nativeElement,t);const e=pi(t);if(Object(s.eb)()&&!e.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return e}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const e=this._dir,i=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:di(i),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(s),e&&t.withDirection(e.value)}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:i,constrainPosition:n,previewClass:s,boundaryElement:a,draggingDisabled:r,rootElementSelector:o}=t;this.disabled=null!=r&&r,this.dragStartDelay=i||0,e&&(this.lockAxis=e),n&&(this.constrainPosition=n),s&&(this.previewClass=s),a&&(this.boundaryElement=a),o&&(this.rootElementSelector=o)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(kf,12),s.yc(ye.e),s.yc(s.F),s.yc(s.X),s.yc(wf,8),s.yc(Zi,8),s.yc(ff),s.yc(s.j))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,vf,!0),s.qc(i,yf,!0),s.qc(i,_f,!0)),2&t&&(s.dd(n=s.Oc())&&(e._previewTemplate=n.first),s.dd(n=s.Oc())&&(e._placeholderTemplate=n.first),s.dd(n=s.Oc())&&(e._handles=n))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&s.oc("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[s.jc([{provide:bf,useExisting:t}]),s.ic]}),t})();function Cf(t,e){let i=t.parentElement;for(;i;){if(i.matches?i.matches(e):i.msMatchesSelector(e))return i;i=i.parentElement}return null}let Sf=(()=>{class t{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=hi(t)}ngOnDestroy(){this._items.clear()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.tc({type:t,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),t})(),Df=0,Ef=(()=>{class t{constructor(e,i,n,a,r,o,l){this.element=e,this._changeDetectorRef=n,this._dir=a,this._group=r,this._scrollDispatcher=o,this._destroyed=new Pe.a,this.connectedTo=[],this.id=`cdk-drop-list-${Df++}`,this.enterPredicate=()=>!0,this.dropped=new s.s,this.entered=new s.s,this.exited=new s.s,this.sorted=new s.s,this._unsortedItems=new Set,this._dropListRef=i.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),r&&r._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=hi(t)}ngAfterContentInit(){if(this._scrollDispatcher){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t)}}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}start(){this._dropListRef.start()}drop(t,e,i,n){this._dropListRef.drop(t._dragRef,e,i._dropListRef,n,{x:0,y:0})}enter(t,e,i){this._dropListRef.enter(t._dragRef,e,i)}exit(t){this._dropListRef.exit(t._dragRef)}getItemIndex(t){return this._dropListRef.getItemIndex(t._dragRef)}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(on(this._dir.value),Lo(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const i=ui(this.connectedTo).map(e=>"string"==typeof e?t._dropLists.find(t=>t.id===e):e);this._group&&this._group._items.forEach(t=>{-1===i.indexOf(t)&&i.push(t)}),e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=hi(this.sortingDisabled),e.autoScrollDisabled=hi(this.autoScrollDisabled),e.connectedTo(i.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:i,sortingDisabled:n,listAutoScrollDisabled:s,listOrientation:a}=t;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=s&&s,this.orientation=a||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(ff),s.yc(s.j),s.yc(Zi,8),s.yc(Sf,12),s.yc(il),s.yc(wf,8))},t.\u0275dir=s.tc({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(s.Gc("id",e.id),s.oc("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[s.jc([{provide:Sf,useValue:void 0},{provide:kf,useExisting:t}])]}),t._dropLists=[],t})(),Af=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[ff]}),t})();function Of(t){return ad(t)(this)}si.a.prototype.map=function(t,e){return Object(ii.a)(t,e)(this)},si.a.prototype.catch=Of,si.a.prototype._catch=Of,si.a.throw=Go,si.a.throwError=Go;const Rf={default:{key:"default",background_color:"ghostwhite",alternate_color:"gray",css_label:"default-theme",social_theme:"material-light"},dark:{key:"dark",background_color:"#757575",alternate_color:"#695959",css_label:"dark-theme",social_theme:"material-dark"},light:{key:"light",background_color:"white",css_label:"light-theme",social_theme:"material-light"}};class Pf extends Pe.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Qo.a;return this._value}next(t){super.next(this._value=t)}}const If=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function Tf(t){return function(e){return 0===t?ri():e.lift(new Mf(t))}}class Mf{constructor(t){if(this.total=t,this.total<0)throw new ni}call(t,e){return e.subscribe(new Ff(t,this.total))}}class Ff extends ze.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;se.lift(new Lf(t))}class Lf{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new zf(t,this.errorFactory))}}class zf extends ze.a{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 Bf(){return new If}function Vf(t=null){return e=>e.lift(new jf(t))}class jf{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new qf(t,this.defaultValue))}}class qf extends ze.a{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()}}var $f=i("SpAZ");function Uf(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Ze((e,i)=>t(e,i,n)):$f.a,Tf(1),i?Vf(e):Nf(()=>new If))}function Hf(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Ze((e,i)=>t(e,i,n)):$f.a,oi(1),i?Vf(e):Nf(()=>new If))}class Xf{constructor(t,e,i){this.predicate=t,this.thisArg=e,this.source=i}call(t,e){return e.subscribe(new Gf(t,this.predicate,this.thisArg,this.source))}}class Gf extends ze.a{constructor(t,e,i,n){super(t),this.predicate=e,this.thisArg=i,this.source=n,this.index=0,this.thisArg=i||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(i){return void this.destination.error(i)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Wf(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new Yf(t,e,i))}}class Yf{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new Kf(t,this.accumulator,this.seed,this.hasSeed))}}class Kf extends ze.a{constructor(t,e,i,n){super(t),this.accumulator=e,this._seed=i,this.hasSeed=n,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 i;try{i=this.accumulator(this.seed,t,e)}catch(n){this.destination.error(n)}this.seed=i,this.destination.next(i)}}var Jf=i("mCNh");class Qf{constructor(t,e){this.id=t,this.url=e}}class Zf extends Qf{constructor(t,e,i="imperative",n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class tb extends Qf{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class eb extends Qf{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ib extends Qf{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class nb extends Qf{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sb extends Qf{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ab extends Qf{constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class rb extends Qf{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ob extends Qf{constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lb{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class cb{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class hb{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class db{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ub{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mb{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pb{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let gb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.zc(0,"router-outlet")},directives:function(){return[vy]},encapsulation:2}),t})();class fb{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 bb(t){return new fb(t)}function _b(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function yb(t,e,i){const n=i.path.split("/");if(n.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthe.indexOf(t)>-1):t===e}function Eb(t){return Array.prototype.concat.apply([],t)}function Ab(t){return t.length>0?t[t.length-1]:null}function Ob(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function Rb(t){return Object(s.Mb)(t)?t:Object(s.Nb)(t)?Object(_s.a)(Promise.resolve(t)):Ne(t)}function Pb(t,e,i){return i?function(t,e){return Sb(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!Fb(e.segments,i.segments))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children){if(!e.children[n])return!1;if(!t(e.children[n],i.children[n]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>Db(t[i],e[i]))}(t.queryParams,e.queryParams)&&function t(e,i){return function e(i,n,s){if(i.segments.length>s.length)return!!Fb(i.segments.slice(0,s.length),s)&&!n.hasChildren();if(i.segments.length===s.length){if(!Fb(i.segments,s))return!1;for(const e in n.children){if(!i.children[e])return!1;if(!t(i.children[e],n.children[e]))return!1}return!0}{const t=s.slice(0,i.segments.length),a=s.slice(i.segments.length);return!!Fb(i.segments,t)&&!!i.children.primary&&e(i.children.primary,n,a)}}(e,i,i.segments)}(t.root,e.root)}class Ib{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bb(this.queryParams)),this._queryParamMap}toString(){return Bb.serialize(this)}}class Tb{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Ob(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vb(this)}}class Mb{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=bb(this.parameters)),this._parameterMap}toString(){return Xb(this)}}function Fb(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}function Nb(t,e){let i=[];return Ob(t.children,(t,n)=>{"primary"===n&&(i=i.concat(e(t,n)))}),Ob(t.children,(t,n)=>{"primary"!==n&&(i=i.concat(e(t,n)))}),i}class Lb{}class zb{parse(t){const e=new Jb(t);return new Ib(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,i){if(!e.hasChildren())return Vb(e);if(i){const i=e.children.primary?t(e.children.primary,!1):"",n=[];return Ob(e.children,(e,i)=>{"primary"!==i&&n.push(`${i}:${t(e,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}{const i=Nb(e,(i,n)=>"primary"===n?[t(e.children.primary,!1)]:[`${n}:${t(i,!1)}`]);return`${Vb(e)}/(${i.join("//")})`}}(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${qb(e)}=${qb(t)}`).join("&"):`${qb(e)}=${qb(i)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Bb=new zb;function Vb(t){return t.segments.map(t=>Xb(t)).join("/")}function jb(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qb(t){return jb(t).replace(/%3B/gi,";")}function $b(t){return jb(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ub(t){return decodeURIComponent(t)}function Hb(t){return Ub(t.replace(/\+/g,"%20"))}function Xb(t){return`${$b(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${$b(t)}=${$b(e[t])}`).join("")}`;var e}const Gb=/^[^\/()?;=#]+/;function Wb(t){const e=t.match(Gb);return e?e[0]:""}const Yb=/^[^=?&#]+/,Kb=/^[^?&#]+/;class Jb{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Tb([],{}):new Tb([],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 i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new Tb(t,e)),i}parseSegment(){const t=Wb(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Mb(Ub(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Wb(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Wb(this.remaining);t&&(i=t,this.capture(i))}t[Ub(e)]=Ub(i)}parseQueryParam(t){const e=function(t){const e=t.match(Yb);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Kb);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Hb(e),s=Hb(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Wb(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const a=this.parseChildren();e[s]=1===Object.keys(a).length?a.primary:new Tb([],a),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 Qb{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=Zb(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Zb(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=t_(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return t_(t,this._root).map(t=>t.value)}}function Zb(t,e){if(t===e.value)return e;for(const i of e.children){const e=Zb(t,i);if(e)return e}return null}function t_(t,e){if(t===e.value)return[e];for(const i of e.children){const n=t_(t,i);if(n.length)return n.unshift(e),n}return[]}class e_{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function i_(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class n_ extends Qb{constructor(t,e){super(t),this.snapshot=e,c_(this,t)}toString(){return this.snapshot.toString()}}function s_(t,e){const i=function(t,e){const i=new o_([],{},{},"",{},"primary",e,null,t.root,-1,{});return new l_("",new e_(i,[]))}(t,e),n=new Pf([new Mb("",{})]),s=new Pf({}),a=new Pf({}),r=new Pf({}),o=new Pf(""),l=new a_(n,s,r,o,a,"primary",e,i.root);return l.snapshot=i.root,new n_(new e_(l,[]),i)}class a_{constructor(t,e,i,n,s,a,r,o){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=a,this.component=r,this._futureSnapshot=o}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(Object(ii.a)(t=>bb(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(ii.a)(t=>bb(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function r_(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}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:{}})}(i.slice(n))}class o_{constructor(t,e,i,n,s,a,r,o,l,c,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=a,this.component=r,this.routeConfig=o,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}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=bb(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bb(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class l_ extends Qb{constructor(t,e){super(e),this.url=t,c_(this,e)}toString(){return h_(this._root)}}function c_(t,e){e.value._routerState=t,e.children.forEach(e=>c_(t,e))}function h_(t){const e=t.children.length>0?` { ${t.children.map(h_).join(", ")} } `:"";return`${t.value}${e}`}function d_(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Sb(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),Sb(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iSb(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||u_(t.parent,e.parent))}function m_(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function p_(t,e,i,n,s){let a={};return n&&Ob(n,(t,e)=>{a[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Ib(i.root===t?e:function t(e,i,n){const s={};return Ob(e.children,(e,a)=>{s[a]=e===i?n:t(e,i,n)}),new Tb(e.segments,s)}(i.root,t,e),a,s)}class g_{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&m_(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(n&&n!==Ab(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class f_{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function b_(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:`${t}`}function __(t,e,i){if(t||(t=new Tb([],{})),0===t.segments.length&&t.hasChildren())return y_(t,e,i);const n=function(t,e,i){let n=0,s=e;const a={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return a;const e=t.segments[s],r=b_(i[n]),o=n0&&void 0===r)break;if(r&&o&&"object"==typeof o&&void 0===o.outlets){if(!x_(r,o,e))return a;n+=2}else{if(!x_(r,{},e))return a;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{null!==i&&(s[n]=__(t.children[n],e,i))}),Ob(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new Tb(t.segments,s)}}function v_(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[i]=v_(new Tb([],{}),0,t))}),e}function k_(t){const e={};return Ob(t,(t,i)=>e[i]=`${t}`),e}function x_(t,e,i){return t==i.path&&Sb(e,i.parameters)}class C_{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),d_(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=i_(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),Ob(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet);if(i){const n=i_(t),s=t.value.component?i.children:e;Ob(n,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}activateChildRoutes(t,e,i){const n=i_(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new mb(t.value.snapshot))}),t.children.length&&this.forwardEvent(new db(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(d_(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.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),S_(t.route)}else{const i=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}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function S_(t){d_(t.value),t.children.forEach(S_)}function D_(t){return"function"==typeof t}function E_(t){return t instanceof Ib}class A_{constructor(t){this.segmentGroup=t||null}}class O_{constructor(t){this.urlTree=t}}function R_(t){return new si.a(e=>e.error(new A_(t)))}function P_(t){return new si.a(e=>e.error(new O_(t)))}function I_(t){return new si.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class T_{constructor(t,e,i,n,a){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(s.D)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(ii.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(ad(t=>{if(t instanceof O_)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof A_)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(ii.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(ad(t=>{if(t instanceof A_)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new Tb([],{primary:t}):t;return new Ib(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(Object(ii.a)(t=>new Tb([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){return function(t,e){if(0===Object.keys(t).length)return Ne({});const i=[],n=[],s={};return Ob(t,(t,a)=>{const r=e(a,t).pipe(Object(ii.a)(t=>s[a]=t));"primary"===a?i.push(r):n.push(r)}),Ne.apply(null,i.concat(n)).pipe(an(),Uf(),Object(ii.a)(()=>s))}(i.children,(i,n)=>this.expandSegmentGroup(t,e,n,i))}expandSegment(t,e,i,n,s,a){return Ne(...i).pipe(Object(ii.a)(r=>this.expandSegmentAgainstRoute(t,e,i,r,n,s,a).pipe(ad(t=>{if(t instanceof A_)return Ne(null);throw t}))),an(),Hf(t=>!!t),ad((t,i)=>{if(t instanceof If||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,n,s))return Ne(new Tb([],{}));throw new A_(e)}throw t}))}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}expandSegmentAgainstRoute(t,e,i,n,s,a,r){return L_(n)!==a?R_(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a):R_(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?P_(s):this.lineralizeSegments(i,s).pipe(Object(ud.a)(i=>{const s=new Tb(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,a){const{matched:r,consumedSegments:o,lastChild:l,positionalParamSegments:c}=M_(e,n,s);if(!r)return R_(e);const h=this.applyRedirectCommands(o,n.redirectTo,c);return n.redirectTo.startsWith("/")?P_(h):this.lineralizeSegments(n,h).pipe(Object(ud.a)(n=>this.expandSegment(t,e,i,n.concat(s.slice(l)),a,!1)))}matchSegmentAgainstRoute(t,e,i,n){if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(Object(ii.a)(t=>(i._loadedConfig=t,new Tb(n,{})))):Ne(new Tb(n,{}));const{matched:s,consumedSegments:a,lastChild:r}=M_(e,i,n);if(!s)return R_(e);const o=n.slice(r);return this.getChildConfig(t,i,n).pipe(Object(ud.a)(t=>{const i=t.module,n=t.routes,{segmentGroup:s,slicedSegments:r}=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some(i=>N_(t,e,i)&&"primary"!==L_(i))}(t,i,n)?{segmentGroup:F_(new Tb(e,function(t,e){const i={};i.primary=e;for(const n of t)""===n.path&&"primary"!==L_(n)&&(i[L_(n)]=new Tb([],{}));return i}(n,new Tb(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some(i=>N_(t,e,i))}(t,i,n)?{segmentGroup:F_(new Tb(t.segments,function(t,e,i,n){const s={};for(const a of i)N_(t,e,a)&&!n[L_(a)]&&(s[L_(a)]=new Tb([],{}));return Object.assign(Object.assign({},n),s)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,a,o,n);return 0===r.length&&s.hasChildren()?this.expandChildren(i,n,s).pipe(Object(ii.a)(t=>new Tb(a,t))):0===n.length&&0===r.length?Ne(new Tb(a,{})):this.expandSegment(i,s,n,r,"primary",!0).pipe(Object(ii.a)(t=>new Tb(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Ne(new vb(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ne(e._loadedConfig):function(t,e,i){const n=e.canLoad;return n&&0!==n.length?Object(_s.a)(n).pipe(Object(ii.a)(n=>{const s=t.get(n);let a;if(function(t){return t&&D_(t.canLoad)}(s))a=s.canLoad(e,i);else{if(!D_(s))throw new Error("Invalid CanLoad guard");a=s(e,i)}return Rb(a)})).pipe(an(),(s=t=>!0===t,t=>t.lift(new Xf(s,void 0,t)))):Ne(!0);var s}(t.injector,e,i).pipe(Object(ud.a)(i=>i?this.configLoader.load(t.injector,e).pipe(Object(ii.a)(t=>(e._loadedConfig=t,t))):function(t){return new si.a(e=>e.error(_b(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Ne(new vb([],t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Ne(i);if(n.numberOfChildren>1||!n.children.primary)return I_(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new Ib(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Ob(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let a={};return Ob(e.children,(e,s)=>{a[s]=this.createSegmentGroup(t,e,i,n)}),new Tb(s,a)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function M_(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const n=(e.matcher||yb)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function F_(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Tb(t.segments.concat(e.segments),e.children)}return t}function N_(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function L_(t){return t.outlet||"primary"}class z_{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class B_{constructor(t,e){this.component=t,this.route=e}}function V_(t,e,i){const n=t._root;return function t(e,i,n,s,a={canDeactivateChecks:[],canActivateChecks:[]}){const r=i_(i);return e.children.forEach(e=>{!function(e,i,n,s,a={canDeactivateChecks:[],canActivateChecks:[]}){const r=e.value,o=i?i.value:null,l=n?n.getContext(e.value.outlet):null;if(o&&r.routeConfig===o.routeConfig){const c=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Fb(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Fb(t.url,e.url)||!Sb(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!u_(t,e)||!Sb(t.queryParams,e.queryParams);case"paramsChange":default:return!u_(t,e)}}(o,r,r.routeConfig.runGuardsAndResolvers);c?a.canActivateChecks.push(new z_(s)):(r.data=o.data,r._resolvedData=o._resolvedData),t(e,i,r.component?l?l.children:null:n,s,a),c&&a.canDeactivateChecks.push(new B_(l&&l.outlet&&l.outlet.component||null,o))}else o&&q_(i,l,a),a.canActivateChecks.push(new z_(s)),t(e,null,r.component?l?l.children:null:n,s,a)}(e,r[e.value.outlet],n,s.concat([e.value]),a),delete r[e.value.outlet]}),Ob(r,(t,e)=>q_(t,n.getContext(e),a)),a}(n,e?e._root:null,i,[n.value])}function j_(t,e,i){const n=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(n?n.module.injector:i).get(t)}function q_(t,e,i){const n=i_(t),s=t.value;Ob(n,(t,n)=>{q_(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new B_(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const $_=Symbol("INITIAL_VALUE");function U_(){return jo(t=>ym(...t.map(t=>t.pipe(oi(1),on($_)))).pipe(Wf((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==$_)return t;if(n===$_&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||E_(n))return n}return t},t)},$_),Ze(t=>t!==$_),Object(ii.a)(t=>E_(t)?t:!0===t),oi(1)))}function H_(t,e){return null!==t&&e&&e(new ub(t)),Ne(!0)}function X_(t,e){return null!==t&&e&&e(new hb(t)),Ne(!0)}function G_(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?Ne(n.map(n=>po(()=>{const s=j_(n,e,i);let a;if(function(t){return t&&D_(t.canActivate)}(s))a=Rb(s.canActivate(e,t));else{if(!D_(s))throw new Error("Invalid CanActivate guard");a=Rb(s(e,t))}return a.pipe(Hf())}))).pipe(U_()):Ne(!0)}function W_(t,e,i){const n=e[e.length-1],s=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=>po(()=>Ne(e.guards.map(s=>{const a=j_(s,e.node,i);let r;if(function(t){return t&&D_(t.canActivateChild)}(a))r=Rb(a.canActivateChild(n,t));else{if(!D_(a))throw new Error("Invalid CanActivateChild guard");r=Rb(a(n,t))}return r.pipe(Hf())})).pipe(U_())));return Ne(s).pipe(U_())}class Y_{}class K_{constructor(t,e,i,n,s,a){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a}recognize(){try{const t=Z_(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),i=new o_([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),n=new e_(i,e),s=new l_(this.url,n);return this.inheritParamsAndData(s._root),Ne(s)}catch(t){return new si.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,i=r_(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=Nb(e,(e,i)=>this.processSegmentGroup(t,e,i));return function(t){const e={};t.forEach(t=>{const i=e[t.value.outlet];if(i){const e=i.url.map(t=>t.toString()).join("/"),n=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${n}'.`)}e[t.value.outlet]=t.value})}(i),i.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,i,n){for(const a of t)try{return this.processSegmentAgainstRoute(a,e,i,n)}catch(s){if(!(s instanceof Y_))throw s}if(this.noLeftoversInUrl(e,i,n))return[];throw new Y_}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo)throw new Y_;if((t.outlet||"primary")!==n)throw new Y_;let s,a=[],r=[];if("**"===t.path){const a=i.length>0?Ab(i).parameters:{};s=new o_(i,a,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,iy(t),n,t.component,t,J_(e),Q_(e)+i.length,ny(t))}else{const o=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new Y_;return{consumedSegments:[],lastChild:0,parameters:{}}}const n=(e.matcher||yb)(i,t,e);if(!n)throw new Y_;const s={};Ob(n.posParams,(t,e)=>{s[e]=t.path});const a=n.consumed.length>0?Object.assign(Object.assign({},s),n.consumed[n.consumed.length-1].parameters):s;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:a}}(e,t,i);a=o.consumedSegments,r=i.slice(o.lastChild),s=new o_(a,o.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,iy(t),n,t.component,t,J_(e),Q_(e)+a.length,ny(t))}const o=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Z_(e,a,r,o,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(o,l);return[new e_(s,t)]}if(0===o.length&&0===c.length)return[new e_(s,[])];const h=this.processSegment(o,l,c,"primary");return[new e_(s,h)]}}function J_(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Q_(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function Z_(t,e,i,n,s){if(i.length>0&&function(t,e,i){return i.some(i=>ty(t,e,i)&&"primary"!==ey(i))}(t,i,n)){const s=new Tb(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const a of i)if(""===a.path&&"primary"!==ey(a)){const i=new Tb([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[ey(a)]=i}return s}(t,e,n,new Tb(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>ty(t,e,i))}(t,i,n)){const a=new Tb(t.segments,function(t,e,i,n,s,a){const r={};for(const o of n)if(ty(t,i,o)&&!s[ey(o)]){const i=new Tb([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===a?t.segments.length:e.length,r[ey(o)]=i}return Object.assign(Object.assign({},s),r)}(t,e,i,n,t.children,s));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}const a=new Tb(t.segments,t.children);return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:i}}function ty(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function ey(t){return t.outlet||"primary"}function iy(t){return t.data||{}}function ny(t){return t.resolve||{}}function sy(t,e,i,n){const s=j_(t,e,n);return Rb(s.resolve?s.resolve(e,i):s(e,i))}function ay(t){return function(e){return e.pipe(jo(e=>{const i=t(e);return i?Object(_s.a)(i).pipe(Object(ii.a)(()=>e)):Object(_s.a)([e])}))}}class ry{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const oy=new s.v("ROUTES");class ly{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(ii.a)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new vb(Eb(n.injector.get(oy)).map(Cb),n)}))}loadModuleFactory(t){return"string"==typeof t?Object(_s.a)(this.loader.load(t)):Rb(t()).pipe(Object(ud.a)(t=>t instanceof s.B?Ne(t):Object(_s.a)(this.compiler.compileModuleAsync(t))))}}class cy{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function hy(t){throw t}function dy(t,e,i){return e.parse("/")}function uy(t,e){return Ne(null)}let my=(()=>{class t{constructor(t,e,i,n,a,r,o,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Pe.a,this.errorHandler=hy,this.malformedUriErrorHandler=dy,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:uy,afterPreactivation:uy},this.urlHandlingStrategy=new cy,this.routeReuseStrategy=new ry,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=a.get(s.D),this.console=a.get(s.ib);const c=a.get(s.F);this.isNgZoneEnabled=c instanceof s.F,this.resetConfig(l),this.currentUrlTree=new Ib(new Tb([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ly(r,o,t=>this.triggerEvent(new lb(t)),t=>this.triggerEvent(new cb(t))),this.routerState=s_(this.currentUrlTree,this.rootComponentType),this.transitions=new Pf({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(Ze(t=>0!==t.id),Object(ii.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),jo(t=>{let i=!1,n=!1;return Ne(t).pipe(je(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}}),jo(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ne(t).pipe(jo(t=>{const i=this.transitions.getValue();return e.next(new Zf(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?ai:[t]}),jo(t=>Promise.resolve(t)),(n=this.ngModule.injector,s=this.configLoader,a=this.urlSerializer,r=this.config,function(t){return t.pipe(jo(t=>function(t,e,i,n,s){return new T_(t,e,i,n,s).apply()}(n,s,a,t.extractedUrl,r).pipe(Object(ii.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),je(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return function(a){return a.pipe(Object(ud.a)(a=>function(t,e,i,n,s="emptyOnly",a="legacy"){return new K_(t,e,i,n,s,a).recognize()}(t,e,a.urlAfterRedirects,i(a.urlAfterRedirects),n,s).pipe(Object(ii.a)(t=>Object.assign(Object.assign({},a),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),je(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),je(t=>{const i=new nb(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,a,r;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:a,extras:r}=t,o=new Zf(i,this.serializeUrl(n),s,a);e.next(o);const l=s_(n,this.rootComponentType).snapshot;return Ne(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:n,extras:Object.assign(Object.assign({},r),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ai}),ay(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:a,replaceUrl:r}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!a,replaceUrl:!!r})}),je(t=>{const e=new sb(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(ii.a)(t=>Object.assign(Object.assign({},t),{guards:V_(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(i){return i.pipe(Object(ud.a)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:r}}=i;return 0===r.length&&0===a.length?Ne(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return Object(_s.a)(t).pipe(Object(ud.a)(t=>function(t,e,i,n,s){const a=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return a&&0!==a.length?Ne(a.map(a=>{const r=j_(a,e,s);let o;if(function(t){return t&&D_(t.canDeactivate)}(r))o=Rb(r.canDeactivate(t,e,i,n));else{if(!D_(r))throw new Error("Invalid CanDeactivate guard");o=Rb(r(t,e,i,n))}return o.pipe(Hf())})).pipe(U_()):Ne(!0)}(t.component,t.route,i,e,n)),Hf(t=>!0!==t,!0))}(r,n,s,t).pipe(Object(ud.a)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return Object(_s.a)(e).pipe(md(e=>Object(_s.a)([X_(e.route.parent,n),H_(e.route,n),W_(t,e.path,i),G_(t,e.route,i)]).pipe(an(),Hf(t=>!0!==t,!0))),Hf(t=>!0!==t,!0))}(n,a,t,e):Ne(i)),Object(ii.a)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),je(t=>{if(E_(t.guardsResult)){const e=_b(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),je(t=>{const e=new ab(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Ze(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const i=new eb(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),ay(t=>{if(t.guards.canActivateChecks.length)return Ne(t).pipe(je(t=>{const e=new rb(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,i=this.ngModule.injector,function(t){return t.pipe(Object(ud.a)(t=>{const{targetSnapshot:n,guards:{canActivateChecks:s}}=t;return s.length?Object(_s.a)(s).pipe(md(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return Ne({});if(1===s.length){const a=s[0];return sy(t[a],e,i,n).pipe(Object(ii.a)(t=>({[a]:t})))}const a={};return Object(_s.a)(s).pipe(Object(ud.a)(s=>sy(t[s],e,i,n).pipe(Object(ii.a)(t=>(a[s]=t,t))))).pipe(Uf(),Object(ii.a)(()=>a))}(t._resolve,t,e,n).pipe(Object(ii.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),r_(t,i).resolve),null)))}(t.route,n,e,i)),function(t,e){return arguments.length>=2?function(i){return Object(Jf.a)(Wf(t,e),Tf(1),Vf(e))(i)}:function(e){return Object(Jf.a)(Wf((e,i,n)=>t(e,i,n+1)),Tf(1))(e)}}((t,e)=>t),Object(ii.a)(e=>t)):Ne(t)}))}),je(t=>{const e=new ob(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,i}),ay(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:a,replaceUrl:r}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!a,replaceUrl:!!r})}),Object(ii.a)(t=>{const e=function(t,e,i){const n=function t(e,i,n){if(n&&e.shouldReuseRoute(i.value,n.value.snapshot)){const s=n.value;s._futureSnapshot=i.value;const a=function(e,i,n){return i.children.map(i=>{for(const s of n.children)if(e.shouldReuseRoute(s.value.snapshot,i.value))return t(e,i,s);return t(e,i)})}(e,i,n);return new e_(s,a)}{const n=e.retrieve(i.value);if(n){const t=n.route;return function t(e,i){if(e.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=e.value;for(let n=0;nt(e,i));return new e_(n,a)}}var s}(t,e._root,i?i._root:void 0);return new n_(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),je(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,a=this.routeReuseStrategy,r=t=>this.triggerEvent(t),Object(ii.a)(t=>(new C_(a,t.targetRouterState,t.currentRouterState,r).activate(s),t))),je({next(){i=!0},complete(){i=!0}}),ld(()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new eb(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(i),t.resolve(!1)}this.currentNavigation=null}),ad(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=E_(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new eb(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.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 n=new ib(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(a){t.reject(a)}}var s;return ai}));var s,a,r}))}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 i="popstate"===t.type?"popstate":"hashchange",n=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,i,n,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){wb(t),this.config=t.map(Cb),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:a,preserveQueryParams:r,queryParamsHandling:o,preserveFragment:l}=e;Object(s.eb)()&&r&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=i||this.routerState.root,h=l?this.currentUrlTree.fragment:a;let d=null;if(o)switch(o){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=n||null}else d=r?this.currentUrlTree.queryParams:n||null;return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,i,n,s){if(0===i.length)return p_(e.root,e.root,e,n,s);const a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new g_(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return Ob(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new g_(i,e,n)}(i);if(a.toRoot())return p_(e.root,new Tb([],{}),e,n,s);const r=function(t,e,i){if(t.isAbsolute)return new f_(e.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new f_(i.snapshot._urlSegment,!0,0);const n=m_(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,a=i;for(;a>s;){if(a-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new f_(n,!1,s-a)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(a,e,t),o=r.processChildren?y_(r.segmentGroup,r.index,a.commands):__(r.segmentGroup,r.index,a.commands);return p_(r.segmentGroup,o,e,n,s)}(c,this.currentUrlTree,t,d,h)}navigateByUrl(t,e={skipLocationChange:!1}){Object(s.eb)()&&this.isNgZoneEnabled&&!s.F.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const i=E_(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new tb(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,i,n,s){const a=this.getTransition();if(a&&"imperative"!==e&&"imperative"===a.source&&a.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(a&&"hashchange"==e&&"popstate"===a.source&&a.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(a&&"popstate"==e&&"hashchange"===a.source&&a.rawUrl.toString()===t.toString())return Promise.resolve(!0);let r,o,l;s?(r=s.resolve,o=s.reject,l=s.promise):l=new Promise((t,e)=>{r=t,o=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:r,reject:o,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,i,n){const s=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},n),{navigationId:i})):this.location.go(s,"",Object.assign(Object.assign({},n),{navigationId:i}))}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){s.Mc()},t.\u0275dir=s.tc({type:t}),t})(),py=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.route=e,this.commands=[],null==i&&n.setAttribute(s.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.eb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:fy(this.skipLocationChange),replaceUrl:fy(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:fy(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:fy(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(my),s.yc(a_),s.Kc("tabindex"),s.yc(s.L),s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.Nc("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),gy=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof tb&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.eb)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n){if(0!==t||e||i||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const s={skipLocationChange:fy(this.skipLocationChange),replaceUrl:fy(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:fy(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:fy(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(my),s.yc(a_),s.yc(ye.o))},t.\u0275dir=s.tc({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.Nc("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(s.Gc("href",e.href,s.kd),s.lc("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.ic]}),t})();function fy(t){return""===t||!!t}let by=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.element=e,this.renderer=i,this.link=n,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof tb&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(my),s.yc(s.q),s.yc(s.L),s.yc(py,8),s.yc(gy,8))},t.\u0275dir=s.tc({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){var n;1&t&&(s.qc(i,py,!0),s.qc(i,gy,!0)),2&t&&(s.dd(n=s.Oc())&&(e.links=n),s.dd(n=s.Oc())&&(e.linksWithHrefs=n))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[s.ic]}),t})();class _y{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new yy,this.attachRef=null}}class yy{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}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 _y,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let vy=(()=>{class t{constructor(t,e,i,n,a){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.s,this.deactivateEvents=new s.s,this.name=n||"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 i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new wy(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(yy),s.yc(s.X),s.yc(s.n),s.Kc("name"),s.yc(s.j))},t.\u0275dir=s.tc({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class wy{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===a_?this.route:t===yy?this.childContexts:this.parent.get(t,e)}}class ky{}class xy{preload(t,e){return Ne(null)}}let Cy=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new ly(e,i,e=>t.triggerEvent(new lb(e)),e=>t.triggerEvent(new cb(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Ze(t=>t instanceof tb),md(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.D);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return Object(_s.a)(i).pipe(Object(sn.a)(),Object(ii.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(ud.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(my),s.Jc(s.C),s.Jc(s.k),s.Jc(s.w),s.Jc(ky))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),Sy=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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 Zf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof tb&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof pb&&(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 pb(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){s.Mc()},t.\u0275dir=s.tc({type:t}),t})();const Dy=new s.v("ROUTER_CONFIGURATION"),Ey=new s.v("ROUTER_FORROOT_GUARD"),Ay=[ye.n,{provide:Lb,useClass:zb},{provide:my,useFactory:function(t,e,i,n,s,a,r,o={},l,c){const h=new my(null,t,e,i,n,s,a,Eb(r));if(l&&(h.urlHandlingStrategy=l),c&&(h.routeReuseStrategy=c),o.errorHandler&&(h.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(h.malformedUriErrorHandler=o.malformedUriErrorHandler),o.enableTracing){const t=Object(ye.N)();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return o.onSameUrlNavigation&&(h.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.urlUpdateStrategy&&(h.urlUpdateStrategy=o.urlUpdateStrategy),o.relativeLinkResolution&&(h.relativeLinkResolution=o.relativeLinkResolution),h},deps:[Lb,yy,ye.n,s.w,s.C,s.k,oy,Dy,[class{},new s.G],[class{},new s.G]]},yy,{provide:a_,useFactory:function(t){return t.routerState.root},deps:[my]},{provide:s.C,useClass:s.R},Cy,xy,class{preload(t,e){return e().pipe(ad(()=>Ne(null)))}},{provide:Dy,useValue:{enableTracing:!1}}];function Oy(){return new s.E("Router",my)}let Ry=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[Ay,My(e),{provide:Ey,useFactory:Ty,deps:[[my,new s.G,new s.Q]]},{provide:Dy,useValue:i||{}},{provide:ye.o,useFactory:Iy,deps:[ye.D,[new s.u(ye.a),new s.G],Dy]},{provide:Sy,useFactory:Py,deps:[my,ye.H,Dy]},{provide:ky,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:xy},{provide:s.E,multi:!0,useFactory:Oy},[Fy,{provide:s.d,multi:!0,useFactory:Ny,deps:[Fy]},{provide:zy,useFactory:Ly,deps:[Fy]},{provide:s.b,multi:!0,useExisting:zy}]]}}static forChild(e){return{ngModule:t,providers:[My(e)]}}}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)(s.Jc(Ey,8),s.Jc(my,8))}}),t})();function Py(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Sy(t,e,i)}function Iy(t,e,i={}){return i.useHash?new ye.h(t,e):new ye.B(t,e)}function Ty(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function My(t){return[{provide:s.a,multi:!0,useValue:t},{provide:oy,multi:!0,useValue:t}]}let Fy=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new Pe.a}appInitializer(){return this.injector.get(ye.m,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(my),n=this.injector.get(Dy);if(this.isLegacyDisabled(n)||this.isLegacyEnabled(n))t(!0);else if("disabled"===n.initialNavigation)i.setUpLocationChangeListener(),t(!0);else{if("enabled"!==n.initialNavigation)throw new Error(`Invalid initialNavigation options: '${n.initialNavigation}'`);i.hooks.afterPreactivation=()=>this.initNavigation?Ne(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Dy),i=this.injector.get(Cy),n=this.injector.get(Sy),a=this.injector.get(my),r=this.injector.get(s.g);t===r.components[0]&&(this.isLegacyEnabled(e)?a.initialNavigation():this.isLegacyDisabled(e)&&a.setUpLocationChangeListener(),i.setUpPreloading(),n.init(),a.resetRootComponentType(r.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)(s.Jc(s.w))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();function Ny(t){return t.appInitializer.bind(t)}function Ly(t){return t.bootstrapListener.bind(t)}const zy=new s.v("Router Initializer");let By=(()=>{class t{constructor(t,e,i){this.http=t,this.router=e,this.document=i,this.path="",this.audioFolder="",this.videoFolder="",this.startPath=null,this.startPathSSL=null,this.handShakeComplete=!1,this.THEMES_CONFIG=Rf,this.settings_changed=new Pf(!1),this.debugMode=!1,console.log("PostsService Initialized..."),this.path=this.document.location.origin+"/api/",Object(s.eb)()&&(this.debugMode=!0,this.path="http://localhost:17442/api/")}setTheme(t){this.theme=this.THEMES_CONFIG[t]}startHandshake(t){return this.http.get(t+"geturl")}startHandshakeSSL(t){return this.http.get(t+"geturl")}getVideoFolder(){return this.http.get(this.startPath+"videofolder")}getAudioFolder(){return this.http.get(this.startPath+"audiofolder")}makeMP3(t,e,i,n=null,s=null,a=null,r=null){return this.http.post(this.path+"tomp3",{url:t,maxBitrate:e,customQualityConfiguration:i,customArgs:n,customOutput:s,youtubeUsername:a,youtubePassword:r})}makeMP4(t,e,i,n=null,s=null,a=null,r=null){return this.http.post(this.path+"tomp4",{url:t,selectedHeight:e,customQualityConfiguration:i,customArgs:n,customOutput:s,youtubeUsername:a,youtubePassword:r})}getFileStatusMp3(t){return this.http.post(this.path+"fileStatusMp3",{name:t})}getFileStatusMp4(t){return this.http.post(this.path+"fileStatusMp4",{name:t})}loadNavItems(){return Object(s.eb)()?this.http.get("./assets/default.json"):this.http.get(this.path+"config")}setConfig(t){return this.http.post(this.path+"setConfig",{new_config_file:t})}deleteFile(t,e,i=!1){return this.http.post(e?this.path+"deleteMp3":this.path+"deleteMp4",{name:t,blacklistMode:i})}getMp3s(){return this.http.post(this.path+"getMp3s",{})}getMp4s(){return this.http.post(this.path+"getMp4s",{})}downloadFileFromServer(t,e,i=null,n=null){return this.http.post(this.path+"downloadFile",{fileNames:t,type:e,zip_mode:Array.isArray(t),outputName:i,fullPathProvided:n},{responseType:"blob"})}downloadArchive(t){return this.http.post(this.path+"downloadArchive",{sub:t},{responseType:"blob"})}getFileInfo(t,e,i){return this.http.post(this.path+"getVideoInfos",{fileNames:t,type:e,urlMode:i})}isPinSet(){return this.http.post(this.path+"isPinSet",{})}setPin(t){return this.http.post(this.path+"setPin",{pin:t})}checkPin(t){return this.http.post(this.path+"checkPin",{input_pin:t})}createPlaylist(t,e,i,n){return this.http.post(this.path+"createPlaylist",{playlistName:t,fileNames:e,type:i,thumbnailURL:n})}updatePlaylist(t,e,i){return this.http.post(this.path+"updatePlaylist",{playlistID:t,fileNames:e,type:i})}removePlaylist(t,e){return this.http.post(this.path+"deletePlaylist",{playlistID:t,type:e})}createSubscription(t,e,i=null){return this.http.post(this.path+"subscribe",{url:t,name:e,timerange:i})}unsubscribe(t,e=!1){return this.http.post(this.path+"unsubscribe",{sub:t,deleteMode:e})}deleteSubscriptionFile(t,e,i){return this.http.post(this.path+"deleteSubscriptionFile",{sub:t,file:e,deleteForever:i})}getSubscription(t){return this.http.post(this.path+"getSubscription",{id:t})}getAllSubscriptions(){return this.http.post(this.path+"getAllSubscriptions",{})}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(Rd),s.Jc(my),s.Jc(ye.e))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();si.a.of=Ne;class Vy{constructor(t){this.value=t}call(t,e){return e.subscribe(new jy(t,this.value))}}class jy extends ze.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function qy(t,e,i){return je(t,e,i)(this)}function $y(){return jo($f.a)(this)}function Uy(t,e){if(1&t&&(s.Dc(0,"h4",5),s.sd(1),s.Cc()),2&t){const t=s.Rc();s.kc(1),s.td(t.dialog_title)}}function Hy(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"mat-form-field",6),s.Dc(2,"input",7),s.Nc("keyup.enter",(function(){return s.id(t),s.Rc().doAction()}))("ngModelChange",(function(e){return s.id(t),s.Rc().input=e})),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.kc(2),s.Xc("ngModel",t.input)("placeholder",t.input_placeholder)}}function Xy(t,e){1&t&&(s.Dc(0,"div",8),s.zc(1,"mat-spinner",9),s.Cc()),2&t&&(s.kc(1),s.Xc("diameter",25))}si.a.prototype.mapTo=function(t){return function(t){return e=>e.lift(new Vy(t))}(t)(this)},i("XypG"),si.a.fromEvent=fo,si.a.prototype.filter=function(t,e){return Ze(t,e)(this)},si.a.prototype.debounceTime=function(t,e=We){return Ye(t,e)(this)},si.a.prototype.do=qy,si.a.prototype._do=qy,si.a.prototype.switch=$y,si.a.prototype._switch=$y;let Gy=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.data=e,this.dialogRef=i,this.snackBar=n,this.pinSetChecked=!1,this.pinSet=!0,this.resetMode=!1,this.dialog_title="",this.input_placeholder=null,this.input="",this.button_label=""}ngOnInit(){this.data&&(this.resetMode=this.data.resetMode),this.resetMode?(this.pinSetChecked=!0,this.notSetLogic()):this.isPinSet()}isPinSet(){this.postsService.isPinSet().subscribe(t=>{this.pinSetChecked=!0,t.is_set?this.isSetLogic():this.notSetLogic()})}isSetLogic(){this.pinSet=!0,this.dialog_title="Pin Required",this.input_placeholder="Pin",this.button_label="Submit"}notSetLogic(){this.pinSet=!1,this.dialog_title="Set your pin",this.input_placeholder="New pin",this.button_label="Set Pin"}doAction(){this.pinSetChecked&&0!==this.input.length&&(this.pinSet?this.postsService.checkPin(this.input).subscribe(t=>{t.success?this.dialogRef.close(!0):(this.dialogRef.close(!1),this.openSnackBar("Pin is incorrect!"))}):this.postsService.setPin(this.input).subscribe(t=>{t.success?(this.dialogRef.close(!0),this.openSnackBar("Pin successfully set!")):(this.dialogRef.close(!1),this.openSnackBar("Failed to set pin!"))}))}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(th),s.yc(Zc),s.yc(Pg))},t.\u0275cmp=s.sc({type:t,selectors:[["app-check-or-set-pin-dialog"]],decls:8,vars:5,consts:[["mat-dialog-title","",4,"ngIf"],[2,"position","relative"],[4,"ngIf"],["class","spinner-div",4,"ngIf"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],["mat-dialog-title",""],["color","accent"],["type","password","matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],[1,"spinner-div"],[3,"diameter"]],template:function(t,e){1&t&&(s.qd(0,Uy,2,1,"h4",0),s.Dc(1,"mat-dialog-content"),s.Dc(2,"div",1),s.qd(3,Hy,3,2,"div",2),s.qd(4,Xy,2,1,"div",3),s.Cc(),s.Cc(),s.Dc(5,"mat-dialog-actions"),s.Dc(6,"button",4),s.Nc("click",(function(){return e.doAction()})),s.sd(7),s.Cc(),s.Cc()),2&t&&(s.Xc("ngIf",e.pinSetChecked),s.kc(3),s.Xc("ngIf",e.pinSetChecked),s.kc(1),s.Xc("ngIf",!e.pinSetChecked),s.kc(2),s.Xc("disabled",0===e.input.length),s.kc(1),s.td(e.button_label))},directives:[ye.t,lh,ch,ds,oh,Rc,vu,Ds,Ts,ja,ep],styles:[".spinner-div[_ngcontent-%COMP%]{position:absolute;margin:0 auto;top:30%;left:42%}"]}),t})();const Wy={ab:{name:"Abkhaz",nativeName:"\u0430\u04a7\u0441\u0443\u0430"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"\u12a0\u121b\u122d\u129b"},ar:{name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},an:{name:"Aragonese",nativeName:"Aragon\xe9s"},hy:{name:"Armenian",nativeName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},as:{name:"Assamese",nativeName:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},av:{name:"Avaric",nativeName:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0, \u043c\u0430\u0433\u04c0\u0430\u0440\u0443\u043b \u043c\u0430\u0446\u04c0"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"az\u0259rbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435"},eu:{name:"Basque",nativeName:"euskara, euskera"},be:{name:"Belarusian",nativeName:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f"},bn:{name:"Bengali",nativeName:"\u09ac\u09be\u0982\u09b2\u09be"},bh:{name:"Bihari",nativeName:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"},my:{name:"Burmese",nativeName:"\u1017\u1019\u102c\u1005\u102c"},ca:{name:"Catalan; Valencian",nativeName:"Catal\xe0"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiChe\u0175a, chinyanja"},zh:{name:"Chinese",nativeName:"\u4e2d\u6587 (Zh\u014dngw\xe9n), \u6c49\u8bed, \u6f22\u8a9e"},cv:{name:"Chuvash",nativeName:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu, lingua corsa"},cr:{name:"Cree",nativeName:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"\u010desky, \u010de\u0161tina"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"\u078b\u07a8\u0788\u07ac\u0780\u07a8"},nl:{name:"Dutch",nativeName:"Nederlands, Vlaams"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti, eesti keel"},ee:{name:"Ewe",nativeName:"E\u028begbe"},fo:{name:"Faroese",nativeName:"f\xf8royskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi, suomen kieli"},fr:{name:"French",nativeName:"fran\xe7ais, langue fran\xe7aise"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde, Pulaar, Pular"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek, Modern",nativeName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},gn:{name:"Guaran\xed",nativeName:"Ava\xf1e\u1ebd"},gu:{name:"Gujarati",nativeName:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},ht:{name:"Haitian; Haitian Creole",nativeName:"Krey\xf2l ayisyen"},ha:{name:"Hausa",nativeName:"Hausa, \u0647\u064e\u0648\u064f\u0633\u064e"},he:{name:"Hebrew (modern)",nativeName:"\u05e2\u05d1\u05e8\u05d9\u05ea"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"\u0939\u093f\u0928\u094d\u0926\u0940, \u0939\u093f\u0902\u0926\u0940"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"As\u1ee5s\u1ee5 Igbo"},ik:{name:"Inupiaq",nativeName:"I\xf1upiaq, I\xf1upiatun"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"\xcdslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"\u1403\u14c4\u1483\u144e\u1450\u1466"},ja:{name:"Japanese",nativeName:"\u65e5\u672c\u8a9e (\u306b\u307b\u3093\u3054\uff0f\u306b\u3063\u307d\u3093\u3054)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut, Greenlandic",nativeName:"kalaallisut, kalaallit oqaasii"},kn:{name:"Kannada",nativeName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940, \u0643\u0634\u0645\u064a\u0631\u064a\u200e"},kk:{name:"Kazakh",nativeName:"\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"},km:{name:"Khmer",nativeName:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a"},ki:{name:"Kikuyu, Gikuyu",nativeName:"G\u0129k\u0169y\u0169"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz, Kyrgyz",nativeName:"\u043a\u044b\u0440\u0433\u044b\u0437 \u0442\u0438\u043b\u0438"},kv:{name:"Komi",nativeName:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"\ud55c\uad6d\uc5b4 (\u97d3\u570b\u8a9e), \uc870\uc120\ub9d0 (\u671d\u9bae\u8a9e)"},ku:{name:"Kurdish",nativeName:"Kurd\xee, \u0643\u0648\u0631\u062f\u06cc\u200e"},kj:{name:"Kwanyama, Kuanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine, lingua latina"},lb:{name:"Luxembourgish, Letzeburgesch",nativeName:"L\xebtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish, Limburgan, Limburger",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Ling\xe1la"},lo:{name:"Lao",nativeName:"\u0e9e\u0eb2\u0eaa\u0eb2\u0ea5\u0eb2\u0ea7"},lt:{name:"Lithuanian",nativeName:"lietuvi\u0173 kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latvie\u0161u valoda"},gv:{name:"Manx",nativeName:"Gaelg, Gailck"},mk:{name:"Macedonian",nativeName:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu, \u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064a\u0648\u200e"},ml:{name:"Malayalam",nativeName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"M\u0101ori",nativeName:"te reo M\u0101ori"},mr:{name:"Marathi (Mar\u0101\u1e6dh\u012b)",nativeName:"\u092e\u0930\u093e\u0920\u0940"},mh:{name:"Marshallese",nativeName:"Kajin M\u0327aje\u013c"},mn:{name:"Mongolian",nativeName:"\u043c\u043e\u043d\u0433\u043e\u043b"},na:{name:"Nauru",nativeName:"Ekakair\u0169 Naoero"},nv:{name:"Navajo, Navaho",nativeName:"Din\xe9 bizaad, Din\xe9k\u02bceh\u01f0\xed"},nb:{name:"Norwegian Bokm\xe5l",nativeName:"Norsk bokm\xe5l"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"\u0928\u0947\u092a\u093e\u0932\u0940"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"\ua188\ua320\ua4bf Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe, Ojibwa",nativeName:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0"},cu:{name:"Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic",nativeName:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"\u0b13\u0b21\u0b3c\u0b3f\u0b06"},os:{name:"Ossetian, Ossetic",nativeName:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433"},pa:{name:"Panjabi, Punjabi",nativeName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40, \u067e\u0646\u062c\u0627\u0628\u06cc\u200e"},pi:{name:"P\u0101li",nativeName:"\u092a\u093e\u0934\u093f"},fa:{name:"Persian",nativeName:"\u0641\u0627\u0631\u0633\u06cc"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto, Pushto",nativeName:"\u067e\u069a\u062a\u0648"},pt:{name:"Portuguese",nativeName:"Portugu\xeas"},qu:{name:"Quechua",nativeName:"Runa Simi, Kichwa"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian, Moldavian, Moldovan",nativeName:"rom\xe2n\u0103"},ru:{name:"Russian",nativeName:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a"},sa:{name:"Sanskrit (Sa\u1e41sk\u1e5bta)",nativeName:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"\u0938\u093f\u0928\u094d\u0927\u0940, \u0633\u0646\u068c\u064a\u060c \u0633\u0646\u062f\u06be\u06cc\u200e"},se:{name:"Northern Sami",nativeName:"Davvis\xe1megiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"y\xe2ng\xe2 t\xee s\xe4ng\xf6"},sr:{name:"Serbian",nativeName:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"G\xe0idhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala, Sinhalese",nativeName:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},sk:{name:"Slovak",nativeName:"sloven\u010dina"},sl:{name:"Slovene",nativeName:"sloven\u0161\u010dina"},so:{name:"Somali",nativeName:"Soomaaliga, af Soomaali"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"espa\xf1ol"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},te:{name:"Telugu",nativeName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},tg:{name:"Tajik",nativeName:"\u0442\u043e\u04b7\u0438\u043a\u04e3, to\u011fik\u012b, \u062a\u0627\u062c\u06cc\u06a9\u06cc\u200e"},th:{name:"Thai",nativeName:"\u0e44\u0e17\u0e22"},ti:{name:"Tigrinya",nativeName:"\u1275\u130d\u122d\u129b"},bo:{name:"Tibetan Standard, Tibetan, Central",nativeName:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42"},tk:{name:"Turkmen",nativeName:"T\xfcrkmen, \u0422\u04af\u0440\u043a\u043c\u0435\u043d"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog, \u170f\u1712\u1703\u1705\u1714 \u1706\u1704\u170e\u1713\u1704\u1714"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"T\xfcrk\xe7e"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430, tatar\xe7a, \u062a\u0627\u062a\u0627\u0631\u0686\u0627\u200e"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur, Uyghur",nativeName:"Uy\u01a3urq\u0259, \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5\u200e"},uk:{name:"Ukrainian",nativeName:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},ur:{name:"Urdu",nativeName:"\u0627\u0631\u062f\u0648"},uz:{name:"Uzbek",nativeName:"zbek, \u040e\u0437\u0431\u0435\u043a, \u0623\u06c7\u0632\u0628\u06d0\u0643\u200e"},ve:{name:"Venda",nativeName:"Tshiven\u1e13a"},vi:{name:"Vietnamese",nativeName:"Ti\u1ebfng Vi\u1ec7t"},vo:{name:"Volap\xfck",nativeName:"Volap\xfck"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},yo:{name:"Yoruba",nativeName:"Yor\xf9b\xe1"},za:{name:"Zhuang, Chuang",nativeName:"Sa\u026f cue\u014b\u0185, Saw cuengh"}},Yy={uncategorized:{label:"Main"},network:{label:"Network"},geo_restriction:{label:"Geo Restriction"},video_selection:{label:"Video Selection"},download:{label:"Download"},filesystem:{label:"Filesystem"},thumbnail:{label:"Thumbnail"},verbosity:{label:"Verbosity"},workarounds:{label:"Workarounds"},video_format:{label:"Video Format"},subtitle:{label:"Subtitle"},authentication:{label:"Authentication"},adobe_pass:{label:"Adobe Pass"},post_processing:{label:"Post Processing"}},Ky={uncategorized:[{key:"-h",alt:"--help",description:"Print this help text and exit"},{key:"--version",description:"Print program version and exit"},{key:"-U",alt:"--update",description:"Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)"},{key:"-i",alt:"--ignore-errors",description:"Continue on download errors, for example to skip unavailable videos in a playlist"},{key:"--abort-on-error",description:"Abort downloading of further videos (in the playlist or the command line) if an error occurs"},{key:"--dump-user-agent",description:"Display the current browser identification"},{key:"--list-extractors",description:"List all supported extractors"},{key:"--extractor-descriptions",description:"Output descriptions of all supported extractors"},{key:"--force-generic-extractor",description:"Force extraction to use the generic extractor"},{key:"--default-search",description:'Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two videos from google videos for youtube-dl "large apple". Use the value "auto" to let youtube-dl guess ("auto_warning" to emit awarning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching.'},{key:"--ignore-config",description:"Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: Do not read the user configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows)"},{key:"--config-location",description:"Location of the configuration file; either the path to the config or its containing directory."},{key:"--flat-playlist",description:"Do not extract the videos of a playlist, only list them."},{key:"--mark-watched",description:"Mark videos watched (YouTube only)"},{key:"--no-mark-watched",description:"Do not mark videos watched (YouTube only)"},{key:"--no-color",description:"Do not emit color codes in output"}],network:[{key:"--proxy",description:'Use the specified HTTP/HTTPS/SOCKS proxy.To enable SOCKS proxy, specify a proper scheme. For example socks5://127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection.'},{key:"--socket-timeout",description:"Time to wait before giving up, in seconds"},{key:"--source-address",description:"Client-side IP address to bind to"},{key:"-4",alt:"--force-ipv4",description:"Make all connections via IPv4"},{key:"-6",alt:"--force-ipv6",description:"Make all connections via IPv6"}],geo_restriction:[{key:"--geo-verification-proxy",description:"Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy', if the option is not present) is used for the actual downloading."},{key:"--geo-bypass",description:"Bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--no-geo-bypass",description:"Do not bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--geo-bypass-country",description:"Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code"},{key:"--geo-bypass-ip-block",description:"Force bypass geographic restriction with explicitly provided IP block in CIDR notation"}],video_selection:[{key:"--playlist-start",description:"Playlist video to start at (default is 1)"},{key:"--playlist-end",description:"Playlist video to end at (default is last)"},{key:"--playlist-items",description:'Playlist video items to download. Specify indices of the videos in the playlist separated by commas like: "--playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13.'},{key:"--match-title",description:"Download only matching titles (regex orcaseless sub-string)"},{key:"--reject-title",description:"Skip download for matching titles (regex orcaseless sub-string)"},{key:"--max-downloads",description:"Abort after downloading NUMBER files"},{key:"--min-filesize",description:"Do not download any videos smaller than SIZE (e.g. 50k or 44.6m)"},{key:"--max-filesize",description:"Do not download any videos larger than SIZE (e.g. 50k or 44.6m)"},{key:"--date",description:"Download only videos uploaded in this date"},{key:"--datebefore",description:"Download only videos uploaded on or before this date (i.e. inclusive)"},{key:"--dateafter",description:"Download only videos uploaded on or after this date (i.e. inclusive)"},{key:"--min-views",description:"Do not download any videos with less than COUNT views"},{key:"--max-views",description:"Do not download any videos with more than COUNT views"},{key:"--match-filter",description:'Generic video filter. Specify any key (seethe "OUTPUT TEMPLATE" for a list of available keys) to match if the key is present, !key to check if the key is not present, key > NUMBER (like "comment_count > 12", also works with >=, <, <=, !=, =) to compare against a number, key = \'LITERAL\' (like "uploader = \'Mike Smith\'", also works with !=) to match against a string literal and & to require multiple matches. Values which are not known are excluded unless you put a question mark (?) after the operator. For example, to only match videos that have been liked more than 100 times and disliked less than 50 times (or the dislike functionality is not available at the given service), but who also have a description, use --match-filter'},{key:"--no-playlist",description:"Download only the video, if the URL refers to a video and a playlist."},{key:"--yes-playlist",description:"Download the playlist, if the URL refers to a video and a playlist."},{key:"--age-limit",description:"Download only videos suitable for the given age"},{key:"--download-archive",description:"Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it."},{key:"--include-ads",description:"Download advertisements as well (experimental)"}],download:[{key:"-r",alt:"--limit-rate",description:"Maximum download rate in bytes per second(e.g. 50K or 4.2M)"},{key:"-R",alt:"--retries",description:'Number of retries (default is 10), or "infinite".'},{key:"--fragment-retries",description:'Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM)'},{key:"--skip-unavailable-fragments",description:"Skip unavailable fragments (DASH, hlsnative and ISM)"},{key:"--abort-on-unavailable-fragment",description:"Abort downloading when some fragment is not available"},{key:"--keep-fragments",description:"Keep downloaded fragments on disk after downloading is finished; fragments are erased by default"},{key:"--buffer-size",description:"Size of download buffer (e.g. 1024 or 16K) (default is 1024)"},{key:"--no-resize-buffer",description:"Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE."},{key:"--http-chunk-size",description:"Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental)"},{key:"--playlist-reverse",description:"Download playlist videos in reverse order"},{key:"--playlist-random",description:"Download playlist videos in random order"},{key:"--xattr-set-filesize",description:"Set file xattribute ytdl.filesize with expected file size"},{key:"--hls-prefer-native",description:"Use the native HLS downloader instead of ffmpeg"},{key:"--hls-prefer-ffmpeg",description:"Use ffmpeg instead of the native HLS downloader"},{key:"--hls-use-mpegts",description:"Use the mpegts container for HLS videos, allowing to play the video while downloading (some players may not be able to play it)"},{key:"--external-downloader",description:"Use the specified external downloader. Currently supports aria2c,avconv,axel,curl,ffmpeg,httpie,wget"},{key:"--external-downloader-args"}],filesystem:[{key:"-a",alt:"--batch-file",description:"File containing URLs to download ('-' for stdin), one URL per line. Lines starting with '#', ';' or ']' are considered as comments and ignored."},{key:"--id",description:"Use only video ID in file name"},{key:"-o",alt:"--output",description:'Output filename template, see the "OUTPUT TEMPLATE" for all the info'},{key:"--autonumber-start",description:"Specify the start value for %(autonumber)s (default is 1)"},{key:"--restrict-filenames",description:'Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames'},{key:"-w",alt:"--no-overwrites",description:"Do not overwrite files"},{key:"-c",alt:"--continue",description:"Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible."},{key:"--no-continue",description:"Do not resume partially downloaded files (restart from beginning)"},{key:"--no-part",description:"Do not use .part files - write directlyinto output file"},{key:"--no-mtime",description:"Do not use the Last-modified header to set the file modification time"},{key:"--write-description",description:"Write video description to a .description file"},{key:"--write-info-json",description:"Write video metadata to a .info.json file"},{key:"--write-annotations",description:"Write video annotations to a.annotations.xml file"},{key:"--load-info-json",description:'JSON file containing the video information (created with the "--write-info-json" option)'},{key:"--cookies",description:"File to read cookies from and dump cookie jar in"},{key:"--cache-dir",description:"Location in the file system where youtube-dl can store some downloaded information permanently. By default $XDG_CACHE_HOME/youtube-dl or ~/.cache/youtube-dl . At the moment, only YouTube player files (for videos with obfuscated signatures) are cached, but that may change."},{key:"--no-cache-dir",description:"Disable filesystem caching"},{key:"--rm-cache-dir",description:"Delete all filesystem cache files"}],thumbnail:[{key:"--write-thumbnail",description:"Write thumbnail image to disk"},{key:"--write-all-thumbnails",description:"Write all thumbnail image formats to disk"},{key:"--list-thumbnails",description:"Simulate and list all available thumbnail formats"}],verbosity:[{key:"-q",alt:"--quiet",description:"Activate quiet mode"},{key:"--no-warnings",description:"Ignore warnings"},{key:"-s",alt:"--simulate",description:"Do not download the video and do not writeanything to disk"},{key:"--skip-download",description:"Do not download the video"},{key:"-g",alt:"--get-url",description:"Simulate, quiet but print URL"},{key:"-e",alt:"--get-title",description:"Simulate, quiet but print title"},{key:"--get-id",description:"Simulate, quiet but print id"},{key:"--get-thumbnail",description:"Simulate, quiet but print thumbnail URL"},{key:"--get-description",description:"Simulate, quiet but print video description"},{key:"--get-duration",description:"Simulate, quiet but print video length"},{key:"--get-filename",description:"Simulate, quiet but print output filename"},{key:"--get-format",description:"Simulate, quiet but print output format"},{key:"-j",alt:"--dump-json",description:'Simulate, quiet but print JSON information. See the "OUTPUT TEMPLATE" for a description of available keys.'},{key:"-J",alt:"--dump-single-json",description:"Simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole playlist information in a single line."},{key:"--print-json",description:"Be quiet and print the video information as JSON (video is still being downloaded)."},{key:"--newline",description:"Output progress bar as new lines"},{key:"--no-progress",description:"Do not print progress bar"},{key:"--console-title",description:"Display progress in console title bar"},{key:"-v",alt:"--verbose",description:"Print various debugging information"},{key:"--dump-pages",description:"Print downloaded pages encoded using base64 to debug problems (very verbose)"},{key:"--write-pages",description:"Write downloaded intermediary pages to files in the current directory to debug problems"},{key:"--print-traffic",description:"Display sent and read HTTP traffic"},{key:"-C",alt:"--call-home",description:"Contact the youtube-dl server for debugging"},{key:"--no-call-home",description:"Do NOT contact the youtube-dl server for debugging"}],workarounds:[{key:"--encoding",description:"Force the specified encoding (experimental)"},{key:"--no-check-certificate",description:"Suppress HTTPS certificate validation"},{key:"--prefer-insecure",description:"Use an unencrypted connection to retrieve information about the video. (Currently supported only for YouTube)"},{key:"--user-agent",description:"Specify a custom user agent"},{key:"--referer",description:"Specify a custom referer, use if the video access is restricted to one domain"},{key:"--add-header",description:"Specify a custom HTTP header and its value, separated by a colon ':'. You can use this option multiple times"},{key:"--bidi-workaround",description:"Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH"},{key:"--sleep-interval",description:"Number of seconds to sleep before each download when used alone or a lower boundof a range for randomized sleep before each download (minimum possible number of seconds to sleep) when used along with --max-sleep-interval"},{key:"--max-sleep-interval",description:"Upper bound of a range for randomized sleep before each download (maximum possible number of seconds to sleep). Must only beused along with --min-sleep-interval"}],video_format:[{key:"-f",alt:"--format",description:'Video format code, see the "FORMAT SELECTION" for all the info'},{key:"--all-formats",description:"Download all available video formats"},{key:"--prefer-free-formats",description:"Prefer free video formats unless a specific one is requested"},{key:"-F",alt:"--list-formats",description:"List all available formats of requested videos"},{key:"--youtube-skip-dash-manifest",description:"Do not download the DASH manifests and related data on YouTube videos"},{key:"--merge-output-format",description:"If a merge is required (e.g. bestvideo+bestaudio), output to given container format. One of mkv, mp4, ogg, webm, flv. Ignored if no merge is required"}],subtitle:[{key:"--write-sub",description:"Write subtitle file"},{key:"--write-auto-sub",description:"Write automatically generated subtitle file (YouTube only)"},{key:"--all-subs",description:"Download all the available subtitles of the video"},{key:"--list-subs",description:"List all available subtitles for the video"},{key:"--sub-format",description:'Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best"'},{key:"--sub-lang",description:"Languages of the subtitles to download (optional) separated by commas, use --list-subs"}],authentication:[{key:"-u",alt:"--username",description:"Login with this account ID"},{key:"-p",alt:"--password",description:"Account password. If this option is left out, youtube-dl will ask interactively."},{key:"-2",alt:"--twofactor",description:"Two-factor authentication code"},{key:"-n",alt:"--netrc",description:"Use .netrc authentication data"},{key:"--video-password",description:"Video password (vimeo, smotri, youku)"}],adobe_pass:[{key:"--ap-mso",description:"Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso"},{key:"--ap-username",description:"Multiple-system operator account login"},{key:"--ap-password",description:"Multiple-system operator account password. If this option is left out, youtube-dl will ask interactively."},{key:"--ap-list-mso",description:"List all supported multiple-system operators"}],post_processing:[{key:"-x",alt:"--extract-audio",description:"Convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)"},{key:"--audio-format",description:'Specify audio format: "best", "aac", "flac", "mp3", "m4a", "opus", "vorbis", or "wav"; "best" by default; No effect without -x'},{key:"--audio-quality",description:"Specify ffmpeg/avconv audio quality, insert a value between 0 (better) and 9 (worse)for VBR or a specific bitrate like 128K (default 5)"},{key:"--recode-video",description:"Encode the video to another format if necessary (currently supported:mp4|flv|ogg|webm|mkv|avi)"},{key:"--postprocessor-args",description:"Give these arguments to the postprocessor"},{key:"-k",alt:"--keep-video",description:"Keep the video file on disk after the post-processing; the video is erased by default"},{key:"--no-post-overwrites",description:"Do not overwrite post-processed files; the post-processed files are overwritten by default"},{key:"--embed-subs",description:"Embed subtitles in the video (only for mp4,webm and mkv videos)"},{key:"--embed-thumbnail",description:"Embed thumbnail in the audio as cover art"},{key:"--add-metadata",description:"Write metadata to the video file"},{key:"--metadata-from-title",description:"Parse additional metadata like song title/artist from the video title. The format syntax is the same as --output"},{key:"--xattrs",description:"Write metadata to the video file's xattrs (using dublin core and xdg standards)"},{key:"--fixup",description:"Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix file if we can, warn otherwise)"},{key:"--prefer-avconv",description:"Prefer avconv over ffmpeg for running the postprocessors"},{key:"--prefer-ffmpeg",description:"Prefer ffmpeg over avconv for running the postprocessors (default)"},{key:"--ffmpeg-location",description:"Location of the ffmpeg/avconv binary; either the path to the binary or its containing directory."},{key:"--exec",description:"Execute a command on the file after downloading, similar to find's -exec syntax. Example: --exec"},{key:"--convert-subs",description:"Convert the subtitles to other format (currently supported: srt|ass|vtt|lrc)"}]};var Jy,Qy,Zy,tv,ev,iv,nv,sv;function av(t,e){if(1&t&&(s.Dc(0,"mat-option",20),s.zc(1,"span",21),s.Sc(2,"highlight"),s.Dc(3,"button",22),s.Dc(4,"mat-icon"),s.sd(5,"info"),s.Cc(),s.Cc(),s.Cc()),2&t){const t=e.$implicit,i=s.Rc();s.Xc("value",t.key),s.kc(1),s.Xc("innerHTML",s.Uc(2,3,t.key,i.stateCtrl.value),s.jd),s.kc(2),s.Xc("matTooltip",t.description)}}function rv(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",26),s.Nc("click",(function(){s.id(t);const i=e.$implicit;return s.Rc(2).setFirstArg(i.key)})),s.Dc(1,"div",27),s.sd(2),s.Cc(),s.sd(3,"\xa0\xa0"),s.Dc(4,"div",28),s.Dc(5,"mat-icon",29),s.sd(6,"info"),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=e.$implicit;s.kc(2),s.td(t.key),s.kc(3),s.Xc("matTooltip",t.description)}}function ov(t,e){if(1&t&&(s.Bc(0),s.Dc(1,"button",23),s.sd(2),s.Cc(),s.Dc(3,"mat-menu",null,24),s.qd(5,rv,7,2,"button",25),s.Cc(),s.Ac()),2&t){const t=e.$implicit,i=s.ed(4),n=s.Rc();s.kc(1),s.Xc("matMenuTriggerFor",i),s.kc(1),s.td(n.argsInfo[t.key].label),s.kc(3),s.Xc("ngForOf",t.value)}}Jy=$localize`:Modify args title␟d9e83ac17026e70ef6e9c0f3240a3b2450367f40␟3653857180335075556:Modify youtube-dl args`,Qy=$localize`:Simulated args title␟7fc1946abe2b40f60059c6cd19975d677095fd19␟3319938540903314395:Simulated new args`,Zy=$localize`:Add arg card title␟0b71824ae71972f236039bed43f8d2323e8fd570␟7066397187762906016:Add an arg`,tv=$localize`:Search args by category button␟c8b0e59eb491f2ac7505f0fbab747062e6b32b23␟827176536271704947:Search by category`,ev=$localize`:Use arg value checkbox␟9eeb91caef5a50256dd87e1c4b7b3e8216479377␟5487374754798278253:Use arg value`,iv=$localize`:Search args by category button␟7de2451ed3fb8d8b847979bd3f0c740b970f167b␟1014075402717090995:Add arg`,nv=$localize`:Arg modifier cancel button␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,sv=$localize`:Arg modifier modify button␟b2623aee44b70c9a4ba1fce16c8a593b0a4c7974␟3251759404563225821:Modify`;const lv=["placeholder",$localize`:Arg value placeholder␟25d8ad5eba2ec24e68295a27d6a4bb9b49e3dacd␟9086775160067017111:Arg value`],cv=function(){return{standalone:!0}};function hv(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"mat-form-field",8),s.Dc(2,"input",30),s.Ic(3,lv),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().secondArg=e})),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.kc(2),s.Xc("ngModelOptions",s.Zc(3,cv))("disabled",!t.secondArgEnabled)("ngModel",t.secondArg)}}let dv=(()=>{class t{transform(t,e){const i=e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").split(" ").filter(t=>t.length>0).join("|"):void 0,n=new RegExp(i,"gi");return e?t.replace(n,t=>`${t}`):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.xc({name:"highlight",type:t,pure:!0}),t})(),uv=(()=>{class t{constructor(t,e,i){this.data=t,this.dialogRef=e,this.dialog=i,this.myGroup=new Aa,this.firstArg="",this.secondArg="",this.secondArgEnabled=!1,this.modified_args="",this.stateCtrl=new Aa,this.availableArgs=null,this.argsByCategory=null,this.argsInfo=null}static forRoot(){return{ngModule:t,providers:[]}}ngOnInit(){this.data&&(this.modified_args=this.data.initial_args),this.getAllPossibleArgs(),this.filteredOptions=this.stateCtrl.valueChanges.pipe(on(""),Object(ii.a)(t=>this.filter(t)))}filter(t){if(this.availableArgs)return this.availableArgs.filter(e=>e.key.toLowerCase().includes(t.toLowerCase()))}addArg(){""!==this.modified_args&&(this.modified_args+=" "),this.modified_args+=this.stateCtrl.value+" "+(this.secondArgEnabled?this.secondArg:"")}canAddArg(){return this.stateCtrl.value&&""!==this.stateCtrl.value&&(!this.secondArgEnabled||this.secondArg&&""!==this.secondArg)}getFirstArg(){return new Promise(t=>{t(this.stateCtrl.value)})}getValueAsync(t){return new Promise(e=>{e(t)})}getAllPossibleArgs(){const t=Ky,e=Object.keys(t).map((function(e){return t[e]})),i=[].concat.apply([],e);this.availableArgs=i,this.argsByCategory=t,this.argsInfo=Yy}setFirstArg(t){this.stateCtrl.setValue(t)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(th),s.yc(Zc),s.yc(sh))},t.\u0275cmp=s.sc({type:t,selectors:[["app-arg-modifier-dialog"]],features:[s.jc([dv])],decls:48,vars:17,consts:[["mat-dialog-title",""],[1,"container"],[1,"row"],[1,"col-12"],[1,"mat-elevation-z6"],["color","accent",2,"width","100%"],["matInput","",3,"disabled"],[1,"mat-elevation-z6","my-2"],["color","accent",2,"width","75%"],["matInput","","placeholder","Arg",3,"matAutocomplete","formControl"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["argsByCategoryMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-stroked-button","",2,"margin-bottom","15px",3,"matMenuTriggerFor"],["color","accent",3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngIf"],["mat-stroked-button","","color","accent",3,"disabled","click"],["mat-button","","mat-dialog-close",""],["mat-button","","color","accent",3,"mat-dialog-close"],[3,"value"],[3,"innerHTML"],["mat-icon-button","",2,"float","right",3,"matTooltip"],["mat-menu-item","",3,"matMenuTriggerFor"],["subMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[2,"display","inline-block"],[1,"info-menu-icon"],[3,"matTooltip"],["matInput","",3,"ngModelOptions","disabled","ngModel","ngModelChange",6,"placeholder"]],template:function(t,e){if(1&t&&(s.Dc(0,"h4",0),s.Hc(1,Jy),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"div",1),s.Dc(4,"div",2),s.Dc(5,"div",3),s.Dc(6,"mat-card",4),s.Dc(7,"h6"),s.Hc(8,Qy),s.Cc(),s.Dc(9,"mat-form-field",5),s.Dc(10,"textarea",6),s.sd(11),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(12,"div",3),s.Dc(13,"mat-card",7),s.Dc(14,"h6"),s.Hc(15,Zy),s.Cc(),s.Dc(16,"form"),s.Dc(17,"div"),s.Dc(18,"mat-form-field",8),s.zc(19,"input",9),s.Cc(),s.Dc(20,"mat-autocomplete",null,10),s.qd(22,av,6,6,"mat-option",11),s.Sc(23,"async"),s.Cc(),s.Dc(24,"div"),s.Dc(25,"mat-menu",null,12),s.qd(27,ov,6,3,"ng-container",13),s.Sc(28,"keyvalue"),s.Cc(),s.Dc(29,"button",14),s.Bc(30),s.Hc(31,tv),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(32,"div"),s.Dc(33,"mat-checkbox",15),s.Nc("ngModelChange",(function(t){return e.secondArgEnabled=t})),s.Bc(34),s.Hc(35,ev),s.Ac(),s.Cc(),s.Cc(),s.qd(36,hv,4,4,"div",16),s.Cc(),s.Dc(37,"div"),s.Dc(38,"button",17),s.Nc("click",(function(){return e.addArg()})),s.Bc(39),s.Hc(40,iv),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(41,"mat-dialog-actions"),s.Dc(42,"button",18),s.Bc(43),s.Hc(44,nv),s.Ac(),s.Cc(),s.Dc(45,"button",19),s.Bc(46),s.Hc(47,sv),s.Ac(),s.Cc(),s.Cc()),2&t){const t=s.ed(21),i=s.ed(26);s.kc(10),s.Xc("disabled",!0),s.kc(1),s.td(e.modified_args),s.kc(8),s.Xc("matAutocomplete",t)("formControl",e.stateCtrl),s.kc(3),s.Xc("ngForOf",s.Tc(23,12,e.filteredOptions)),s.kc(5),s.Xc("ngForOf",s.Tc(28,14,e.argsByCategory)),s.kc(2),s.Xc("matMenuTriggerFor",i),s.kc(4),s.Xc("ngModelOptions",s.Zc(16,cv))("ngModel",e.secondArgEnabled),s.kc(3),s.Xc("ngIf",e.secondArgEnabled),s.kc(2),s.Xc("disabled",!e.canAddArg()),s.kc(7),s.Xc("mat-dialog-close",e.modified_args)}},directives:[oh,lh,Gr,Rc,vu,qa,Ms,Ta,Hc,Ds,Ts,Ha,Vc,ye.s,dm,ds,gm,oo,ja,ye.t,ch,rh,es,Nm,ru,am],pipes:[ye.b,ye.l,dv],styles:[".info-menu-icon[_ngcontent-%COMP%]{float:right}"]}),t})();var mv,pv,gv,fv,bv,_v,yv,vv,wv,kv,xv,Cv;function Sv(t,e){if(1&t&&(s.Dc(0,"mat-option",8),s.sd(1),s.Cc()),2&t){const t=e.$implicit,i=s.Rc();s.Xc("value",t),s.kc(1),s.ud(" ",i.all_locales[t].nativeName," ")}}mv=$localize`:Settings title␟121cc5391cd2a5115bc2b3160379ee5b36cd7716␟4930506384627295710:Settings`,pv=$localize`:Host settings title␟fe22ca53e651df951dac25b67c17894b0980f767␟6641024648411549335:Host`,gv=$localize`:Encryption settings title␟948758e1412bb2ecdb98e3a4f1cbb6d7458456f2␟8255877266497322342:Encryption`,fv=$localize`:Downloader settings title␟0ba25ad86a240576c4f20a2fada4722ebba77b1e␟5385813889746830226:Downloader`,bv=$localize`:Extra settings title␟d5f69691f9f05711633128b5a3db696783266b58␟7419412790104674886:Extra`,_v=$localize`:API settings title␟e351b40b3869a5c7d19c3d4918cb1ac7aaab95c4␟8942351587754185907:API`,yv=$localize`:Themes settings title␟60c855c323706a04ccd2ff22d634bde9b6233bbf␟2798270190074840767:Themes`,vv=$localize`:Subscriptions settings title␟357064ca9d9ac859eb618e28e8126fa32be049e2␟1812379335568847528:Subscriptions`,wv=$localize`:Extensions settings title␟0feab442129ba239106e55cf029069d3d4adeadc␟3139147897029202869:Extensions`,kv=$localize`:Advanced settings title␟bc2e854e111ecf2bd7db170da5e3c2ed08181d88␟6201638315245239510:Advanced`,xv=$localize`:Settings save button␟52c9a103b812f258bcddc3d90a6e3f46871d25fe␟3768927257183755959:Save`,Cv=$localize`:Settings cancel button␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`;const Dv=["placeholder",$localize`:URL input placeholder␟801b98c6f02fe3b32f6afa3ee854c99ed83474e6␟2375260419993138758:URL`];var Ev;Ev=$localize`:URL setting input hint␟54c512cca1923ab72faf1a0bd98d3d172469629a␟5463756323010996100:URL this app will be accessed from, without the port.`;const Av=["placeholder",$localize`:Port input placeholder␟cb2741a46e3560f6bc6dfd99d385e86b08b26d72␟6117946241126833991:Port`];var Ov,Rv;function Pv(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-form-field",12),s.Dc(4,"input",13),s.Ic(5,Dv),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Host.url=e})),s.Cc(),s.Dc(6,"mat-hint"),s.Bc(7),s.Hc(8,Ev),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(9,"div",14),s.Dc(10,"mat-form-field",12),s.Dc(11,"input",13),s.Ic(12,Av),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Host.port=e})),s.Cc(),s.Dc(13,"mat-hint"),s.Bc(14),s.Hc(15,Ov),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.kc(4),s.Xc("ngModel",t.new_config.Host.url),s.kc(7),s.Xc("ngModel",t.new_config.Host.port)}}Ov=$localize`:Port setting input hint␟22e8f1d0423a3b784fe40fab187b92c06541b577␟12816402920404434:The desired port. Default is 17442.`,Rv=$localize`:Use encryption setting␟cbe16a57be414e84b6a68309d08fad894df797d6␟5503616660881623306:Use encryption`;const Iv=["placeholder",$localize`:Cert file path input placeholder␟0c1875a79b7ecc792cc1bebca3e063e40b5764f9␟2857997144709025078:Cert file path`],Tv=["placeholder",$localize`:Key file path input placeholder␟736551b93461d2de64b118cf4043eee1d1c2cb2c␟2320113463068090884:Key file path`];function Mv(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-checkbox",15),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Encryption["use-encryption"]=e})),s.Bc(4),s.Hc(5,Rv),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",11),s.Dc(7,"mat-form-field",12),s.Dc(8,"input",16),s.Ic(9,Iv),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Encryption["cert-file-path"]=e})),s.Cc(),s.Cc(),s.Cc(),s.Dc(10,"div",11),s.Dc(11,"mat-form-field",12),s.Dc(12,"input",16),s.Ic(13,Tv),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Encryption["key-file-path"]=e})),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.kc(3),s.Xc("ngModel",t.new_config.Encryption["use-encryption"]),s.kc(5),s.Xc("disabled",!t.new_config.Encryption["use-encryption"])("ngModel",t.new_config.Encryption["cert-file-path"]),s.kc(4),s.Xc("disabled",!t.new_config.Encryption["use-encryption"])("ngModel",t.new_config.Encryption["key-file-path"])}}const Fv=["placeholder",$localize`:Audio folder path input placeholder␟ab2756805742e84ad0cc0468f4be2d8aa9f855a5␟3475061775640312711:Audio folder path`];var Nv;Nv=$localize`:Aduio path setting input hint␟c2c89cdf45d46ea64d2ed2f9ac15dfa4d77e26ca␟3848357852843054025:Path for audio only downloads. It is relative to YTDL-Material's root folder.`;const Lv=["placeholder",$localize`:Video folder path input placeholder␟46826331da1949bd6fb74624447057099c9d20cd␟3354965786971797948:Video folder path`];var zv;zv=$localize`:Video path setting input hint␟17c92e6d47a213fa95b5aa344b3f258147123f93␟2955739827391836971:Path for video downloads. It is relative to YTDL-Material's root folder.`;const Bv=["placeholder",$localize`:Custom args input placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var Vv,jv;function qv(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-form-field",12),s.Dc(4,"input",13),s.Ic(5,Fv),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Downloader["path-audio"]=e})),s.Cc(),s.Dc(6,"mat-hint"),s.Bc(7),s.Hc(8,Nv),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(9,"div",14),s.Dc(10,"mat-form-field",12),s.Dc(11,"input",13),s.Ic(12,Lv),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Downloader["path-video"]=e})),s.Cc(),s.Dc(13,"mat-hint"),s.Bc(14),s.Hc(15,zv),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(16,"div",14),s.Dc(17,"mat-form-field",12),s.Dc(18,"textarea",17),s.Ic(19,Bv),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Downloader.custom_args=e})),s.Cc(),s.Dc(20,"mat-hint"),s.Bc(21),s.Hc(22,Vv),s.Ac(),s.Cc(),s.Cc(),s.Dc(23,"button",18),s.Nc("click",(function(){return s.id(t),s.Rc().openArgsModifierDialog()})),s.sd(24,"Modify args"),s.Cc(),s.Cc(),s.Dc(25,"div",14),s.Dc(26,"mat-checkbox",15),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Downloader.use_youtubedl_archive=e})),s.Bc(27),s.Hc(28,jv),s.Ac(),s.Cc(),s.Dc(29,"p"),s.sd(30,"Note: This setting only applies to downloads on the Home page. If you would like to use youtube-dl archive functionality in subscriptions, head down to the Subscriptions section."),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.kc(4),s.Xc("ngModel",t.new_config.Downloader["path-audio"]),s.kc(7),s.Xc("ngModel",t.new_config.Downloader["path-video"]),s.kc(7),s.Xc("ngModel",t.new_config.Downloader.custom_args),s.kc(8),s.Xc("ngModel",t.new_config.Downloader.use_youtubedl_archive)}}Vv=$localize`:Custom args setting input hint␟f41145afc02fd47ef0576ac79acd2c47ebbf4901␟8874045538582126918:Global custom args for downloads on the home page.`,jv=$localize`:Use youtubedl archive setting␟78e49b7339b4fa7184dd21bcaae107ce9b7076f6␟7083950546207237945:Use youtube-dl archive`;const $v=["placeholder",$localize`:Top title input placeholder␟61f8fd90b5f8cb20c70371feb2ee5e1fac5a9095␟1974727764328838461:Top title`];var Uv,Hv,Xv,Gv,Wv,Yv,Kv;function Jv(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-form-field",12),s.Dc(4,"input",13),s.Ic(5,$v),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Extra.title_top=e})),s.Cc(),s.zc(6,"mat-hint"),s.Cc(),s.Cc(),s.Dc(7,"div",11),s.Dc(8,"mat-checkbox",15),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Extra.file_manager_enabled=e})),s.Bc(9),s.Hc(10,Uv),s.Ac(),s.Cc(),s.Cc(),s.Dc(11,"div",11),s.Dc(12,"mat-checkbox",15),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Extra.allow_quality_select=e})),s.Bc(13),s.Hc(14,Hv),s.Ac(),s.Cc(),s.Cc(),s.Dc(15,"div",11),s.Dc(16,"mat-checkbox",15),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Extra.download_only_mode=e})),s.Bc(17),s.Hc(18,Xv),s.Ac(),s.Cc(),s.Cc(),s.Dc(19,"div",11),s.Dc(20,"mat-checkbox",15),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Extra.allow_multi_download_mode=e})),s.Bc(21),s.Hc(22,Gv),s.Ac(),s.Cc(),s.Cc(),s.Dc(23,"div",11),s.Dc(24,"mat-checkbox",15),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Extra.settings_pin_required=e})),s.Bc(25),s.Hc(26,Wv),s.Ac(),s.Cc(),s.Dc(27,"button",19),s.Nc("click",(function(){return s.id(t),s.Rc().setNewPin()})),s.Bc(28),s.Hc(29,Yv),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.kc(4),s.Xc("ngModel",t.new_config.Extra.title_top),s.kc(4),s.Xc("ngModel",t.new_config.Extra.file_manager_enabled),s.kc(4),s.Xc("ngModel",t.new_config.Extra.allow_quality_select),s.kc(4),s.Xc("ngModel",t.new_config.Extra.download_only_mode),s.kc(4),s.Xc("ngModel",t.new_config.Extra.allow_multi_download_mode),s.kc(4),s.Xc("ngModel",t.new_config.Extra.settings_pin_required),s.kc(3),s.Xc("disabled",!t.new_config.Extra.settings_pin_required)}}Uv=$localize`:File manager enabled setting␟78d3531417c0d4ba4c90f0d4ae741edc261ec8df␟488432415925701010:File manager enabled`,Hv=$localize`:Allow quality seelct setting␟c33bd5392b39dbed36b8e5a1145163a15d45835f␟2252491142626131446:Allow quality select`,Xv=$localize`:Download only mode setting␟bda5508e24e0d77debb28bcd9194d8fefb1cfb92␟2765258699599899343:Download only mode`,Gv=$localize`:Allow multi-downloade mode setting␟09d31c803a7252658694e1e3176b97f5655a3fe3␟1457782201611151239:Allow multi-download mode`,Wv=$localize`:Require pin for settings setting␟d8b47221b5af9e9e4cd5cb434d76fc0c91611409␟8888472341408176239:Require pin for settings`,Yv=$localize`:Set new pin button␟f5ec7b2cdf87d41154f4fcbc86e856314409dcb9␟5079149426228636902:Set New Pin`,Kv=$localize`:Use YouTube API setting␟d5d7c61349f3b0859336066e6d453fc35d334fe5␟921806454742404419:Use YouTube API`;const Qv=["placeholder",$localize`:Youtube API Key setting placeholder␟ce10d31febb3d9d60c160750570310f303a22c22␟8352766560503075759:Youtube API Key`];var Zv,tw,ew,iw,nw;function sw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-checkbox",15),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.API.use_youtube_API=e})),s.Bc(4),s.Hc(5,Kv),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",11),s.Dc(7,"mat-form-field",12),s.Dc(8,"input",20),s.Ic(9,Qv),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.API.youtube_API_key=e})),s.Cc(),s.Dc(10,"mat-hint"),s.Dc(11,"a",21),s.Bc(12),s.Hc(13,Zv),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.kc(3),s.Xc("ngModel",t.new_config.API.use_youtube_API),s.kc(5),s.Xc("disabled",!t.new_config.API.use_youtube_API)("ngModel",t.new_config.API.youtube_API_key)}}function aw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-select",22),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Themes.default_theme=e})),s.Dc(4,"mat-option",23),s.Bc(5),s.Hc(6,tw),s.Ac(),s.Cc(),s.Dc(7,"mat-option",24),s.Bc(8),s.Hc(9,ew),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(10,"div",14),s.Dc(11,"mat-checkbox",15),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Themes.allow_theme_change=e})),s.Bc(12),s.Hc(13,iw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.kc(3),s.Xc("ngModel",t.new_config.Themes.default_theme),s.kc(8),s.Xc("ngModel",t.new_config.Themes.allow_theme_change)}}Zv=$localize`:Youtube API Key setting hint␟8602e313cdfa7c4cc475ccbe86459fce3c3fd986␟3231872778665115286:Generating a key is easy!`,tw=$localize`:Default theme label␟ff7cee38a2259526c519f878e71b964f41db4348␟5607669932062416162:Default`,ew=$localize`:Dark theme label␟adb4562d2dbd3584370e44496969d58c511ecb63␟3892161059518616136:Dark`,iw=$localize`:Allow theme change setting␟7a6bacee4c31cb5c0ac2d24274fb4610d8858602␟8325128210832071900:Allow theme change`,nw=$localize`:Allow subscriptions setting␟4e3120311801c4acd18de7146add2ee4a4417773␟5800596718492516574:Allow subscriptions`;const rw=["placeholder",$localize`:Subscriptions base path input setting placeholder␟4bee2a4bef2d26d37c9b353c278e24e5cd309ce3␟6919010605968316948:Subscriptions base path`];var ow;ow=$localize`:Subscriptions base path setting input hint␟bc9892814ee2d119ae94378c905ea440a249b84a␟2622759576830659218:Base path for videos from your subscribed channels and playlists. It is relative to YTDL-Material's root folder.`;const lw=["placeholder",$localize`:Check interval input setting placeholder␟5bef4b25ba680da7fff06b86a91b1fc7e6a926e3␟5349606203941321178:Check interval`];var cw,hw,dw,uw,mw,pw,gw,fw,bw,_w,yw,vw,ww,kw,xw;function Cw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-checkbox",15),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Subscriptions.allow_subscriptions=e})),s.Bc(4),s.Hc(5,nw),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",11),s.Dc(7,"mat-form-field",12),s.Dc(8,"input",16),s.Ic(9,rw),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Subscriptions.subscriptions_base_path=e})),s.Cc(),s.Dc(10,"mat-hint"),s.Bc(11),s.Hc(12,ow),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(13,"div",25),s.Dc(14,"mat-form-field",12),s.Dc(15,"input",16),s.Ic(16,lw),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Subscriptions.subscriptions_check_interval=e})),s.Cc(),s.Dc(17,"mat-hint"),s.Bc(18),s.Hc(19,cw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(20,"div",14),s.Dc(21,"mat-checkbox",26),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Subscriptions.subscriptions_use_youtubedl_archive=e})),s.Bc(22),s.Hc(23,hw),s.Ac(),s.Cc(),s.Dc(24,"p"),s.Dc(25,"a",27),s.Bc(26),s.Hc(27,dw),s.Ac(),s.Cc(),s.sd(28,"\xa0"),s.Bc(29),s.Hc(30,uw),s.Ac(),s.Cc(),s.Dc(31,"p"),s.Bc(32),s.Hc(33,mw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.kc(3),s.Xc("ngModel",t.new_config.Subscriptions.allow_subscriptions),s.kc(5),s.Xc("disabled",!t.new_config.Subscriptions.allow_subscriptions)("ngModel",t.new_config.Subscriptions.subscriptions_base_path),s.kc(7),s.Xc("disabled",!t.new_config.Subscriptions.allow_subscriptions)("ngModel",t.new_config.Subscriptions.subscriptions_check_interval),s.kc(6),s.Xc("disabled",!t.new_config.Subscriptions.allow_subscriptions)("ngModel",t.new_config.Subscriptions.subscriptions_use_youtubedl_archive)}}function Sw(t,e){if(1&t&&(s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"h6"),s.sd(4,"Chrome"),s.Cc(),s.Dc(5,"p"),s.Dc(6,"a",28),s.Bc(7),s.Hc(8,pw),s.Ac(),s.Cc(),s.sd(9,"\xa0"),s.Bc(10),s.Hc(11,gw),s.Ac(),s.Cc(),s.Dc(12,"p"),s.Bc(13),s.Hc(14,fw),s.Ac(),s.Cc(),s.zc(15,"mat-divider",29),s.Cc(),s.Dc(16,"div",11),s.Dc(17,"h6"),s.sd(18,"Firefox"),s.Cc(),s.Dc(19,"p"),s.Dc(20,"a",30),s.Bc(21),s.Hc(22,bw),s.Ac(),s.Cc(),s.sd(23,"\xa0"),s.Bc(24),s.Hc(25,_w),s.Ac(),s.Cc(),s.Dc(26,"p"),s.Dc(27,"a",31),s.Bc(28),s.Hc(29,yw),s.Ac(),s.Cc(),s.sd(30,"\xa0"),s.Bc(31),s.Hc(32,vw),s.Ac(),s.Cc(),s.zc(33,"mat-divider",29),s.Cc(),s.Dc(34,"div",11),s.Dc(35,"h6"),s.sd(36,"Bookmarklet"),s.Cc(),s.Dc(37,"p"),s.Bc(38),s.Hc(39,ww),s.Ac(),s.Cc(),s.Dc(40,"p"),s.Dc(41,"a",32),s.sd(42,"YTDL-Bookmarklet"),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()),2&t){const t=s.Rc();s.kc(41),s.Xc("href",t.generated_bookmarklet_code,s.kd)}}function Dw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",9),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"mat-checkbox",15),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Advanced.use_default_downloading_agent=e})),s.Bc(4),s.Hc(5,kw),s.Ac(),s.Cc(),s.Cc(),s.Dc(6,"div",33),s.Dc(7,"mat-select",34),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Advanced.custom_downloading_agent=e})),s.Dc(8,"mat-option",35),s.sd(9,"Select a downloader"),s.Cc(),s.Dc(10,"mat-option",36),s.sd(11,"aria2c"),s.Cc(),s.Dc(12,"mat-option",37),s.sd(13,"avconv"),s.Cc(),s.Dc(14,"mat-option",38),s.sd(15,"axel"),s.Cc(),s.Dc(16,"mat-option",39),s.sd(17,"curl"),s.Cc(),s.Dc(18,"mat-option",40),s.sd(19,"ffmpeg"),s.Cc(),s.Dc(20,"mat-option",41),s.sd(21,"httpie"),s.Cc(),s.Dc(22,"mat-option",42),s.sd(23,"wget"),s.Cc(),s.Cc(),s.Cc(),s.Dc(24,"div",43),s.Dc(25,"mat-checkbox",15),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().new_config.Advanced.allow_advanced_download=e})),s.Bc(26),s.Hc(27,xw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.kc(3),s.Xc("ngModel",t.new_config.Advanced.use_default_downloading_agent),s.kc(4),s.Xc("disabled",t.new_config.Advanced.use_default_downloading_agent)("ngModel",t.new_config.Advanced.custom_downloading_agent),s.kc(18),s.Xc("ngModel",t.new_config.Advanced.allow_advanced_download)}}cw=$localize`:Check interval setting input hint␟0f56a7449b77630c114615395bbda4cab398efd8␟1580663059483543498:Unit is seconds, only include numbers.`,hw=$localize`:Use youtube-dl archive setting␟78e49b7339b4fa7184dd21bcaae107ce9b7076f6␟7083950546207237945:Use youtube-dl archive`,dw=$localize`:youtube-dl archive explanation prefix link␟fa9fe4255231dd1cc6b29d3d254a25cb7c764f0f␟6707903974690925048:With youtube-dl's archive`,uw=$localize`:youtube-dl archive explanation middle␟09006404cccc24b7a8f8d1ce0b39f2761ab841d8␟954972440308853962:feature, downloaded videos from your subscriptions get recorded in a text file in the subscriptions archive sub-directory.`,mw=$localize`:youtube-dl archive explanation suffix␟29ed79a98fc01e7f9537777598e31dbde3aa7981␟6686872891691588730:This enables the ability to permanently delete videos from your subscriptions without unsubscribing, and allows you to record which videos you downloaded in case of data loss.`,pw=$localize`:Chrome ext click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,gw=$localize`:Chrome click here suffix␟7f09776373995003161235c0c8d02b7f91dbc4df␟2498765655243362925:to download the official YoutubeDL-Material Chrome extension manually.`,fw=$localize`:Chrome setup suffix␟5b5296423906ab3371fdb2b5a5aaa83acaa2ee52␟8028660067162629884:You must manually load the extension and modify the extension's settings to set the frontend URL.`,bw=$localize`:Firefox ext click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,_w=$localize`:Firefox click here suffix␟9a2ec6da48771128384887525bdcac992632c863␟8910153976238540666:to install the official YoutubeDL-Material Firefox extension right off the Firefox extensions page.`,yw=$localize`:Firefox setup prefix link␟eb81be6b49e195e5307811d1d08a19259d411f37␟3930152199106610543:Detailed setup instructions.`,vw=$localize`:Firefox setup suffix␟cb17ff8fe3961cf90f44bee97c88a3f3347a7e55␟5226296152980000564:Not much is required other than changing the extension's settings to set the frontend URL.`,ww=$localize`:Bookmarklet instructions␟61b81b11aad0b9d970ece2fce18405f07eac69c2␟907045314542317789:Drag the link below to your bookmarks, and you're good to go! Just navigate to the YouTube video you'd like to download, and click the bookmark.`,kw=$localize`:Use default downloading agent setting␟5fab47f146b0a4b809dcebf3db9da94df6299ea1␟1862425442411516950:Use default downloading agent`,xw=$localize`:Allow advanced downloading setting␟dc3d990391c944d1fbfc7cfb402f7b5e112fb3a8␟4097058672287489906:Allow advanced download`;let Ew=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.sanitizer=i,this.dialog=n,this.all_locales=Wy,this.supported_locales=["en","es"],this.initialLocale=localStorage.getItem("locale"),this.initial_config=null,this.new_config=null,this.loading_config=!1,this.generated_bookmarklet_code=null}ngOnInit(){this.getConfig(),this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode())}getConfig(){this.loading_config=!0,this.postsService.loadNavItems().subscribe(t=>{this.loading_config=!1,this.initial_config=this.postsService.debugMode?t.YoutubeDLMaterial:t.config_file.YoutubeDLMaterial,this.new_config=JSON.parse(JSON.stringify(this.initial_config))})}settingsSame(){return JSON.stringify(this.new_config)===JSON.stringify(this.initial_config)}saveSettings(){this.postsService.setConfig({YoutubeDLMaterial:this.new_config}).subscribe(t=>{t.success&&(this.postsService.settings_changed.next(!0),this.initial_config=JSON.parse(JSON.stringify(this.new_config)))},t=>{console.error("Failed to save config!")})}setNewPin(){this.dialog.open(Gy,{data:{resetMode:!0}})}localeSelectChanged(t){localStorage.setItem("locale",t),this.openSnackBar("Language successfully changed! Reload to update the page.")}generateBookmarklet(){this.bookmarksite("YTDL-Material",this.generated_bookmarklet_code)}generateBookmarkletCode(){return`javascript:(function()%7Bwindow.open('${window.location.href.split("#")[0]+"#/home;url="}' + encodeURIComponent(window.location))%7D)()`}bookmarksite(t,e){if(document.all)window.external.AddFavorite(e,t);else if(window.chrome)this.openSnackBar("Chrome users must drag the 'Alternate URL' link to your bookmarks.");else if(window.sidebar)window.sidebar.addPanel(t,e,"");else if(window.opera&&window.print){const i=document.createElement("a");i.setAttribute("href",e),i.setAttribute("title",t),i.setAttribute("rel","sidebar"),i.click()}}openArgsModifierDialog(){this.dialog.open(uv,{data:{initial_args:this.new_config.Downloader.custom_args}}).afterClosed().subscribe(t=>{t&&(this.new_config.Downloader.custom_args=t)})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(Pg),s.yc(n.b),s.yc(sh))},t.\u0275cmp=s.sc({type:t,selectors:[["app-settings"]],decls:75,vars:13,consts:[["mat-dialog-title",""],[1,"locale-select",3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"settings-expansion-panel"],["class","container-fluid",4,"ngIf"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","click"],["mat-flat-button","",3,"mat-dialog-close"],[3,"value"],[1,"container-fluid"],[1,"row"],[1,"col-12"],["color","accent"],["matInput","","required","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-4"],["color","accent",3,"ngModel","ngModelChange"],["matInput","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["mat-stroked-button","",2,"margin-left","12px",3,"click"],["mat-stroked-button","",2,"margin-left","15px",3,"disabled","click"],["matInput","","required","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["target","_blank","href","https://developers.google.com/youtube/v3/getting-started"],["color","accent",2,"width","100px",3,"ngModel","ngModelChange"],["value","default"],["value","dark"],[1,"col-12","mt-5"],["color","accent",3,"disabled","ngModel","ngModelChange"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#how-do-i-download-only-new-videos-from-a-playlist"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/blob/master/chrome-extension/youtubedl-material-chrome-extension.zip?raw=true"],[1,"ext-divider"],["href","https://addons.mozilla.org/en-US/firefox/addon/youtubedl-material/","target","_blank"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/wiki/Firefox-Extension","target","_blank"],["target","_blank",3,"href"],[1,"col-12","my-2"],["color","accent",2,"width","200px",3,"disabled","ngModel","ngModelChange"],["value",""],["value","aria2c"],["value","avconv"],["value","axel"],["value","curl"],["value","ffmpeg"],["value","httpie"],["value","wget"],[1,"col-12","mt-2"]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.Hc(1,mv),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"div"),s.sd(4," Language:\xa0\xa0\xa0"),s.Dc(5,"mat-select",1),s.Nc("selectionChange",(function(t){return e.localeSelectChanged(t.value)}))("valueChange",(function(t){return e.initialLocale=t})),s.qd(6,Sv,2,2,"mat-option",2),s.Cc(),s.Cc(),s.Dc(7,"mat-expansion-panel",3),s.Dc(8,"mat-expansion-panel-header"),s.Dc(9,"mat-panel-title"),s.Bc(10),s.Hc(11,pv),s.Ac(),s.Cc(),s.Cc(),s.qd(12,Pv,16,2,"div",4),s.Cc(),s.Dc(13,"mat-expansion-panel",3),s.Dc(14,"mat-expansion-panel-header"),s.Dc(15,"mat-panel-title"),s.Bc(16),s.Hc(17,gv),s.Ac(),s.Cc(),s.Cc(),s.qd(18,Mv,14,5,"div",4),s.Cc(),s.Dc(19,"mat-expansion-panel",3),s.Dc(20,"mat-expansion-panel-header"),s.Dc(21,"mat-panel-title"),s.Bc(22),s.Hc(23,fv),s.Ac(),s.Cc(),s.Cc(),s.qd(24,qv,31,4,"div",4),s.Cc(),s.Dc(25,"mat-expansion-panel",3),s.Dc(26,"mat-expansion-panel-header"),s.Dc(27,"mat-panel-title"),s.Bc(28),s.Hc(29,bv),s.Ac(),s.Cc(),s.Cc(),s.qd(30,Jv,30,7,"div",4),s.Cc(),s.Dc(31,"mat-expansion-panel",3),s.Dc(32,"mat-expansion-panel-header"),s.Dc(33,"mat-panel-title"),s.Bc(34),s.Hc(35,_v),s.Ac(),s.Cc(),s.Cc(),s.qd(36,sw,14,3,"div",4),s.Cc(),s.Dc(37,"mat-expansion-panel",3),s.Dc(38,"mat-expansion-panel-header"),s.Dc(39,"mat-panel-title"),s.Bc(40),s.Hc(41,yv),s.Ac(),s.Cc(),s.Cc(),s.qd(42,aw,14,2,"div",4),s.Cc(),s.Dc(43,"mat-expansion-panel",3),s.Dc(44,"mat-expansion-panel-header"),s.Dc(45,"mat-panel-title"),s.Bc(46),s.Hc(47,vv),s.Ac(),s.Cc(),s.Cc(),s.qd(48,Cw,34,7,"div",4),s.Cc(),s.Dc(49,"mat-expansion-panel",3),s.Dc(50,"mat-expansion-panel-header"),s.Dc(51,"mat-panel-title"),s.Bc(52),s.Hc(53,wv),s.Ac(),s.Cc(),s.Cc(),s.qd(54,Sw,43,1,"div",4),s.Cc(),s.Dc(55,"mat-expansion-panel",3),s.Dc(56,"mat-expansion-panel-header"),s.Dc(57,"mat-panel-title"),s.Bc(58),s.Hc(59,kv),s.Ac(),s.Cc(),s.Cc(),s.qd(60,Dw,28,4,"div",4),s.Cc(),s.Cc(),s.Dc(61,"mat-dialog-actions"),s.Dc(62,"div",5),s.Dc(63,"button",6),s.Nc("click",(function(){return e.saveSettings()})),s.Dc(64,"mat-icon"),s.sd(65,"done"),s.Cc(),s.sd(66,"\xa0\xa0 "),s.Bc(67),s.Hc(68,xv),s.Ac(),s.Cc(),s.Dc(69,"button",7),s.Dc(70,"mat-icon"),s.sd(71,"cancel"),s.Cc(),s.sd(72,"\xa0\xa0 "),s.Bc(73),s.Hc(74,Cv),s.Ac(),s.Cc(),s.Cc(),s.Cc()),2&t&&(s.kc(5),s.Xc("value",e.initialLocale),s.kc(1),s.Xc("ngForOf",e.supported_locales),s.kc(6),s.Xc("ngIf",e.new_config),s.kc(6),s.Xc("ngIf",e.new_config),s.kc(6),s.Xc("ngIf",e.new_config),s.kc(6),s.Xc("ngIf",e.new_config),s.kc(6),s.Xc("ngIf",e.new_config),s.kc(6),s.Xc("ngIf",e.new_config),s.kc(6),s.Xc("ngIf",e.new_config),s.kc(6),s.Xc("ngIf",e.new_config),s.kc(6),s.Xc("ngIf",e.new_config),s.kc(3),s.Xc("disabled",e.settingsSame()),s.kc(6),s.Xc("mat-dialog-close",!1))},directives:[oh,lh,Tp,ye.s,Ph,Th,Fh,ye.t,ch,ds,ru,rh,es,Rc,vu,Ds,nr,Ts,ja,wc,oo,ku],styles:[".settings-expansion-panel[_ngcontent-%COMP%]{margin-bottom:20px}.locale-select[_ngcontent-%COMP%]{margin-bottom:10px;width:130px}.ext-divider[_ngcontent-%COMP%]{margin-bottom:14px}"]}),t})();var Aw,Ow,Rw,Pw,Iw,Tw,Mw,Fw;Aw=$localize`:About dialog title␟cec82c0a545f37420d55a9b6c45c20546e82f94e␟8863443674032361244:About YoutubeDL-Material`,Ow=$localize`:About first paragraph␟199c17e5d6a419313af3c325f06dcbb9645ca618␟7048705050249868840:is an open-source YouTube downloader built under Google's Material Design specifications. You can seamlessly download your favorite videos as video or audio files, and even subscribe to your favorite channels and playlists to keep updated with their new videos.`,Rw=$localize`:About second paragraph␟c072eebcb5b1f1eef6fb2ee1756e839dd302f3de␟4961589587343641747:has some awesome features included! An extensive API, Docker support, and localization (translation) support. Read up on all the supported features by clicking on the GitHub icon below.`,Pw=$localize`:About bug prefix␟b33536f59b94ec935a16bd6869d836895dc5300c␟3353248286278121979:Found a bug or have a suggestion?`,Iw=$localize`:About bug click here␟9b3cedfa83c6d7acb3210953289d1be4aab115c7␟5261595325941116751:Click here`,Tw=$localize`:About bug suffix␟e1f398f38ff1534303d4bb80bd6cece245f24016␟1971178156716923826:to create an issue!`,Mw=$localize`:Version label␟a45e3b05f0529dc5246d70ef62304c94426d4c81␟5296103174605274070:Installed version:`,Fw=$localize`:View latest update␟effdc7dfbbc49c08d25ea1748fca00c38c918abd␟1361429814109482443:View latest update`;let Nw=(()=>{class t{constructor(){this.projectLink="https://github.com/Tzahi12345/YoutubeDL-Material",this.issuesLink="https://github.com/Tzahi12345/YoutubeDL-Material/issues",this.latestUpdateLink="https://github.com/Tzahi12345/YoutubeDL-Material/releases/latest",this.version="v3.5"}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["app-about-dialog"]],decls:38,vars:4,consts:[["mat-dialog-title",""],[2,"margin-bottom","5px"],["target","_blank",3,"href"],["src","assets/images/GitHub-64px.png",2,"width","32px","margin-bottom","10px"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.Hc(1,Aw),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"div",1),s.Dc(4,"p"),s.Dc(5,"i"),s.sd(6,"YoutubeDL-Material"),s.Cc(),s.sd(7,"\xa0"),s.Bc(8),s.Hc(9,Ow),s.Ac(),s.Cc(),s.Dc(10,"p"),s.Dc(11,"i"),s.sd(12,"YoutubeDL-Material"),s.Cc(),s.sd(13,"\xa0"),s.Bc(14),s.Hc(15,Rw),s.Ac(),s.Cc(),s.Dc(16,"p"),s.Bc(17),s.Hc(18,Pw),s.Ac(),s.sd(19,"\xa0"),s.Dc(20,"a",2),s.Bc(21),s.Hc(22,Iw),s.Ac(),s.Cc(),s.sd(23,"\xa0"),s.Bc(24),s.Hc(25,Tw),s.Ac(),s.Cc(),s.Dc(26,"a",2),s.zc(27,"img",3),s.Cc(),s.Dc(28,"p"),s.Bc(29),s.Hc(30,Mw),s.Ac(),s.sd(31),s.Dc(32,"a",2),s.Bc(33),s.Hc(34,Fw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(35,"mat-dialog-actions"),s.Dc(36,"button",4),s.sd(37,"Close"),s.Cc(),s.Cc()),2&t&&(s.kc(20),s.Xc("href",e.issuesLink,s.kd),s.kc(6),s.Xc("href",e.projectLink,s.kd),s.kc(5),s.ud("\xa0",e.version," - "),s.kc(1),s.Xc("href",e.latestUpdateLink,s.kd))},directives:[oh,lh,ch,ds,rh],styles:["i[_ngcontent-%COMP%]{margin-right:1px}"]}),t})();const Lw=["sidenav"],zw=["hamburgerMenu"];var Bw,Vw,jw,qw,$w;function Uw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",17,18),s.Nc("click",(function(){return s.id(t),s.Rc().toggleSidenav()})),s.Dc(2,"mat-icon"),s.sd(3,"menu"),s.Cc(),s.Cc()}}function Hw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",19),s.Nc("click",(function(){return s.id(t),s.Rc().goBack()})),s.Dc(1,"mat-icon"),s.sd(2,"arrow_back"),s.Cc(),s.Cc()}}function Xw(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",11),s.Nc("click",(function(e){return s.id(t),s.Rc().themeMenuItemClicked(e)})),s.Dc(1,"mat-icon"),s.sd(2),s.Cc(),s.Dc(3,"span"),s.Hc(4,$w),s.Cc(),s.zc(5,"mat-slide-toggle",20),s.Cc()}if(2&t){const t=s.Rc();s.kc(2),s.td("default"===t.postsService.theme.key?"brightness_5":"brightness_2"),s.kc(3),s.Xc("checked","dark"===t.postsService.theme.key)}}Bw=$localize`:Settings menu label␟121cc5391cd2a5115bc2b3160379ee5b36cd7716␟4930506384627295710:Settings`,Vw=$localize`:About menu label␟004b222ff9ef9dd4771b777950ca1d0e4cd4348a␟1726363342938046830:About`,jw=$localize`:Navigation menu Home Page title␟92eee6be6de0b11c924e3ab27db30257159c0a7c␟2821179408673282599:Home`,qw=$localize`:Navigation menu Subscriptions Page title␟357064ca9d9ac859eb618e28e8126fa32be049e2␟1812379335568847528:Subscriptions`,$w=$localize`:Dark mode toggle label␟adb4562d2dbd3584370e44496969d58c511ecb63␟3892161059518616136:Dark`;let Gw=(()=>{class t{constructor(t,e,i,n,s,a){this.postsService=t,this.snackBar=e,this.dialog=i,this.router=n,this.overlayContainer=s,this.elementRef=a,this.THEMES_CONFIG=Rf,this.topBarTitle="Youtube Downloader",this.defaultTheme=null,this.allowThemeChange=null,this.allowSubscriptions=!1,this.settingsPinRequired=!0,this.navigator=null,this.navigator=localStorage.getItem("player_navigator"),this.router.events.subscribe(t=>{t instanceof Zf?this.navigator=localStorage.getItem("player_navigator"):t instanceof tb&&this.hamburgerMenuButton&&this.hamburgerMenuButton.nativeElement&&this.hamburgerMenuButton.nativeElement.blur()}),this.loadConfig(),this.postsService.settings_changed.subscribe(t=>{t&&this.loadConfig()})}toggleSidenav(){this.sidenav.toggle()}loadConfig(){this.postsService.loadNavItems().subscribe(t=>{const e=this.postsService.debugMode?t:t.config_file;this.topBarTitle=e.YoutubeDLMaterial.Extra.title_top,this.settingsPinRequired=e.YoutubeDLMaterial.Extra.settings_pin_required;const i=e.YoutubeDLMaterial.Themes;this.defaultTheme=i?e.YoutubeDLMaterial.Themes.default_theme:"default",this.allowThemeChange=!i||e.YoutubeDLMaterial.Themes.allow_theme_change,this.allowSubscriptions=e.YoutubeDLMaterial.Subscriptions.allow_subscriptions,localStorage.getItem("theme")||this.setTheme(i?this.defaultTheme:"default")},t=>{console.log(t)})}setTheme(t){let e=null;this.THEMES_CONFIG[t]?(localStorage.getItem("theme")&&(e=localStorage.getItem("theme"),this.THEMES_CONFIG[e]||(console.log("bad theme found, setting to default"),null===this.defaultTheme?console.error("No default theme detected"):(localStorage.setItem("theme",this.defaultTheme),e=localStorage.getItem("theme")))),localStorage.setItem("theme",t),this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor=this.THEMES_CONFIG[t].background_color,this.postsService.setTheme(t),this.onSetTheme(this.THEMES_CONFIG[t].css_label,e?this.THEMES_CONFIG[e].css_label:e)):console.error("Invalid theme: "+t)}onSetTheme(t,e){e&&(document.body.classList.remove(e),this.overlayContainer.getContainerElement().classList.remove(e)),this.overlayContainer.getContainerElement().classList.add(t),this.componentCssClass=t}flipTheme(){"default"===this.postsService.theme.key?this.setTheme("dark"):"dark"===this.postsService.theme.key&&this.setTheme("default")}themeMenuItemClicked(t){this.flipTheme(),t.stopPropagation()}ngOnInit(){localStorage.getItem("theme")&&this.setTheme(localStorage.getItem("theme"))}goBack(){this.navigator?this.router.navigateByUrl(this.navigator):this.router.navigate(["/home"])}openSettingsDialog(){this.settingsPinRequired?this.openPinDialog():this.actuallyOpenSettingsDialog()}actuallyOpenSettingsDialog(){this.dialog.open(Ew,{width:"80vw"})}openPinDialog(){this.dialog.open(Gy,{}).afterClosed().subscribe(t=>{t&&this.actuallyOpenSettingsDialog()})}openAboutDialog(){this.dialog.open(Nw,{width:"80vw"})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(Pg),s.yc(sh),s.yc(my),s.yc(Pl),s.yc(s.q))},t.\u0275cmp=s.sc({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(s.wd(Lw,!0),s.wd(zw,!0,s.q)),2&t&&(s.dd(i=s.Oc())&&(e.sidenav=i.first),s.dd(i=s.Oc())&&(e.hamburgerMenuButton=i.first))},hostVars:2,hostBindings:function(t,e){2&t&&s.mc(e.componentCssClass)},decls:40,vars:9,consts:[[2,"width","100%","height","100%"],["color","primary",1,"top"],["width","100%","height","100%",1,"flex-row"],[1,"flex-column",2,"text-align","left","margin-top","1px"],["style","outline: none","mat-icon-button","","aria-label","Toggle side navigation",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"flex-column",2,"text-align","center","margin-top","5px"],[1,"flex-column",2,"text-align","right","align-items","flex-end"],["mat-icon-button","",3,"matMenuTriggerFor"],["menuSettings","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[2,"height","calc(100% - 64px)"],[2,"height","100%"],["sidenav",""],["mat-list-item","","routerLink","/home",3,"click"],["mat-list-item","","routerLink","/subscriptions",3,"click"],["mat-icon-button","","aria-label","Toggle side navigation",2,"outline","none",3,"click"],["hamburgerMenu",""],["mat-icon-button","",3,"click"],[1,"theme-slide-toggle",3,"checked"]],template:function(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",0),s.Dc(1,"div"),s.Dc(2,"mat-toolbar",1),s.Dc(3,"div",2),s.Dc(4,"div",3),s.qd(5,Uw,4,0,"button",4),s.qd(6,Hw,3,0,"button",5),s.Cc(),s.Dc(7,"div",6),s.Dc(8,"div"),s.sd(9),s.Cc(),s.Cc(),s.Dc(10,"div",7),s.Dc(11,"button",8),s.Dc(12,"mat-icon"),s.sd(13,"more_vert"),s.Cc(),s.Cc(),s.Dc(14,"mat-menu",null,9),s.qd(16,Xw,6,2,"button",10),s.Dc(17,"button",11),s.Nc("click",(function(){return e.openSettingsDialog()})),s.Dc(18,"mat-icon"),s.sd(19,"settings"),s.Cc(),s.Dc(20,"span"),s.Hc(21,Bw),s.Cc(),s.Cc(),s.Dc(22,"button",11),s.Nc("click",(function(){return e.openAboutDialog()})),s.Dc(23,"mat-icon"),s.sd(24,"info"),s.Cc(),s.Dc(25,"span"),s.Hc(26,Vw),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(27,"div",12),s.Dc(28,"mat-sidenav-container",13),s.Dc(29,"mat-sidenav",null,14),s.Dc(31,"mat-nav-list"),s.Dc(32,"a",15),s.Nc("click",(function(){return s.id(t),s.ed(30).close()})),s.Bc(33),s.Hc(34,jw),s.Ac(),s.Cc(),s.Dc(35,"a",16),s.Nc("click",(function(){return s.id(t),s.ed(30).close()})),s.Bc(36),s.Hc(37,qw),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(38,"mat-sidenav-content"),s.zc(39,"router-outlet"),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.ed(15);s.pd("background",e.postsService.theme?e.postsService.theme.background_color:null,s.rc),s.kc(5),s.Xc("ngIf","/player"!==e.router.url.split(";")[0]&&e.allowSubscriptions),s.kc(1),s.Xc("ngIf","/player"===e.router.url.split(";")[0]),s.kc(3),s.td(e.topBarTitle),s.kc(2),s.Xc("matMenuTriggerFor",t),s.kc(5),s.Xc("ngIf",e.allowThemeChange),s.kc(22),s.pd("background",e.postsService.theme?e.postsService.theme.background_color:null,s.rc)}},directives:[Lg,ye.t,ds,gm,ru,dm,am,tg,Qp,Fu,ju,gy,Jp,vy,pg],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-basis:100%;flex:1}.theme-slide-toggle[_ngcontent-%COMP%]{top:2px;left:10px;position:relative}"]}),t})(),Ww=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();const Yw=function(){var t={Get:0,Post:1,Put:2,Delete:3,Options:4,Head:5,Patch:6};return t[t.Get]="Get",t[t.Post]="Post",t[t.Put]="Put",t[t.Delete]="Delete",t[t.Options]="Options",t[t.Head]="Head",t[t.Patch]="Patch",t}(),Kw=function(){var t={Basic:0,Cors:1,Default:2,Error:3,Opaque:4};return t[t.Basic]="Basic",t[t.Cors]="Cors",t[t.Default]="Default",t[t.Error]="Error",t[t.Opaque]="Opaque",t}(),Jw=function(){var t={NONE:0,JSON:1,FORM:2,FORM_DATA:3,TEXT:4,BLOB:5,ARRAY_BUFFER:6};return t[t.NONE]="NONE",t[t.JSON]="JSON",t[t.FORM]="FORM",t[t.FORM_DATA]="FORM_DATA",t[t.TEXT]="TEXT",t[t.BLOB]="BLOB",t[t.ARRAY_BUFFER]="ARRAY_BUFFER",t}(),Qw=function(){var t={Text:0,Json:1,ArrayBuffer:2,Blob:3};return t[t.Text]="Text",t[t.Json]="Json",t[t.ArrayBuffer]="ArrayBuffer",t[t.Blob]="Blob",t}();class Zw{constructor(t){this._headers=new Map,this._normalizedNames=new Map,t&&(t instanceof Zw?t.forEach((t,e)=>{t.forEach(t=>this.append(e,t))}):Object.keys(t).forEach(e=>{const i=Array.isArray(t[e])?t[e]:[t[e]];this.delete(e),i.forEach(t=>this.append(e,t))}))}static fromResponseHeaderString(t){const e=new Zw;return t.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const n=t.slice(0,i),s=t.slice(i+1).trim();e.set(n,s)}}),e}append(t,e){const i=this.getAll(t);null===i?this.set(t,e):i.push(e)}delete(t){const e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)}forEach(t){this._headers.forEach((e,i)=>t(e,this._normalizedNames.get(i),this._headers))}get(t){const e=this.getAll(t);return null===e?null:e.length>0?e[0]:null}has(t){return this._headers.has(t.toLowerCase())}keys(){return Array.from(this._normalizedNames.values())}set(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)}values(){return Array.from(this._headers.values())}toJSON(){const t={};return this._headers.forEach((e,i)=>{const n=[];e.forEach(t=>n.push(...t.split(","))),t[this._normalizedNames.get(i)]=n}),t}getAll(t){return this.has(t)&&this._headers.get(t.toLowerCase())||null}entries(){throw new Error('"entries" method is not implemented on Headers class')}mayBeSetNormalizedName(t){const e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)}}class tk{constructor(t={}){const{body:e,status:i,headers:n,statusText:s,type:a,url:r}=t;this.body=null!=e?e:null,this.status=null!=i?i:null,this.headers=null!=n?n:null,this.statusText=null!=s?s:null,this.type=null!=a?a:null,this.url=null!=r?r:null}merge(t){return new tk({body:t&&null!=t.body?t.body:this.body,status:t&&null!=t.status?t.status:this.status,headers:t&&null!=t.headers?t.headers:this.headers,statusText:t&&null!=t.statusText?t.statusText:this.statusText,type:t&&null!=t.type?t.type:this.type,url:t&&null!=t.url?t.url:this.url})}}let ek=(()=>{class t extends tk{constructor(){super({status:200,statusText:"Ok",type:Kw.Default,headers:new Zw})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class ik{}class nk{}function sk(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return Yw.Get;case"POST":return Yw.Post;case"PUT":return Yw.Put;case"DELETE":return Yw.Delete;case"OPTIONS":return Yw.Options;case"HEAD":return Yw.Head;case"PATCH":return Yw.Patch}throw new Error(`Invalid request method. The method "${t}" is not supported.`)}class ak{encodeKey(t){return rk(t)}encodeValue(t){return rk(t)}}function rk(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 ok{constructor(t="",e=new ak){this.rawParams=t,this.queryEncoder=e,this.paramsMap=function(t=""){const e=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[n,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)],a=e.get(n)||[];a.push(s),e.set(n,a)}),e}(t)}clone(){const t=new ok("",this.queryEncoder);return t.appendAll(this),t}has(t){return this.paramsMap.has(t)}get(t){const e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null}getAll(t){return this.paramsMap.get(t)||[]}set(t,e){if(null==e)return void this.delete(t);const i=this.paramsMap.get(t)||[];i.length=0,i.push(e),this.paramsMap.set(t,i)}setAll(t){t.paramsMap.forEach((t,e)=>{const i=this.paramsMap.get(e)||[];i.length=0,i.push(t[0]),this.paramsMap.set(e,i)})}append(t,e){if(null==e)return;const i=this.paramsMap.get(t)||[];i.push(e),this.paramsMap.set(t,i)}appendAll(t){t.paramsMap.forEach((t,e)=>{const i=this.paramsMap.get(e)||[];for(let n=0;n{const i=this.paramsMap.get(e)||[];i.length=0;for(let n=0;n{e.forEach(e=>t.push(this.queryEncoder.encodeKey(i)+"="+this.queryEncoder.encodeValue(e)))}),t.join("&")}delete(t){this.paramsMap.delete(t)}}class lk{json(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body}text(t="legacy"){if(this._body instanceof ok)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(t){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error(`Invalid value for encodingHint: ${t}`)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()}arrayBuffer(){return this._body instanceof ArrayBuffer?this._body:function(t){const e=new Uint16Array(t.length);for(let i=0,n=t.length;i=200&&this.status<=299,this.statusText=t.statusText,this.headers=t.headers,this.type=t.type,this.url=t.url}toString(){return`Response with status: ${this.status} ${this.statusText} for URL: ${this.url}`}}const hk=/^\)\]\}',?\n/;class dk{constructor(t,e,i){this.request=t,this.response=new si.a(n=>{const s=e.build();s.open(Yw[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);const a=()=>{let e=1223===s.status?204:s.status,a=null;204!==e&&(a=void 0===s.response?s.responseText:s.response,"string"==typeof a&&(a=a.replace(hk,""))),0===e&&(e=a?200:0);const r=Zw.fromResponseHeaderString(s.getAllResponseHeaders()),o=("responseURL"in(l=s)?l.responseURL:/^X-Request-URL:/m.test(l.getAllResponseHeaders())?l.getResponseHeader("X-Request-URL"):null)||t.url;var l;let c=new tk({body:a,status:e,headers:r,statusText:s.statusText||"OK",url:o});null!=i&&(c=i.merge(c));const h=new ck(c);if(h.ok=(t=>t>=200&&t<300)(e),h.ok)return n.next(h),void n.complete();n.error(h)},r=t=>{let e=new tk({body:t,type:Kw.Error,status:s.status,statusText:s.statusText});null!=i&&(e=i.merge(e)),n.error(new ck(e))};if(this.setDetectedContentType(t,s),null==t.headers&&(t.headers=new Zw),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach((t,e)=>s.setRequestHeader(e,t.join(","))),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case Qw.ArrayBuffer:s.responseType="arraybuffer";break;case Qw.Json:s.responseType="json";break;case Qw.Text:s.responseType="text";break;case Qw.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",r),s.send(this.request.getBody()),()=>{s.removeEventListener("load",a),s.removeEventListener("error",r),s.abort()}})}setDetectedContentType(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case Jw.NONE:break;case Jw.JSON:e.setRequestHeader("content-type","application/json");break;case Jw.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case Jw.TEXT:e.setRequestHeader("content-type","text/plain");break;case Jw.BLOB:const i=t.blob();i.type&&e.setRequestHeader("content-type",i.type)}}}class uk{constructor(t="XSRF-TOKEN",e="X-XSRF-TOKEN"){this._cookieName=t,this._headerName=e}configureRequest(t){const e=Object(ye.N)().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)}}let mk=(()=>{class t{constructor(t,e,i){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=i}createConnection(t){return this._xsrfStrategy.configureRequest(t),new dk(t,this._browserXHR,this._baseResponseOptions)}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(Ww),s.Jc(tk),s.Jc(nk))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class pk{get search(){return this.params}set search(t){this.params=t}constructor(t={}){const{method:e,headers:i,body:n,url:s,search:a,params:r,withCredentials:o,responseType:l}=t;this.method=null!=e?sk(e):null,this.headers=null!=i?i:null,this.body=null!=n?n:null,this.url=null!=s?s:null,this.params=this._mergeSearchParams(r||a),this.withCredentials=null!=o?o:null,this.responseType=null!=l?l:null}merge(t){return new pk({method:t&&null!=t.method?t.method:this.method,headers:t&&null!=t.headers?t.headers:new Zw(this.headers),body:t&&null!=t.body?t.body:this.body,url:t&&null!=t.url?t.url:this.url,params:t&&this._mergeSearchParams(t.params||t.search),withCredentials:t&&null!=t.withCredentials?t.withCredentials:this.withCredentials,responseType:t&&null!=t.responseType?t.responseType:this.responseType})}_mergeSearchParams(t){return t?t instanceof ok?t.clone():"string"==typeof t?new ok(t):this._parseParams(t):this.params}_parseParams(t={}){const e=new ok;return Object.keys(t).forEach(i=>{const n=t[i];Array.isArray(n)?n.forEach(t=>this._appendParam(i,t,e)):this._appendParam(i,n,e)}),e}_appendParam(t,e,i){"string"!=typeof e&&(e=JSON.stringify(e)),i.append(t,e)}}let gk=(()=>{class t extends pk{constructor(){super({method:Yw.Get,headers:new Zw})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();class fk extends lk{constructor(t){super();const e=t.url;this.url=t.url;const i=t.params||t.search;if(i){let t;if(t="object"!=typeof i||i instanceof ok?i.toString():function(t){const e=new ok;return Object.keys(t).forEach(i=>{const n=t[i];n&&Array.isArray(n)?n.forEach(t=>e.append(i,t.toString())):e.append(i,n.toString())}),e}(i).toString(),t.length>0){let i="?";-1!=this.url.indexOf("?")&&(i="&"==this.url[this.url.length-1]?"":"&"),this.url=e+i+t}}this._body=t.body,this.method=sk(t.method),this.headers=new Zw(t.headers),this.contentType=this.detectContentType(),this.withCredentials=t.withCredentials,this.responseType=t.responseType}detectContentType(){switch(this.headers.get("content-type")){case"application/json":return Jw.JSON;case"application/x-www-form-urlencoded":return Jw.FORM;case"multipart/form-data":return Jw.FORM_DATA;case"text/plain":case"text/html":return Jw.TEXT;case"application/octet-stream":return this._body instanceof wk?Jw.ARRAY_BUFFER:Jw.BLOB;default:return this.detectContentTypeFromBody()}}detectContentTypeFromBody(){return null==this._body?Jw.NONE:this._body instanceof ok?Jw.FORM:this._body instanceof yk?Jw.FORM_DATA:this._body instanceof vk?Jw.BLOB:this._body instanceof wk?Jw.ARRAY_BUFFER:this._body&&"object"==typeof this._body?Jw.JSON:Jw.TEXT}getBody(){switch(this.contentType){case Jw.JSON:case Jw.FORM:return this.text();case Jw.FORM_DATA:return this._body;case Jw.TEXT:return this.text();case Jw.BLOB:return this.blob();case Jw.ARRAY_BUFFER:return this.arrayBuffer();default:return null}}}const bk=function(){},_k="object"==typeof window?window:bk,yk=_k.FormData||bk,vk=_k.Blob||bk,wk=_k.ArrayBuffer||bk;function kk(t,e){return t.createConnection(e).response}function xk(t,e,i,n){return t.merge(new pk(e?{method:e.method||i,url:e.url||n,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}:{method:i,url:n}))}let Ck=(()=>{class t{constructor(t,e){this._backend=t,this._defaultOptions=e}request(t,e){let i;if("string"==typeof t)i=kk(this._backend,new fk(xk(this._defaultOptions,e,Yw.Get,t)));else{if(!(t instanceof fk))throw new Error("First argument must be a url string or Request instance.");i=kk(this._backend,t)}return i}get(t,e){return this.request(new fk(xk(this._defaultOptions,e,Yw.Get,t)))}post(t,e,i){return this.request(new fk(xk(this._defaultOptions.merge(new pk({body:e})),i,Yw.Post,t)))}put(t,e,i){return this.request(new fk(xk(this._defaultOptions.merge(new pk({body:e})),i,Yw.Put,t)))}delete(t,e){return this.request(new fk(xk(this._defaultOptions,e,Yw.Delete,t)))}patch(t,e,i){return this.request(new fk(xk(this._defaultOptions.merge(new pk({body:e})),i,Yw.Patch,t)))}head(t,e){return this.request(new fk(xk(this._defaultOptions,e,Yw.Head,t)))}options(t,e){return this.request(new fk(xk(this._defaultOptions,e,Yw.Options,t)))}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(ik),s.Jc(pk))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})();function Sk(){return new uk}function Dk(t,e){return new Ck(t,e)}let Ek=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[{provide:Ck,useFactory:Dk,deps:[mk,pk]},Ww,{provide:pk,useClass:gk},{provide:tk,useClass:ek},mk,{provide:nk,useFactory:Sk}]}),t})();function Ak(t,e,i,n){return new(i||(i=Promise))((function(s,a){function r(t){try{l(n.next(t))}catch(e){a(e)}}function o(t){try{l(n.throw(t))}catch(e){a(e)}}function l(t){t.done?s(t.value):new i((function(e){e(t.value)})).then(r,o)}l((n=n.apply(t,e||[])).next())}))}var Ok=i("Iab2");class Rk{constructor(t){this.id=t&&t.id||null,this.title=t&&t.title||null,this.desc=t&&t.desc||null,this.thumbnailUrl=t&&t.thumbnailUrl||null,this.uploaded=t&&t.uploaded||null,this.videoUrl=t&&t.videoUrl||`https://www.youtube.com/watch?v=${this.id}`,this.uploaded=function(t){const e=new Date(t),i=Ik(e.getMonth()+1),n=Ik(e.getDate()),s=e.getFullYear();let a;a=e.getHours();const r=Ik(e.getMinutes());let o="AM";const l=parseInt(a,10);return l>12?(o="PM",a=l-12):0===l&&(a="12"),a=Ik(a),i+"-"+n+"-"+s+" "+a+":"+r+" "+o}(Date.parse(this.uploaded))}}let Pk=(()=>{class t{constructor(t){this.http=t,this.url="https://www.googleapis.com/youtube/v3/search",this.key=null}initializeAPI(t){this.key=t}search(t){if(this.ValidURL(t))return new si.a;const e=[`q=${t}`,`key=${this.key}`,"part=snippet","type=video","maxResults=5"].join("&");return this.http.get(`${this.url}?${e}`).map(t=>t.items.map(t=>new Rk({id:t.id.videoId,title:t.snippet.title,desc:t.snippet.description,thumbnailUrl:t.snippet.thumbnails.high.url,uploaded:t.snippet.publishedAt})))}ValidURL(t){return new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Jc(Rd))},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Ik(t){return t<10?"0"+t:t}var Tk;Tk=$localize`:Create a playlist dialog title␟17f0ea5d2d7a262b0e875acc70475f102aee84e6␟3949911572988594237:Create a playlist`;const Mk=["placeholder",$localize`:Playlist name placeholder␟cff1428d10d59d14e45edec3c735a27b5482db59␟8953033926734869941:Name`];var Fk,Nk;function Lk(t,e){1&t&&(s.Dc(0,"mat-label"),s.Bc(1),s.Hc(2,Fk),s.Ac(),s.Cc())}function zk(t,e){1&t&&(s.Dc(0,"mat-label"),s.Bc(1),s.Hc(2,Nk),s.Ac(),s.Cc())}function Bk(t,e){if(1&t&&(s.Dc(0,"mat-option",8),s.sd(1),s.Cc()),2&t){const t=e.$implicit;s.Xc("value",t.id),s.kc(1),s.td(t.id)}}function Vk(t,e){1&t&&(s.Dc(0,"div",9),s.zc(1,"mat-spinner",10),s.Cc()),2&t&&(s.kc(1),s.Xc("diameter",25))}Fk=$localize`:Audio files title␟f47e2d56dd8a145b2e9599da9730c049d52962a2␟253926325379303932:Audio files`,Nk=$localize`:Videos title␟a52dae09be10ca3a65da918533ced3d3f4992238␟8936704404804793618:Videos`;const jk=function(){return{standalone:!0}};let qk=(()=>{class t{constructor(t,e,i){this.data=t,this.postsService=e,this.dialogRef=i,this.filesToSelectFrom=null,this.type=null,this.filesSelect=new Aa,this.name="",this.create_in_progress=!1}ngOnInit(){this.data&&(this.filesToSelectFrom=this.data.filesToSelectFrom,this.type=this.data.type)}createPlaylist(){const t=this.getThumbnailURL();this.create_in_progress=!0,this.postsService.createPlaylist(this.name,this.filesSelect.value,this.type,t).subscribe(t=>{this.create_in_progress=!1,this.dialogRef.close(!!t.success)})}getThumbnailURL(){for(let t=0;t1?"first-result-card":"",i===n.results.length-1&&n.results.length>1?"last-result-card":"",1===n.results.length?"only-result-card":"")),s.kc(2),s.ud(" ",t.title," "),s.kc(2),s.ud(" ",t.uploaded," ")}}function lx(t,e){if(1&t&&(s.Dc(0,"div",34),s.qd(1,ox,12,7,"span",28),s.Cc()),2&t){const t=s.Rc();s.kc(1),s.Xc("ngForOf",t.results)}}var cx,hx,dx,ux;function mx(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-checkbox",40),s.Nc("change",(function(e){return s.id(t),s.Rc().multiDownloadModeChanged(e)}))("ngModelChange",(function(e){return s.id(t),s.Rc().multiDownloadMode=e})),s.Bc(1),s.Hc(2,cx),s.Ac(),s.Cc()}if(2&t){const t=s.Rc();s.Xc("disabled",t.current_download)("ngModel",t.multiDownloadMode)}}function px(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",41),s.Nc("click",(function(){return s.id(t),s.Rc().cancelDownload()})),s.Bc(1),s.Hc(2,hx),s.Ac(),s.Cc()}}cx=$localize`:Multi-download Mode checkbox␟96a01fafe135afc58b0f8071a4ab00234495ce18␟1215999553275961560: Multi-download Mode `,hx=$localize`:Cancel download button␟6a3777f913cf3f288664f0632b9f24794fdcc24e␟6991067716289442185: Cancel `,dx=$localize`:Advanced download mode panel␟322ed150e02666fe2259c5b4614eac7066f4ffa0␟7427754392029374006: Advanced `,ux=$localize`:Use custom args checkbox␟4e4c721129466be9c3862294dc40241b64045998␟5091669664044282329: Use custom args `;const gx=["placeholder",$localize`:Custom args placeholder␟ad2f8ac8b7de7945b80c8e424484da94e597125f␟7810908229283352132:Custom args`];var fx,bx;fx=$localize`:Custom Args input hint␟ccc7e92cbdd35e901acf9ad80941abee07bd8f60␟8882144118477601028: No need to include URL, just everything after. `,bx=$localize`:Use custom output checkbox␟3a92a3443c65a52f37ca7efb8f453b35dbefbf29␟5904983012542242085: Use custom output `;const _x=["placeholder",$localize`:Custom output placeholder␟d9c02face477f2f9cdaae318ccee5f89856851fb␟3075663591125020403:Custom output`];var yx,vx,wx,kx;function xx(t,e){if(1&t&&(s.Dc(0,"p"),s.Bc(1),s.Hc(2,wx),s.Ac(),s.sd(3," \xa0"),s.Dc(4,"i"),s.sd(5),s.Cc(),s.Cc()),2&t){const t=s.Rc(2);s.kc(5),s.td(t.simulatedOutput)}}yx=$localize`:Youtube-dl output template documentation link␟fcfd4675b4c90f08d18d3abede9a9a4dff4cfdc7␟4895326106573044490:Documentation`,vx=$localize`:Custom Output input hint␟19d1ae64d94d28a29b2c57ae8671aace906b5401␟3584692608114953661:Path is relative to the config download path. Don't include extension.`,wx=$localize`:Simulated command label␟b7ffe7c6586d6f3f18a9246806a7c7d5538ab43e␟4637303589735709945: Simulated command: `,kx=$localize`:Use authentication checkbox␟8fad10737d3e3735a6699a4d89cbf6c20f6bb55f␟294759932648923187: Use authentication `;const Cx=["placeholder",$localize`:YT Username placeholder␟08c74dc9762957593b91f6eb5d65efdfc975bf48␟5248717555542428023:Username`];function Sx(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",52),s.Dc(1,"mat-checkbox",46),s.Nc("change",(function(e){return s.id(t),s.Rc(2).youtubeAuthEnabledChanged(e)}))("ngModelChange",(function(e){return s.id(t),s.Rc(2).youtubeAuthEnabled=e})),s.Bc(2),s.Hc(3,kx),s.Ac(),s.Cc(),s.Dc(4,"mat-form-field",53),s.Dc(5,"input",49),s.Ic(6,Cx),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc(2).youtubeUsername=e})),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc(2);s.kc(1),s.Xc("disabled",t.current_download)("ngModel",t.youtubeAuthEnabled)("ngModelOptions",s.Zc(6,ix)),s.kc(4),s.Xc("ngModel",t.youtubeUsername)("ngModelOptions",s.Zc(7,ix))("disabled",!t.youtubeAuthEnabled)}}const Dx=["placeholder",$localize`:YT Password placeholder␟c32ef07f8803a223a83ed17024b38e8d82292407␟1431416938026210429:Password`];function Ex(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",52),s.Dc(1,"mat-form-field",54),s.Dc(2,"input",55),s.Ic(3,Dx),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc(2).youtubePassword=e})),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc(2);s.kc(2),s.Xc("ngModel",t.youtubePassword)("ngModelOptions",s.Zc(3,ix))("disabled",!t.youtubeAuthEnabled)}}function Ax(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",0),s.Dc(1,"form",42),s.Dc(2,"mat-expansion-panel",43),s.Dc(3,"mat-expansion-panel-header"),s.Dc(4,"mat-panel-title"),s.Bc(5),s.Hc(6,dx),s.Ac(),s.Cc(),s.Cc(),s.qd(7,xx,6,1,"p",10),s.Dc(8,"div",44),s.Dc(9,"div",5),s.Dc(10,"div",45),s.Dc(11,"mat-checkbox",46),s.Nc("change",(function(e){return s.id(t),s.Rc().customArgsEnabledChanged(e)}))("ngModelChange",(function(e){return s.id(t),s.Rc().customArgsEnabled=e})),s.Bc(12),s.Hc(13,ux),s.Ac(),s.Cc(),s.Dc(14,"button",47),s.Nc("click",(function(){return s.id(t),s.Rc().openArgsModifierDialog()})),s.Dc(15,"mat-icon"),s.sd(16,"edit"),s.Cc(),s.Cc(),s.Dc(17,"mat-form-field",48),s.Dc(18,"input",49),s.Ic(19,gx),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().customArgs=e})),s.Cc(),s.Dc(20,"mat-hint"),s.Bc(21),s.Hc(22,fx),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(23,"div",45),s.Dc(24,"mat-checkbox",46),s.Nc("change",(function(e){return s.id(t),s.Rc().customOutputEnabledChanged(e)}))("ngModelChange",(function(e){return s.id(t),s.Rc().customOutputEnabled=e})),s.Bc(25),s.Hc(26,bx),s.Ac(),s.Cc(),s.Dc(27,"mat-form-field",48),s.Dc(28,"input",49),s.Ic(29,_x),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().customOutput=e})),s.Cc(),s.Dc(30,"mat-hint"),s.Dc(31,"a",50),s.Bc(32),s.Hc(33,yx),s.Ac(),s.Cc(),s.sd(34,". "),s.Bc(35),s.Hc(36,vx),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.qd(37,Sx,7,8,"div",51),s.qd(38,Ex,4,4,"div",51),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.kc(7),s.Xc("ngIf",t.simulatedOutput),s.kc(4),s.Xc("disabled",t.current_download)("ngModel",t.customArgsEnabled)("ngModelOptions",s.Zc(15,ix)),s.kc(7),s.Xc("ngModel",t.customArgs)("ngModelOptions",s.Zc(16,ix))("disabled",!t.customArgsEnabled),s.kc(6),s.Xc("disabled",t.current_download)("ngModel",t.customOutputEnabled)("ngModelOptions",s.Zc(17,ix)),s.kc(4),s.Xc("ngModel",t.customOutput)("ngModelOptions",s.Zc(18,ix))("disabled",!t.customOutputEnabled),s.kc(9),s.Xc("ngIf",!t.youtubeAuthDisabledOverride),s.kc(1),s.Xc("ngIf",!t.youtubeAuthDisabledOverride)}}function Ox(t,e){1&t&&s.zc(0,"mat-divider",2)}function Rx(t,e){if(1&t){const t=s.Ec();s.Bc(0),s.Dc(1,"app-download-item",59),s.Nc("cancelDownload",(function(e){return s.id(t),s.Rc(3).cancelDownload(e)})),s.Cc(),s.qd(2,Ox,1,0,"mat-divider",60),s.Ac()}if(2&t){const t=s.Rc(),e=t.$implicit,i=t.index,n=s.Rc(2);s.kc(1),s.Xc("download",e)("queueNumber",i+1),s.kc(1),s.Xc("ngIf",i!==n.downloads.length-1)}}function Px(t,e){if(1&t&&(s.Dc(0,"div",5),s.qd(1,Rx,3,3,"ng-container",10),s.Cc()),2&t){const t=e.$implicit,i=s.Rc(2);s.kc(1),s.Xc("ngIf",i.current_download!==t)}}function Ix(t,e){if(1&t&&(s.Dc(0,"div",56),s.Dc(1,"mat-card",1),s.Dc(2,"div",57),s.qd(3,Px,2,1,"div",58),s.Cc(),s.Cc(),s.Cc()),2&t){const t=s.Rc();s.kc(3),s.Xc("ngForOf",t.downloads)}}function Tx(t,e){if(1&t&&(s.Dc(0,"div",66),s.zc(1,"mat-progress-bar",67),s.zc(2,"br"),s.Cc()),2&t){const t=s.Rc(2);s.Xc("ngClass",t.determinateProgress&&100===t.percentDownloaded?"make-room-for-spinner":"equal-sizes"),s.kc(1),s.Yc("value",t.percentDownloaded)}}function Mx(t,e){1&t&&(s.Dc(0,"div",68),s.zc(1,"mat-spinner",33),s.Cc()),2&t&&(s.kc(1),s.Xc("diameter",25))}function Fx(t,e){1&t&&s.zc(0,"mat-progress-bar",69)}function Nx(t,e){if(1&t&&(s.Dc(0,"div",61),s.Dc(1,"div",62),s.qd(2,Tx,3,2,"div",63),s.qd(3,Mx,2,1,"div",64),s.qd(4,Fx,1,0,"ng-template",null,65,s.rd),s.Cc(),s.zc(6,"br"),s.Cc()),2&t){const t=s.ed(5),e=s.Rc();s.kc(2),s.Xc("ngIf",e.determinateProgress)("ngIfElse",t),s.kc(1),s.Xc("ngIf",e.determinateProgress&&100===e.percentDownloaded)}}function Lx(t,e){}var zx,Bx,Vx,jx,qx,$x,Ux,Hx;function Xx(t,e){1&t&&s.zc(0,"mat-progress-bar",81)}function Gx(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-tile"),s.Dc(1,"app-file-card",78,79),s.Nc("removeFile",(function(e){return s.id(t),s.Rc(3).removeFromMp3(e)})),s.Cc(),s.qd(3,Xx,1,0,"mat-progress-bar",80),s.Cc()}if(2&t){const t=e.$implicit,i=s.Rc(3);s.kc(1),s.Xc("file",t)("title",t.title)("name",t.id)("thumbnailURL",t.thumbnailURL)("length",t.duration)("isAudio",!0)("use_youtubedl_archive",i.use_youtubedl_archive),s.kc(2),s.Xc("ngIf",i.downloading_content.audio[t.id])}}function Wx(t,e){1&t&&s.zc(0,"mat-progress-bar",81)}function Yx(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-tile"),s.Dc(1,"app-file-card",83,79),s.Nc("removeFile",(function(){s.id(t);const i=e.$implicit,n=e.index;return s.Rc(4).removePlaylistMp3(i.id,n)})),s.Cc(),s.qd(3,Wx,1,0,"mat-progress-bar",80),s.Cc()}if(2&t){const t=e.$implicit,i=s.Rc(4);s.kc(1),s.Xc("title",t.name)("name",t.id)("thumbnailURL",i.playlist_thumbnails[t.id])("length",null)("isAudio",!0)("isPlaylist",!0)("count",t.fileNames.length)("use_youtubedl_archive",i.use_youtubedl_archive),s.kc(2),s.Xc("ngIf",i.downloading_content.audio[t.id])}}function Kx(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-list",82),s.Nc("resize",(function(e){return s.id(t),s.Rc(3).onResize(e)}),!1,s.hd),s.qd(1,Yx,4,9,"mat-grid-tile",28),s.Cc()}if(2&t){const t=s.Rc(3);s.Xc("cols",t.files_cols),s.kc(1),s.Xc("ngForOf",t.playlists.audio)}}function Jx(t,e){1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,$x),s.Ac(),s.Cc())}function Qx(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"mat-grid-list",73),s.Nc("resize",(function(e){return s.id(t),s.Rc(2).onResize(e)}),!1,s.hd),s.qd(2,Gx,4,8,"mat-grid-tile",28),s.Cc(),s.zc(3,"mat-divider"),s.Dc(4,"div",74),s.Dc(5,"h6"),s.Hc(6,qx),s.Cc(),s.Cc(),s.qd(7,Kx,2,2,"mat-grid-list",75),s.Dc(8,"div",76),s.Dc(9,"button",77),s.Nc("click",(function(){return s.id(t),s.Rc(2).openCreatePlaylistDialog("audio")})),s.Dc(10,"mat-icon"),s.sd(11,"add"),s.Cc(),s.Cc(),s.Cc(),s.qd(12,Jx,3,0,"div",10),s.Cc()}if(2&t){const t=s.Rc(2);s.kc(1),s.Xc("cols",t.files_cols),s.kc(1),s.Xc("ngForOf",t.mp3s),s.kc(5),s.Xc("ngIf",t.playlists.audio.length>0),s.kc(5),s.Xc("ngIf",0===t.playlists.audio.length)}}function Zx(t,e){1&t&&s.zc(0,"mat-progress-bar",81)}function tC(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-tile"),s.Dc(1,"app-file-card",78,84),s.Nc("removeFile",(function(e){return s.id(t),s.Rc(3).removeFromMp4(e)})),s.Cc(),s.qd(3,Zx,1,0,"mat-progress-bar",80),s.Cc()}if(2&t){const t=e.$implicit,i=s.Rc(3);s.kc(1),s.Xc("file",t)("title",t.title)("name",t.id)("thumbnailURL",t.thumbnailURL)("length",t.duration)("isAudio",!1)("use_youtubedl_archive",i.use_youtubedl_archive),s.kc(2),s.Xc("ngIf",i.downloading_content.video[t.id])}}function eC(t,e){1&t&&s.zc(0,"mat-progress-bar",81)}function iC(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-tile"),s.Dc(1,"app-file-card",83,84),s.Nc("removeFile",(function(){s.id(t);const i=e.$implicit,n=e.index;return s.Rc(4).removePlaylistMp4(i.id,n)})),s.Cc(),s.qd(3,eC,1,0,"mat-progress-bar",80),s.Cc()}if(2&t){const t=e.$implicit,i=s.Rc(4);s.kc(1),s.Xc("title",t.name)("name",t.id)("thumbnailURL",i.playlist_thumbnails[t.id])("length",null)("isAudio",!1)("isPlaylist",!0)("count",t.fileNames.length)("use_youtubedl_archive",i.use_youtubedl_archive),s.kc(2),s.Xc("ngIf",i.downloading_content.video[t.id])}}function nC(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-grid-list",82),s.Nc("resize",(function(e){return s.id(t),s.Rc(3).onResize(e)}),!1,s.hd),s.qd(1,iC,4,9,"mat-grid-tile",28),s.Cc()}if(2&t){const t=s.Rc(3);s.Xc("cols",t.files_cols),s.kc(1),s.Xc("ngForOf",t.playlists.video)}}function sC(t,e){1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,Hx),s.Ac(),s.Cc())}function aC(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"mat-grid-list",73),s.Nc("resize",(function(e){return s.id(t),s.Rc(2).onResize(e)}),!1,s.hd),s.qd(2,tC,4,8,"mat-grid-tile",28),s.Cc(),s.zc(3,"mat-divider"),s.Dc(4,"div",74),s.Dc(5,"h6"),s.Hc(6,Ux),s.Cc(),s.Cc(),s.qd(7,nC,2,2,"mat-grid-list",75),s.Dc(8,"div",76),s.Dc(9,"button",77),s.Nc("click",(function(){return s.id(t),s.Rc(2).openCreatePlaylistDialog("video")})),s.Dc(10,"mat-icon"),s.sd(11,"add"),s.Cc(),s.Cc(),s.Cc(),s.qd(12,sC,3,0,"div",10),s.Cc()}if(2&t){const t=s.Rc(2);s.kc(1),s.Xc("cols",t.files_cols),s.kc(1),s.Xc("ngForOf",t.mp4s),s.kc(5),s.Xc("ngIf",t.playlists.video.length>0),s.kc(5),s.Xc("ngIf",0===t.playlists.video.length)}}function rC(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",70),s.Dc(1,"mat-accordion"),s.Dc(2,"mat-expansion-panel",71),s.Nc("opened",(function(){return s.id(t),s.Rc().accordionOpened("audio")}))("closed",(function(){return s.id(t),s.Rc().accordionClosed("audio")}))("mouseleave",(function(){return s.id(t),s.Rc().accordionLeft("audio")}))("mouseenter",(function(){return s.id(t),s.Rc().accordionEntered("audio")})),s.Dc(3,"mat-expansion-panel-header"),s.Dc(4,"mat-panel-title"),s.Bc(5),s.Hc(6,zx),s.Ac(),s.Cc(),s.Dc(7,"mat-panel-description"),s.Bc(8),s.Hc(9,Bx),s.Ac(),s.Cc(),s.Cc(),s.qd(10,Qx,13,4,"div",72),s.Cc(),s.Dc(11,"mat-expansion-panel",71),s.Nc("opened",(function(){return s.id(t),s.Rc().accordionOpened("video")}))("closed",(function(){return s.id(t),s.Rc().accordionClosed("video")}))("mouseleave",(function(){return s.id(t),s.Rc().accordionLeft("video")}))("mouseenter",(function(){return s.id(t),s.Rc().accordionEntered("video")})),s.Dc(12,"mat-expansion-panel-header"),s.Dc(13,"mat-panel-title"),s.Bc(14),s.Hc(15,Vx),s.Ac(),s.Cc(),s.Dc(16,"mat-panel-description"),s.Bc(17),s.Hc(18,jx),s.Ac(),s.Cc(),s.Cc(),s.qd(19,aC,13,4,"div",72),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc(),e=s.ed(39),i=s.ed(41);s.kc(10),s.Xc("ngIf",t.mp3s.length>0)("ngIfElse",e),s.kc(9),s.Xc("ngIf",t.mp4s.length>0)("ngIfElse",i)}}function oC(t,e){}function lC(t,e){}zx=$localize`:Audio files title␟4a0dada6e841a425de3e5006e6a04df26c644fa5␟520791250454025553: Audio `,Bx=$localize`:Audio files description␟9779715ac05308973d8f1c8658b29b986e92450f␟3371870979788549262: Your audio files are here `,Vx=$localize`:Video files title␟9d2b62bb0b91e2e17fb4177a7e3d6756a2e6ee33␟429855630861441368: Video `,jx=$localize`:Video files description␟960582a8b9d7942716866ecfb7718309728f2916␟691504174199627518: Your video files are here `,qx=$localize`:Playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,$x=$localize`:No video playlists available text␟78bd81adb4609b68cfa4c589222bdc233ba1faaa␟5049342015162771379: No playlists available. Create one from your downloading audio files by clicking the blue plus button. `,Ux=$localize`:Playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,Hx=$localize`:No video playlists available text␟0f59c46ca29e9725898093c9ea6b586730d0624e␟6806070849891381327: No playlists available. Create one from your downloading video files by clicking the blue plus button. `;let cC=!1,hC=!1,dC=!1,uC=!1,mC=(()=>{class t{constructor(t,e,i,n,s,a,r){this.postsService=t,this.youtubeSearch=e,this.snackBar=i,this.router=n,this.dialog=s,this.platform=a,this.route=r,this.youtubeAuthDisabledOverride=!1,this.iOS=!1,this.determinateProgress=!1,this.downloadingfile=!1,this.multiDownloadMode=!1,this.customArgsEnabled=!1,this.customArgs=null,this.customOutputEnabled=!1,this.customOutput=null,this.youtubeAuthEnabled=!1,this.youtubeUsername=null,this.youtubePassword=null,this.urlError=!1,this.path="",this.url="",this.exists="",this.autoStartDownload=!1,this.fileManagerEnabled=!1,this.allowQualitySelect=!1,this.downloadOnlyMode=!1,this.allowMultiDownloadMode=!1,this.use_youtubedl_archive=!1,this.globalCustomArgs=null,this.allowAdvancedDownload=!1,this.useDefaultDownloadingAgent=!0,this.customDownloadingAgent=null,this.cachedAvailableFormats={},this.youtubeSearchEnabled=!1,this.youtubeAPIKey=null,this.results_loading=!1,this.results_showing=!0,this.results=[],this.mp3s=[],this.mp4s=[],this.files_cols=null,this.playlists={audio:[],video:[]},this.playlist_thumbnails={},this.downloading_content={audio:{},video:{}},this.downloads=[],this.current_download=null,this.urlForm=new Aa("",[Bs.required]),this.qualityOptions={video:[{resolution:null,value:"",label:"Max"},{resolution:"3840x2160",value:"2160",label:"2160p (4K)"},{resolution:"2560x1440",value:"1440",label:"1440p"},{resolution:"1920x1080",value:"1080",label:"1080p"},{resolution:"1280x720",value:"720",label:"720p"},{resolution:"720x480",value:"480",label:"480p"},{resolution:"480x360",value:"360",label:"360p"},{resolution:"360x240",value:"240",label:"240p"},{resolution:"256x144",value:"144",label:"144p"}],audio:[{kbitrate:null,value:"",label:"Max"},{kbitrate:"256",value:"256K",label:"256 Kbps"},{kbitrate:"160",value:"160K",label:"160 Kbps"},{kbitrate:"128",value:"128K",label:"128 Kbps"},{kbitrate:"96",value:"96K",label:"96 Kbps"},{kbitrate:"70",value:"70K",label:"70 Kbps"},{kbitrate:"50",value:"50K",label:"50 Kbps"},{kbitrate:"32",value:"32K",label:"32 Kbps"}]},this.selectedQuality="",this.formats_loading=!1,this.last_valid_url="",this.last_url_check=0,this.test_download={uid:null,type:"audio",percent_complete:0,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!1},this.simulatedOutput="",this.audioOnly=!1}configLoad(){return Ak(this,void 0,void 0,(function*(){yield this.loadConfig(),this.autoStartDownload&&this.downloadClicked(),setInterval(()=>this.getSimulatedOutput(),1e3)}))}loadConfig(){return Ak(this,void 0,void 0,(function*(){this.postsService.loadNavItems().subscribe(t=>{const e=this.postsService.debugMode?t:t.config_file;if(this.fileManagerEnabled=e.YoutubeDLMaterial.Extra.file_manager_enabled,this.downloadOnlyMode=e.YoutubeDLMaterial.Extra.download_only_mode,this.allowMultiDownloadMode=e.YoutubeDLMaterial.Extra.allow_multi_download_mode,this.audioFolderPath=e.YoutubeDLMaterial.Downloader["path-audio"],this.videoFolderPath=e.YoutubeDLMaterial.Downloader["path-video"],this.use_youtubedl_archive=e.YoutubeDLMaterial.Downloader.use_youtubedl_archive,this.globalCustomArgs=e.YoutubeDLMaterial.Downloader.custom_args,this.youtubeSearchEnabled=e.YoutubeDLMaterial.API&&e.YoutubeDLMaterial.API.use_youtube_API&&e.YoutubeDLMaterial.API.youtube_API_key,this.youtubeAPIKey=this.youtubeSearchEnabled?e.YoutubeDLMaterial.API.youtube_API_key:null,this.allowQualitySelect=e.YoutubeDLMaterial.Extra.allow_quality_select,this.allowAdvancedDownload=e.YoutubeDLMaterial.Advanced.allow_advanced_download,this.useDefaultDownloadingAgent=e.YoutubeDLMaterial.Advanced.use_default_downloading_agent,this.customDownloadingAgent=e.YoutubeDLMaterial.Advanced.custom_downloading_agent,this.fileManagerEnabled&&(this.getMp3s(),this.getMp4s()),this.youtubeSearchEnabled&&this.youtubeAPIKey&&(this.youtubeSearch.initializeAPI(this.youtubeAPIKey),this.attachToInput()),this.allowAdvancedDownload){null!==localStorage.getItem("customArgsEnabled")&&(this.customArgsEnabled="true"===localStorage.getItem("customArgsEnabled")),null!==localStorage.getItem("customOutputEnabled")&&(this.customOutputEnabled="true"===localStorage.getItem("customOutputEnabled")),null!==localStorage.getItem("youtubeAuthEnabled")&&(this.youtubeAuthEnabled="true"===localStorage.getItem("youtubeAuthEnabled"));const t=localStorage.getItem("customArgs"),e=localStorage.getItem("customOutput"),i=localStorage.getItem("youtubeUsername");t&&"null"!==t&&(this.customArgs=t),e&&"null"!==e&&(this.customOutput=e),i&&"null"!==i&&(this.youtubeUsername=i)}return!0},t=>(console.log(t),!1))}))}ngOnInit(){this.configLoad(),this.postsService.settings_changed.subscribe(t=>{t&&this.loadConfig()}),this.iOS=this.platform.IOS,null!==localStorage.getItem("audioOnly")&&(this.audioOnly="true"===localStorage.getItem("audioOnly")),null!==localStorage.getItem("multiDownloadMode")&&(this.multiDownloadMode="true"===localStorage.getItem("multiDownloadMode")),this.route.snapshot.paramMap.get("url")&&(this.url=decodeURIComponent(this.route.snapshot.paramMap.get("url")),this.audioOnly="true"===this.route.snapshot.paramMap.get("audioOnly"),this.autoStartDownload=!0),this.setCols()}getMp3s(){this.postsService.getMp3s().subscribe(t=>{const e=t.mp3s,i=t.playlists;JSON.stringify(this.mp3s)!==JSON.stringify(e)&&(this.mp3s=e),this.playlists.audio=i;for(let n=0;n{console.log(t)})}getMp4s(){this.postsService.getMp4s().subscribe(t=>{const e=t.mp4s,i=t.playlists;JSON.stringify(this.mp4s)!==JSON.stringify(e)&&(this.mp4s=e),this.playlists.video=i;for(let n=0;n{console.log(t)})}setCols(){this.files_cols=window.innerWidth<=350?1:window.innerWidth<=500?2:window.innerWidth<=750?3:4}goToFile(t,e){e?this.downloadHelperMp3(t,!1,!1):this.downloadHelperMp4(t,!1,!1)}goToPlaylist(t,e){const i=this.getPlaylistObjectByID(t,e);i?this.downloadOnlyMode?(this.downloading_content[e][t]=!0,this.downloadPlaylist(i.fileNames,e,i.name,t)):(localStorage.setItem("player_navigator",this.router.url),this.router.navigate(["/player",{fileNames:i.fileNames.join("|nvr|"),type:e,id:t}])):console.error(`Playlist with ID ${t} not found!`)}getPlaylistObjectByID(t,e){for(let i=0;i{t.success&&(this.playlists.audio.splice(e,1),this.openSnackBar("Playlist successfully removed.","")),this.getMp3s()})}removeFromMp4(t){for(let e=0;e{t.success&&(this.playlists.video.splice(e,1),this.openSnackBar("Playlist successfully removed.","")),this.getMp4s()})}downloadHelperMp3(t,e=!1,i=!1,n=null){if(this.downloadingfile=!1,n&&this.current_download!==n);else if(!this.multiDownloadMode||!n)if(!1===i&&this.downloadOnlyMode&&!this.iOS)if(e){const e=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"audio",e)}else this.downloadAudioFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(e?["/player",{fileNames:t.join("|nvr|"),type:"audio"}]:["/player",{fileNames:t,type:"audio"}]);this.removeDownloadFromCurrentDownloads(n),this.fileManagerEnabled&&(this.getMp3s(),setTimeout(()=>{this.audioFileCards.forEach(t=>{t.onHoverResponse()})},200))}downloadHelperMp4(t,e=!1,i=!1,n=null){if(this.downloadingfile=!1,n&&this.current_download!==n);else if(!this.multiDownloadMode||!n)if(!1===i&&this.downloadOnlyMode)if(e){const e=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"video",e)}else this.downloadVideoFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(e?["/player",{fileNames:t.join("|nvr|"),type:"video"}]:["/player",{fileNames:t,type:"video"}]);this.removeDownloadFromCurrentDownloads(n),this.fileManagerEnabled&&(this.getMp4s(),setTimeout(()=>{this.videoFileCards.forEach(t=>{t.onHoverResponse()})},200))}downloadClicked(){if(this.ValidURL(this.url)){this.urlError=!1,this.path="";const t=this.customArgsEnabled?this.customArgs:null,e=this.customOutputEnabled?this.customOutput:null,i=this.youtubeAuthEnabled&&this.youtubeUsername?this.youtubeUsername:null,n=this.youtubeAuthEnabled&&this.youtubePassword?this.youtubePassword:null;if(this.allowAdvancedDownload&&(t&&localStorage.setItem("customArgs",t),e&&localStorage.setItem("customOutput",e),i&&localStorage.setItem("youtubeUsername",i)),this.audioOnly){const s={uid:Object($k.v4)(),type:"audio",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist")};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;let a=null;""!==this.selectedQuality&&(a=this.getSelectedAudioFormat()),this.postsService.makeMP3(this.url,""===this.selectedQuality?null:this.selectedQuality,a,t,e,i,n).subscribe(t=>{s.downloading=!1,s.percent_complete=100;const e=!!t.file_names;this.path=e?t.file_names:t.audiopathEncoded,"-1"!==this.path&&this.downloadHelperMp3(this.path,e,!1,s)},t=>{this.downloadingfile=!1,this.current_download=null,s.downloading=!1,this.openSnackBar("Download failed!","OK.")})}else{const s={uid:Object($k.v4)(),type:"video",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist")};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;const a=this.getSelectedVideoFormat();this.postsService.makeMP4(this.url,""===this.selectedQuality?null:this.selectedQuality,a,t,e,i,n).subscribe(t=>{s.downloading=!1,s.percent_complete=100;const e=!!t.file_names;this.path=e?t.file_names:t.videopathEncoded,"-1"!==this.path&&this.downloadHelperMp4(this.path,e,!1,s)},t=>{this.downloadingfile=!1,this.current_download=null,s.downloading=!1,this.openSnackBar("Download failed!","OK.")})}this.multiDownloadMode&&(this.url="",this.downloadingfile=!1)}else this.urlError=!0}cancelDownload(t=null){t?this.removeDownloadFromCurrentDownloads(t):(this.downloadingfile=!1,this.current_download.downloading=!1,this.current_download=null)}getSelectedAudioFormat(){return""===this.selectedQuality?null:this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats?this.cachedAvailableFormats[this.url].formats.audio[this.selectedQuality].format_id:null}getSelectedVideoFormat(){if(""===this.selectedQuality)return null;if(this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats){const t=this.cachedAvailableFormats[this.url].formats.video;if(t.best_audio_format&&""!==this.selectedQuality)return t[this.selectedQuality].format_id+"+"+t.best_audio_format}return null}getDownloadByUID(t){const e=this.downloads.findIndex(e=>e.uid===t);return-1!==e?this.downloads[e]:null}removeDownloadFromCurrentDownloads(t){const e=this.downloads.indexOf(t);return-1!==e&&(this.downloads.splice(e,1),!0)}downloadAudioFile(t){this.downloading_content.audio[t]=!0,this.postsService.downloadFileFromServer(t,"audio").subscribe(e=>{this.downloading_content.audio[t]=!1;const i=e;Object(Ok.saveAs)(i,t+".mp3"),this.fileManagerEnabled||this.postsService.deleteFile(t,!0).subscribe(t=>{this.getMp3s()})})}downloadVideoFile(t){this.downloading_content.video[t]=!0,this.postsService.downloadFileFromServer(t,"video").subscribe(e=>{this.downloading_content.video[t]=!1;const i=e;Object(Ok.saveAs)(i,t+".mp4"),this.fileManagerEnabled||this.postsService.deleteFile(t,!1).subscribe(t=>{this.getMp4s()})})}downloadPlaylist(t,e,i=null,n=null){this.postsService.downloadFileFromServer(t,e,i).subscribe(t=>{n&&(this.downloading_content[e][n]=!1);const s=t;Object(Ok.saveAs)(s,i+".zip")})}clearInput(){this.url="",this.results_showing=!1}onInputBlur(){this.results_showing=!1}visitURL(t){window.open(t)}useURL(t){this.results_showing=!1,this.url=t}inputChanged(t){""!==t&&t?this.ValidURL(t)&&(this.results_showing=!1):this.results_showing=!1}ValidURL(t){const e=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t);return!!e&&(new RegExp(/(?:http(?:s)?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"'<> #]+)/),e&&Date.now()-this.last_url_check>1e3&&(t!==this.last_valid_url&&this.allowQualitySelect&&this.getURLInfo(t),this.last_valid_url=t),e)}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}getURLInfo(t){this.cachedAvailableFormats[t]||(this.cachedAvailableFormats[t]={}),this.cachedAvailableFormats[t]&&this.cachedAvailableFormats[t].formats||(this.cachedAvailableFormats[t].formats_loading=!0,this.postsService.getFileInfo([t],"irrelevant",!0).subscribe(e=>{this.cachedAvailableFormats[t].formats_loading=!1;const i=e.result;if(!i||!i.formats)return void this.errorFormats(t);const n=this.getAudioAndVideoFormats(i.formats);this.cachedAvailableFormats[t].formats={audio:n[0],video:n[1]}},e=>{this.errorFormats(t)}))}getSimulatedOutput(){const t=this.globalCustomArgs&&""!==this.globalCustomArgs;let e=[];const i=["youtube-dl",this.url];if(this.customArgsEnabled&&this.customArgs)return this.simulatedOutput=i.join(" ")+" "+this.customArgs,this.simulatedOutput;e.push(...i);const n=this.audioOnly?".mp3":".mp4";let s=["-o",(this.audioOnly?this.audioFolderPath:this.videoFolderPath)+"%(title)s"+n];if(this.customOutputEnabled&&this.customOutput&&(s=["-o",this.customOutput+n]),this.useDefaultDownloadingAgent||"aria2c"!==this.customDownloadingAgent||e.push("--external-downloader","aria2c"),e.push(...s),this.audioOnly){const t=[],i=this.getSelectedAudioFormat();i?t.push("-f",i):this.selectedQuality&&t.push("--audio-quality",this.selectedQuality),e.splice(2,0,...t),e.push("-x","--audio-format","mp3","--write-info-json","--print-json")}else{let t=["-f","bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"];const i=this.getSelectedVideoFormat();i?t=["-f",i]:this.selectedQuality&&(t=[`bestvideo[height=${this.selectedQuality}]+bestaudio/best[height=${this.selectedQuality}]`]),e.splice(2,0,...t),e.push("--write-info-json","--print-json")}return this.use_youtubedl_archive&&e.push("--download-archive","archive.txt"),t&&(e=e.concat(this.globalCustomArgs.split(" "))),this.simulatedOutput=e.join(" "),this.simulatedOutput}errorFormats(t){this.cachedAvailableFormats[t].formats_loading=!1,console.error("Could not load formats for url "+t)}attachToInput(){si.a.fromEvent(this.urlInput.nativeElement,"keyup").map(t=>t.target.value).filter(t=>t.length>1).debounceTime(250).do(()=>this.results_loading=!0).map(t=>this.youtubeSearch.search(t)).switch().subscribe(t=>{this.results_loading=!1,""!==this.url&&t&&t.length>0?(this.results=t,this.results_showing=!0):this.results_showing=!1},t=>{console.log(t),this.results_loading=!1,this.results_showing=!1},()=>{this.results_loading=!1})}onResize(t){this.setCols()}videoModeChanged(t){this.selectedQuality="",localStorage.setItem("audioOnly",t.checked.toString())}multiDownloadModeChanged(t){localStorage.setItem("multiDownloadMode",t.checked.toString())}customArgsEnabledChanged(t){localStorage.setItem("customArgsEnabled",t.checked.toString()),!0===t.checked&&this.customOutputEnabled&&(this.customOutputEnabled=!1,localStorage.setItem("customOutputEnabled","false"),this.youtubeAuthEnabled=!1,localStorage.setItem("youtubeAuthEnabled","false"))}customOutputEnabledChanged(t){localStorage.setItem("customOutputEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}youtubeAuthEnabledChanged(t){localStorage.setItem("youtubeAuthEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}getAudioAndVideoFormats(t){const e={},i={};for(let n=0;ni&&(e=a.format_id,i=a.bitrate)}return e}accordionEntered(t){"audio"===t?(cC=!0,this.audioFileCards.forEach(t=>{t.onHoverResponse()})):"video"===t&&(hC=!0,this.videoFileCards.forEach(t=>{t.onHoverResponse()}))}accordionLeft(t){"audio"===t?cC=!1:"video"===t&&(hC=!1)}accordionOpened(t){"audio"===t?dC=!0:"video"===t&&(uC=!0)}accordionClosed(t){"audio"===t?dC=!1:"video"===t&&(uC=!1)}openCreatePlaylistDialog(t){this.dialog.open(qk,{data:{filesToSelectFrom:"audio"===t?this.mp3s:this.mp4s,type:t}}).afterClosed().subscribe(e=>{e?("audio"===t&&this.getMp3s(),"video"===t&&this.getMp4s(),this.openSnackBar("Successfully created playlist!","")):!1===e&&this.openSnackBar("ERROR: failed to create playlist!","")})}openArgsModifierDialog(){this.dialog.open(uv,{data:{initial_args:this.customArgs}}).afterClosed().subscribe(t=>{t&&(this.customArgs=t)})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(Pk),s.yc(Pg),s.yc(my),s.yc(sh),s.yc(bi),s.yc(a_))},t.\u0275cmp=s.sc({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var i;1&t&&(s.wd(Uk,!0,s.q),s.wd(Hk,!0),s.wd(Xk,!0)),2&t&&(s.dd(i=s.Oc())&&(e.urlInput=i.first),s.dd(i=s.Oc())&&(e.audioFileCards=i),s.dd(i=s.Oc())&&(e.videoFileCards=i))},decls:42,vars:17,consts:[[1,"big","demo-basic"],["id","card",2,"margin-right","20px","margin-left","20px"],[2,"position","relative"],[1,"example-form"],[1,"container-fluid"],[1,"row"],[1,"col-12",3,"ngClass"],["color","accent",1,"example-full-width"],["matInput","","type","url","name","url","required","",2,"padding-right","25px",3,"ngModel","placeholder","formControl","ngModelChange"],["urlinput",""],[4,"ngIf"],["mat-icon-button","",1,"input-clear-button",3,"click"],["class","col-7 col-sm-3",4,"ngIf"],["class","results-div",4,"ngIf"],[2,"float","left","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["style","float: right; margin-top: -12px",3,"disabled","ngModel","change","ngModelChange",4,"ngIf"],["type","submit","mat-stroked-button","","color","accent",2,"margin-left","8px","margin-bottom","8px",3,"disabled","click"],["style","float: right","mat-stroked-button","","color","warn",3,"click",4,"ngIf"],["class","big demo-basic",4,"ngIf"],["style","margin-top: 15px;","class","big demo-basic",4,"ngIf"],["class","centered big","id","bar_div",4,"ngIf","ngIfElse"],["nofile",""],["style","margin: 20px",4,"ngIf"],["nomp3s",""],["nomp4s",""],[1,"col-7","col-sm-3"],["color","accent",2,"display","inline-block","width","inherit","min-width","120px"],[3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["class","spinner-div",4,"ngIf"],[3,"value",4,"ngIf"],[3,"value"],[1,"spinner-div"],[3,"diameter"],[1,"results-div"],[1,"result-card","mat-elevation-z7",3,"ngClass"],[1,"search-card-title"],[2,"font-size","12px","margin-bottom","10px"],["mat-flat-button","","color","primary",2,"float","left",3,"click"],["mat-stroked-button","","color","primary",2,"float","right",3,"click"],[2,"float","right","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["mat-stroked-button","","color","warn",2,"float","right",3,"click"],[2,"margin-left","20px","margin-right","20px"],[1,"big"],[1,"container",2,"padding-bottom","20px"],[1,"col-12","col-sm-6"],["color","accent",2,"z-index","999",3,"disabled","ngModel","ngModelOptions","change","ngModelChange"],["mat-icon-button","",1,"edit-button",3,"click"],["color","accent",1,"advanced-input",2,"margin-bottom","42px"],["matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["class","col-12 col-sm-6 mt-2",4,"ngIf"],[1,"col-12","col-sm-6","mt-2"],["color","accent",1,"advanced-input"],["color","accent",1,"advanced-input",2,"margin-top","31px"],["type","password","matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],[1,"big","demo-basic",2,"margin-top","15px"],[1,"container"],["class","row",4,"ngFor","ngForOf"],[2,"width","100%",3,"download","queueNumber","cancelDownload"],["style","position: relative",4,"ngIf"],["id","bar_div",1,"centered","big"],[1,"margined"],["style","display: inline-block; width: 100%; padding-left: 20px",3,"ngClass",4,"ngIf","ngIfElse"],["class","spinner",4,"ngIf"],["indeterminateprogress",""],[2,"display","inline-block","width","100%","padding-left","20px",3,"ngClass"],["mode","determinate",3,"value"],[1,"spinner"],["mode","indeterminate"],[2,"margin","20px"],[1,"big",3,"opened","closed","mouseleave","mouseenter"],[4,"ngIf","ngIfElse"],["rowHeight","150px",2,"margin-bottom","15px",3,"cols","resize"],[2,"width","100%","text-align","center","margin-top","10px"],["rowHeight","150px",3,"cols","resize",4,"ngIf"],[1,"add-playlist-button"],["mat-fab","",3,"click"],[3,"file","title","name","thumbnailURL","length","isAudio","use_youtubedl_archive","removeFile"],["audiofilecard",""],["class","download-progress-bar","mode","indeterminate",4,"ngIf"],["mode","indeterminate",1,"download-progress-bar"],["rowHeight","150px",3,"cols","resize"],[3,"title","name","thumbnailURL","length","isAudio","isPlaylist","count","use_youtubedl_archive","removeFile"],["videofilecard",""]],template:function(t,e){if(1&t&&(s.zc(0,"br"),s.Dc(1,"div",0),s.Dc(2,"mat-card",1),s.Dc(3,"mat-card-title"),s.Bc(4),s.Hc(5,Gk),s.Ac(),s.Cc(),s.Dc(6,"mat-card-content"),s.Dc(7,"div",2),s.Dc(8,"form",3),s.Dc(9,"div",4),s.Dc(10,"div",5),s.Dc(11,"div",6),s.Dc(12,"mat-form-field",7),s.Dc(13,"input",8,9),s.Nc("ngModelChange",(function(t){return e.inputChanged(t)}))("ngModelChange",(function(t){return e.url=t})),s.Cc(),s.qd(15,Qk,3,0,"mat-error",10),s.Dc(16,"button",11),s.Nc("click",(function(){return e.clearInput()})),s.Dc(17,"mat-icon"),s.sd(18,"clear"),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.qd(19,nx,8,5,"div",12),s.Cc(),s.Cc(),s.qd(20,lx,2,1,"div",13),s.Cc(),s.zc(21,"br"),s.Dc(22,"mat-checkbox",14),s.Nc("change",(function(t){return e.videoModeChanged(t)}))("ngModelChange",(function(t){return e.audioOnly=t})),s.Bc(23),s.Hc(24,Wk),s.Ac(),s.Cc(),s.qd(25,mx,3,2,"mat-checkbox",15),s.Cc(),s.Cc(),s.Dc(26,"mat-card-actions"),s.Dc(27,"button",16),s.Nc("click",(function(){return e.downloadClicked()})),s.Bc(28),s.Hc(29,Yk),s.Ac(),s.Cc(),s.qd(30,px,3,0,"button",17),s.Cc(),s.Cc(),s.Cc(),s.qd(31,Ax,39,19,"div",18),s.qd(32,Ix,4,1,"div",19),s.zc(33,"br"),s.qd(34,Nx,7,3,"div",20),s.qd(35,Lx,0,0,"ng-template",null,21,s.rd),s.qd(37,rC,20,4,"div",22),s.qd(38,oC,0,0,"ng-template",null,23,s.rd),s.qd(40,lC,0,0,"ng-template",null,24,s.rd)),2&t){const t=s.ed(36);s.kc(11),s.Xc("ngClass",e.allowQualitySelect?"col-sm-9":null),s.kc(2),s.Xc("ngModel",e.url)("placeholder","URL"+(e.youtubeSearchEnabled?" or search":""))("formControl",e.urlForm),s.kc(2),s.Xc("ngIf",e.urlError||e.urlForm.invalid),s.kc(4),s.Xc("ngIf",e.allowQualitySelect),s.kc(1),s.Xc("ngIf",e.results_showing),s.kc(2),s.Xc("disabled",e.current_download)("ngModel",e.audioOnly),s.kc(3),s.Xc("ngIf",e.allowMultiDownloadMode),s.kc(2),s.Xc("disabled",e.downloadingfile),s.kc(3),s.Xc("ngIf",!!e.current_download),s.kc(1),s.Xc("ngIf",e.allowAdvancedDownload),s.kc(1),s.Xc("ngIf",e.multiDownloadMode&&e.downloads.length>0&&!e.current_download),s.kc(2),s.Xc("ngIf",e.current_download&&e.current_download.downloading)("ngIfElse",t),s.kc(3),s.Xc("ngIf",e.fileManagerEnabled)}},styles:[".demo-card[_ngcontent-%COMP%]{margin:16px}.demo-basic[_ngcontent-%COMP%]{padding:0}.demo-basic[_ngcontent-%COMP%] .mat-card-content[_ngcontent-%COMP%]{padding:16px}mat-toolbar.top[_ngcontent-%COMP%]{height:60px;width:100%;text-align:center}.big[_ngcontent-%COMP%]{max-width:800px;margin:0 auto}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.example-full-width[_ngcontent-%COMP%]{width:100%}.example-80-width[_ngcontent-%COMP%]{width:80%}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:24px}.spinner[_ngcontent-%COMP%]{position:absolute;display:inline-block;margin-left:-28px;margin-top:-10px}.make-room-for-spinner[_ngcontent-%COMP%]{padding-right:40px}.equal-sizes[_ngcontent-%COMP%]{padding-right:20px}.search-card-title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.input-clear-button[_ngcontent-%COMP%]{position:absolute;right:-10px;top:5px}.spinner-div[_ngcontent-%COMP%]{display:inline-block;position:absolute;top:15px;right:-40px}.margined[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.results-div[_ngcontent-%COMP%]{position:relative;top:-15px}.first-result-card[_ngcontent-%COMP%]{border-radius:4px 4px 0 0!important}.last-result-card[_ngcontent-%COMP%]{border-radius:0 0 4px 4px!important}.only-result-card[_ngcontent-%COMP%]{border-radius:4px!important}.result-card[_ngcontent-%COMP%]{height:120px;border-radius:0;padding-bottom:5px}.download-progress-bar[_ngcontent-%COMP%]{z-index:999;position:absolute;bottom:0;width:150px}.add-playlist-button[_ngcontent-%COMP%]{float:right}.advanced-input[_ngcontent-%COMP%]{width:100%}.edit-button[_ngcontent-%COMP%]{margin-left:10px;top:-5px}"]}),t})();si.a.merge=go.a;var pC,gC,fC,bC,_C,yC,vC,wC=i("zuWl"),kC=i.n(wC);pC=$localize`:Video name property␟616e206cb4f25bd5885fc35925365e43cf5fb929␟7658402240953727096:Name:`,gC=$localize`:Video URL property␟c52db455cca9109ee47e1a612c3f4117c09eb71b␟8598886608217248074:URL:`,fC=$localize`:Video ID property␟c6eb45d085384903e53ab001a3513d1de6a1dbac␟6975318892267864632:Uploader:`,bC=$localize`:Video file size property␟109c6f4a5e46efb933612ededfaf52a13178b7e0␟8712868262622854125:File size:`,_C=$localize`:Video path property␟bd630d8669b16e5f264ec4649d9b469fe03e5ff4␟2612252809311306032:Path:`,yC=$localize`:Video upload date property␟a67e7d843cef735c79d5ef1c8ba4af3e758912bb␟73382088968432490:Upload Date:`,vC=$localize`:Close subscription info button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;let xC=(()=>{class t{constructor(t){this.data=t}ngOnInit(){this.filesize=kC.a,this.data&&(this.file=this.data.file)}}return t.\u0275fac=function(e){return new(e||t)(s.yc(th))},t.\u0275cmp=s.sc({type:t,selectors:[["app-video-info-dialog"]],decls:56,vars:8,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-label"],[1,"info-item-value"],["target","_blank",3,"href"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.sd(1),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"div",1),s.Dc(4,"div",2),s.Dc(5,"strong"),s.Bc(6),s.Hc(7,pC),s.Ac(),s.sd(8,"\xa0"),s.Cc(),s.Cc(),s.Dc(9,"div",3),s.sd(10),s.Cc(),s.Cc(),s.Dc(11,"div",1),s.Dc(12,"div",2),s.Dc(13,"strong"),s.Bc(14),s.Hc(15,gC),s.Ac(),s.sd(16,"\xa0"),s.Cc(),s.Cc(),s.Dc(17,"div",3),s.Dc(18,"a",4),s.sd(19),s.Cc(),s.Cc(),s.Cc(),s.Dc(20,"div",1),s.Dc(21,"div",2),s.Dc(22,"strong"),s.Bc(23),s.Hc(24,fC),s.Ac(),s.sd(25,"\xa0"),s.Cc(),s.Cc(),s.Dc(26,"div",3),s.sd(27),s.Cc(),s.Cc(),s.Dc(28,"div",1),s.Dc(29,"div",2),s.Dc(30,"strong"),s.Bc(31),s.Hc(32,bC),s.Ac(),s.sd(33,"\xa0"),s.Cc(),s.Cc(),s.Dc(34,"div",3),s.sd(35),s.Cc(),s.Cc(),s.Dc(36,"div",1),s.Dc(37,"div",2),s.Dc(38,"strong"),s.Bc(39),s.Hc(40,_C),s.Ac(),s.sd(41,"\xa0"),s.Cc(),s.Cc(),s.Dc(42,"div",3),s.sd(43),s.Cc(),s.Cc(),s.Dc(44,"div",1),s.Dc(45,"div",2),s.Dc(46,"strong"),s.Bc(47),s.Hc(48,yC),s.Ac(),s.sd(49,"\xa0"),s.Cc(),s.Cc(),s.Dc(50,"div",3),s.sd(51),s.Cc(),s.Cc(),s.Cc(),s.Dc(52,"mat-dialog-actions"),s.Dc(53,"button",5),s.Bc(54),s.Hc(55,vC),s.Ac(),s.Cc(),s.Cc()),2&t&&(s.kc(1),s.td(e.file.title),s.kc(9),s.td(e.file.title),s.kc(8),s.Xc("href",e.file.url,s.kd),s.kc(1),s.td(e.file.url),s.kc(8),s.td(e.file.uploader?e.file.uploader:"N/A"),s.kc(8),s.td(e.filesize(e.file.size)),s.kc(8),s.td(e.file.path),s.kc(8),s.td(e.file.upload_date))},directives:[oh,lh,ch,ds,rh],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px;width:100%}.info-item-value[_ngcontent-%COMP%]{font-size:13px;display:inline-block;width:70%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.info-item-label[_ngcontent-%COMP%]{display:inline-block;width:30%;vertical-align:top}"]}),t})();function CC(t,e){t.className.includes(e)||(t.className+=` ${e}`)}function SC(){return"undefined"!=typeof window?window.navigator:void 0}function DC(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function EC(t){return"img"===t.nodeName.toLowerCase()}function AC(t,e,i){return EC(t)?i&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage=`url('${e}')`,t}function OC(t){return e=>{const i=e.parentElement.getElementsByTagName("source");for(let n=0;n{EC(e)&&DC(e)&&t(e),i&&AC(e,i,n)}}const MC=TC(RC),FC=TC(PC),NC=TC(IC),LC={finally:({element:t})=>CC(t,"ng-lazyloaded"),loadImage:({element:t,useSrcset:e,imagePath:i,decode:n})=>{let s;if(EC(t)&&DC(t)){const n=t.parentNode.cloneNode(!0);s=n.getElementsByTagName("img")[0],PC(s),AC(s,i,e)}else s=new Image,EC(t)&&t.sizes&&(s.sizes=t.sizes),e&&"srcset"in s?s.srcset=i:s.src=i;return n&&s.decode?s.decode().then(()=>i):new Promise((t,e)=>{s.onload=()=>t(i),s.onerror=()=>e(null)})},setErrorImage:({element:t,errorImagePath:e,useSrcset:i})=>{NC(t,e,i),CC(t,"ng-failed-lazyloaded")},setLoadedImage:({element:t,imagePath:e,useSrcset:i})=>{FC(t,e,i)},setup:({element:t,defaultImagePath:e,useSrcset:i})=>{MC(t,e,i),function(t,e){return t.className&&t.className.includes("ng-lazyloaded")}(t)&&function(t,e){t.className=t.className.replace("ng-lazyloaded","")}(t)},isBot:t=>!(!t||!t.userAgent)&&/googlebot|bingbot|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|duckduckbot/i.test(t.userAgent)},zC=new WeakMap,BC=new Pe.a;function VC(t){t.forEach(t=>BC.next(t))}const jC={},qC=t=>{const e=t.scrollContainer||jC,i={root:t.scrollContainer||null};t.offset&&(i.rootMargin=`${t.offset}px`);let n=zC.get(e);return n||(n=new IntersectionObserver(VC,i),zC.set(e,n)),n.observe(t.element),si.a.create(e=>{const i=BC.pipe(Ze(e=>e.target===t.element)).subscribe(e);return()=>{i.unsubscribe(),n.unobserve(t.element)}})},$C=Object.assign({},LC,{isVisible:({event:t})=>t.isIntersecting,getObservable:(t,e=qC)=>t.customObservable?t.customObservable:e(t)}),UC=Object.assign({},LC,{isVisible:()=>!0,getObservable:()=>Ne("load"),loadImage:({imagePath:t})=>[t]});let HC=(()=>{let t=class{constructor(t,e,i,n){this.onLoad=new s.s,this.elementRef=t,this.ngZone=e,this.propertyChanges$=new tl,this.platformId=i,this.hooks=function(t,e){const i=$C,n=e&&e.isBot?e.isBot:i.isBot;if(n(SC(),t))return Object.assign(UC,{isBot:n});if(!e)return i;const s={};return Object.assign(s,e.preset?e.preset:i),Object.keys(e).filter(t=>"preset"!==t).forEach(t=>{s[t]=e[t]}),s}(i,n)}ngOnChanges(){this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode})}ngAfterContentInit(){if(Object(ye.J)(this.platformId)&&!this.hooks.isBot(SC(),this.platformId))return null;this.ngZone.runOutsideAngular(()=>{this.scrollSubscription=this.propertyChanges$.pipe(je(t=>this.hooks.setup(t)),jo(t=>this.hooks.getObservable(t).pipe(function(t,e){return i=>i.pipe(Ze(i=>t.isVisible({element:e.element,event:i,offset:e.offset,scrollContainer:e.scrollContainer})),oi(1),Object(ud.a)(()=>t.loadImage(e)),je(i=>t.setLoadedImage({element:e.element,imagePath:i,useSrcset:e.useSrcset})),Object(ii.a)(()=>!0),ad(()=>(t.setErrorImage(e),Ne(!1))),je(()=>t.finally(e)))}(this.hooks,t)))).subscribe(t=>this.onLoad.emit(t))})}ngOnDestroy(){this.scrollSubscription&&this.scrollSubscription.unsubscribe()}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(s.F),s.yc(s.I),s.yc("options",8))},t.\u0275dir=s.tc({type:t,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode"},outputs:{onLoad:"onLoad"},features:[s.ic]}),t})();var XC;let GC=(()=>{let t=XC=class{static forRoot(t){return{ngModule:XC,providers:[{provide:"options",useValue:t}]}}};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)}}),t})();const WC=[[["","before-svg",""]],"*",[["","after-svg",""]]],YC=["[before-svg]","*","[after-svg]"],KC=["ngx-rect",""],JC=["ngx-svg-stop",""],QC=["ngx-facebook-preset",""],ZC=["ngx-instagram-preset",""],tS=["ngx-circle",""],eS=["ngx-code-preset",""],iS=["ngx-bullet-list-preset",""],nS=["ngx-list-preset",""];let sS=(()=>{class t{constructor(){this.width="400",this.height="130",this.primaryColor="#f3f3f3",this.secondaryColor="#ecebeb",this.speed="1000ms",this.preserveAspectRatio="xMidYMid meet"}get viewBox(){return`0 0 ${this.width} ${this.height}`}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["ngx-content-loading"]],inputs:{width:"width",height:"height",primaryColor:"primaryColor",secondaryColor:"secondaryColor",speed:"speed",preserveAspectRatio:"preserveAspectRatio"},ngContentSelectors:YC,decls:4,vars:2,consts:[["version","1.1"]],template:function(t,e){1&t&&(s.Wc(WC),s.Vc(0),s.Qc(),s.Dc(1,"svg",0),s.Vc(2,1),s.Cc(),s.Vc(3,2)),2&t&&(s.kc(1),s.lc("preserveAspectRatio",e.preserveAspectRatio)("viewBox",e.viewBox))},styles:[""],changeDetection:0}),t})(),aS=(()=>{class t{constructor(t){this.content=t,this.clipPathId=rS(),this.linearGradientId=rS()}get clipPathUrl(){return`url(#${this.clipPathId})`}get linearGradientUrl(){return`url(#${this.linearGradientId})`}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(s.yc(sS))},t.\u0275cmp=s.sc({type:t,selectors:[["ngx-svg-element"]],decls:0,vars:0,template:function(t,e){},styles:[""],changeDetection:0}),t})();function rS(){return(performance.now()*Math.random()).toString()}let oS=(()=>{class t extends aS{constructor(t){super(t),this.content=t,this.rx="0",this.ry="1"}}return t.\u0275fac=function(e){return new(e||t)(s.yc(sS))},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-rect",""]],inputs:{rx:"rx",ry:"ry",y:"y",x:"x",width:"width",height:"height",primaryColor:"primaryColor",secondaryColor:"secondaryColor",speed:"speed"},features:[s.hc],attrs:KC,decls:7,vars:22,consts:[["ngx-svg-stop","",3,"offset","values","speed","color"]],template:function(t,e){1&t&&(s.Qc(),s.zc(0,"rect"),s.Dc(1,"defs"),s.zc(2,"clipPath"),s.Dc(3,"linearGradient"),s.zc(4,"stop",0),s.zc(5,"stop",0),s.zc(6,"stop",0),s.Cc(),s.Cc()),2&t&&(s.lc("x",e.x)("y",e.y)("rx",e.rx)("ry",e.ry)("width",e.width)("fill",e.linearGradientUrl)("clipPath",e.clipPathUrl)("height",e.height),s.kc(2),s.lc("id",e.clipPathId),s.kc(1),s.lc("id",e.linearGradientId),s.kc(1),s.Xc("offset","0%")("values","-2; 1")("speed",e.content.speed)("color",e.content.primaryColor),s.kc(1),s.Xc("offset","50%")("values","-1.5; 1.5")("speed",e.content.speed)("color",e.content.secondaryColor),s.kc(1),s.Xc("offset","100%")("values","-1; 2")("speed",e.content.speed)("color",e.content.primaryColor))},directives:function(){return[lS]},styles:[""]}),t})(),lS=(()=>{class t{ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-svg-stop",""]],hostVars:2,hostBindings:function(t,e){2&t&&s.lc("offset",e.offset)("stop-color",e.color)},inputs:{speed:"speed",values:"values",offset:"offset",color:"color"},attrs:JC,decls:1,vars:2,consts:[["attributeName","offset","repeatCount","indefinite"]],template:function(t,e){1&t&&(s.Qc(),s.zc(0,"animate",0)),2&t&&s.lc("values",e.values)("dur",e.speed)},styles:[""],changeDetection:0}),t})(),cS=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-facebook-preset",""]],attrs:QC,decls:6,vars:0,consts:[["ngx-circle","","cx","25","cy","25","r","25"],["ngx-rect","","width","100","height","5","y","15","x","60","rx","5","ry","5"],["ngx-rect","","width","60","height","5","y","30","x","60","rx","5","ry","5"],["ngx-rect","","width","170","height","5","y","65","x","0","rx","5","ry","5"],["ngx-rect","","width","220","height","5","y","80","x","0","rx","5","ry","5"],["ngx-rect","","width","130","height","5","y","95","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(s.Qc(),s.zc(0,"g",0),s.zc(1,"g",1),s.zc(2,"g",2),s.zc(3,"g",3),s.zc(4,"g",4),s.zc(5,"g",5))},directives:function(){return[dS,oS]},styles:[""],changeDetection:0}),t})(),hS=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-instagram-preset",""]],attrs:ZC,decls:4,vars:0,consts:[["ngx-circle","","cx","25","cy","25","r","25"],["ngx-rect","","width","120","height","10","y","10","x","60","rx","5","ry","5"],["ngx-rect","","width","40","height","5","y","30","x","60","rx","5","ry","5"],["ngx-rect","","width","250","height","250","y","60","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(s.Qc(),s.zc(0,"g",0),s.zc(1,"g",1),s.zc(2,"g",2),s.zc(3,"g",3))},directives:function(){return[dS,oS]},styles:[""],changeDetection:0}),t})(),dS=(()=>{class t extends aS{constructor(t){super(t),this.content=t}}return t.\u0275fac=function(e){return new(e||t)(s.yc(sS))},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-circle",""]],inputs:{r:"r",cx:"cx",cy:"cy"},features:[s.hc],attrs:tS,decls:7,vars:19,consts:[["ngx-svg-stop","",3,"offset","values","speed","color"]],template:function(t,e){1&t&&(s.Qc(),s.zc(0,"circle"),s.Dc(1,"defs"),s.zc(2,"clipPath"),s.Dc(3,"linearGradient"),s.zc(4,"stop",0),s.zc(5,"stop",0),s.zc(6,"stop",0),s.Cc(),s.Cc()),2&t&&(s.lc("cx",e.cx)("cy",e.cy)("r",e.r)("fill",e.linearGradientUrl)("clipPath",e.clipPathUrl),s.kc(2),s.lc("id",e.clipPathId),s.kc(1),s.lc("id",e.linearGradientId),s.kc(1),s.Xc("offset","0%")("values","-2; 1")("speed",e.content.speed)("color",e.content.primaryColor),s.kc(1),s.Xc("offset","50%")("values","-1.5; 1.5")("speed",e.content.speed)("color",e.content.secondaryColor),s.kc(1),s.Xc("offset","100%")("values","-1; 2")("speed",e.content.speed)("color",e.content.primaryColor))},directives:[lS],styles:[""]}),t})(),uS=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-code-preset",""]],attrs:eS,decls:9,vars:0,consts:[["ngx-rect","","width","60","height","10","y","15","x","0","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","15","x","70","rx","5","ry","5"],["ngx-rect","","width","20","height","10","y","15","x","170","rx","5","ry","5"],["ngx-rect","","width","100","height","10","y","35","x","9","rx","5","ry","5"],["ngx-rect","","width","120","height","10","y","35","x","120","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","55","x","5","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","55","x","105","rx","5","ry","5"],["ngx-rect","","width","70","height","10","y","55","x","205","rx","5","ry","5"],["ngx-rect","","width","30","height","10","y","75","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(s.Qc(),s.zc(0,"g",0),s.zc(1,"g",1),s.zc(2,"g",2),s.zc(3,"g",3),s.zc(4,"g",4),s.zc(5,"g",5),s.zc(6,"g",6),s.zc(7,"g",7),s.zc(8,"g",8))},directives:[oS],encapsulation:2,changeDetection:0}),t})(),mS=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-bullet-list-preset",""]],attrs:iS,decls:8,vars:0,consts:[["ngx-circle","","cx","7","cy","7","r","7"],["ngx-circle","","cx","7","cy","37","r","7"],["ngx-circle","","cx","7","cy","67","r","7"],["ngx-circle","","cx","7","cy","97","r","7"],["ngx-rect","","width","200","height","12","y","2","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","32","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","62","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","92","x","20","rx","5","ry","5"]],template:function(t,e){1&t&&(s.Qc(),s.zc(0,"g",0),s.zc(1,"g",1),s.zc(2,"g",2),s.zc(3,"g",3),s.zc(4,"g",4),s.zc(5,"g",5),s.zc(6,"g",6),s.zc(7,"g",7))},directives:[dS,oS],encapsulation:2,changeDetection:0}),t})(),pS=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["","ngx-list-preset",""]],attrs:nS,decls:6,vars:0,consts:[["ngx-rect","","width","200","height","10","y","0","x","0","rx","5","ry","5"],["ngx-rect","","width","180","height","10","y","20","x","20","rx","5","ry","5"],["ngx-rect","","width","160","height","10","y","40","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","10","y","60","x","0","rx","5","ry","5"],["ngx-rect","","width","180","height","10","y","80","x","20","rx","5","ry","5"],["ngx-rect","","width","60","height","10","y","100","x","20","rx","5","ry","5"]],template:function(t,e){1&t&&(s.Qc(),s.zc(0,"g",0),s.zc(1,"g",1),s.zc(2,"g",2),s.zc(3,"g",3),s.zc(4,"g",4),s.zc(5,"g",5))},directives:[oS],encapsulation:2,changeDetection:0}),t})(),gS=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c]]}),t})();var fS,bS,_S,yS,vS;function wS(t,e){if(1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,yS),s.Ac(),s.sd(3),s.Cc()),2&t){const t=s.Rc();s.kc(3),s.ud("\xa0",t.count,"")}}function kS(t,e){1&t&&(s.Dc(0,"span"),s.Dc(1,"ngx-content-loading",14),s.Qc(),s.zc(2,"g",15),s.Cc(),s.Cc()),2&t&&(s.kc(1),s.Xc("width",500)("height",360))}function xS(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",12),s.Dc(1,"img",13),s.Nc("error",(function(e){return s.id(t),s.Rc().onImgError(e)}))("onLoad",(function(e){return s.id(t),s.Rc().imageLoaded(e)})),s.Cc(),s.qd(2,kS,3,2,"span",5),s.Cc()}if(2&t){const t=s.Rc();s.kc(1),s.Xc("id",t.type)("lazyLoad",t.thumbnailURL)("customObservable",t.scrollAndLoad),s.kc(1),s.Xc("ngIf",!t.image_loaded)}}function CS(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",16),s.Nc("click",(function(){return s.id(t),s.Rc().deleteFile()})),s.Dc(1,"mat-icon"),s.sd(2,"delete_forever"),s.Cc(),s.Cc()}}function SS(t,e){if(1&t&&(s.Dc(0,"button",17),s.Dc(1,"mat-icon"),s.sd(2,"more_vert"),s.Cc(),s.Cc()),2&t){s.Rc();const t=s.ed(16);s.Xc("matMenuTriggerFor",t)}}function DS(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",10),s.Nc("click",(function(){return s.id(t),s.Rc().deleteFile(!0)})),s.Dc(1,"mat-icon"),s.sd(2,"delete_forever"),s.Cc(),s.Bc(3),s.Hc(4,vS),s.Ac(),s.Cc()}}fS=$localize`:File or playlist ID␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,bS=$localize`:Video info button␟321e4419a943044e674beb55b8039f42a9761ca5␟314315645942131479:Info`,_S=$localize`:Delete video button␟826b25211922a1b46436589233cb6f1a163d89b7␟7022070615528435141:Delete`,yS=$localize`:Playlist video count␟e684046d73bcee88e82f7ff01e2852789a05fc32␟6836949342567686088:Count:`,vS=$localize`:Delete and blacklist video button␟34504b488c24c27e68089be549f0eeae6ebaf30b␟593208667984994894:Delete and blacklist`;let ES=(()=>{class t{constructor(t,e,i,n){this.postsService=t,this.snackBar=e,this.mainComponent=i,this.dialog=n,this.isAudio=!0,this.removeFile=new s.s,this.isPlaylist=!1,this.count=null,this.use_youtubedl_archive=!1,this.image_loaded=!1,this.image_errored=!1,this.scrollSubject=new Pe.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}ngOnInit(){this.type=this.isAudio?"audio":"video"}deleteFile(t=!1){this.isPlaylist?this.removeFile.emit(this.name):this.postsService.deleteFile(this.name,this.isAudio,t).subscribe(t=>{!0===t?(this.openSnackBar("Delete success!","OK."),this.removeFile.emit(this.name)):this.openSnackBar("Delete failed!","OK.")})}openVideoInfoDialog(){this.dialog.open(xC,{data:{file:this.file},minWidth:"50vw"})}onImgError(t){this.image_errored=!0}onHoverResponse(){this.scrollSubject.next()}imageLoaded(t){this.image_loaded=!0}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(Pg),s.yc(mC),s.yc(sh))},t.\u0275cmp=s.sc({type:t,selectors:[["app-file-card"]],inputs:{file:"file",title:"title",length:"length",name:"name",thumbnailURL:"thumbnailURL",isAudio:"isAudio",isPlaylist:"isPlaylist",count:"count",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{removeFile:"removeFile"},decls:28,vars:7,consts:[[1,"example-card","mat-elevation-z6"],[2,"padding","5px"],[2,"height","52px"],["href","javascript:void(0)",1,"file-link",3,"click"],[1,"max-two-lines"],[4,"ngIf"],["class","img-div",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"click",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"id","lazyLoad","customObservable","error","onLoad"],[3,"width","height"],["ngx-rect","","width","500","height","360","y","0","x","0","rx","4","ry","4"],["mat-icon-button","",1,"deleteButton",3,"click"],["mat-icon-button","",1,"deleteButton",3,"matMenuTriggerFor"]],template:function(t,e){1&t&&(s.Dc(0,"mat-card",0),s.Dc(1,"div",1),s.Dc(2,"div",2),s.Dc(3,"div"),s.Dc(4,"b"),s.Dc(5,"a",3),s.Nc("click",(function(){return e.isPlaylist?e.mainComponent.goToPlaylist(e.name,e.type):e.mainComponent.goToFile(e.name,e.isAudio)})),s.sd(6),s.Cc(),s.Cc(),s.Cc(),s.Dc(7,"span",4),s.Bc(8),s.Hc(9,fS),s.Ac(),s.sd(10),s.Cc(),s.qd(11,wS,4,1,"div",5),s.Cc(),s.qd(12,xS,3,4,"div",6),s.Cc(),s.qd(13,CS,3,0,"button",7),s.qd(14,SS,3,1,"button",8),s.Dc(15,"mat-menu",null,9),s.Dc(17,"button",10),s.Nc("click",(function(){return e.openVideoInfoDialog()})),s.Dc(18,"mat-icon"),s.sd(19,"info"),s.Cc(),s.Bc(20),s.Hc(21,bS),s.Ac(),s.Cc(),s.Dc(22,"button",10),s.Nc("click",(function(){return e.deleteFile()})),s.Dc(23,"mat-icon"),s.sd(24,"delete"),s.Cc(),s.Bc(25),s.Hc(26,_S),s.Ac(),s.Cc(),s.qd(27,DS,5,0,"button",11),s.Cc(),s.Cc()),2&t&&(s.kc(6),s.td(e.title),s.kc(4),s.ud("\xa0",e.name,""),s.kc(1),s.Xc("ngIf",e.isPlaylist),s.kc(1),s.Xc("ngIf",!e.image_errored&&e.thumbnailURL),s.kc(1),s.Xc("ngIf",e.isPlaylist),s.kc(1),s.Xc("ngIf",!e.isPlaylist),s.kc(13),s.Xc("ngIf",e.use_youtubedl_archive))},directives:[Gr,ye.t,dm,am,ru,HC,sS,oS,ds,gm],styles:[".example-card[_ngcontent-%COMP%]{width:150px;height:125px;padding:0}.deleteButton[_ngcontent-%COMP%]{top:-5px;right:-5px;position:absolute}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:100%}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{height:60px;padding:0;margin:8px 0 0 -5px;width:calc(100% + 10px);overflow:hidden;border-radius:0 0 4px 4px}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;-webkit-box-orient:vertical;-webkit-line-clamp:2}.file-link[_ngcontent-%COMP%], .max-two-lines[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.file-link[_ngcontent-%COMP%]{width:80%;white-space:nowrap;display:block}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:125px!important}}"]}),t})();function AS(t,e){1&t&&(s.Dc(0,"div",6),s.zc(1,"mat-spinner",7),s.Cc()),2&t&&(s.kc(1),s.Xc("diameter",25))}let OS=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e,this.inputText="",this.inputSubmitted=!1,this.doneEmitter=null,this.onlyEmitOnDone=!1}ngOnInit(){this.inputTitle=this.data.inputTitle,this.inputPlaceholder=this.data.inputPlaceholder,this.submitText=this.data.submitText,this.data.doneEmitter&&(this.doneEmitter=this.data.doneEmitter,this.onlyEmitOnDone=!0)}enterPressed(){this.inputText&&(this.onlyEmitOnDone?(this.doneEmitter.emit(this.inputText),this.inputSubmitted=!0):this.dialogRef.close(this.inputText))}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Zc),s.yc(th))},t.\u0275cmp=s.sc({type:t,selectors:[["app-input-dialog"]],decls:12,vars:6,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.sd(1),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"div"),s.Dc(4,"mat-form-field",1),s.Dc(5,"input",2),s.Nc("keyup.enter",(function(){return e.enterPressed()}))("ngModelChange",(function(t){return e.inputText=t})),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(6,"mat-dialog-actions"),s.Dc(7,"button",3),s.sd(8,"Cancel"),s.Cc(),s.Dc(9,"button",4),s.Nc("click",(function(){return e.enterPressed()})),s.sd(10),s.Cc(),s.qd(11,AS,2,1,"div",5),s.Cc()),2&t&&(s.kc(1),s.td(e.inputTitle),s.kc(4),s.Xc("ngModel",e.inputText)("placeholder",e.inputPlaceholder),s.kc(4),s.Xc("disabled",!e.inputText),s.kc(1),s.td(e.submitText),s.kc(1),s.Xc("ngIf",e.inputSubmitted))},directives:[oh,lh,Rc,vu,Ds,Ts,ja,ch,ds,rh,ye.t,ep],styles:[".mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),t})();const RS=["*"],PS=["volumeBar"],IS=function(t){return{dragging:t}};function TS(t,e){if(1&t&&s.zc(0,"span",2),2&t){const t=e.$implicit;s.pd("width",null==t.$$style?null:t.$$style.width)("left",null==t.$$style?null:t.$$style.left)}}function MS(t,e){1&t&&s.zc(0,"span",2)}function FS(t,e){1&t&&(s.Dc(0,"span"),s.sd(1,"LIVE"),s.Cc())}function NS(t,e){if(1&t&&(s.Dc(0,"span"),s.sd(1),s.Sc(2,"vgUtc"),s.Cc()),2&t){const t=s.Rc();s.kc(1),s.td(s.Uc(2,1,t.getTime(),t.vgFormat))}}function LS(t,e){if(1&t&&(s.Dc(0,"option",4),s.sd(1),s.Cc()),2&t){const t=e.$implicit;s.Xc("value",t.id)("selected",!0===t.selected),s.kc(1),s.ud(" ",t.label," ")}}function zS(t,e){if(1&t&&(s.Dc(0,"option",4),s.sd(1),s.Cc()),2&t){const t=e.$implicit,i=s.Rc();s.Xc("value",t.qualityIndex.toString())("selected",t.qualityIndex===(null==i.bitrateSelected?null:i.bitrateSelected.qualityIndex)),s.kc(1),s.ud(" ",t.label," ")}}let BS=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t.VG_ENDED="ended",t.VG_PAUSED="paused",t.VG_PLAYING="playing",t.VG_LOADING="waiting",t})(),VS=(()=>{let t=class{constructor(){this.medias={},this.playerReadyEvent=new s.s(!0),this.isPlayerReady=!1}onPlayerReady(t){this.fsAPI=t,this.isPlayerReady=!0,this.playerReadyEvent.emit(this)}getDefaultMedia(){for(const t in this.medias)if(this.medias[t])return this.medias[t]}getMasterMedia(){let t;for(const e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=this.medias[e];break}return t||this.getDefaultMedia()}isMasterDefined(){let t=!1;for(const e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=!0;break}return t}getMediaById(t=null){let e=this.medias[t];return t&&"*"!==t||(e=this),e}play(){for(const t in this.medias)this.medias[t]&&this.medias[t].play()}pause(){for(const t in this.medias)this.medias[t]&&this.medias[t].pause()}get duration(){return this.$$getAllProperties("duration")}set currentTime(t){this.$$setAllProperties("currentTime",t)}get currentTime(){return this.$$getAllProperties("currentTime")}set state(t){this.$$setAllProperties("state",t)}get state(){return this.$$getAllProperties("state")}set volume(t){this.$$setAllProperties("volume",t)}get volume(){return this.$$getAllProperties("volume")}set playbackRate(t){this.$$setAllProperties("playbackRate",t)}get playbackRate(){return this.$$getAllProperties("playbackRate")}get canPlay(){return this.$$getAllProperties("canPlay")}get canPlayThrough(){return this.$$getAllProperties("canPlayThrough")}get isMetadataLoaded(){return this.$$getAllProperties("isMetadataLoaded")}get isWaiting(){return this.$$getAllProperties("isWaiting")}get isCompleted(){return this.$$getAllProperties("isCompleted")}get isLive(){return this.$$getAllProperties("isLive")}get isMaster(){return this.$$getAllProperties("isMaster")}get time(){return this.$$getAllProperties("time")}get buffer(){return this.$$getAllProperties("buffer")}get buffered(){return this.$$getAllProperties("buffered")}get subscriptions(){return this.$$getAllProperties("subscriptions")}get textTracks(){return this.$$getAllProperties("textTracks")}seekTime(t,e=!1){for(const i in this.medias)this.medias[i]&&this.$$seek(this.medias[i],t,e)}$$seek(t,e,i=!1){let n,s=t.duration;i?(this.isMasterDefined()&&(s=this.getMasterMedia().duration),n=e*s/100):n=e,t.currentTime=n}addTextTrack(t,e,i){for(const n in this.medias)this.medias[n]&&this.$$addTextTrack(this.medias[n],t,e,i)}$$addTextTrack(t,e,i,n){t.addTextTrack(e,i,n)}$$getAllProperties(t){const e={};let i;for(const n in this.medias)this.medias[n]&&(e[n]=this.medias[n]);switch(Object.keys(e).length){case 0:switch(t){case"state":i=BS.VG_PAUSED;break;case"playbackRate":case"volume":i=1;break;case"time":i={current:0,total:0,left:0}}break;case 1:i=e[Object.keys(e)[0]][t];break;default:i=e[this.getMasterMedia().id][t]}return i}$$setAllProperties(t,e){for(const i in this.medias)this.medias[i]&&(this.medias[i][t]=e)}registerElement(t){this.videogularElement=t}registerMedia(t){this.medias[t.id]=t}unregisterMedia(t){delete this.medias[t.id]}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),jS=(()=>{let t=class{constructor(t,e){this.API=e,this.checkInterval=50,this.currentPlayPos=0,this.lastPlayPos=0,this.subscriptions=[],this.isBuffering=!1,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe(t=>this.onUpdateBuffer(t)))}onUpdateBuffer(t){this.isBuffering=t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(VS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-buffering"]],hostVars:2,hostBindings:function(t,e){2&t&&s.oc("is-buffering",e.isBuffering)},inputs:{vgFor:"vgFor"},decls:3,vars:0,consts:[[1,"vg-buffering"],[1,"bufferingContainer"],[1,"loadingSpinner"]],template:function(t,e){1&t&&(s.Dc(0,"div",0),s.Dc(1,"div",1),s.zc(2,"div",2),s.Cc(),s.Cc())},styles:["\n vg-buffering {\n display: none;\n z-index: 201;\n }\n vg-buffering.is-buffering {\n display: block;\n }\n\n .vg-buffering {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n }\n .vg-buffering .bufferingContainer {\n width: 100%;\n position: absolute;\n cursor: pointer;\n top: 50%;\n margin-top: -50px;\n zoom: 1;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n /* Loading Spinner\n * http://www.alessioatzeni.com/blog/css3-loading-animation-loop/\n */\n .vg-buffering .loadingSpinner {\n background-color: rgba(0, 0, 0, 0);\n border: 5px solid rgba(255, 255, 255, 1);\n opacity: .9;\n border-top: 5px solid rgba(0, 0, 0, 0);\n border-left: 5px solid rgba(0, 0, 0, 0);\n border-radius: 50px;\n box-shadow: 0 0 35px #FFFFFF;\n width: 50px;\n height: 50px;\n margin: 0 auto;\n -moz-animation: spin .5s infinite linear;\n -webkit-animation: spin .5s infinite linear;\n }\n .vg-buffering .loadingSpinner .stop {\n -webkit-animation-play-state: paused;\n -moz-animation-play-state: paused;\n }\n @-moz-keyframes spin {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(360deg);\n }\n }\n @-moz-keyframes spinoff {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(-360deg);\n }\n }\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n @-webkit-keyframes spinoff {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(-360deg);\n }\n }\n "],encapsulation:2}),t})(),qS=(()=>{let t=class{};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c]]}),t})(),$S=(()=>{let t=class{constructor(){this.isHiddenSubject=new Pe.a,this.isHidden=this.isHiddenSubject.asObservable()}state(t){this.isHiddenSubject.next(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),US=(()=>{let t=class{constructor(t,e,i){this.API=t,this.ref=e,this.hidden=i,this.isAdsPlaying="initial",this.hideControls=!1,this.vgAutohide=!1,this.vgAutohideTime=3,this.subscriptions=[],this.elem=e.nativeElement}ngOnInit(){this.mouseMove$=fo(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=fo(this.API.videogularElement,"touchstart"),this.subscriptions.push(this.touchStart$.subscribe(this.show.bind(this))),this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.play.subscribe(this.onPlay.bind(this))),this.subscriptions.push(this.target.subscriptions.pause.subscribe(this.onPause.bind(this))),this.subscriptions.push(this.target.subscriptions.startAds.subscribe(this.onStartAds.bind(this))),this.subscriptions.push(this.target.subscriptions.endAds.subscribe(this.onEndAds.bind(this)))}ngAfterViewInit(){this.vgAutohide?this.hide():this.show()}onPlay(){this.vgAutohide&&this.hide()}onPause(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1)}onStartAds(){this.isAdsPlaying="none"}onEndAds(){this.isAdsPlaying="initial"}hide(){this.vgAutohide&&(clearTimeout(this.timer),this.hideAsync())}show(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1),this.vgAutohide&&this.hideAsync()}hideAsync(){this.API.state===BS.VG_PLAYING&&(this.timer=setTimeout(()=>{this.hideControls=!0,this.hidden.state(!0)},1e3*this.vgAutohideTime))}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(VS),s.yc(s.q),s.yc($S))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-controls"]],hostVars:4,hostBindings:function(t,e){2&t&&(s.pd("pointer-events",e.isAdsPlaying),s.oc("hide",e.hideControls))},inputs:{vgAutohide:"vgAutohide",vgAutohideTime:"vgAutohideTime",vgFor:"vgFor"},ngContentSelectors:RS,decls:1,vars:0,template:function(t,e){1&t&&(s.Wc(),s.Vc(0))},styles:["\n vg-controls {\n position: absolute;\n display: flex;\n width: 100%;\n height: 50px;\n z-index: 300;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: bottom 1s;\n -khtml-transition: bottom 1s;\n -moz-transition: bottom 1s;\n -ms-transition: bottom 1s;\n transition: bottom 1s;\n }\n vg-controls.hide {\n bottom: -50px;\n }\n "],encapsulation:2}),t})(),HS=(()=>{let t=class{static getZIndex(){let t,e=1;const i=document.getElementsByTagName("*");for(let n=0,s=i.length;ne&&(e=t+1);return e}static isMobileDevice(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")}static isiOSDevice(){return navigator.userAgent.match(/ip(hone|ad|od)/i)&&!navigator.userAgent.match(/(iemobile)[\/\s]?([\w\.]*)/i)}static isCordova(){return-1===document.URL.indexOf("http://")&&-1===document.URL.indexOf("https://")}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.uc)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),XS=(()=>{let t=class{constructor(){this.nativeFullscreen=!0,this.isFullscreen=!1,this.onChangeFullscreen=new s.s}init(t,e){this.videogularElement=t,this.medias=e;const i={w3:{enabled:"fullscreenEnabled",element:"fullscreenElement",request:"requestFullscreen",exit:"exitFullscreen",onchange:"fullscreenchange",onerror:"fullscreenerror"},newWebkit:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},oldWebkit:{enabled:"webkitIsFullScreen",element:"webkitCurrentFullScreenElement",request:"webkitRequestFullScreen",exit:"webkitCancelFullScreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},moz:{enabled:"mozFullScreen",element:"mozFullScreenElement",request:"mozRequestFullScreen",exit:"mozCancelFullScreen",onchange:"mozfullscreenchange",onerror:"mozfullscreenerror"},ios:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitEnterFullscreen",exit:"webkitExitFullscreen",onchange:"webkitendfullscreen",onerror:"webkitfullscreenerror"},ms:{enabled:"msFullscreenEnabled",element:"msFullscreenElement",request:"msRequestFullscreen",exit:"msExitFullscreen",onchange:"MSFullscreenChange",onerror:"MSFullscreenError"}};for(const s in i)if(i[s].enabled in document){this.polyfill=i[s];break}if(HS.isiOSDevice()&&(this.polyfill=i.ios),this.isAvailable=null!=this.polyfill,null==this.polyfill)return;let n;switch(this.polyfill.onchange){case"mozfullscreenchange":n=document;break;case"webkitendfullscreen":n=this.medias.toArray()[0].elem;break;default:n=t}this.fsChangeSubscription=fo(n,this.polyfill.onchange).subscribe(()=>{this.onFullscreenChange()})}onFullscreenChange(){this.isFullscreen=!!document[this.polyfill.element],this.onChangeFullscreen.emit(this.isFullscreen)}toggleFullscreen(t=null){this.isFullscreen?this.exit():this.request(t)}request(t){t||(t=this.videogularElement),this.isFullscreen=!0,this.onChangeFullscreen.emit(!0),this.isAvailable&&this.nativeFullscreen&&(HS.isMobileDevice()?((!this.polyfill.enabled&&t===this.videogularElement||HS.isiOSDevice())&&(t=this.medias.toArray()[0].elem),this.enterElementInFullScreen(t)):this.enterElementInFullScreen(this.videogularElement))}enterElementInFullScreen(t){t[this.polyfill.request]()}exit(){this.isFullscreen=!1,this.onChangeFullscreen.emit(!1),this.isAvailable&&this.nativeFullscreen&&document[this.polyfill.exit]()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t})(),GS=(()=>{let t=class{constructor(t,e,i){this.API=e,this.fsAPI=i,this.isFullscreen=!1,this.subscriptions=[],this.ariaValue="normal mode",this.elem=t.nativeElement,this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this)))}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}onChangeFullscreen(t){this.ariaValue=t?"fullscren mode":"normal mode",this.isFullscreen=t}onClick(){this.changeFullscreenState()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeFullscreenState())}changeFullscreenState(){let t=this.target;this.target instanceof VS&&(t=null),this.fsAPI.toggleFullscreen(t)}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(VS),s.yc(XS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-fullscreen"]],hostBindings:function(t,e){1&t&&s.Nc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},decls:1,vars:5,consts:[["tabindex","0","role","button","aria-label","fullscreen button",1,"icon"]],template:function(t,e){1&t&&s.zc(0,"div",0),2&t&&(s.oc("vg-icon-fullscreen",!e.isFullscreen)("vg-icon-fullscreen_exit",e.isFullscreen),s.lc("aria-valuetext",e.ariaValue))},styles:["\n vg-fullscreen {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n\n vg-fullscreen .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),t})(),WS=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue="unmuted",this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.currentVolume=this.target.volume}onClick(){this.changeMuteState()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeMuteState())}changeMuteState(){const t=this.getVolume();0===t?(0===this.target.volume&&0===this.currentVolume&&(this.currentVolume=1),this.target.volume=this.currentVolume):(this.currentVolume=t,this.target.volume=0)}getVolume(){const t=this.target?this.target.volume:0;return this.ariaValue=t?"unmuted":"muted",t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(VS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-mute"]],hostBindings:function(t,e){1&t&&s.Nc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:9,consts:[["tabindex","0","role","button","aria-label","mute button",1,"icon"]],template:function(t,e){1&t&&s.zc(0,"div",0),2&t&&(s.oc("vg-icon-volume_up",e.getVolume()>=.75)("vg-icon-volume_down",e.getVolume()>=.25&&e.getVolume()<.75)("vg-icon-volume_mute",e.getVolume()>0&&e.getVolume()<.25)("vg-icon-volume_off",0===e.getVolume()),s.lc("aria-valuetext",e.ariaValue))},styles:["\n vg-mute {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-mute .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),t})(),YS=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.elem=t.nativeElement,this.isDragging=!1}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.ariaValue=100*this.getVolume()}onClick(t){this.setVolume(this.calculateVolume(t.clientX))}onMouseDown(t){this.mouseDownPosX=t.clientX,this.isDragging=!0}onDrag(t){this.isDragging&&this.setVolume(this.calculateVolume(t.clientX))}onStopDrag(t){this.isDragging&&(this.isDragging=!1,this.mouseDownPosX===t.clientX&&this.setVolume(this.calculateVolume(t.clientX)))}arrowAdjustVolume(t){38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()+10)))):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()-10))))}calculateVolume(t){const e=this.volumeBarRef.nativeElement.getBoundingClientRect();return(t-e.left)/e.width*100}setVolume(t){this.target.volume=Math.max(0,Math.min(1,t/100)),this.ariaValue=100*this.target.volume}getVolume(){return this.target?this.target.volume:0}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(VS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-volume"]],viewQuery:function(t,e){var i;1&t&&s.od(PS,!0),2&t&&s.dd(i=s.Oc())&&(e.volumeBarRef=i.first)},hostBindings:function(t,e){1&t&&s.Nc("mousemove",(function(t){return e.onDrag(t)}),!1,s.gd)("mouseup",(function(t){return e.onStopDrag(t)}),!1,s.gd)("keydown",(function(t){return e.arrowAdjustVolume(t)}))},inputs:{vgFor:"vgFor"},decls:5,vars:9,consts:[["tabindex","0","role","slider","aria-label","volume level","aria-level","polite","aria-valuemin","0","aria-valuemax","100","aria-orientation","horizontal",1,"volumeBar",3,"click","mousedown"],["volumeBar",""],[1,"volumeBackground",3,"ngClass"],[1,"volumeValue"],[1,"volumeKnob"]],template:function(t,e){1&t&&(s.Dc(0,"div",0,1),s.Nc("click",(function(t){return e.onClick(t)}))("mousedown",(function(t){return e.onMouseDown(t)})),s.Dc(2,"div",2),s.zc(3,"div",3),s.zc(4,"div",4),s.Cc(),s.Cc()),2&t&&(s.lc("aria-valuenow",e.ariaValue)("aria-valuetext",e.ariaValue+"%"),s.kc(2),s.Xc("ngClass",s.ad(7,IS,e.isDragging)),s.kc(1),s.pd("width",85*e.getVolume()+"%"),s.kc(1),s.pd("left",85*e.getVolume()+"%"))},directives:[ye.q],styles:["\n vg-volume {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 100px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-volume .volumeBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n vg-volume .volumeBackground {\n display: flex;\n flex-grow: 1;\n height: 5px;\n pointer-events: none;\n background-color: #333;\n }\n vg-volume .volumeValue {\n display: flex;\n height: 5px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeKnob {\n position: absolute;\n width: 15px; height: 15px;\n left: 0; top: 50%;\n transform: translateY(-50%);\n border-radius: 15px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeBackground.dragging .volumeValue,\n vg-volume .volumeBackground.dragging .volumeKnob {\n transition: none;\n }\n "],encapsulation:2}),t})(),KS=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue=BS.VG_PAUSED,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}onClick(){this.playPause()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.playPause())}playPause(){switch(this.getState()){case BS.VG_PLAYING:this.target.pause();break;case BS.VG_PAUSED:case BS.VG_ENDED:this.target.play()}}getState(){return this.ariaValue=this.target?this.target.state:BS.VG_PAUSED,this.ariaValue}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(VS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-play-pause"]],hostBindings:function(t,e){1&t&&s.Nc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:6,consts:[["tabindex","0","role","button",1,"icon"]],template:function(t,e){1&t&&s.zc(0,"div",0),2&t&&(s.oc("vg-icon-pause","playing"===e.getState())("vg-icon-play_arrow","paused"===e.getState()||"ended"===e.getState()),s.lc("aria-label","paused"===e.getState()?"play":"pause")("aria-valuetext",e.ariaValue))},styles:["\n vg-play-pause {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-play-pause .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),t})(),JS=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.ariaValue=1,this.elem=t.nativeElement,this.playbackValues=["0.5","1.0","1.5","2.0"],this.playbackIndex=1}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}onClick(){this.updatePlaybackSpeed()}onKeyDown(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.updatePlaybackSpeed())}updatePlaybackSpeed(){this.playbackIndex=++this.playbackIndex%this.playbackValues.length,this.target instanceof VS?this.target.playbackRate=this.playbackValues[this.playbackIndex]:this.target.playbackRate[this.vgFor]=this.playbackValues[this.playbackIndex]}getPlaybackRate(){return this.ariaValue=this.target?this.target.playbackRate:1,this.ariaValue}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(VS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-playback-button"]],hostBindings:function(t,e){1&t&&s.Nc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{playbackValues:"playbackValues",vgFor:"vgFor"},decls:2,vars:2,consts:[["tabindex","0","role","button","aria-label","playback speed button",1,"button"]],template:function(t,e){1&t&&(s.Dc(0,"span",0),s.sd(1),s.Cc()),2&t&&(s.lc("aria-valuetext",e.ariaValue),s.kc(1),s.ud(" ",e.getPlaybackRate(),"x "))},styles:["\n vg-playback-button {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n vg-playback-button .button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n }\n "],encapsulation:2}),t})(),QS=(()=>{let t=class{constructor(t,e,i){this.API=e,this.hideScrubBar=!1,this.vgSlider=!0,this.isSeeking=!1,this.wasPlaying=!1,this.subscriptions=[],this.elem=t.nativeElement,this.subscriptions.push(i.isHidden.subscribe(t=>this.onHideScrubBar(t)))}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}seekStart(){this.target.canPlay&&(this.isSeeking=!0,this.target.state===BS.VG_PLAYING&&(this.wasPlaying=!0),this.target.pause())}seekMove(t){if(this.isSeeking){const e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.time.current=e*this.target.time.total/100,this.target.seekTime(e,!0)}}seekEnd(t){if(this.isSeeking=!1,this.target.canPlay){const e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.seekTime(e,!0),this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}}touchEnd(){this.isSeeking=!1,this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}getTouchOffset(t){let e=0,i=t.target;for(;i;)e+=i.offsetLeft,i=i.offsetParent;return t.touches[0].pageX-e}onMouseDownScrubBar(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(t.offsetX)))}onMouseMoveScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(t.offsetX)}onMouseUpScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekEnd(t.offsetX)}onTouchStartScrubBar(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(this.getTouchOffset(t))))}onTouchMoveScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(this.getTouchOffset(t))}onTouchCancelScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}onTouchEndScrubBar(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}arrowAdjustVolume(t){this.target&&(38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.target.seekTime((this.target.time.current+5e3)/1e3,!1)):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.target.seekTime((this.target.time.current-5e3)/1e3,!1)))}getPercentage(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}onHideScrubBar(t){this.hideScrubBar=t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(VS),s.yc($S))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-scrub-bar"]],hostVars:2,hostBindings:function(t,e){1&t&&s.Nc("mousedown",(function(t){return e.onMouseDownScrubBar(t)}))("mousemove",(function(t){return e.onMouseMoveScrubBar(t)}),!1,s.gd)("mouseup",(function(t){return e.onMouseUpScrubBar(t)}),!1,s.gd)("touchstart",(function(t){return e.onTouchStartScrubBar(t)}))("touchmove",(function(t){return e.onTouchMoveScrubBar(t)}),!1,s.gd)("touchcancel",(function(t){return e.onTouchCancelScrubBar(t)}),!1,s.gd)("touchend",(function(t){return e.onTouchEndScrubBar(t)}),!1,s.gd)("keydown",(function(t){return e.arrowAdjustVolume(t)})),2&t&&s.oc("hide",e.hideScrubBar)},inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},ngContentSelectors:RS,decls:2,vars:2,consts:[["tabindex","0","role","slider","aria-label","scrub bar","aria-level","polite","aria-valuemin","0","aria-valuemax","100",1,"scrubBar"]],template:function(t,e){1&t&&(s.Wc(),s.Dc(0,"div",0),s.Vc(1),s.Cc()),2&t&&s.lc("aria-valuenow",e.getPercentage())("aria-valuetext",e.getPercentage()+"%")},styles:["\n vg-scrub-bar {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: absolute;\n width: 100%;\n height: 5px;\n bottom: 50px;\n margin: 0;\n cursor: pointer;\n align-items: center;\n background: rgba(0, 0, 0, 0.75);\n z-index: 250;\n -webkit-transition: bottom 1s, opacity 0.5s;\n -khtml-transition: bottom 1s, opacity 0.5s;\n -moz-transition: bottom 1s, opacity 0.5s;\n -ms-transition: bottom 1s, opacity 0.5s;\n transition: bottom 1s, opacity 0.5s;\n }\n vg-scrub-bar .scrubBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n height: 100%;\n }\n vg-controls vg-scrub-bar {\n position: relative;\n bottom: 0;\n background: transparent;\n height: 50px;\n flex-grow: 1;\n flex-basis: 0;\n margin: 0 10px;\n -webkit-transition: initial;\n -khtml-transition: initial;\n -moz-transition: initial;\n -ms-transition: initial;\n transition: initial;\n }\n vg-scrub-bar.hide {\n bottom: 0;\n opacity: 0;\n }\n vg-controls vg-scrub-bar.hide {\n bottom: initial;\n opacity: initial;\n }\n "],encapsulation:2}),t})(),ZS=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}getBufferTime(){let t="0%";return this.target&&this.target.buffer&&this.target.buffered.length&&(t=0===this.target.time.total?"0%":this.target.buffer.end/this.target.time.total*100+"%"),t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(VS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-scrub-bar-buffering-time"]],inputs:{vgFor:"vgFor"},decls:1,vars:2,consts:[[1,"background"]],template:function(t,e){1&t&&s.zc(0,"div",0),2&t&&s.pd("width",e.getBufferTime())},styles:["\n vg-scrub-bar-buffering-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-buffering-time .background {\n background-color: rgba(255, 255, 255, 0.3);\n }\n vg-controls vg-scrub-bar-buffering-time {\n position: absolute;\n top: calc(50% - 3px);\n }\n vg-controls vg-scrub-bar-buffering-time .background {\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n "],encapsulation:2}),t})(),tD=(()=>{let t=class{constructor(t,e){this.API=e,this.onLoadedMetadataCalled=!1,this.cuePoints=[],this.subscriptions=[],this.totalCues=0,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.loadedMetadata.subscribe(this.onLoadedMetadata.bind(this))),this.onLoadedMetadataCalled&&this.onLoadedMetadata()}onLoadedMetadata(){if(this.vgCuePoints){this.cuePoints=[];for(let t=0,e=this.vgCuePoints.length;t=0?this.vgCuePoints[t].endTime:this.vgCuePoints[t].startTime+1)-this.vgCuePoints[t].startTime);let i="0",n="0";"number"==typeof e&&this.target.time.total&&(n=100*e/this.target.time.total+"%",i=100*this.vgCuePoints[t].startTime/Math.round(this.target.time.total/1e3)+"%"),this.vgCuePoints[t].$$style={width:n,left:i},this.cuePoints.push(this.vgCuePoints[t])}}}updateCuePoints(){this.target?this.onLoadedMetadata():this.onLoadedMetadataCalled=!0}ngOnChanges(t){t.vgCuePoints.currentValue&&this.updateCuePoints()}ngDoCheck(){this.vgCuePoints&&this.totalCues!==this.vgCuePoints.length&&(this.totalCues=this.vgCuePoints.length,this.updateCuePoints())}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(VS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-scrub-bar-cue-points"]],inputs:{vgCuePoints:"vgCuePoints",vgFor:"vgFor"},features:[s.ic],decls:2,vars:1,consts:[[1,"cue-point-container"],["class","cue-point",3,"width","left",4,"ngFor","ngForOf"],[1,"cue-point"]],template:function(t,e){1&t&&(s.Dc(0,"div",0),s.qd(1,TS,1,4,"span",1),s.Cc()),2&t&&(s.kc(1),s.Xc("ngForOf",e.cuePoints))},directives:[ye.s],styles:["\n vg-scrub-bar-cue-points {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-cue-points .cue-point-container .cue-point {\n position: absolute;\n height: 5px;\n background-color: rgba(255, 204, 0, 0.7);\n }\n vg-controls vg-scrub-bar-cue-points {\n position: absolute;\n top: calc(50% - 3px);\n }\n "],encapsulation:2}),t})(),eD=(()=>{let t=class{constructor(t,e){this.API=e,this.vgSlider=!1,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}getPercentage(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(VS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-scrub-bar-current-time"]],inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},decls:2,vars:3,consts:[[1,"background"],["class","slider",4,"ngIf"],[1,"slider"]],template:function(t,e){1&t&&(s.zc(0,"div",0),s.qd(1,MS,1,0,"span",1)),2&t&&(s.pd("width",e.getPercentage()),s.kc(1),s.Xc("ngIf",e.vgSlider))},directives:[ye.t],styles:["\n vg-scrub-bar-current-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-current-time .background {\n background-color: white;\n }\n vg-controls vg-scrub-bar-current-time {\n position: absolute;\n top: calc(50% - 3px);\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n vg-controls vg-scrub-bar-current-time .background {\n border: 1px solid white;\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n\n vg-scrub-bar-current-time .slider{\n background: white;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n box-shadow: 0px 0px 10px black;\n margin-top: -5px;\n margin-left: -10px;\n }\n "],encapsulation:2}),t})(),iD=(()=>{let t=class{transform(t,e){const i=new Date(t);let n=e,s=i.getUTCSeconds(),a=i.getUTCMinutes(),r=i.getUTCHours();return s<10&&(s="0"+s),a<10&&(a="0"+a),r<10&&(r="0"+r),n=n.replace(/ss/g,s),n=n.replace(/mm/g,a),n=n.replace(/hh/g,r),n}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.xc({name:"vgUtc",type:t,pure:!0}),t})(),nD=(()=>{let t=class{constructor(t,e){this.API=e,this.vgProperty="current",this.vgFormat="mm:ss",this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor)}getTime(){let t=0;return this.target&&(t=Math.round(this.target.time[this.vgProperty]),t=isNaN(t)||this.target.isLive?0:t),t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(VS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-time-display"]],inputs:{vgProperty:"vgProperty",vgFormat:"vgFormat",vgFor:"vgFor"},ngContentSelectors:RS,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(s.Wc(),s.qd(0,FS,2,0,"span",0),s.qd(1,NS,3,4,"span",0),s.Vc(2)),2&t&&(s.Xc("ngIf",null==e.target?null:e.target.isLive),s.kc(1),s.Xc("ngIf",!(null!=e.target&&e.target.isLive)))},directives:[ye.t],pipes:[iD],styles:["\n vg-time-display {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 60px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n pointer-events: none;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n "],encapsulation:2}),t})(),sD=(()=>{let t=class{constructor(t,e){this.API=e,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor);const t=Array.from(this.API.getMasterMedia().elem.children).filter(t=>"TRACK"===t.tagName).filter(t=>"subtitles"===t.kind).map(t=>({label:t.label,selected:!0===t.default,id:t.srclang}));this.tracks=[...t,{id:null,label:"Off",selected:t.every(t=>!1===t.selected)}];const e=this.tracks.filter(t=>!0===t.selected)[0];this.trackSelected=e.id,this.ariaValue=e.label}selectTrack(t){this.trackSelected="null"===t?null:t,this.ariaValue="No track selected",Array.from(this.API.getMasterMedia().elem.textTracks).forEach(e=>{e.language===t?(this.ariaValue=e.label,e.mode="showing"):e.mode="hidden"})}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(VS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-track-selector"]],inputs:{vgFor:"vgFor"},decls:5,vars:5,consts:[[1,"container"],[1,"track-selected"],["tabindex","0","aria-label","track selector",1,"trackSelector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(s.Dc(0,"div",0),s.Dc(1,"div",1),s.sd(2),s.Cc(),s.Dc(3,"select",2),s.Nc("change",(function(t){return e.selectTrack(t.target.value)})),s.qd(4,LS,2,3,"option",3),s.Cc(),s.Cc()),2&t&&(s.kc(1),s.oc("vg-icon-closed_caption",!e.trackSelected),s.kc(1),s.ud(" ",e.trackSelected||""," "),s.kc(1),s.lc("aria-valuetext",e.ariaValue),s.kc(1),s.Xc("ngForOf",e.tracks))},directives:[ye.s],styles:["\n vg-track-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-track-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-track-selector select.trackSelector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-track-selector select.trackSelector::-ms-expand {\n display: none;\n }\n vg-track-selector select.trackSelector option {\n color: #000;\n }\n vg-track-selector .track-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-track-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),t})(),aD=(()=>{let t=class{constructor(t,e){this.API=e,this.onBitrateChange=new s.s,this.subscriptions=[],this.elem=t.nativeElement}ngOnInit(){}ngOnChanges(t){t.bitrates.currentValue&&t.bitrates.currentValue.length&&this.bitrates.forEach(t=>t.label=(t.label||Math.round(t.bitrate/1e3)).toString())}selectBitrate(t){this.bitrateSelected=this.bitrates[t],this.onBitrateChange.emit(this.bitrates[t])}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(VS))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-quality-selector"]],inputs:{bitrates:"bitrates"},outputs:{onBitrateChange:"onBitrateChange"},features:[s.ic],decls:5,vars:5,consts:[[1,"container"],[1,"quality-selected"],["tabindex","0","aria-label","quality selector",1,"quality-selector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(s.Dc(0,"div",0),s.Dc(1,"div",1),s.sd(2),s.Cc(),s.Dc(3,"select",2),s.Nc("change",(function(t){return e.selectBitrate(t.target.value)})),s.qd(4,zS,2,3,"option",3),s.Cc(),s.Cc()),2&t&&(s.kc(1),s.oc("vg-icon-hd",!e.bitrateSelected),s.kc(1),s.ud(" ",null==e.bitrateSelected?null:e.bitrateSelected.label," "),s.kc(1),s.lc("aria-valuetext",e.ariaValue),s.kc(1),s.Xc("ngForOf",e.bitrates))},directives:[ye.s],styles:["\n vg-quality-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-quality-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-quality-selector select.quality-selector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-quality-selector select.quality-selector::-ms-expand {\n display: none;\n }\n vg-quality-selector select.quality-selector option {\n color: #000;\n }\n vg-quality-selector .quality-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-quality-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),t})(),rD=(()=>{let t=class{};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[$S],imports:[[ye.c]]}),t})(),oD=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.uc({token:t,factory:t.\u0275fac}),t.VG_ABORT="abort",t.VG_CAN_PLAY="canplay",t.VG_CAN_PLAY_THROUGH="canplaythrough",t.VG_DURATION_CHANGE="durationchange",t.VG_EMPTIED="emptied",t.VG_ENCRYPTED="encrypted",t.VG_ENDED="ended",t.VG_ERROR="error",t.VG_LOADED_DATA="loadeddata",t.VG_LOADED_METADATA="loadedmetadata",t.VG_LOAD_START="loadstart",t.VG_PAUSE="pause",t.VG_PLAY="play",t.VG_PLAYING="playing",t.VG_PROGRESS="progress",t.VG_RATE_CHANGE="ratechange",t.VG_SEEK="seek",t.VG_SEEKED="seeked",t.VG_SEEKING="seeking",t.VG_STALLED="stalled",t.VG_SUSPEND="suspend",t.VG_TIME_UPDATE="timeupdate",t.VG_VOLUME_CHANGE="volumechange",t.VG_WAITING="waiting",t.VG_LOAD="load",t.VG_ENTER="enter",t.VG_EXIT="exit",t.VG_START_ADS="startads",t.VG_END_ADS="endads",t})(),lD=(()=>{let t=class{constructor(t,e){this.api=t,this.ref=e,this.state=BS.VG_PAUSED,this.time={current:0,total:0,left:0},this.buffer={end:0},this.canPlay=!1,this.canPlayThrough=!1,this.isMetadataLoaded=!1,this.isWaiting=!1,this.isCompleted=!1,this.isLive=!1,this.isBufferDetected=!1,this.checkInterval=200,this.currentPlayPos=0,this.lastPlayPos=0,this.playAtferSync=!1,this.bufferDetected=new Pe.a}ngOnInit(){this.elem=this.vgMedia.nodeName?this.vgMedia:this.vgMedia.elem,this.api.registerMedia(this),this.subscriptions={abort:fo(this.elem,oD.VG_ABORT),canPlay:fo(this.elem,oD.VG_CAN_PLAY),canPlayThrough:fo(this.elem,oD.VG_CAN_PLAY_THROUGH),durationChange:fo(this.elem,oD.VG_DURATION_CHANGE),emptied:fo(this.elem,oD.VG_EMPTIED),encrypted:fo(this.elem,oD.VG_ENCRYPTED),ended:fo(this.elem,oD.VG_ENDED),error:fo(this.elem,oD.VG_ERROR),loadedData:fo(this.elem,oD.VG_LOADED_DATA),loadedMetadata:fo(this.elem,oD.VG_LOADED_METADATA),loadStart:fo(this.elem,oD.VG_LOAD_START),pause:fo(this.elem,oD.VG_PAUSE),play:fo(this.elem,oD.VG_PLAY),playing:fo(this.elem,oD.VG_PLAYING),progress:fo(this.elem,oD.VG_PROGRESS),rateChange:fo(this.elem,oD.VG_RATE_CHANGE),seeked:fo(this.elem,oD.VG_SEEKED),seeking:fo(this.elem,oD.VG_SEEKING),stalled:fo(this.elem,oD.VG_STALLED),suspend:fo(this.elem,oD.VG_SUSPEND),timeUpdate:fo(this.elem,oD.VG_TIME_UPDATE),volumeChange:fo(this.elem,oD.VG_VOLUME_CHANGE),waiting:fo(this.elem,oD.VG_WAITING),startAds:fo(this.elem,oD.VG_START_ADS),endAds:fo(this.elem,oD.VG_END_ADS),mutation:new si.a(t=>{const e=new MutationObserver(e=>{t.next(e)});return e.observe(this.elem,{childList:!0,attributes:!0}),()=>{e.disconnect()}}),bufferDetected:this.bufferDetected},this.mutationObs=this.subscriptions.mutation.subscribe(this.onMutation.bind(this)),this.canPlayObs=this.subscriptions.canPlay.subscribe(this.onCanPlay.bind(this)),this.canPlayThroughObs=this.subscriptions.canPlayThrough.subscribe(this.onCanPlayThrough.bind(this)),this.loadedMetadataObs=this.subscriptions.loadedMetadata.subscribe(this.onLoadMetadata.bind(this)),this.waitingObs=this.subscriptions.waiting.subscribe(this.onWait.bind(this)),this.progressObs=this.subscriptions.progress.subscribe(this.onProgress.bind(this)),this.endedObs=this.subscriptions.ended.subscribe(this.onComplete.bind(this)),this.playingObs=this.subscriptions.playing.subscribe(this.onStartPlaying.bind(this)),this.playObs=this.subscriptions.play.subscribe(this.onPlay.bind(this)),this.pauseObs=this.subscriptions.pause.subscribe(this.onPause.bind(this)),this.timeUpdateObs=this.subscriptions.timeUpdate.subscribe(this.onTimeUpdate.bind(this)),this.volumeChangeObs=this.subscriptions.volumeChange.subscribe(this.onVolumeChange.bind(this)),this.errorObs=this.subscriptions.error.subscribe(this.onError.bind(this)),this.vgMaster&&this.api.playerReadyEvent.subscribe(()=>{this.prepareSync()})}prepareSync(){const t=[];for(const e in this.api.medias)this.api.medias[e]&&t.push(this.api.medias[e].subscriptions.canPlay);this.canPlayAllSubscription=ym(t).pipe(Object(ii.a)((...t)=>{t.some(t=>4===t.target.readyState)&&!this.syncSubscription&&(this.startSync(),this.syncSubscription.unsubscribe())})).subscribe()}startSync(){this.syncSubscription=Mo(0,1e3).subscribe(()=>{for(const t in this.api.medias)if(this.api.medias[t]!==this){const e=this.api.medias[t].currentTime-this.currentTime;e<-.3||e>.3?(this.playAtferSync=this.state===BS.VG_PLAYING,this.pause(),this.api.medias[t].pause(),this.api.medias[t].currentTime=this.currentTime):this.playAtferSync&&(this.play(),this.api.medias[t].play(),this.playAtferSync=!1)}})}onMutation(t){for(let e=0,i=t.length;e0&&i.target.src.indexOf("blob:")<0){this.loadMedia();break}}else if("childList"===i.type&&i.removedNodes.length&&"source"===i.removedNodes[0].nodeName.toLowerCase()){this.loadMedia();break}}}loadMedia(){this.vgMedia.pause(),this.vgMedia.currentTime=0,this.stopBufferCheck(),this.isBufferDetected=!0,this.bufferDetected.next(this.isBufferDetected),setTimeout(()=>this.vgMedia.load(),10)}play(){if(!(this.playPromise||this.state!==BS.VG_PAUSED&&this.state!==BS.VG_ENDED))return this.playPromise=this.vgMedia.play(),this.playPromise&&this.playPromise.then&&this.playPromise.catch&&this.playPromise.then(()=>{this.playPromise=null}).catch(()=>{this.playPromise=null}),this.playPromise}pause(){this.playPromise?this.playPromise.then(()=>{this.vgMedia.pause()}):this.vgMedia.pause()}get id(){let t=void 0;return this.vgMedia&&(t=this.vgMedia.id),t}get duration(){return this.vgMedia.duration}set currentTime(t){this.vgMedia.currentTime=t}get currentTime(){return this.vgMedia.currentTime}set volume(t){this.vgMedia.volume=t}get volume(){return this.vgMedia.volume}set playbackRate(t){this.vgMedia.playbackRate=t}get playbackRate(){return this.vgMedia.playbackRate}get buffered(){return this.vgMedia.buffered}get textTracks(){return this.vgMedia.textTracks}onCanPlay(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlay=!0,this.ref.detectChanges()}onCanPlayThrough(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlayThrough=!0,this.ref.detectChanges()}onLoadMetadata(t){this.isMetadataLoaded=!0,this.time={current:0,left:0,total:1e3*this.duration},this.state=BS.VG_PAUSED;const e=Math.round(this.time.total);this.isLive=e===1/0,this.ref.detectChanges()}onWait(t){this.isWaiting=!0,this.ref.detectChanges()}onComplete(t){this.isCompleted=!0,this.state=BS.VG_ENDED,this.ref.detectChanges()}onStartPlaying(t){this.state=BS.VG_PLAYING,this.ref.detectChanges()}onPlay(t){this.state=BS.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()}onPause(t){this.state=BS.VG_PAUSED,this.vgMaster&&(this.playAtferSync||this.syncSubscription.unsubscribe()),this.stopBufferCheck(),this.ref.detectChanges()}onTimeUpdate(t){const e=this.buffered.length-1;this.time={current:1e3*this.currentTime,total:this.time.total,left:1e3*(this.duration-this.currentTime)},e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}onProgress(t){const e=this.buffered.length-1;e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}onVolumeChange(t){this.ref.detectChanges()}onError(t){this.ref.detectChanges()}bufferCheck(){const t=1/this.checkInterval;this.currentPlayPos=this.currentTime,!this.isBufferDetected&&this.currentPlayPosthis.lastPlayPos+t&&(this.isBufferDetected=!1),this.bufferDetected.closed||this.bufferDetected.next(this.isBufferDetected),this.lastPlayPos=this.currentPlayPos}startBufferCheck(){this.checkBufferSubscription=Mo(0,this.checkInterval).subscribe(()=>{this.bufferCheck()})}stopBufferCheck(){this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected)}seekTime(t,e=!1){let i;i=e?t*this.duration/100:t,this.currentTime=i}addTextTrack(t,e,i,n){const s=this.vgMedia.addTextTrack(t,e,i);return n&&(s.mode=n),s}ngOnDestroy(){this.vgMedia.src="",this.mutationObs.unsubscribe(),this.canPlayObs.unsubscribe(),this.canPlayThroughObs.unsubscribe(),this.loadedMetadataObs.unsubscribe(),this.waitingObs.unsubscribe(),this.progressObs.unsubscribe(),this.endedObs.unsubscribe(),this.playingObs.unsubscribe(),this.playObs.unsubscribe(),this.pauseObs.unsubscribe(),this.timeUpdateObs.unsubscribe(),this.volumeChangeObs.unsubscribe(),this.errorObs.unsubscribe(),this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.syncSubscription&&this.syncSubscription.unsubscribe(),this.bufferDetected.complete(),this.bufferDetected.unsubscribe(),this.api.unregisterMedia(this)}};return t.\u0275fac=function(e){return new(e||t)(s.yc(VS),s.yc(s.j))},t.\u0275dir=s.tc({type:t,selectors:[["","vgMedia",""]],inputs:{vgMedia:"vgMedia",vgMaster:"vgMaster"}}),t})(),cD=(()=>{let t=class{constructor(t){this.ref=t,this.onEnterCuePoint=new s.s,this.onUpdateCuePoint=new s.s,this.onExitCuePoint=new s.s,this.onCompleteCuePoint=new s.s,this.subscriptions=[],this.cuesSubscriptions=[],this.totalCues=0}ngOnInit(){this.onLoad$=fo(this.ref.nativeElement,oD.VG_LOAD),this.subscriptions.push(this.onLoad$.subscribe(this.onLoad.bind(this)))}onLoad(t){if(t.target&&t.target.track){const e=t.target.track.cues;this.ref.nativeElement.cues=e,this.updateCuePoints(e)}else if(t.target&&t.target.textTracks&&t.target.textTracks.length){const e=t.target.textTracks[0].cues;this.ref.nativeElement.cues=e,this.updateCuePoints(e)}}updateCuePoints(t){this.cuesSubscriptions.forEach(t=>t.unsubscribe());for(let e=0,i=t.length;et.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q))},t.\u0275dir=s.tc({type:t,selectors:[["","vgCuePoints",""]],outputs:{onEnterCuePoint:"onEnterCuePoint",onUpdateCuePoint:"onUpdateCuePoint",onExitCuePoint:"onExitCuePoint",onCompleteCuePoint:"onCompleteCuePoint"}}),t})(),hD=(()=>{let t=class{constructor(t,e,i,n){this.api=e,this.fsAPI=i,this.controlsHidden=n,this.isFullscreen=!1,this.isNativeFullscreen=!1,this.areControlsHidden=!1,this.onPlayerReady=new s.s,this.onMediaReady=new s.s,this.subscriptions=[],this.elem=t.nativeElement,this.api.registerElement(this.elem)}ngAfterContentInit(){this.medias.toArray().forEach(t=>{this.api.registerMedia(t)}),this.fsAPI.init(this.elem,this.medias),this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this))),this.subscriptions.push(this.controlsHidden.isHidden.subscribe(this.onHideControls.bind(this))),this.api.onPlayerReady(this.fsAPI),this.onPlayerReady.emit(this.api)}onChangeFullscreen(t){this.fsAPI.nativeFullscreen?this.isNativeFullscreen=t:(this.isFullscreen=t,this.zIndex=t?HS.getZIndex().toString():"auto")}onHideControls(t){this.areControlsHidden=t}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(VS),s.yc(XS),s.yc($S))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-player"]],contentQueries:function(t,e,i){var n;1&t&&s.qc(i,lD,!1),2&t&&s.dd(n=s.Oc())&&(e.medias=n)},hostVars:8,hostBindings:function(t,e){2&t&&(s.pd("z-index",e.zIndex),s.oc("fullscreen",e.isFullscreen)("native-fullscreen",e.isNativeFullscreen)("controls-hidden",e.areControlsHidden))},outputs:{onPlayerReady:"onPlayerReady",onMediaReady:"onMediaReady"},features:[s.jc([VS,XS,$S])],ngContentSelectors:RS,decls:1,vars:0,template:function(t,e){1&t&&(s.Wc(),s.Vc(0))},styles:["\n vg-player {\n font-family: 'videogular';\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n overflow: hidden;\n background-color: black;\n }\n vg-player.fullscreen {\n position: fixed;\n left: 0;\n top: 0;\n }\n vg-player.native-fullscreen.controls-hidden {\n cursor: none;\n }\n "],encapsulation:2}),t})(),dD=(()=>{let t=class{};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[VS,XS,HS,$S,BS,oD]}),t})(),uD=(()=>{let t=class{constructor(t,e,i,n){this.API=e,this.fsAPI=i,this.controlsHidden=n,this.isNativeFullscreen=!1,this.areControlsHidden=!1,this.subscriptions=[],this.isBuffering=!1,this.elem=t.nativeElement}ngOnInit(){this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe(()=>this.onPlayerReady()))}onPlayerReady(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this))),this.subscriptions.push(this.controlsHidden.isHidden.subscribe(this.onHideControls.bind(this))),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe(t=>this.onUpdateBuffer(t)))}onUpdateBuffer(t){this.isBuffering=t}onChangeFullscreen(t){this.fsAPI.nativeFullscreen&&(this.isNativeFullscreen=t)}onHideControls(t){this.areControlsHidden=t}onClick(){switch(this.getState()){case BS.VG_PLAYING:this.target.pause();break;case BS.VG_PAUSED:case BS.VG_ENDED:this.target.play()}}getState(){let t=BS.VG_PAUSED;if(this.target)if(this.target.state instanceof Array){for(let e=0,i=this.target.state.length;et.unsubscribe())}};return t.\u0275fac=function(e){return new(e||t)(s.yc(s.q),s.yc(VS),s.yc(XS),s.yc($S))},t.\u0275cmp=s.sc({type:t,selectors:[["vg-overlay-play"]],hostVars:2,hostBindings:function(t,e){1&t&&s.Nc("click",(function(){return e.onClick()})),2&t&&s.oc("is-buffering",e.isBuffering)},inputs:{vgFor:"vgFor"},decls:2,vars:6,consts:[[1,"vg-overlay-play"],[1,"overlay-play-container"]],template:function(t,e){1&t&&(s.Dc(0,"div",0),s.zc(1,"div",1),s.Cc()),2&t&&(s.oc("native-fullscreen",e.isNativeFullscreen)("controls-hidden",e.areControlsHidden),s.kc(1),s.oc("vg-icon-play_arrow","playing"!==e.getState()))},styles:["\n vg-overlay-play {\n z-index: 200;\n }\n vg-overlay-play.is-buffering {\n display: none;\n }\n vg-overlay-play .vg-overlay-play {\n transition: all 0.5s;\n cursor: pointer;\n position: absolute;\n display: block;\n color: white;\n width: 100%;\n height: 100%;\n font-size: 80px;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n vg-overlay-play .vg-overlay-play.native-fullscreen.controls-hidden {\n cursor: none;\n }\n vg-overlay-play .vg-overlay-play .overlay-play-container.vg-icon-play_arrow {\n pointer-events: none;\n width: 100%;\n height: 100%;\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 80px;\n }\n vg-overlay-play .vg-overlay-play:hover {\n filter: alpha(opacity=100);\n opacity: 1;\n }\n vg-overlay-play .vg-overlay-play:hover .overlay-play-container.vg-icon-play_arrow:before {\n transform: scale(1.2);\n }\n "],encapsulation:2}),t})(),mD=(()=>{let t=class{};return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[ye.c]]}),t})();function pD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-button-toggle",12),s.Nc("click",(function(){s.id(t);const i=e.$implicit,n=e.index;return s.Rc(2).onClickPlaylistItem(i,n)})),s.sd(1),s.Cc()}if(2&t){const t=e.$implicit,i=s.Rc(2);s.Xc("checked",i.currentItem.title===t.title)("value",t.title),s.kc(1),s.td(t.label)}}var gD;function fD(t,e){1&t&&s.zc(0,"mat-spinner",17),2&t&&s.Xc("diameter",25)}function bD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",13),s.Dc(1,"div",14),s.qd(2,fD,1,1,"mat-spinner",15),s.Cc(),s.Dc(3,"button",16),s.Nc("click",(function(){return s.id(t),s.Rc(2).updatePlaylist()})),s.Bc(4),s.Hc(5,gD),s.Ac(),s.sd(6,"\xa0"),s.Dc(7,"mat-icon"),s.sd(8,"update"),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc(2);s.kc(2),s.Xc("ngIf",t.playlist_updating),s.kc(1),s.Xc("disabled",t.playlist_updating)}}function _D(t,e){1&t&&s.zc(0,"mat-spinner",22),2&t&&s.Xc("diameter",50)}function yD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",23),s.Nc("click",(function(){return s.id(t),s.Rc(3).namePlaylistDialog()})),s.Dc(1,"mat-icon",19),s.sd(2,"favorite"),s.Cc(),s.Cc()}}function vD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"button",18),s.Nc("click",(function(){return s.id(t),s.Rc(2).downloadContent()})),s.Dc(2,"mat-icon",19),s.sd(3,"save"),s.Cc(),s.qd(4,_D,1,1,"mat-spinner",20),s.Cc(),s.qd(5,yD,3,0,"button",21),s.Cc()}if(2&t){const t=s.Rc(2);s.kc(1),s.Xc("disabled",t.downloading),s.kc(3),s.Xc("ngIf",t.downloading),s.kc(1),s.Xc("ngIf",!t.id)}}function wD(t,e){1&t&&s.zc(0,"mat-spinner",22),2&t&&s.Xc("diameter",50)}function kD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"button",18),s.Nc("click",(function(){return s.id(t),s.Rc(2).downloadFile()})),s.Dc(2,"mat-icon",19),s.sd(3,"save"),s.Cc(),s.qd(4,wD,1,1,"mat-spinner",20),s.Cc(),s.Cc()}if(2&t){const t=s.Rc(2);s.kc(1),s.Xc("disabled",t.downloading),s.kc(3),s.Xc("ngIf",t.downloading)}}function xD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"div",1),s.Dc(2,"div",2),s.Dc(3,"div",3),s.Dc(4,"vg-player",4),s.Nc("onPlayerReady",(function(e){return s.id(t),s.Rc().onPlayerReady(e)})),s.zc(5,"video",5,6),s.Cc(),s.Cc(),s.Dc(7,"div",7),s.Dc(8,"mat-button-toggle-group",8,9),s.Nc("cdkDropListDropped",(function(e){return s.id(t),s.Rc().drop(e)})),s.qd(10,pD,2,3,"mat-button-toggle",10),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.qd(11,bD,9,2,"div",11),s.qd(12,vD,6,3,"div",0),s.qd(13,kD,5,2,"div",0),s.Cc()}if(2&t){const t=s.ed(6),e=s.Rc();s.kc(1),s.Xc("ngClass","audio"===e.type?null:"container-video"),s.kc(2),s.Xc("ngClass","audio"===e.type?"my-2 px-1":"video-col"),s.kc(1),s.pd("background-color","audio"===e.type?"transparent":"black"),s.kc(1),s.Xc("ngClass","audio"===e.type?"audio-styles":"video-styles")("vgMedia",t)("src",e.currentItem.src,s.kd),s.kc(3),s.Xc("cdkDropListSortingDisabled",!e.id),s.kc(2),s.Xc("ngForOf",e.playlist),s.kc(1),s.Xc("ngIf",e.id&&e.playlistChanged()),s.kc(1),s.Xc("ngIf",e.playlist.length>1),s.kc(1),s.Xc("ngIf",1===e.playlist.length)}}gD=$localize`:Playlist save changes button␟5b3075e8dc3f3921ec316b0bd83b6d14a06c1a4f␟7000649363168371045:Save changes`;let CD=(()=>{class t{constructor(t,e,i,n,s){this.postsService=t,this.route=e,this.dialog=i,this.router=n,this.snackBar=s,this.playlist=[],this.original_playlist=null,this.playlist_updating=!1,this.currentIndex=0,this.currentItem=null,this.id=null,this.subscriptionName=null,this.subPlaylist=null,this.baseStreamPath=null,this.audioFolderPath=null,this.videoFolderPath=null,this.subscriptionFolderPath=null,this.downloading=!1}onResize(t){this.innerWidth=window.innerWidth}ngOnInit(){this.innerWidth=window.innerWidth,this.fileNames=this.route.snapshot.paramMap.get("fileNames").split("|nvr|"),this.type=this.route.snapshot.paramMap.get("type"),this.id=this.route.snapshot.paramMap.get("id"),this.subscriptionName=this.route.snapshot.paramMap.get("subscriptionName"),this.subPlaylist=this.route.snapshot.paramMap.get("subPlaylist"),this.postsService.loadNavItems().subscribe(t=>{const e=this.postsService.debugMode?t:t.config_file;this.baseStreamPath=this.postsService.path,this.audioFolderPath=e.YoutubeDLMaterial.Downloader["path-audio"],this.videoFolderPath=e.YoutubeDLMaterial.Downloader["path-video"],this.subscriptionFolderPath=e.YoutubeDLMaterial.Subscriptions.subscriptions_base_path;let i=null;"audio"===this.type?i="audio/mp3":"video"===this.type?i="video/mp4":"subscription"===this.type?i="video/mp4":console.error("Must have valid file type! Use 'audio', 'video', or 'subscription'.");for(let n=0;n{})}getFileNames(){const t=[];for(let e=0;e{this.downloading=!1,saveAs(t,e+".zip")},t=>{console.log(t),this.downloading=!1})}downloadFile(){const t="audio"===this.type?".mp3":".mp4",e=this.playlist[0].title;this.downloading=!0,this.postsService.downloadFileFromServer(e,this.type).subscribe(i=>{this.downloading=!1,saveAs(i,e+t)},t=>{console.log(t),this.downloading=!1})}namePlaylistDialog(){const t=new s.s,e=this.dialog.open(OS,{width:"300px",data:{inputTitle:"Name the playlist",inputPlaceholder:"Name",submitText:"Favorite",doneEmitter:t}});t.subscribe(t=>{if(t){const i=this.getFileNames();this.postsService.createPlaylist(t,i,this.type,null).subscribe(i=>{if(i.success){e.close();const n=i.new_playlist;this.openSnackBar("Playlist '"+t+"' successfully created!",""),this.playlistPostCreationHandler(n.id)}})}})}playlistPostCreationHandler(t){this.id=t,this.router.navigateByUrl(this.router.url+";id="+t)}drop(t){tf(this.playlist,t.previousIndex,t.currentIndex)}playlistChanged(){return JSON.stringify(this.playlist)!==this.original_playlist}updatePlaylist(){const t=this.getFileNames();this.playlist_updating=!0,this.postsService.updatePlaylist(this.id,t,this.type).subscribe(e=>{if(this.playlist_updating=!1,e.success){const e=t.join("|nvr|");this.router.navigate(["/player",{fileNames:e,type:"video",id:this.id}]),this.openSnackBar("Successfully updated playlist.",""),this.original_playlist=JSON.stringify(this.playlist)}else this.openSnackBar("ERROR: Failed to update playlist.","")})}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(a_),s.yc(sh),s.yc(my),s.yc(Pg))},t.\u0275cmp=s.sc({type:t,selectors:[["app-player"]],hostBindings:function(t,e){1&t&&s.Nc("resize",(function(t){return e.onResize(t)}),!1,s.hd)},decls:1,vars:1,consts:[[4,"ngIf"],[1,"container",3,"ngClass"],[1,"row",2,"max-width","100%","margin-left","0px"],[1,"col",3,"ngClass"],[3,"onPlayerReady"],["id","singleVideo","preload","auto","controls","",1,"video-player",3,"ngClass","vgMedia","src"],["media",""],[1,"col-12","my-2"],["cdkDropList","","vertical","","name","videoSelect","aria-label","Video Select",2,"width","80%","left","9%",3,"cdkDropListSortingDisabled","cdkDropListDropped"],["group","matButtonToggleGroup"],["cdkDrag","","class","toggle-button",3,"checked","value","click",4,"ngFor","ngForOf"],["class","update-playlist-button-div",4,"ngIf"],["cdkDrag","",1,"toggle-button",3,"checked","value","click"],[1,"update-playlist-button-div"],[1,"spinner-div"],[3,"diameter",4,"ngIf"],["color","primary","mat-raised-button","",3,"disabled","click"],[3,"diameter"],["color","primary","mat-fab","",1,"save-button",3,"disabled","click"],[1,"save-icon"],["class","spinner",3,"diameter",4,"ngIf"],["color","accent","class","favorite-button","color","primary","mat-fab","",3,"click",4,"ngIf"],[1,"spinner",3,"diameter"],["color","accent","color","primary","mat-fab","",1,"favorite-button",3,"click"]],template:function(t,e){1&t&&s.qd(0,xD,14,12,"div",0),2&t&&s.Xc("ngIf",e.playlist.length>0)},directives:[ye.t,ye.q,hD,lD,Sr,Ef,ye.s,Ar,xf,ds,ru,ep],styles:[".video-player[_ngcontent-%COMP%]{margin:0 auto;min-width:300px}.video-player[_ngcontent-%COMP%]:focus{outline:none}.audio-styles[_ngcontent-%COMP%]{height:50px;background-color:transparent;width:100%}.video-styles[_ngcontent-%COMP%]{width:80%} .mat-button-toggle-label-content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.container-video[_ngcontent-%COMP%]{max-width:100%;padding-left:0;padding-right:0}.progress-bar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:-1px}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:absolute;bottom:25px}.favorite-button[_ngcontent-%COMP%]{left:25px;position:absolute;bottom:25px}.video-col[_ngcontent-%COMP%]{padding-right:0;padding-left:.01px}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}.update-playlist-button-div[_ngcontent-%COMP%]{float:right;margin-right:30px;margin-top:25px;margin-bottom:15px}.spinner-div[_ngcontent-%COMP%]{position:relative;display:inline-block;margin-right:12px;top:8px}"]}),t})();var SD;SD=$localize`:Subscribe dialog title␟a9806cf78ce00eb2613eeca11354a97e033377b8␟4500902888758611270:Subscribe to playlist or channel`;const DD=["placeholder",$localize`:Subscription URL input placeholder␟801b98c6f02fe3b32f6afa3ee854c99ed83474e6␟2375260419993138758:URL`];var ED;ED=$localize`:Subscription URL input hint␟93efc99ae087fc116de708ecd3ace86ca237cf30␟6758330192665823220:The playlist or channel URL`;const AD=["placeholder",$localize`:Subscription custom name placeholder␟08f5d0ef937ae17feb1b04aff15ad88911e87baf␟1402261878731426139:Custom name`];var OD,RD,PD,ID;function TD(t,e){if(1&t&&(s.Dc(0,"mat-option",17),s.sd(1),s.Cc()),2&t){const t=e.$implicit,i=s.Rc(2);s.Xc("value",t+(1===i.timerange_amount?"":"s")),s.kc(1),s.ud(" ",t+(1===i.timerange_amount?"":"s")," ")}}function MD(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",3),s.Bc(1),s.Hc(2,ID),s.Ac(),s.Dc(3,"mat-form-field",13),s.Dc(4,"input",14),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().timerange_amount=e})),s.Cc(),s.Cc(),s.Dc(5,"mat-select",15),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().timerange_unit=e})),s.qd(6,TD,2,2,"mat-option",16),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.kc(4),s.Xc("ngModel",t.timerange_amount),s.kc(1),s.Xc("ngModel",t.timerange_unit),s.kc(1),s.Xc("ngForOf",t.time_units)}}function FD(t,e){1&t&&(s.Dc(0,"div",18),s.zc(1,"mat-spinner",19),s.Cc()),2&t&&(s.kc(1),s.Xc("diameter",25))}OD=$localize`:Custom name input hint␟f3f62aa84d59f3a8b900cc9a7eec3ef279a7b4e7␟8525826677893067522:This is optional`,RD=$localize`:Download all uploads subscription setting␟ea30873bd3f0d5e4fb2378eec3f0a1db77634a28␟2789218157148692814:Download all uploads`,PD=$localize`:Subscribe cancel button␟d7b35c384aecd25a516200d6921836374613dfe7␟2159130950882492111:Cancel`,ID=$localize`:Download time range prefix␟28a678e9cabf86e44c32594c43fa0e890135c20f␟2424458468042538424:Download videos uploaded in the last`;let ND=(()=>{class t{constructor(t,e,i){this.postsService=t,this.snackBar=e,this.dialogRef=i,this.timerange_unit="days",this.download_all=!0,this.url=null,this.name=null,this.subscribing=!1,this.time_units=["day","week","month","year"]}ngOnInit(){}subscribeClicked(){if(this.url&&""!==this.url){if(!this.download_all&&!this.timerange_amount)return void this.openSnackBar("You must specify an amount of time");this.subscribing=!0;let t=null;this.download_all||(t="now-"+this.timerange_amount.toString()+this.timerange_unit),this.postsService.createSubscription(this.url,this.name,t).subscribe(t=>{this.subscribing=!1,t.new_sub?this.dialogRef.close(t.new_sub):(t.error&&this.openSnackBar("ERROR: "+t.error),this.dialogRef.close())})}}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(Pg),s.yc(Zc))},t.\u0275cmp=s.sc({type:t,selectors:[["app-subscribe-dialog"]],decls:31,vars:6,consts:[["mat-dialog-title",""],[1,"container-fluid"],[1,"row"],[1,"col-12"],["color","accent"],["matInput","","required","","aria-required","true",3,"ngModel","ngModelChange",6,"placeholder"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-3"],[3,"ngModel","ngModelChange"],["class","col-12",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],["color","accent",2,"width","50px","text-align","center"],["type","number","matInput","",3,"ngModel","ngModelChange"],["color","accent",1,"unit-select",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.Hc(1,SD),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"div",1),s.Dc(4,"div",2),s.Dc(5,"div",3),s.Dc(6,"mat-form-field",4),s.Dc(7,"input",5),s.Ic(8,DD),s.Nc("ngModelChange",(function(t){return e.url=t})),s.Cc(),s.Dc(9,"mat-hint"),s.Bc(10),s.Hc(11,ED),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(12,"div",3),s.Dc(13,"mat-form-field",4),s.Dc(14,"input",6),s.Ic(15,AD),s.Nc("ngModelChange",(function(t){return e.name=t})),s.Cc(),s.Dc(16,"mat-hint"),s.Bc(17),s.Hc(18,OD),s.Ac(),s.Cc(),s.Cc(),s.Cc(),s.Dc(19,"div",7),s.Dc(20,"mat-checkbox",8),s.Nc("ngModelChange",(function(t){return e.download_all=t})),s.Bc(21),s.Hc(22,RD),s.Ac(),s.Cc(),s.Cc(),s.qd(23,MD,7,3,"div",9),s.Cc(),s.Cc(),s.Cc(),s.Dc(24,"mat-dialog-actions"),s.Dc(25,"button",10),s.Bc(26),s.Hc(27,PD),s.Ac(),s.Cc(),s.Dc(28,"button",11),s.Nc("click",(function(){return e.subscribeClicked()})),s.sd(29,"Subscribe"),s.Cc(),s.qd(30,FD,2,1,"div",12),s.Cc()),2&t&&(s.kc(7),s.Xc("ngModel",e.url),s.kc(7),s.Xc("ngModel",e.name),s.kc(6),s.Xc("ngModel",e.download_all),s.kc(3),s.Xc("ngIf",!e.download_all),s.kc(5),s.Xc("disabled",!e.url),s.kc(2),s.Xc("ngIf",e.subscribing))},directives:[oh,lh,Rc,vu,Ds,nr,Ts,ja,wc,oo,ye.t,ch,ds,rh,Xs,Tp,ye.s,es,ep],styles:[".unit-select[_ngcontent-%COMP%]{width:75px;margin-left:20px}.mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),t})();var LD,zD,BD,VD,jD,qD,$D;function UD(t,e){if(1&t&&(s.Dc(0,"div",1),s.Dc(1,"strong"),s.Bc(2),s.Hc(3,$D),s.Ac(),s.sd(4,"\xa0"),s.Cc(),s.Dc(5,"span",2),s.sd(6),s.Cc(),s.Cc()),2&t){const t=s.Rc();s.kc(6),s.td(t.sub.archive)}}LD=$localize`:Subscription type property␟e78c0d60ac39787f62c9159646fe0b3c1ed55a1d␟2736556170366900089:Type:`,zD=$localize`:Subscription URL property␟c52db455cca9109ee47e1a612c3f4117c09eb71b␟8598886608217248074:URL:`,BD=$localize`:Subscription ID property␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`,VD=$localize`:Close subscription info button␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,jD=$localize`:Export Archive button␟8efc77bf327659c0fec1f518cf48a98cdcd9dddf␟5613381975493898311:Export Archive`,qD=$localize`:Unsubscribe button␟3042bd3ad8dffcfeca5fd1ae6159fd1047434e95␟1698114086921246480:Unsubscribe`,$D=$localize`:Subscription ID property␟a44d86aa1e6c20ced07aca3a7c081d8db9ded1c6␟2158775445713924699:Archive:`;let HD=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this.data=e,this.postsService=i,this.sub=null,this.unsubbedEmitter=null}ngOnInit(){this.data&&(this.sub=this.data.sub,this.unsubbedEmitter=this.data.unsubbedEmitter)}unsubscribe(){this.postsService.unsubscribe(this.sub,!0).subscribe(t=>{this.unsubbedEmitter.emit(!0),this.dialogRef.close()})}downloadArchive(){this.postsService.downloadArchive(this.sub).subscribe(t=>{saveAs(t,"archive.txt")})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Zc),s.yc(th),s.yc(By))},t.\u0275cmp=s.sc({type:t,selectors:[["app-subscription-info-dialog"]],decls:36,vars:5,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-value"],["class","info-item",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-stroked-button","","color","accent",3,"click"],[1,"spacer"],["mat-button","","color","warn",3,"click"]],template:function(t,e){1&t&&(s.Dc(0,"h4",0),s.sd(1),s.Cc(),s.Dc(2,"mat-dialog-content"),s.Dc(3,"div",1),s.Dc(4,"strong"),s.Bc(5),s.Hc(6,LD),s.Ac(),s.sd(7,"\xa0"),s.Cc(),s.Dc(8,"span",2),s.sd(9),s.Cc(),s.Cc(),s.Dc(10,"div",1),s.Dc(11,"strong"),s.Bc(12),s.Hc(13,zD),s.Ac(),s.sd(14,"\xa0"),s.Cc(),s.Dc(15,"span",2),s.sd(16),s.Cc(),s.Cc(),s.Dc(17,"div",1),s.Dc(18,"strong"),s.Bc(19),s.Hc(20,BD),s.Ac(),s.sd(21,"\xa0"),s.Cc(),s.Dc(22,"span",2),s.sd(23),s.Cc(),s.Cc(),s.qd(24,UD,7,1,"div",3),s.Cc(),s.Dc(25,"mat-dialog-actions"),s.Dc(26,"button",4),s.Bc(27),s.Hc(28,VD),s.Ac(),s.Cc(),s.Dc(29,"button",5),s.Nc("click",(function(){return e.downloadArchive()})),s.Bc(30),s.Hc(31,jD),s.Ac(),s.Cc(),s.zc(32,"span",6),s.Dc(33,"button",7),s.Nc("click",(function(){return e.unsubscribe()})),s.Bc(34),s.Hc(35,qD),s.Ac(),s.Cc(),s.Cc()),2&t&&(s.kc(1),s.td(e.sub.name),s.kc(8),s.td(e.sub.isPlaylist?"Playlist":"Channel"),s.kc(7),s.td(e.sub.url),s.kc(7),s.td(e.sub.id),s.kc(1),s.Xc("ngIf",e.sub.archive))},directives:[oh,lh,ye.t,ch,ds,rh],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px}.info-item-value[_ngcontent-%COMP%]{font-size:13px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),t})();var XD,GD,WD,YD,KD,JD,QD;function ZD(t,e){if(1&t&&(s.Dc(0,"strong"),s.sd(1),s.Cc()),2&t){const t=s.Rc().$implicit;s.kc(1),s.td(t.name)}}function tE(t,e){1&t&&(s.Dc(0,"div"),s.Bc(1),s.Hc(2,YD),s.Ac(),s.Cc())}function eE(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-list-item"),s.Dc(1,"a",9),s.Nc("click",(function(){s.id(t);const i=e.$implicit;return s.Rc().goToSubscription(i)})),s.qd(2,ZD,2,1,"strong",10),s.qd(3,tE,3,0,"div",10),s.Cc(),s.Dc(4,"button",11),s.Nc("click",(function(){s.id(t);const i=e.$implicit;return s.Rc().showSubInfo(i)})),s.Dc(5,"mat-icon"),s.sd(6,"info"),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=e.$implicit;s.kc(2),s.Xc("ngIf",t.name),s.kc(1),s.Xc("ngIf",!t.name)}}function iE(t,e){1&t&&(s.Dc(0,"div",12),s.Dc(1,"p"),s.Hc(2,KD),s.Cc(),s.Cc())}function nE(t,e){1&t&&(s.Dc(0,"div",14),s.Bc(1),s.Hc(2,JD),s.Ac(),s.Cc())}function sE(t,e){if(1&t){const t=s.Ec();s.Dc(0,"mat-list-item"),s.Dc(1,"a",9),s.Nc("click",(function(){s.id(t);const i=e.$implicit;return s.Rc().goToSubscription(i)})),s.Dc(2,"strong"),s.sd(3),s.Cc(),s.qd(4,nE,3,0,"div",13),s.Cc(),s.Dc(5,"button",11),s.Nc("click",(function(){s.id(t);const i=e.$implicit;return s.Rc().showSubInfo(i)})),s.Dc(6,"mat-icon"),s.sd(7,"info"),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=e.$implicit;s.kc(3),s.td(t.name),s.kc(1),s.Xc("ngIf",!t.name)}}function aE(t,e){1&t&&(s.Dc(0,"div",12),s.Dc(1,"p"),s.Hc(2,QD),s.Cc(),s.Cc())}function rE(t,e){1&t&&(s.Dc(0,"div",15),s.zc(1,"mat-progress-bar",16),s.Cc())}XD=$localize`:Subscriptions title␟e2319dec5b4ccfb6ed9f55ccabd63650a8fdf547␟3180145612302390475:Your subscriptions`,GD=$localize`:Subscriptions channels title␟807cf11e6ac1cde912496f764c176bdfdd6b7e19␟8181077408762380407:Channels`,WD=$localize`:Subscriptions playlists title␟47546e45bbb476baaaad38244db444c427ddc502␟1823843876735462104:Playlists`,YD=$localize`:Subscription playlist not available text␟29b89f751593e1b347eef103891b7a1ff36ec03f␟973700466393519727:Name not available. Channel retrieval in progress.`,KD=$localize`:No channel subscriptions text␟4636cd4a1379c50d471e98786098c4d39e1e82ad␟2560406180065361139:You have no channel subscriptions.`,JD=$localize`:Subscription playlist not available text␟2e0a410652cb07d069f576b61eab32586a18320d␟4161141077899894301:Name not available. Playlist retrieval in progress.`,QD=$localize`:No playlist subscriptions text␟587b57ced54965d8874c3fd0e9dfedb987e5df04␟3403368727234976136:You have no playlist subscriptions.`;let oE=(()=>{class t{constructor(t,e,i,n){this.dialog=t,this.postsService=e,this.router=i,this.snackBar=n,this.playlist_subscriptions=[],this.channel_subscriptions=[],this.subscriptions=null,this.subscriptions_loading=!1}ngOnInit(){this.getSubscriptions()}getSubscriptions(){this.subscriptions_loading=!0,this.subscriptions=null,this.channel_subscriptions=[],this.playlist_subscriptions=[],this.postsService.getAllSubscriptions().subscribe(t=>{if(this.subscriptions_loading=!1,this.subscriptions=t.subscriptions,this.subscriptions)for(let e=0;e{this.subscriptions_loading=!1,console.error("Failed to get subscriptions"),this.openSnackBar("ERROR: Failed to get subscriptions!","OK.")})}goToSubscription(t){this.router.navigate(["/subscription",{id:t.id}])}openSubscribeDialog(){this.dialog.open(ND,{maxWidth:500,width:"80vw"}).afterClosed().subscribe(t=>{t&&(t.isPlaylist?this.playlist_subscriptions.push(t):this.channel_subscriptions.push(t))})}showSubInfo(t){const e=new s.s;this.dialog.open(HD,{data:{sub:t,unsubbedEmitter:e}}),e.subscribe(e=>{e&&(this.openSnackBar(`${t.name} successfully deleted!`),this.getSubscriptions())})}openSnackBar(t,e=""){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(sh),s.yc(By),s.yc(my),s.yc(Pg))},t.\u0275cmp=s.sc({type:t,selectors:[["app-subscriptions"]],decls:19,vars:5,consts:[[2,"text-align","center","margin-bottom","15px"],[2,"width","80%","margin","0 auto"],[2,"text-align","center"],[1,"sub-nav-list"],[4,"ngFor","ngForOf"],["style","width: 80%; margin: 0 auto; padding-left: 15px;",4,"ngIf"],[2,"text-align","center","margin-top","10px"],["style","margin: 0 auto; width: 80%",4,"ngIf"],["mat-fab","",1,"add-subscription-button",3,"click"],["matLine","","href","javascript:void(0)",1,"a-list-item",3,"click"],[4,"ngIf"],["mat-icon-button","",3,"click"],[2,"width","80%","margin","0 auto","padding-left","15px"],["class","content-loading-div",4,"ngIf"],[1,"content-loading-div"],[2,"margin","0 auto","width","80%"],["mode","indeterminate"]],template:function(t,e){1&t&&(s.zc(0,"br"),s.Dc(1,"h2",0),s.Hc(2,XD),s.Cc(),s.zc(3,"mat-divider",1),s.zc(4,"br"),s.Dc(5,"h4",2),s.Hc(6,GD),s.Cc(),s.Dc(7,"mat-nav-list",3),s.qd(8,eE,7,2,"mat-list-item",4),s.Cc(),s.qd(9,iE,3,0,"div",5),s.Dc(10,"h4",6),s.Hc(11,WD),s.Cc(),s.Dc(12,"mat-nav-list",3),s.qd(13,sE,8,2,"mat-list-item",4),s.Cc(),s.qd(14,aE,3,0,"div",5),s.qd(15,rE,2,0,"div",7),s.Dc(16,"button",8),s.Nc("click",(function(){return e.openSubscribeDialog()})),s.Dc(17,"mat-icon"),s.sd(18,"add"),s.Cc(),s.Cc()),2&t&&(s.kc(8),s.Xc("ngForOf",e.channel_subscriptions),s.kc(1),s.Xc("ngIf",0===e.channel_subscriptions.length&&e.subscriptions),s.kc(4),s.Xc("ngForOf",e.playlist_subscriptions),s.kc(1),s.Xc("ngIf",0===e.playlist_subscriptions.length&&e.subscriptions),s.kc(1),s.Xc("ngIf",e.subscriptions_loading))},directives:[ku,Fu,ye.s,ye.t,ds,ru,ju,Mn,Um],styles:[".add-subscription-button[_ngcontent-%COMP%]{position:fixed;bottom:30px;right:30px}.subscription-card[_ngcontent-%COMP%]{height:200px;width:300px}.content-loading-div[_ngcontent-%COMP%]{position:absolute;width:200px;height:50px;bottom:-18px}.a-list-item[_ngcontent-%COMP%]{height:48px;padding-top:12px!important}.sub-nav-list[_ngcontent-%COMP%]{margin:0 auto;width:80%}"]}),t})();var lE,cE,hE,dE;function uE(t,e){if(1&t){const t=s.Ec();s.Dc(0,"button",4),s.Nc("click",(function(){return s.id(t),s.Rc().deleteForever()})),s.Dc(1,"mat-icon"),s.sd(2,"delete_forever"),s.Cc(),s.Bc(3),s.Hc(4,dE),s.Ac(),s.Cc()}}function mE(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",10),s.Dc(1,"img",11),s.Nc("error",(function(e){return s.id(t),s.Rc().onImgError(e)})),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.kc(1),s.Xc("src",t.file.thumbnailURL,s.kd)}}lE=$localize`:Video duration label␟2054791b822475aeaea95c0119113de3200f5e1c␟7115285952699064699:Length:`,cE=$localize`:Subscription video info button␟321e4419a943044e674beb55b8039f42a9761ca5␟314315645942131479:Info`,hE=$localize`:Delete and redownload subscription video button␟94e01842dcee90531caa52e4147f70679bac87fe␟8460889291602192517:Delete and redownload`,dE=$localize`:Delete forever subscription video button␟2031adb51e07a41844e8ba7704b054e98345c9c1␟880206287081443054:Delete forever`;let pE=(()=>{class t{constructor(t,e,i){this.snackBar=t,this.postsService=e,this.dialog=i,this.image_errored=!1,this.image_loaded=!1,this.formattedDuration=null,this.use_youtubedl_archive=!1,this.goToFileEmit=new s.s,this.reloadSubscription=new s.s,this.scrollSubject=new Pe.a,this.scrollAndLoad=si.a.merge(si.a.fromEvent(window,"scroll"),this.scrollSubject)}ngOnInit(){this.file.duration&&(this.formattedDuration=function(t){const e=~~(t/3600),i=~~(t%3600/60),n=~~t%60;let s="";return e>0&&(s+=e+":"+(i<10?"0":"")),s+=i+":"+(n<10?"0":""),s+=""+n,s}(this.file.duration))}onImgError(t){this.image_errored=!0}onHoverResponse(){this.scrollSubject.next()}imageLoaded(t){this.image_loaded=!0}goToFile(){this.goToFileEmit.emit(this.file.id)}openSubscriptionInfoDialog(){this.dialog.open(xC,{data:{file:this.file},minWidth:"50vw"})}deleteAndRedownload(){this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!1).subscribe(t=>{this.reloadSubscription.emit(!0),this.openSnackBar(`Successfully deleted file: '${this.file.id}'`,"Dismiss.")})}deleteForever(){this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!0).subscribe(t=>{this.reloadSubscription.emit(!0),this.openSnackBar(`Successfully deleted file: '${this.file.id}'`,"Dismiss.")})}openSnackBar(t,e){this.snackBar.open(t,e,{duration:2e3})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(Pg),s.yc(By),s.yc(sh))},t.\u0275cmp=s.sc({type:t,selectors:[["app-subscription-file-card"]],inputs:{file:"file",sub:"sub",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{goToFileEmit:"goToFileEmit",reloadSubscription:"reloadSubscription"},decls:27,vars:5,consts:[[2,"position","relative","width","fit-content"],[1,"duration-time"],["mat-icon-button","",1,"menuButton",3,"matMenuTriggerFor"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["matRipple","",1,"example-card","mat-elevation-z6",3,"click"],[2,"padding","5px"],["class","img-div",4,"ngIf"],[1,"max-two-lines"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"src","error"]],template:function(t,e){if(1&t&&(s.Dc(0,"div",0),s.Dc(1,"div",1),s.Bc(2),s.Hc(3,lE),s.Ac(),s.sd(4),s.Cc(),s.Dc(5,"button",2),s.Dc(6,"mat-icon"),s.sd(7,"more_vert"),s.Cc(),s.Cc(),s.Dc(8,"mat-menu",null,3),s.Dc(10,"button",4),s.Nc("click",(function(){return e.openSubscriptionInfoDialog()})),s.Dc(11,"mat-icon"),s.sd(12,"info"),s.Cc(),s.Bc(13),s.Hc(14,cE),s.Ac(),s.Cc(),s.Dc(15,"button",4),s.Nc("click",(function(){return e.deleteAndRedownload()})),s.Dc(16,"mat-icon"),s.sd(17,"restore"),s.Cc(),s.Bc(18),s.Hc(19,hE),s.Ac(),s.Cc(),s.qd(20,uE,5,0,"button",5),s.Cc(),s.Dc(21,"mat-card",6),s.Nc("click",(function(){return e.goToFile()})),s.Dc(22,"div",7),s.qd(23,mE,2,1,"div",8),s.Dc(24,"span",9),s.Dc(25,"strong"),s.sd(26),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()),2&t){const t=s.ed(9);s.kc(4),s.ud("\xa0",e.formattedDuration," "),s.kc(1),s.Xc("matMenuTriggerFor",t),s.kc(15),s.Xc("ngIf",e.sub.archive&&e.use_youtubedl_archive),s.kc(3),s.Xc("ngIf",!e.image_errored&&e.file.thumbnailURL),s.kc(3),s.td(e.file.title)}},directives:[ds,gm,ru,dm,am,ye.t,Gr,$n],styles:[".example-card[_ngcontent-%COMP%]{width:200px;height:200px;padding:0;cursor:pointer}.menuButton[_ngcontent-%COMP%]{right:0;top:-1px;position:absolute;z-index:999}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:200px;height:112.5px;-o-object-fit:cover;object-fit:cover}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{max-height:80px;padding:0;margin:32px 0 0 -5px;width:calc(100% + 10px)}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:5px;position:absolute}.duration-time[_ngcontent-%COMP%]{position:absolute;left:5px;top:5px;z-index:99999}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:175px!important}.image[_ngcontent-%COMP%]{width:175px}}"]}),t})();function gE(t,e){if(1&t&&(s.Dc(0,"h2",9),s.sd(1),s.Cc()),2&t){const t=s.Rc();s.kc(1),s.ud(" ",t.subscription.name," ")}}var fE;fE=$localize`:Subscription videos title␟a52dae09be10ca3a65da918533ced3d3f4992238␟8936704404804793618:Videos`;const bE=["placeholder",$localize`:Subscription videos search placeholder␟7e892ba15f2c6c17e83510e273b3e10fc32ea016␟4580988005648117665:Search`];function _E(t,e){if(1&t&&(s.Dc(0,"mat-option",25),s.sd(1),s.Cc()),2&t){const t=e.$implicit;s.Xc("value",t.value),s.kc(1),s.ud(" ",t.value.label," ")}}function yE(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div",26),s.Dc(1,"app-subscription-file-card",27),s.Nc("reloadSubscription",(function(){return s.id(t),s.Rc(2).getSubscription()}))("goToFileEmit",(function(e){return s.id(t),s.Rc(2).goToFile(e)})),s.Cc(),s.Cc()}if(2&t){const t=e.$implicit,i=s.Rc(2);s.kc(1),s.Xc("file",t)("sub",i.subscription)("use_youtubedl_archive",i.use_youtubedl_archive)}}function vE(t,e){if(1&t){const t=s.Ec();s.Dc(0,"div"),s.Dc(1,"div",10),s.Dc(2,"div",11),s.Dc(3,"div",12),s.Dc(4,"mat-select",13),s.Nc("ngModelChange",(function(e){return s.id(t),s.Rc().filterProperty=e}))("selectionChange",(function(e){return s.id(t),s.Rc().filterOptionChanged(e.value)})),s.qd(5,_E,2,2,"mat-option",14),s.Sc(6,"keyvalue"),s.Cc(),s.Cc(),s.Dc(7,"div",12),s.Dc(8,"button",15),s.Nc("click",(function(){return s.id(t),s.Rc().toggleModeChange()})),s.Dc(9,"mat-icon"),s.sd(10),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.zc(11,"div",16),s.Dc(12,"div",16),s.Dc(13,"h4",17),s.Hc(14,fE),s.Cc(),s.Cc(),s.Dc(15,"div",18),s.Dc(16,"mat-form-field",19),s.Dc(17,"input",20),s.Ic(18,bE),s.Nc("focus",(function(){return s.id(t),s.Rc().searchIsFocused=!0}))("blur",(function(){return s.id(t),s.Rc().searchIsFocused=!1}))("ngModelChange",(function(e){return s.id(t),s.Rc().search_text=e}))("ngModelChange",(function(e){return s.id(t),s.Rc().onSearchInputChanged(e)})),s.Cc(),s.Dc(19,"mat-icon",21),s.sd(20,"search"),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Dc(21,"div",22),s.Dc(22,"div",23),s.qd(23,yE,2,3,"div",24),s.Cc(),s.Cc(),s.Cc()}if(2&t){const t=s.Rc();s.kc(4),s.Xc("ngModel",t.filterProperty),s.kc(1),s.Xc("ngForOf",s.Tc(6,6,t.filterProperties)),s.kc(5),s.td(t.descendingMode?"arrow_downward":"arrow_upward"),s.kc(6),s.Xc("ngClass",t.searchIsFocused?"search-bar-focused":"search-bar-unfocused"),s.kc(1),s.Xc("ngModel",t.search_text),s.kc(6),s.Xc("ngForOf",t.filtered_files)}}function wE(t,e){1&t&&s.zc(0,"mat-spinner",28),2&t&&s.Xc("diameter",50)}let kE=(()=>{class t{constructor(t,e,i){this.postsService=t,this.route=e,this.router=i,this.id=null,this.subscription=null,this.files=null,this.filtered_files=null,this.use_youtubedl_archive=!1,this.search_mode=!1,this.search_text="",this.searchIsFocused=!1,this.descendingMode=!0,this.filterProperties={upload_date:{key:"upload_date",label:"Upload Date",property:"upload_date"},name:{key:"name",label:"Name",property:"title"},file_size:{key:"file_size",label:"File Size",property:"size"},duration:{key:"duration",label:"Duration",property:"duration"}},this.filterProperty=this.filterProperties.upload_date,this.downloading=!1}ngOnInit(){this.route.snapshot.paramMap.get("id")&&(this.id=this.route.snapshot.paramMap.get("id"),this.getSubscription(),this.getConfig());const t=localStorage.getItem("filter_property");t&&this.filterProperties[t]&&(this.filterProperty=this.filterProperties[t])}goBack(){this.router.navigate(["/subscriptions"])}getSubscription(){this.postsService.getSubscription(this.id).subscribe(t=>{this.subscription=t.subscription,this.files=t.files,this.search_mode?this.filterFiles(this.search_text):this.filtered_files=this.files,this.filterByProperty(this.filterProperty.property)})}getConfig(){this.postsService.loadNavItems().subscribe(t=>{this.use_youtubedl_archive=(this.postsService.debugMode?t:t.config_file).YoutubeDLMaterial.Subscriptions.subscriptions_use_youtubedl_archive})}goToFile(t){localStorage.setItem("player_navigator",this.router.url),this.router.navigate(["/player",{fileNames:t,type:"subscription",subscriptionName:this.subscription.name,subPlaylist:this.subscription.isPlaylist}])}onSearchInputChanged(t){t.length>0?(this.search_mode=!0,this.filterFiles(t)):this.search_mode=!1}filterFiles(t){const e=t.toLowerCase();this.filtered_files=this.files.filter(t=>t.id.toLowerCase().includes(e))}filterByProperty(t){this.filtered_files=this.filtered_files.sort(this.descendingMode?(e,i)=>e[t]>i[t]?-1:1:(e,i)=>e[t]>i[t]?1:-1)}filterOptionChanged(t){this.filterByProperty(t.property),localStorage.setItem("filter_property",t.key)}toggleModeChange(){this.descendingMode=!this.descendingMode,this.filterByProperty(this.filterProperty.property)}downloadContent(){const t=[];for(let e=0;e{this.downloading=!1,saveAs(t,this.subscription.name+".zip")},t=>{console.log(t),this.downloading=!1})}}return t.\u0275fac=function(e){return new(e||t)(s.yc(By),s.yc(a_),s.yc(my))},t.\u0275cmp=s.sc({type:t,selectors:[["app-subscription"]],decls:13,vars:4,consts:[[2,"margin-top","14px"],["mat-icon-button","",1,"back-button",3,"click"],[2,"margin-bottom","15px"],["style","text-align: center;",4,"ngIf"],[2,"width","80%","margin","0 auto"],[4,"ngIf"],["color","primary","mat-fab","",1,"save-button",3,"disabled","click"],[1,"save-icon"],["class","spinner",3,"diameter",4,"ngIf"],[2,"text-align","center"],[1,"flex-grid"],[1,"filter-select-parent"],[2,"display","inline-block"],[2,"width","110px",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["mat-icon-button","",3,"click"],[1,"col"],[2,"text-align","center","margin-bottom","20px"],[1,"col",2,"top","-12px"],["color","accent",1,"search-bar",3,"ngClass"],["type","text","matInput","",1,"search-input",3,"ngModel","focus","blur","ngModelChange",6,"placeholder"],["matSuffix",""],[1,"container"],[1,"row","justify-content-center"],["class","col-6 col-lg-4 mb-2 mt-2 sub-file-col",4,"ngFor","ngForOf"],[3,"value"],[1,"col-6","col-lg-4","mb-2","mt-2","sub-file-col"],[3,"file","sub","use_youtubedl_archive","reloadSubscription","goToFileEmit"],[1,"spinner",3,"diameter"]],template:function(t,e){1&t&&(s.Dc(0,"div",0),s.Dc(1,"button",1),s.Nc("click",(function(){return e.goBack()})),s.Dc(2,"mat-icon"),s.sd(3,"arrow_back"),s.Cc(),s.Cc(),s.Dc(4,"div",2),s.qd(5,gE,2,1,"h2",3),s.Cc(),s.zc(6,"mat-divider",4),s.zc(7,"br"),s.qd(8,vE,24,8,"div",5),s.Dc(9,"button",6),s.Nc("click",(function(){return e.downloadContent()})),s.Dc(10,"mat-icon",7),s.sd(11,"save"),s.Cc(),s.qd(12,wE,1,1,"mat-spinner",8),s.Cc(),s.Cc()),2&t&&(s.kc(5),s.Xc("ngIf",e.subscription),s.kc(3),s.Xc("ngIf",e.subscription),s.kc(1),s.Xc("disabled",e.downloading),s.kc(3),s.Xc("ngIf",e.downloading))},directives:[ds,ru,ye.t,ku,Tp,Ts,ja,ye.s,Rc,ye.q,vu,Ds,Sc,es,pE,ep],pipes:[ye.l],styles:[".sub-file-col[_ngcontent-%COMP%]{max-width:240px}.back-button[_ngcontent-%COMP%]{float:left;position:absolute;left:15px}.filter-select-parent[_ngcontent-%COMP%]{position:absolute;top:0;left:20px;display:block}.search-bar[_ngcontent-%COMP%]{transition:all .5s ease;position:relative;float:right}.search-bar-unfocused[_ngcontent-%COMP%]{width:100px}.search-input[_ngcontent-%COMP%]{transition:all .5s ease}.search-bar-focused[_ngcontent-%COMP%]{width:100%}.flex-grid[_ngcontent-%COMP%]{width:100%;display:block;position:relative}.col[_ngcontent-%COMP%]{width:33%;display:inline-block}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:absolute;bottom:25px}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}"]}),t})();const xE=[{path:"home",component:mC},{path:"player",component:CD},{path:"subscriptions",component:oE},{path:"subscription",component:kE},{path:"",redirectTo:"/home",pathMatch:"full"}];let CE=(()=>{class t{}return t.\u0275mod=s.wc({type:t}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},imports:[[Ry.forRoot(xE,{useHash:!0})],Ry]}),t})();var SE;SE=$localize`:Download ID␟ca3dbbc7f3e011bffe32a10a3ea45cc84f30ecf1␟1074038423230804155:ID:`;let DE=(()=>{class t{constructor(){this.download={uid:null,type:"audio",percent_complete:0,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!1},this.cancelDownload=new s.s,this.queueNumber=null,this.url_id=null}ngOnInit(){if(this.download&&this.download.url&&this.download.url.includes("youtube")){const t=this.download.is_playlist?6:3,e=this.download.url.indexOf(this.download.is_playlist?"?list=":"?v=")+t;this.url_id=this.download.url.substring(e,this.download.url.length)}}cancelTheDownload(){this.cancelDownload.emit(this.download)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.sc({type:t,selectors:[["app-download-item"]],inputs:{download:"download",queueNumber:"queueNumber"},outputs:{cancelDownload:"cancelDownload"},decls:16,vars:10,consts:[[3,"rowHeight","cols"],[3,"colspan"],[2,"display","inline-block","margin-right","5px","position","relative","top","5px"],[2,"display","inline-block","text-align","center"],[2,"width","80%",3,"value","mode"],["mat-icon-button","","color","warn",3,"click"],["fontSet","material-icons-outlined"]],template:function(t,e){1&t&&(s.Dc(0,"div"),s.Dc(1,"mat-grid-list",0),s.Dc(2,"mat-grid-tile",1),s.Dc(3,"h5",2),s.sd(4),s.Cc(),s.Cc(),s.Dc(5,"mat-grid-tile",1),s.Dc(6,"div",3),s.Bc(7),s.Hc(8,SE),s.Ac(),s.sd(9),s.Cc(),s.Cc(),s.Dc(10,"mat-grid-tile",1),s.zc(11,"mat-progress-bar",4),s.Cc(),s.Dc(12,"mat-grid-tile",1),s.Dc(13,"button",5),s.Nc("click",(function(){return e.cancelTheDownload()})),s.Dc(14,"mat-icon",6),s.sd(15,"cancel"),s.Cc(),s.Cc(),s.Cc(),s.Cc(),s.Cc()),2&t&&(s.kc(1),s.Xc("rowHeight",50)("cols",24),s.kc(1),s.Xc("colspan",2),s.kc(2),s.ud("",e.queueNumber,"."),s.kc(1),s.Xc("colspan",6),s.kc(4),s.ud("\xa0",e.url_id,""),s.kc(1),s.Xc("colspan",13),s.kc(1),s.Xc("value",e.download.percent_complete)("mode",0===e.download.percent_complete?"indeterminate":"determinate"),s.kc(1),s.Xc("colspan",3))},directives:[nd,$h,Um,ds,ru],styles:[""]}),t})();var EE=i("2Yyj"),AE=i.n(EE);function OE({element:t}){return"video"===t.id?hC||uC:cC||dC}i.d(e,"isVisible",(function(){return OE})),i.d(e,"AppModule",(function(){return RE})),Object(ye.K)(AE.a,"es");let RE=(()=>{class t{}return t.\u0275mod=s.wc({type:t,bootstrap:[Gw]}),t.\u0275inj=s.vc({factory:function(e){return new(e||t)},providers:[By],imports:[[n.a,Re,In,pp,fr,wu,Mp,br,Ek,Hd,zg,Kr,Og,ms,mo,ig,ou,Ku,sd,zh,Xm,ip,Or,Un,bm,dh,yg,bm,Xc,zm,Af,dD,rD,mD,qS,GC.forRoot({isVisible:OE}),gS,Ry,CE]]}),t})();s.ld(mC,[ye.q,ye.r,ye.s,ye.t,ye.A,ye.w,ye.x,ye.y,ye.z,ye.u,ye.v,hp,mp,tn,qa,aa,ca,Ds,Xs,Js,xs,sa,la,Ys,Ts,Ms,nr,cr,dr,mr,sr,or,ja,za,Ta,hu,du,fc,Rc,wc,kc,xc,Cc,Sc,vu,mu,Tp,Ip,es,Kn,Ha,Ga,tr,Ya,Ja,Lg,Ng,Gr,Wr,Yr,Nr,Lr,zr,Br,Vr,qr,$r,Ur,jr,Hr,Xr,Ag,ds,us,oo,co,Yp,Kp,Wp,Qp,tg,Jp,ru,Lu,Fu,ju,zu,Mn,Bu,Vu,Hn,Yu,Wu,ku,nd,$h,Uh,Xh,Gh,Hh,Nh,Ph,Ih,Th,Fh,Mh,Ah,Um,tp,ep,Sr,Ar,$n,dm,am,gm,em,Jc,rh,oh,lh,ch,fg,pg,Vc,Hc,jc,Nm,Lm,Ef,Sf,xf,_f,vf,yf,lD,cD,hD,US,GS,WS,YS,KS,JS,QS,ZS,tD,eD,nD,sD,aD,uD,jS,HC,sS,oS,dS,cS,hS,uS,mS,pS,vy,py,gy,by,gb,Gw,ES,mC,CD,OS,qk,DE,oE,ND,kE,pE,HD,Ew,Gy,Nw,xC,uv],[ye.b,ye.G,ye.p,ye.k,ye.E,ye.g,ye.C,ye.F,ye.d,ye.f,ye.i,ye.j,ye.l,iD,dv])},xDdU:function(t,e,i){var n,s,a=i("4fRq"),r=i("I2ZF"),o=0,l=0;t.exports=function(t,e,i){var c=e&&i||0,h=e||[],d=(t=t||{}).node||n,u=void 0!==t.clockseq?t.clockseq:s;if(null==d||null==u){var m=a();null==d&&(d=n=[1|m[0],m[1],m[2],m[3],m[4],m[5]]),null==u&&(u=s=16383&(m[6]<<8|m[7]))}var p=void 0!==t.msecs?t.msecs:(new Date).getTime(),g=void 0!==t.nsecs?t.nsecs:l+1,f=p-o+(g-l)/1e4;if(f<0&&void 0===t.clockseq&&(u=u+1&16383),(f<0||p>o)&&void 0===t.nsecs&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=p,l=g,s=u;var b=(1e4*(268435455&(p+=122192928e5))+g)%4294967296;h[c++]=b>>>24&255,h[c++]=b>>>16&255,h[c++]=b>>>8&255,h[c++]=255&b;var _=p/4294967296*1e4&268435455;h[c++]=_>>>8&255,h[c++]=255&_,h[c++]=_>>>24&15|16,h[c++]=_>>>16&255,h[c++]=u>>>8|128,h[c++]=255&u;for(var y=0;y<6;++y)h[c+y]=d[y];return e||r(h)}},xk4V:function(t,e,i){var n=i("4fRq"),s=i("I2ZF");t.exports=function(t,e,i){var a=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var r=(t=t||{}).random||(t.rng||n)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e)for(var o=0;o<16;++o)e[a+o]=r[o];return e||s(r)}},zuWl:function(t,e,i){"use strict";!function(e){var i=/^(b|B)$/,n={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},s={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function a(t){var e,a,r,o,l,c,h,d,u,m,p,g,f,b,_,y=1>>((3&e)<<3)&255;return a}}},EcEN:function(t,e,n){var i=n("xDdU"),a=n("xk4V"),r=a;r.v1=i,r.v4=a,t.exports=r},I2ZF:function(t,e){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);t.exports=function(t,e){var i=e||0;return[n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]]].join("")}},Iab2:function(t,e,n){var i,a;void 0===(a="function"==typeof(i=function(){"use strict";function e(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){r(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function n(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,r=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(t,r,o){var s=a.URL||a.webkitURL,l=document.createElement("a");l.download=r=r||t.name||"download",l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?i(l):n(l.href)?e(t,r,o):i(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,a,r){if(a=a||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,r),a);else if(n(t))e(t,a,r);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){i(o)}))}}:function(t,n,i,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,i);var o="application/octet-stream"===t.type,s=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&s)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},c.readAsDataURL(t)}else{var u=a.URL||a.webkitURL,h=u.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout((function(){u.revokeObjectURL(h)}),4e4)}});a.saveAs=r.saveAs=r,t.exports=r})?i.apply(e,[]):i)||(t.exports=a)},XypG:function(t,e){},ZAI4:function(t,e,n){"use strict";n.r(e);var i=n("jhN1"),a=n("fXoL"),r=function t(){_classCallCheck(this,t)};function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:t,options:e}}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function u(t){return{type:6,styles:t,offset:null}}function h(t,e,n){return{type:0,name:t,styles:e,options:n}}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function m(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:n}}function p(t){Promise.resolve(null).then(t)}var g=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+n}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;p((function(){return t._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(t){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}(),v=function(){function t(e){var n=this;_classCallCheck(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var i=0,a=0,r=0,o=this.players.length;0==o?p((function(){return n._onFinish()})):this.players.forEach((function(t){t.onDone((function(){++i==o&&n._onFinish()})),t.onDestroy((function(){++a==o&&n._onDestroy()})),t.onStart((function(){++r==o&&n._onStart()}))})),this.totalTime=this.players.reduce((function(t,e){return Math.max(t,e.totalTime)}),0)}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(t){return t.init()}))}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(t){return t.play()}))}},{key:"pause",value:function(){this.players.forEach((function(t){return t.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(t){return t.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(t){return t.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(t){return t.destroy()})),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(t){return t.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach((function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)}))}},{key:"getPosition",value:function(){var t=0;return this.players.forEach((function(e){var n=e.getPosition();t=Math.min(n,t)})),t}},{key:"beforeDestroy",value:function(){this.players.forEach((function(t){t.beforeDestroy&&t.beforeDestroy()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}();function y(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function _(t){switch(t.length){case 0:return new g;case 1:return t[0];default:return new v(t)}}function b(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],l=-1,c=null;if(i.forEach((function(t){var n=t.offset,i=n==l,u=i&&c||{};Object.keys(t).forEach((function(n){var i=n,s=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,o),s){case"!":s=a[n];break;case"*":s=r[n];break;default:s=e.normalizeStyleValue(n,i,s,o)}u[i]=s})),i||s.push(u),c=u,l=n})),o.length){var u="\n - ";throw new Error("Unable to animate due to the following errors:".concat(u).concat(o.join(u)))}return s}function k(t,e,n,i){switch(e){case"start":t.onStart((function(){return i(n&&C(n,"start",t))}));break;case"done":t.onDone((function(){return i(n&&C(n,"done",t))}));break;case"destroy":t.onDestroy((function(){return i(n&&C(n,"destroy",t))}))}}function C(t,e,n){var i=n.totalTime,a=w(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(a._data=r),a}function w(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:n,toState:i,phaseName:a,totalTime:r,disabled:!!o}}function x(t,e,n){var i;return t instanceof Map?(i=t.get(e))||t.set(e,i=n):(i=t[e])||(i=t[e]=n),i}function O(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var S=function(t,e){return!1},D=function(t,e){return!1},E=function(t,e,n){return[]},A=y();(A||"undefined"!=typeof Element)&&(S=function(t,e){return t.contains(e)},D=function(){if(A||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:D}(),E=function(t,e,n){var i=[];if(n)i.push.apply(i,_toConsumableArray(t.querySelectorAll(e)));else{var a=t.querySelector(e);a&&i.push(a)}return i});var R=null,P=!1;function T(t){R||(R=("undefined"!=typeof document?document.body:null)||{},P=!!R.style&&"WebkitAppearance"in R.style);var e=!0;return R.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(!(e=t in R.style)&&P)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in R.style),e}var I=D,M=S,j=E;function L(t){var e={};return Object.keys(t).forEach((function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]})),e}var N,F=((N=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return T(t)}},{key:"matchesElement",value:function(t,e){return I(t,e)}},{key:"containsElement",value:function(t,e){return M(t,e)}},{key:"query",value:function(t,e,n){return j(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return n||""}},{key:"animate",value:function(t,e,n,i,a){return arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6],new g(n,i)}}]),t}()).\u0275fac=function(t){return new(t||N)},N.\u0275prov=a.uc({token:N,factory:N.\u0275fac}),N),z=function(){var t=function t(){_classCallCheck(this,t)};return t.NOOP=new F,t}();function B(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:V(parseFloat(e[1]),e[2])}function V(t,e){switch(e){case"s":return 1e3*t;default:return t}}function q(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var i,a=0,r="";if("string"==typeof t){var o=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return e.push('The provided timing value "'.concat(t,'" is invalid.')),{duration:0,delay:0,easing:""};i=V(parseFloat(o[1]),o[2]);var s=o[3];null!=s&&(a=V(parseFloat(s),o[4]));var l=o[5];l&&(r=l)}else i=t;if(!n){var c=!1,u=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),c=!0),a<0&&(e.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&e.splice(u,0,'The provided timing value "'.concat(t,'" is invalid.'))}return{duration:i,delay:a,easing:r}}(t,e,n)}function U(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}function H(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var i in t)n[i]=t[i];else U(t,n);return n}function X(t,e,n){return n?e+":"+n+";":""}function G(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var a=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==a||a.length<4)return n.push('The provided transition expression "'.concat(t,'" is not supported')),e;var r=a[1],o=a[2],s=a[3];e.push(lt(r,s)),"<"!=o[0]||"*"==r&&"*"==s||e.push(lt(s,r))}(t,a,i)})):a.push(n),a),animation:r,queryCount:e.queryCount,depCount:e.depCount,options:mt(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map((function(t){return at(n,t,e)})),options:mt(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,i=e.currentTime,a=0,r=t.steps.map((function(t){e.currentTime=i;var r=at(n,t,e);return a=Math.max(a,e.currentTime),r}));return e.currentTime=a,{type:3,steps:r,options:mt(t.options)}}},{key:"visitAnimate",value:function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return pt(q(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var a=pt(0,0,"");return a.dynamic=!0,a.strValue=i,a}return pt((n=n||q(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var a=t.styles?t.styles:u({});if(5==a.type)n=this.visitKeyframes(a,e);else{var r=t.styles,o=!1;if(!r){o=!0;var s={};i.easing&&(s.easing=i.easing),r=u(s)}e.currentTime+=i.duration+i.delay;var l=this.visitStyle(r,e);l.isEmptyStep=o,n=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?"*"==t?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)})):n.push(t.styles);var i=!1,a=null;return n.forEach((function(t){if(ft(t)){var e=t,n=e.easing;if(n&&(a=n,delete e.easing),!i)for(var r in e)if(e[r].toString().indexOf("{{")>=0){i=!0;break}}})),{type:6,styles:n,easing:a,offset:t.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,i=e.currentAnimateTimings,a=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(i){if(n._driver.validateStyleProperty(i)){var o,s,l,c,u,h=e.collectedStyles[e.currentQuerySelector],d=h[i],f=!0;d&&(r!=a&&r>=d.startTime&&a<=d.endTime&&(e.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(d.startTime,'ms" and "').concat(d.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(r,'ms" and "').concat(a,'ms"')),f=!1),r=d.startTime),f&&(h[i]={startTime:r,endTime:a}),e.options&&(o=t[i],s=e.options,l=e.errors,c=s.params||{},(u=J(o)).length&&u.forEach((function(t){c.hasOwnProperty(t)||l.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))})))}else e.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var a=0,r=[],o=!1,s=!1,l=0,c=t.steps.map((function(t){var i=n._makeStyleAst(t,e),c=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(ft(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(ft(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),u=0;return null!=c&&(a++,u=i.offset=c),s=s||u<0||u>1,o=o||u0&&a0?a==d?1:h*a:r[a],s=o*p;e.currentTime=f+m.delay+s,m.duration=s,n._validateStyleAst(t,e),t.offset=o,i.styles.push(t)})),i}},{key:"visitReference",value:function(t,e){return{type:8,animation:at(this,Y(t.animation),e),options:mt(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:mt(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:mt(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var a=_slicedToArray(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(ct,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(t){return".ng-trigger-"+t.substr(1)})).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),r=a[0],o=a[1];e.currentQuerySelector=n.length?n+" "+r:r,x(e.collectedStyles,e.currentQuerySelector,{});var s=at(this,Y(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:mt(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:q(t.timings,e.errors,!0);return{type:12,animation:at(this,Y(t.animation),e),timings:n,options:null}}}]),t}(),dt=function t(e){_classCallCheck(this,t),this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function ft(t){return!Array.isArray(t)&&"object"==typeof t}function mt(t){var e;return t?(t=U(t)).params&&(t.params=(e=t.params)?U(e):null):t={},t}function pt(t,e,n){return{duration:t,delay:e,easing:n}}function gt(t,e,n,i,a,r){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:a,delay:r,totalTime:a+r,easing:o,subTimeline:s}}var vt=function(){function t(){_classCallCheck(this,t),this._map=new Map}return _createClass(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,i=this._map.get(t);i||this._map.set(t,i=[]),(n=i).push.apply(n,_toConsumableArray(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),yt=new RegExp(":enter","g"),_t=new RegExp(":leave","g");function bt(t,e,n,i,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new kt).buildKeyframes(t,e,n,i,a,r,o,s,l,c)}var kt=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"buildKeyframes",value:function(t,e,n,i,a,r,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new vt;var u=new wt(t,e,l,i,a,c,[]);u.options=s,u.currentTimeline.setStyles([r],null,u.errors,s),at(this,n,u);var h=u.timelines.filter((function(t){return t.containsAnimation()}));if(h.length&&Object.keys(o).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([o],null,u.errors,s)}return h.length?h.map((function(t){return t.buildKeyframes()})):[gt(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),a=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);a!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var i=e.currentTimeline.currentTime,a=null!=n.duration?B(n.duration):null,r=null!=n.delay?B(n.delay):null;return 0!==a&&t.forEach((function(t){var n=e.appendInstructionToTimeline(t,a,r);i=Math.max(i,n.duration+n.delay)})),i}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),at(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,i=e.subContextCount,a=e,r=t.options;if(r&&(r.params||r.delay)&&((a=e.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Ct);var o=B(r.delay);a.delayNextStep(o)}t.steps.length&&(t.steps.forEach((function(t){return at(n,t,a)})),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>i&&a.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,i=[],a=e.currentTimeline.currentTime,r=t.options&&t.options.delay?B(t.options.delay):0;t.steps.forEach((function(o){var s=e.createSubContext(t.options);r&&s.delayNextStep(r),at(n,o,s),a=Math.max(a,s.currentTimeline.currentTime),i.push(s.currentTimeline)})),i.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(a),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return q(e.params?Q(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var a=t.style;5==a.type?this.visitKeyframes(a,e):(e.incrementTime(n.duration),this.visitStyle(a,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var a=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(a):n.setStyles(t.styles,a,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,a=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach((function(t){r.forwardTime((t.offset||0)*a),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+a),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,i=e.currentTimeline.currentTime,a=t.options||{},r=a.delay?B(a.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ct);var o=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!a.optional,e.errors);e.currentQueryTotal=s.length;var l=null;s.forEach((function(i,a){e.currentQueryIndex=a;var s=e.createSubContext(t.options,i);r&&s.delayNextStep(r),i===e.element&&(l=s.currentTimeline),at(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,i=e.currentTimeline,a=t.timings,r=Math.abs(a.duration),o=r*(e.currentQueryTotal-1),s=r*e.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var l=e.currentTimeline;s&&l.delayNextStep(s);var c=l.currentTime;at(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}]),t}(),Ct={},wt=function(){function t(e,n,i,a,r,o,s,l){_classCallCheck(this,t),this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=a,this._leaveClassName=r,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ct,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new xt(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(t,[{key:"updateOptions",value:function(t,e){var n=this;if(t){var i=t,a=this.options;null!=i.duration&&(a.duration=B(i.duration)),null!=i.delay&&(a.delay=B(i.delay));var r=i.params;if(r){var o=a.params;o||(o=this.options.params={}),Object.keys(r).forEach((function(t){e&&o.hasOwnProperty(t)||(o[t]=Q(r[t],o,n.errors))}))}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach((function(t){n[t]=e[t]}))}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,a=n||this.element,r=new t(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Ct,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},a=new Ot(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(a),i}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,i,a,r){var o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(yt,"."+this._enterClassName)).replace(_t,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),o.push.apply(o,_toConsumableArray(s))}return a||0!=o.length||r.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),o}},{key:"params",get:function(){return this.options.params}}]),t}(),xt=function(){function t(e,n,i,a){_classCallCheck(this,t),this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=a,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((function(t){e._backFill[t]=e._globalTimelineStyles[t]||"*",e._currentKeyframe[t]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,i){var a=this;e&&(this._previousKeyframe.easing=e);var r=i&&i.params||{},o=function(t,e){var n,i={};return t.forEach((function(t){"*"===t?(n=n||Object.keys(e)).forEach((function(t){i[t]="*"})):H(t,!1,i)})),i}(t,this._globalTimelineStyles);Object.keys(o).forEach((function(t){var e=Q(o[t],r,n);a._pendingStyles[t]=e,a._localTimelineStyles.hasOwnProperty(t)||(a._backFill[t]=a._globalTimelineStyles.hasOwnProperty(t)?a._globalTimelineStyles[t]:"*"),a._updateStyle(t,e)}))}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){t._currentKeyframe[n]=e[n]})),Object.keys(this._localTimelineStyles).forEach((function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])})))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach((function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach((function(n){var i=e._styleSummary[n],a=t._styleSummary[n];(!i||a.time>i.time)&&e._updateStyle(n,a.value)}))}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,a=[];this._keyframes.forEach((function(r,o){var s=H(r,!0);Object.keys(s).forEach((function(t){var i=s[t];"!"==i?e.add(t):"*"==i&&n.add(t)})),i||(s.offset=o/t.duration),a.push(s)}));var r=e.size?Z(e.values()):[],o=n.size?Z(n.values()):[];if(i){var s=a[0],l=U(s);s.offset=0,l.offset=1,a=[s,l]}return gt(this.element,a,r,o,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}}]),t}(),Ot=function(t){function e(t,n,i,a,r,o){var s,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,e),(s=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n,o.delay))).element=n,s.keyframes=i,s.preStyleProps=a,s.postStyleProps=r,s._stretchStartingKeyframe=l,s.timings={duration:o.duration,delay:o.delay,easing:o.easing},s}return _inherits(e,t),_createClass(e,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,a=e.easing;if(this._stretchStartingKeyframe&&n){var r=[],o=i+n,s=n/o,l=H(t[0],!1);l.offset=0,r.push(l);var c=H(t[0],!1);c.offset=St(s),r.push(c);for(var u=t.length-1,h=1;h<=u;h++){var d=H(t[h],!1);d.offset=St((n+d.offset*i)/o),r.push(d)}i=o,n=0,a="",t=r}return gt(this.element,t,this.preStyleProps,this.postStyleProps,i,n,a,!0)}}]),e}(xt);function St(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var Dt=function t(){_classCallCheck(this,t)},Et=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{key:"normalizePropertyName",value:function(t,e){return et(t)}},{key:"normalizeStyleValue",value:function(t,e,n,i){var a="",r=n.toString().trim();if(At[e]&&0!==n&&"0"!==n)if("number"==typeof n)a="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&i.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return r+a}}]),e}(Dt),At=function(t){var e={};return t.forEach((function(t){return 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 Rt(t,e,n,i,a,r,o,s,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:a,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}var Pt={},Tt=function(){function t(e,n,i){_classCallCheck(this,t),this._triggerName=e,this.ast=n,this._stateStyles=i}return _createClass(t,[{key:"match",value:function(t,e,n,i){return function(t,e,n,i,a){return t.some((function(t){return t(e,n,i,a)}))}(this.ast.matchers,t,e,n,i)}},{key:"buildStyles",value:function(t,e,n){var i=this._stateStyles["*"],a=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return a?a.buildStyles(e,n):r}},{key:"build",value:function(t,e,n,i,a,r,o,s,l,c){var u=[],h=this.ast.options&&this.ast.options.params||Pt,d=this.buildStyles(n,o&&o.params||Pt,u),f=s&&s.params||Pt,m=this.buildStyles(i,f,u),p=new Set,g=new Map,v=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),f)},b=c?[]:bt(t,e,this.ast.animation,a,r,d,m,_,l,u),k=0;if(b.forEach((function(t){k=Math.max(t.duration+t.delay,k)})),u.length)return Rt(e,this._triggerName,n,i,y,d,m,[],[],g,v,k,u);b.forEach((function(t){var n=t.element,i=x(g,n,{});t.preStyleProps.forEach((function(t){return i[t]=!0}));var a=x(v,n,{});t.postStyleProps.forEach((function(t){return a[t]=!0})),n!==e&&p.add(n)}));var C=Z(p.values());return Rt(e,this._triggerName,n,i,y,d,m,b,C,g,v,k)}}]),t}(),It=function(){function t(e,n){_classCallCheck(this,t),this.styles=e,this.defaultParams=n}return _createClass(t,[{key:"buildStyles",value:function(t,e){var n={},i=U(this.defaultParams);return Object.keys(t).forEach((function(e){var n=t[e];null!=n&&(i[e]=n)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var a=t;Object.keys(a).forEach((function(t){var r=a[t];r.length>1&&(r=Q(r,i,e)),n[t]=r}))}})),n}}]),t}(),Mt=function(){function t(e,n){var i=this;_classCallCheck(this,t),this.name=e,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(t){i.states[t.name]=new It(t.style,t.options&&t.options.params||{})})),jt(this.states,"true","1"),jt(this.states,"false","0"),n.transitions.forEach((function(t){i.transitionFactories.push(new Tt(e,t,i.states))})),this.fallbackTransition=new Tt(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(t,[{key:"matchTransition",value:function(t,e,n,i){return this.transitionFactories.find((function(a){return a.match(t,e,n,i)}))||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),t}();function jt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Lt=new vt,Nt=function(){function t(e,n,i){_classCallCheck(this,t),this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return _createClass(t,[{key:"register",value:function(t,e){var n=[],i=ut(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[t]=i}},{key:"_buildPlayer",value:function(t,e,n){var i=t.element,a=b(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,a,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=this._animations[t],s=new Map;if(o?(n=bt(this._driver,e,o,"ng-enter","ng-leave",{},{},a,Lt,r)).forEach((function(t){var e=x(s,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(r.push("The requested animation doesn't exist or has already been destroyed"),n=[]),r.length)throw new Error("Unable to create the animation due to the following errors: ".concat(r.join("\n")));s.forEach((function(t,e){Object.keys(t).forEach((function(n){t[n]=i._driver.computeStyle(e,n,"*")}))}));var l=_(n.map((function(t){var e=s.get(t.element);return i._buildPlayer(t,{},e)})));return this._playersById[t]=l,l.onDestroy((function(){return i.destroy(t)})),this.players.push(l),l}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,n,i){var a=w(e,"","","");return k(this._getPlayer(t),n,a,i),function(){}}},{key:"command",value:function(t,e,n,i){if("register"!=n)if("create"!=n){var a=this._getPlayer(t);switch(n){case"play":a.play();break;case"pause":a.pause();break;case"reset":a.reset();break;case"restart":a.restart();break;case"finish":a.finish();break;case"init":a.init();break;case"setPosition":a.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])}}]),t}(),Ft=[],zt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Bt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,t),this.namespaceId=n;var i,a=e&&e.hasOwnProperty("value");if(this.value=null!=(i=a?e.value:e)?i:null,a){var r=U(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return _createClass(t,[{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach((function(t){null==n[t]&&(n[t]=e[t])}))}}},{key:"params",get:function(){return this.options.params}}]),t}(),qt=new Vt("void"),Ut=function(){function t(e,n,i){_classCallCheck(this,t),this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Kt(n,this._hostClassName)}return _createClass(t,[{key:"listen",value:function(t,e,n,i){var a,r=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(a=n)&&"done"!=a)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var o=x(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};o.push(s);var l=x(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(Kt(t,"ng-trigger"),Kt(t,"ng-trigger-"+e),l[e]=qt),function(){r._engine.afterFlush((function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),r._triggers[e]||delete l[e]}))}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var i=this,a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=this._getTrigger(e),o=new Xt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Kt(t,"ng-trigger"),Kt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var l=s[e],c=new Vt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s[e]=c,l||(l=qt),"void"===c.value||l.value!==c.value){var u=x(this._engine.playersByElement,t,[]);u.forEach((function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()}));var h=r.matchTransition(l.value,c.value,t,c.params),d=!1;if(!h){if(!a)return;h=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:l,toState:c,player:o,isFallbackTransition:d}),d||(Kt(t,"ng-animate-queued"),o.onStart((function(){Jt(t,"ng-animate-queued")}))),o.onDone((function(){var e=i.players.indexOf(o);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var a=n.indexOf(o);a>=0&&n.splice(a,1)}})),this.players.push(o),u.push(o),o}if(!function(t,e){var n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(var a=0;a=0){for(var i=!1,a=n;a>=0;a--)if(this.driver.containsElement(this._namespaceList[a].hostElement,e)){this._namespaceList.splice(a+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}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush((function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return i.destroy(e)}))}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),a=0;a=0&&this.collectedLeaveElements.splice(r,1)}if(t){var o=this._fetchNamespace(t);o&&o.insertNode(e,n)}i&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Kt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Jt(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,n,i){if(Gt(e)){var a=t?this._fetchNamespace(t):null;if(a?a.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var r=this.namespacesByHostElement.get(e);r&&r.id!==t&&r.removeNode(e,i)}}else this._onRemovalComplete(e,i)}},{key:"markElementAsRemoved",value:function(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,i,a){return Gt(e)?this._fetchNamespace(t).listen(e,n,i,a):function(){}}},{key:"_buildInstruction",value:function(t,e,n,i,a){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,a)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach((function(t){return e.finishActiveQueriedAnimationOnElement(t)}))}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach((function(t){t.queued?t.markedForDestroy=!0:t.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach((function(t){return t.finish()}))}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise((function(e){if(t.players.length)return _(t.players).onDone((function(){return e()}));e()}))}},{key:"processLeaveNode",value:function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=zt,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach((function(t){e.markElementAsDisabled(t,!1)}))}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(e,n){return t._balanceNamespaceList(e,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;E--)this._namespaceList[E].drainQueuedTransitions(e).forEach((function(t){var e=t.player,r=t.element;if(S.push(e),n.collectedEnterElements.length){var u=r.__ng_removed;if(u&&u.setForMove)return void e.destroy()}var d=!h||!n.driver.containsElement(h,r),f=w.get(r),p=m.get(r),g=n._buildInstruction(t,i,p,f,d);if(!g.errors||!g.errors.length)return d?(e.onStart((function(){return $(r,g.fromStyles)})),e.onDestroy((function(){return W(r,g.toStyles)})),void a.push(e)):t.isFallbackTransition?(e.onStart((function(){return $(r,g.fromStyles)})),e.onDestroy((function(){return W(r,g.toStyles)})),void a.push(e)):(g.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),i.append(r,g.timelines),o.push({instruction:g,player:e,element:r}),g.queriedElements.forEach((function(t){return x(s,t,[]).push(e)})),g.preStyleProps.forEach((function(t,e){var n=Object.keys(t);if(n.length){var i=l.get(e);i||l.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}})),void g.postStyleProps.forEach((function(t,e){var n=Object.keys(t),i=c.get(e);i||c.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))})));D.push(g)}));if(D.length){var A=[];D.forEach((function(t){A.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach((function(t){return A.push("- ".concat(t,"\n"))}))})),S.forEach((function(t){return t.destroy()})),this.reportError(A)}var R=new Map,P=new Map;o.forEach((function(t){var e=t.element;i.has(e)&&(P.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,R))})),a.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){x(R,e,[]).push(t),t.destroy()}))}));var T=g.filter((function(t){return Zt(t,l,c)})),I=new Map;$t(I,this.driver,y,c,"*").forEach((function(t){Zt(t,l,c)&&T.push(t)}));var M=new Map;f.forEach((function(t,e){$t(M,n.driver,new Set(t),l,"!")})),T.forEach((function(t){var e=I.get(t),n=M.get(t);I.set(t,Object.assign(Object.assign({},e),n))}));var j=[],L=[],N={};o.forEach((function(t){var e=t.element,o=t.player,s=t.instruction;if(i.has(e)){if(u.has(e))return o.onDestroy((function(){return W(e,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void a.push(o);var l=N;if(P.size>1){for(var c=e,h=[];c=c.parentNode;){var d=P.get(c);if(d){l=d;break}h.push(c)}h.forEach((function(t){return P.set(t,l)}))}var f=n._buildAnimation(o.namespaceId,s,R,r,M,I);if(o.setRealPlayer(f),l===N)j.push(o);else{var m=n.playersByElement.get(l);m&&m.length&&(o.parentPlayer=_(m)),a.push(o)}}else $(e,s.fromStyles),o.onDestroy((function(){return W(e,s.toStyles)})),L.push(o),u.has(e)&&a.push(o)})),L.forEach((function(t){var e=r.get(t.element);if(e&&e.length){var n=_(e);t.setRealPlayer(n)}})),a.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var F=0;F0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new g(t.duration,t.delay)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach((function(e){e.players.forEach((function(e){e.queued&&t.push(e)}))})),t}}]),t}(),Xt=function(){function t(e,n,i){_classCallCheck(this,t),this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new g,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(n){e._queuedCallbacks[n].forEach((function(e){return k(t,n,void 0,e)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart((function(){return n.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))}},{key:"_queueEvent",value:function(t,e){x(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function Gt(t){return t&&1===t.nodeType}function Wt(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function $t(t,e,n,i,a){var r=[];n.forEach((function(t){return r.push(Wt(t))}));var o=[];i.forEach((function(n,i){var r={};n.forEach((function(t){var n=r[t]=e.computeStyle(i,t,a);n&&0!=n.length||(i.__ng_removed=Bt,o.push(i))})),t.set(i,r)}));var s=0;return n.forEach((function(t){return Wt(t,r[s++])})),o}function Yt(t,e){var n=new Map;if(t.forEach((function(t){return n.set(t,[])})),0==e.length)return n;var i=new Set(e),a=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var r=a.get(e);if(r)return r;var o=e.parentNode;return r=n.has(o)?o:i.has(o)?1:t(o),a.set(e,r),r}(t);1!==e&&n.get(e).push(t)})),n}function Kt(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Jt(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function Qt(t,e,n){_(n).onDone((function(){return t.processLeaveNode(e)}))}function Zt(t,e,n){var i=n.get(t);if(!i)return!1;var a=e.get(t);return a?i.forEach((function(t){return a.add(t)})):e.set(t,i),n.delete(t),!0}var te=function(){function t(e,n,i){var a=this;_classCallCheck(this,t),this.bodyNode=e,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Ht(e,n,i),this._timelineEngine=new Nt(e,n,i),this._transitionEngine.onRemovalComplete=function(t,e){return a.onRemovalComplete(t,e)}}return _createClass(t,[{key:"registerTrigger",value:function(t,e,n,i,a){var r=t+"-"+i,o=this._triggerCache[r];if(!o){var s=[],l=ut(this._driver,a,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));o=function(t,e){return new Mt(t,e)}(i,l),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}},{key:"register",value:function(t,e){this._transitionEngine.register(t,e)}},{key:"destroy",value:function(t,e){this._transitionEngine.destroy(t,e)}},{key:"onInsert",value:function(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}},{key:"onRemove",value:function(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}},{key:"disableAnimations",value:function(t,e){this._transitionEngine.markElementAsDisabled(t,e)}},{key:"process",value:function(t,e,n,i){if("@"==n.charAt(0)){var a=_slicedToArray(O(n),2),r=a[0],o=a[1];this._timelineEngine.command(r,e,o,i)}else this._transitionEngine.trigger(t,e,n,i)}},{key:"listen",value:function(t,e,n,i,a){if("@"==n.charAt(0)){var r=_slicedToArray(O(n),2),o=r[0],s=r[1];return this._timelineEngine.listen(o,e,s,a)}return this._transitionEngine.listen(t,e,n,i,a)}},{key:"flush",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function ee(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=ie(e[0]),e.length>1&&(i=ie(e[e.length-1]))):e&&(n=ie(e)),n||i?new ne(t,n,i):null}var ne=function(){var t=function(){function t(e,n,i){_classCallCheck(this,t),this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var a=t.initialStylesByElement.get(e);a||t.initialStylesByElement.set(e,a={}),this._initialStyles=a}return _createClass(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&W(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(W(this._element,this._initialStyles),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&($(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($(this._element,this._endStyles),this._endStyles=null),W(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function ie(t){for(var e=null,n=Object.keys(t),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),ce(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),t=this._element,e=this._name,n=he(t,"").split(","),(i=le(n,e))>=0&&(n.splice(i,1),ue(t,"",n.join(","))))}}]),t}();function oe(t,e,n){ue(t,"PlayState",n,se(t,e))}function se(t,e){var n=he(t,"");return n.indexOf(",")>0?le(n.split(","),e):le([n],e)}function le(t,e){for(var n=0;n=0)return n;return-1}function ce(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function ue(t,e,n,i){var a="animation"+e;if(null!=i){var r=t.style[a];if(r.length){var o=r.split(",");o[i]=n,n=o.join(",")}}t.style[a]=n}function he(t,e){return t.style["animation"+e]}var de=function(){function t(e,n,i,a,r,o,s,l){_classCallCheck(this,t),this.element=e,this.keyframes=n,this.animationName=i,this._duration=a,this._delay=r,this._finalStyles=s,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=a+r,this._buildStyler()}return _createClass(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new re(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return t.finish()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:rt(t.element,i))}))}this.currentSnapshot=e}}]),t}(),fe=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).element=t,i._startingStyles={},i.__initialized=!1,i._styles=L(n),i}return _inherits(e,t),_createClass(e,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(e){t._startingStyles[e]=t.element.style[e]})),_get(_getPrototypeOf(e.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(e){return t.element.style.setProperty(e,t._styles[e])})),_get(_getPrototypeOf(e.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)})),this._startingStyles=null,_get(_getPrototypeOf(e.prototype),"destroy",this).call(this))}}]),e}(g),me=function(){function t(){_classCallCheck(this,t),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return T(t)}},{key:"matchesElement",value:function(t,e){return I(t,e)}},{key:"containsElement",value:function(t,e){return M(t,e)}},{key:"query",value:function(t,e,n){return j(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map((function(t){return L(t)}));var i="@keyframes ".concat(e," {\n"),a="";n.forEach((function(t){a=" ";var e=parseFloat(t.offset);i+="".concat(a).concat(100*e,"% {\n"),a+=" ",Object.keys(t).forEach((function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+="".concat(a,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(a).concat(e,": ").concat(n,";\n"))}})),i+="".concat(a,"}\n")})),i+="}\n";var r=document.createElement("style");return r.innerHTML=i,r}},{key:"animate",value:function(t,e,n,i,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;o&&this._notifyFaultyScrubber();var s=r.filter((function(t){return t instanceof de})),l={};nt(n,i)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return l[t]=e[t]}))}));var c=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])}))})),e}(e=it(t,e,l));if(0==n)return new fe(t,c);var u="gen_css_kf_".concat(this._count++),h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);var d=ee(t,e),f=new de(t,e,u,n,i,a,c,d);return f.onDestroy((function(){var t;(t=h).parentNode.removeChild(t)})),f}},{key:"_notifyFaultyScrubber",value:function(){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)}}]),t}(),pe=function(){function t(e,n,i,a){_classCallCheck(this,t),this.element=e,this.keyframes=n,this.options=i,this._specialStyles=a,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return t._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:rt(t.element,n))})),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),t}(),ge=function(){function t(){_classCallCheck(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ve().toString()),this._cssKeyframesDriver=new me}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return T(t)}},{key:"matchesElement",value:function(t,e){return I(t,e)}},{key:"containsElement",value:function(t,e){return M(t,e)}},{key:"query",value:function(t,e,n){return j(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,i,a){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,a,r);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};a&&(s.easing=a);var l={},c=r.filter((function(t){return t instanceof pe}));nt(n,i)&&c.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return l[t]=e[t]}))}));var u=ee(t,e=it(t,e=e.map((function(t){return H(t,!1)})),l));return new pe(t,e,s,u)}}]),t}();function ve(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ye,_e=n("ofXK"),be=((ye=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._nextAnimationId=0,i._renderer=t.createRenderer(n.body,{id:"0",encapsulation:a.Y.None,styles:[],data:{animation:[]}}),i}return _inherits(e,t),_createClass(e,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?c(t):t;return we(this._renderer,null,e,"register",[n]),new ke(e,this._renderer)}}]),e}(r)).\u0275fac=function(t){return new(t||ye)(a.Jc(a.M),a.Jc(_e.e))},ye.\u0275prov=a.uc({token:ye,factory:ye.\u0275fac}),ye),ke=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._id=t,i._renderer=n,i}return _inherits(e,t),_createClass(e,[{key:"create",value:function(t,e){return new Ce(this._id,t,e||{},this._renderer)}}]),e}(function(){return function t(){_classCallCheck(this,t)}}()),Ce=function(){function t(e,n,i,a){_classCallCheck(this,t),this.id=e,this.element=n,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return _createClass(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i=0&&t1?e-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var 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}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(a){n=!0,i=!!a&&a||new Error(a)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var 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}}]),e}(function(t){function e(t,n){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))}return _inherits(e,t),_createClass(e,[{key:"schedule",value:function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),e}(je.a)),$e=function(){var t=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;_classCallCheck(this,t),this.SchedulerAction=e,this.now=n}return _createClass(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}]),t}();return t.now=function(){return Date.now()},t}(),Ye=function(t){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$e.now;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,(function(){return e.delegate&&e.delegate!==_assertThisInitialized(n)?e.delegate.now():i()})))).actions=[],n.active=!1,n.scheduled=void 0,n}return _inherits(e,t),_createClass(e,[{key:"schedule",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return e.delegate&&e.delegate!==this?e.delegate.schedule(t,n,i):_get(_getPrototypeOf(e.prototype),"schedule",this).call(this,t,n,i)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var 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}}}}]),e}($e),Ke=new Ye(We);function Je(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ke;return function(n){return n.lift(new Qe(t,e))}}var Qe=function(){function t(e,n){_classCallCheck(this,t),this.dueTime=e,this.scheduler=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Ze(t,this.dueTime,this.scheduler))}}]),t}(),Ze=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).dueTime=n,a.scheduler=i,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return _inherits(e,t),_createClass(e,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(tn,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),e}(Ve.a);function tn(t){t.debouncedNext()}function en(t,e){return function(n){return n.lift(new nn(t,e))}}var nn=function(){function t(e,n){_classCallCheck(this,t),this.predicate=e,this.thisArg=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new an(t,this.predicate,this.thisArg))}}]),t}(),an=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).predicate=n,a.thisArg=i,a.count=0,a}return _inherits(e,t),_createClass(e,[{key:"_next",value:function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}]),e}(Ve.a),rn=n("lJxs"),on=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),sn=n("HDdC"),ln=new sn.a((function(t){return t.complete()}));function cn(t){return t?function(t){return new sn.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):ln}function un(t){return function(e){return 0===t?cn():e.lift(new dn(t))}}var hn,dn=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new on}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new fn(t,this.total))}}]),t}(),fn=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).total=n,i.count=0,i}return _inherits(e,t),_createClass(e,[{key:"_next",value:function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}]),e}(Ve.a);function mn(t){return null!=t&&"false"!=="".concat(t)}function pn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function gn(t){return Array.isArray(t)?t:[t]}function vn(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function yn(t){return t instanceof a.q?t.nativeElement:t}try{hn="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(XT){hn=!1}var _n,bn,kn,Cn,wn,xn,On=((kn=function t(e){_classCallCheck(this,t),this._platformId=e,this.isBrowser=this._platformId?Object(_e.I)(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&&!hn)&&"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}).\u0275fac=function(t){return new(t||kn)(a.Jc(a.I,8))},kn.\u0275prov=Object(a.uc)({factory:function(){return new kn(Object(a.Jc)(a.I,8))},token:kn,providedIn:"root"}),kn),Sn=((bn=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:bn}),bn.\u0275inj=a.vc({factory:function(t){return new(t||bn)}}),bn),Dn=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function En(){if(_n)return _n;if("object"!=typeof document||!document)return _n=new Set(Dn);var t=document.createElement("input");return _n=new Set(Dn.filter((function(e){return t.setAttribute("type",e),t.type===e})))}function An(t){return function(){if(null==Cn&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Cn=!0}}))}finally{Cn=Cn||!1}return Cn}()?t:!!t.capture}function Rn(){if("object"!=typeof document||!document)return 0;if(null==wn){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),wn=0,0===t.scrollLeft&&(t.scrollLeft=1,wn=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return wn}function Pn(){if(null==xn){var t="undefined"!=typeof document?document.head:null;xn=!(!t||!t.createShadowRoot&&!t.attachShadow)}return xn}var Tn,In,Mn,jn,Ln=((jn=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}]),t}()).\u0275fac=function(t){return new(t||jn)},jn.\u0275prov=Object(a.uc)({factory:function(){return new jn},token:jn,providedIn:"root"}),jn),Nn=((Mn=function(){function t(e){_classCallCheck(this,t),this._mutationObserverFactory=e,this._observedElements=new Map}return _createClass(t,[{key:"ngOnDestroy",value:function(){var t=this;this._observedElements.forEach((function(e,n){return t._cleanupObserver(n)}))}},{key:"observe",value:function(t){var e=this,n=yn(t);return new sn.a((function(t){var i=e._observeElement(n).subscribe(t);return function(){i.unsubscribe(),e._unobserveElement(n)}}))}},{key:"_observeElement",value:function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new Me.a,n=this._mutationObserverFactory.create((function(t){return 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}},{key:"_unobserveElement",value:function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}},{key:"_cleanupObserver",value:function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,i=e.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(t)}}}]),t}()).\u0275fac=function(t){return new(t||Mn)(a.Jc(Ln))},Mn.\u0275prov=Object(a.uc)({factory:function(){return new Mn(Object(a.Jc)(Ln))},token:Mn,providedIn:"root"}),Mn),Fn=((In=function(){function t(e,n,i){_classCallCheck(this,t),this._contentObserver=e,this._elementRef=n,this._ngZone=i,this.event=new a.s,this._disabled=!1,this._currentSubscription=null}return _createClass(t,[{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular((function(){t._currentSubscription=(t.debounce?e.pipe(Je(t.debounce)):e).subscribe(t.event)}))}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=mn(t),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(t){this._debounce=pn(t),this._subscribe()}}]),t}()).\u0275fac=function(t){return new(t||In)(a.yc(Nn),a.yc(a.q),a.yc(a.F))},In.\u0275dir=a.tc({type:In,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),In),zn=((Tn=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Tn}),Tn.\u0275inj=a.vc({factory:function(t){return new(t||Tn)},providers:[Ln]}),Tn);function Bn(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var Vn,qn,Un=0,Hn=new Map,Xn=null,Gn=((Vn=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"describe",value:function(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Hn.set(e,{messageElement:e,referenceCount:0})):Hn.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}},{key:"removeDescription",value:function(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){var n=Hn.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e)}Xn&&0===Xn.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}}))}return _createClass(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;if(this._items.length&&this._items.some((function(t){return"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(He((function(e){return t._pressedLetters.push(e)})),Je(e),en((function(){return t._pressedLetters.length>0})),Object(rn.a)((function(){return t._pressedLetters.join("")}))).subscribe((function(e){for(var n=t._getItemsArray(),i=1;i-1}));switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||Be(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof a.K?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),t}(),$n=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),_get(_getPrototypeOf(e.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),e}(Wn),Yn=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments)))._origin="program",t}return _inherits(e,t),_createClass(e,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){_get(_getPrototypeOf(e.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),e}(Wn),Kn=((qn=function(){function t(e){_classCallCheck(this,t),this._platform=e}return _createClass(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(XT){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){var i=n&&n.nodeName.toLowerCase();if(-1===Qn(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===i)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var a=t.nodeName.toLowerCase(),r=Qn(t);if(t.hasAttribute("contenteditable"))return-1!==r;if("iframe"===a)return!1;if("audio"===a){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===a){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==a||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}},{key:"isFocusable",value:function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var 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")||Jn(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}]),t}()).\u0275fac=function(t){return new(t||qn)(a.Jc(On))},qn.\u0275prov=Object(a.uc)({factory:function(){return new qn(Object(a.Jc)(On))},token:qn,providedIn:"root"}),qn);function Jn(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Qn(t){if(!Jn(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var Zn,ti=function(){function t(e,n,i,a){var r=this,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,t),this._element=e,this._checker=n,this._ngZone=i,this._document=a,this._hasAttached=!1,this.startAnchorListener=function(){return r.focusLastTabbableElement()},this.endAnchorListener=function(){return r.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return _createClass(t,[{key:"destroy",value:function(){var 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}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),n=0;n=0;n--){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var 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}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(un(1)).subscribe(t)}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}}]),t}(),ei=((Zn=function(){function t(e,n,i){_classCallCheck(this,t),this._checker=e,this._ngZone=n,this._document=i}return _createClass(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new ti(t,this._checker,this._ngZone,this._document,e)}}]),t}()).\u0275fac=function(t){return new(t||Zn)(a.Jc(Kn),a.Jc(a.F),a.Jc(_e.e))},Zn.\u0275prov=Object(a.uc)({factory:function(){return new Zn(Object(a.Jc)(Kn),Object(a.Jc)(a.F),Object(a.Jc)(_e.e))},token:Zn,providedIn:"root"}),Zn);"undefined"!=typeof Element&∈var ni,ii,ai=new a.v("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),ri=new a.v("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),oi=((ni=function(){function t(e,n,i,a){_classCallCheck(this,t),this._ngZone=n,this._defaultOptions=a,this._document=i,this._liveElement=e||this._createLiveElement()}return _createClass(t,[{key:"announce",value:function(t){for(var e,n,i,a=this,r=this._defaultOptions,o=arguments.length,s=new Array(o>1?o-1:0),l=1;l1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return ze(null);var i=yn(t);if(this._elementInfo.has(i)){var a=this._elementInfo.get(i);return a.checkChildren=n,a.subject.asObservable()}var r={unlisten:function(){},checkChildren:n,subject:new Me.a};this._elementInfo.set(i,r),this._incrementMonitoredElementCount();var o=function(t){return e._onFocus(t,i)},s=function(t){return e._onBlur(t,i)};return this._ngZone.runOutsideAngular((function(){i.addEventListener("focus",o,!0),i.addEventListener("blur",s,!0)})),r.unlisten=function(){i.removeEventListener("focus",o,!0),i.removeEventListener("blur",s,!0)},r.subject.asObservable()}},{key:"stopMonitoring",value:function(t){var e=yn(t),n=this._elementInfo.get(e);n&&(n.unlisten(),n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._decrementMonitoredElementCount())}},{key:"focusVia",value:function(t,e,n){var i=yn(t);this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n)}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach((function(e,n){return t.stopMonitoring(n)}))}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_setClasses",value:function(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))}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular((function(){e._origin=t,e._originTimeoutId=setTimeout((function(){return e._origin=null}),1)}))}},{key:"_wasCausedByTouch",value:function(t){var e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===t.target)){var 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}}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run((function(){return t.next(e)}))}},{key:"_incrementMonitoredElementCount",value:function(){var t=this;1==++this._monitoredElementCount&&this._platform.isBrowser&&this._ngZone.runOutsideAngular((function(){document.addEventListener("keydown",t._documentKeydownListener,si),document.addEventListener("mousedown",t._documentMousedownListener,si),document.addEventListener("touchstart",t._documentTouchstartListener,si),window.addEventListener("focus",t._windowFocusListener)}))}},{key:"_decrementMonitoredElementCount",value:function(){--this._monitoredElementCount||(document.removeEventListener("keydown",this._documentKeydownListener,si),document.removeEventListener("mousedown",this._documentMousedownListener,si),document.removeEventListener("touchstart",this._documentTouchstartListener,si),window.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId))}}]),t}()).\u0275fac=function(t){return new(t||ii)(a.Jc(a.F),a.Jc(On))},ii.\u0275prov=Object(a.uc)({factory:function(){return new ii(Object(a.Jc)(a.F),Object(a.Jc)(On))},token:ii,providedIn:"root"}),ii);function ci(t){return 0===t.buttons}var ui,hi,di,fi,mi,pi=((hi=function(){function t(e,n){_classCallCheck(this,t),this._platform=e,this._document=n}return _createClass(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var 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}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var 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");var 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"))}}}]),t}()).\u0275fac=function(t){return new(t||hi)(a.Jc(On),a.Jc(_e.e))},hi.\u0275prov=Object(a.uc)({factory:function(){return new hi(Object(a.Jc)(On),Object(a.Jc)(_e.e))},token:hi,providedIn:"root"}),hi),gi=((ui=function t(e){_classCallCheck(this,t),e._applyBodyHighContrastModeCssClasses()}).\u0275mod=a.wc({type:ui}),ui.\u0275inj=a.vc({factory:function(t){return new(t||ui)(a.Jc(pi))},imports:[[Sn,zn]]}),ui),vi=new a.v("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(a.db)(_e.e)}}),yi=((mi=function(){function t(e){if(_classCallCheck(this,t),this.value="ltr",this.change=new a.s,e){var n=e.documentElement?e.documentElement.dir:null,i=(e.body?e.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}()).\u0275fac=function(t){return new(t||mi)(a.Jc(vi,8))},mi.\u0275prov=Object(a.uc)({factory:function(){return new mi(Object(a.Jc)(vi,8))},token:mi,providedIn:"root"}),mi),_i=((fi=function(){function t(){_classCallCheck(this,t),this._dir="ltr",this._isInitialized=!1,this.change=new a.s}return _createClass(t,[{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this.change.complete()}},{key:"dir",get:function(){return this._dir},set:function(t){var e=this._dir,n=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===n||"rtl"===n?n:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}},{key:"value",get:function(){return this.dir}}]),t}()).\u0275fac=function(t){return new(t||fi)},fi.\u0275dir=a.tc({type:fi,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[a.jc([{provide:yi,useExisting:fi}])]}),fi),bi=((di=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:di}),di.\u0275inj=a.vc({factory:function(t){return new(t||di)}}),di),ki=new a.W("9.1.2"),Ci=n("bHdf");function wi(){return Object(Ci.a)(1)}function xi(){return wi()(ze.apply(void 0,arguments))}function Oi(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return(function(t){function n(){var t,i;_classCallCheck(this,n);for(var a=arguments.length,r=new Array(a),o=0;o0?n:t}},{key:"localeChanges",get:function(){return this._localeChanges}}]),t}(),qi=new a.v("mat-date-formats");try{zi="undefined"!=typeof Intl}catch(XT){zi=!1}var Ui={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Hi=Wi(31,(function(t){return String(t+1)})),Xi={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Gi=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Wi(t,e){for(var n=Array(t),i=0;i11)throw Error('Invalid month index "'.concat(e,'". Month index has to be between 0 and 11.'));if(n<1)throw Error('Invalid date "'.concat(n,'". Date has to be greater than 0.'));var i=this._createDateWithOverflow(t,e,n);if(i.getMonth()!=e)throw Error('Invalid date "'.concat(n,'" for month with index "').concat(e,'".'));return i}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}},{key:"format",value:function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(zi){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}},{key:"addCalendarYears",value:function(t,e){return this.addCalendarMonths(t,12*e)}},{key:"addCalendarMonths",value:function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}},{key:"toIso8601",value:function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}},{key:"deserialize",value:function(t){if("string"==typeof t){if(!t)return null;if(Gi.test(t)){var n=new Date(t);if(this.isValid(n))return n}}return _get(_getPrototypeOf(e.prototype),"deserialize",this).call(this,t)}},{key:"isDateInstance",value:function(t){return t instanceof Date}},{key:"isValid",value:function(t){return!isNaN(t.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(t,e,n){var i=new Date(t,e,n);return t>=0&&t<100&&i.setFullYear(this.getYear(i)-1900),i}},{key:"_2digit",value:function(t){return("00"+t).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(t){return t.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(t,e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)}}]),e}(Vi)).\u0275fac=function(t){return new(t||Yi)(a.Jc(Bi,8),a.Jc(On))},Yi.\u0275prov=a.uc({token:Yi,factory:Yi.\u0275fac}),Yi),ta=(($i=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:$i}),$i.\u0275inj=a.vc({factory:function(t){return new(t||$i)},providers:[{provide:Vi,useClass:Zi}],imports:[[Sn]]}),$i),ea={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},na=((Qi=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Qi}),Qi.\u0275inj=a.vc({factory:function(t){return new(t||Qi)},providers:[{provide:qi,useValue:ea}],imports:[[ta]]}),Qi),ia=((Ji=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}()).\u0275fac=function(t){return new(t||Ji)},Ji.\u0275prov=Object(a.uc)({factory:function(){return new Ji},token:Ji,providedIn:"root"}),Ji),aa=((Ki=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ki)},Ki.\u0275dir=a.tc({type:Ki,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ki);function ra(t,e){t.changes.pipe(Oi(t)).subscribe((function(t){var n=t.length;oa(e,"mat-2-line",!1),oa(e,"mat-3-line",!1),oa(e,"mat-multi-line",!1),2===n||3===n?oa(e,"mat-".concat(n,"-line"),!0):n>3&&oa(e,"mat-multi-line",!0)}))}function oa(t,e,n){var i=t.nativeElement.classList;n?i.add(e):i.remove(e)}var sa,la,ca,ua,ha,da,fa,ma=((sa=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:sa}),sa.\u0275inj=a.vc({factory:function(t){return new(t||sa)},imports:[[Ii],Ii]}),sa),pa=function(){function t(e,n,i){_classCallCheck(this,t),this._renderer=e,this.element=n,this.config=i,this.state=3}return _createClass(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),ga={enterDuration:450,exitDuration:400},va=An({passive:!0}),ya=function(){function t(e,n,i,a){var r=this;_classCallCheck(this,t),this._target=e,this._ngZone=n,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._onMousedown=function(t){var e=ci(t),n=r._lastTouchStartEvent&&Date.now()2&&void 0!==arguments[2]?arguments[2]:{},a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},ga),i.animation);i.centered&&(t=a.left+a.width/2,e=a.top+a.height/2);var o=i.radius||function(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),a=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+a*a)}(t,e,a),s=t-a.left,l=e-a.top,c=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left="".concat(s-o,"px"),u.style.top="".concat(l-o,"px"),u.style.height="".concat(2*o,"px"),u.style.width="".concat(2*o,"px"),null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";var h=new pa(this,u,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone((function(){var t=h===n._mostRecentTransientRipple;h.state=1,i.persistent||t&&n._isPointerDown||h.fadeOut()}),c),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object.assign(Object.assign({},ga),t.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone((function(){t.state=3,n.parentNode.removeChild(n)}),i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach((function(t){return t.fadeOut()}))}},{key:"setupTriggerEvents",value:function(t){var e=this,n=yn(t);n&&n!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular((function(){e._triggerEvents.forEach((function(t,e){n.addEventListener(e,t,va)}))})),this._triggerElement=n)}},{key:"_runTimeoutOutsideZone",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular((function(){return setTimeout(t,e)}))}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&this._triggerEvents.forEach((function(e,n){t._triggerElement.removeEventListener(n,e,va)}))}}]),t}(),_a=new a.v("mat-ripple-global-options"),ba=((ha=function(){function t(e,n,i,a,r){_classCallCheck(this,t),this._elementRef=e,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new ya(this,n,e,i),"NoopAnimations"===r&&(this._globalOptions.animation={enterDuration:0,exitDuration:0})}return _createClass(t,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;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))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign({},this._globalOptions.animation),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),t}()).\u0275fac=function(t){return new(t||ha)(a.yc(a.q),a.yc(a.F),a.yc(On),a.yc(_a,8),a.yc(Pe,8))},ha.\u0275dir=a.tc({type:ha,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&a.oc("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"]}),ha),ka=((ua=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ua}),ua.\u0275inj=a.vc({factory:function(t){return new(t||ua)},imports:[[Ii,Sn],Ii]}),ua),Ca=((ca=function t(e){_classCallCheck(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1}).\u0275fac=function(t){return new(t||ca)(a.yc(Pe,8))},ca.\u0275cmp=a.sc({type:ca,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&a.oc("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}),ca),wa=((la=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:la}),la.\u0275inj=a.vc({factory:function(t){return new(t||la)}}),la),xa=Mi((function t(){_classCallCheck(this,t)})),Oa=0,Sa=((da=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments)))._labelId="mat-optgroup-label-".concat(Oa++),t}return _inherits(e,t),e}(xa)).\u0275fac=function(t){return Da(t||da)},da.\u0275cmp=a.sc({type:da,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(a.lc("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),a.oc("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[a.hc],ngContentSelectors:Di,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(a.Wc(Si),a.Dc(0,"label",0),a.sd(1),a.Vc(2),a.Cc(),a.Vc(3,1)),2&t&&(a.Xc("id",e._labelId),a.kc(1),a.ud("",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}),da),Da=a.Fc(Sa),Ea=0,Aa=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck(this,t),this.source=e,this.isUserInput=n},Ra=new a.v("MAT_OPTION_PARENT_COMPONENT"),Pa=((fa=function(){function t(e,n,i,r){_classCallCheck(this,t),this._element=e,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(Ea++),this.onSelectionChange=new a.s,this._stateChanges=new Me.a}return _createClass(t,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){13!==t.keyCode&&32!==t.keyCode||Be(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new Aa(this,t))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=mn(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),t}()).\u0275fac=function(t){return new(t||fa)(a.yc(a.q),a.yc(a.j),a.yc(Ra,8),a.yc(Sa,8))},fa.\u0275cmp=a.sc({type:fa,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&a.Nc("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(a.Gc("id",e.id),a.lc("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),a.oc("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:Ri,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&&(a.Wc(),a.qd(0,Ei,1,2,"mat-pseudo-checkbox",0),a.Dc(1,"span",1),a.Vc(2),a.Cc(),a.zc(3,"div",2)),2&t&&(a.Xc("ngIf",e.multiple),a.kc(3),a.Xc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[_e.t,ba,Ca],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}),fa);function Ta(t,e,n){if(n.length){for(var i=e.toArray(),a=n.toArray(),r=0,o=0;on+i?Math.max(0,a-i+e):n}var Ma,ja,La,Na,Fa,za=((Ma=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Ma}),Ma.\u0275inj=a.vc({factory:function(t){return new(t||Ma)},imports:[[ka,_e.c,wa]]}),Ma),Ba=new a.v("mat-label-global-options"),Va=["mat-button",""],qa=["*"],Ua=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Ha=ji(Mi(Li((function t(e){_classCallCheck(this,t),this._elementRef=e})))),Xa=((Na=function(t){function e(t,n,i){var a;_classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._focusMonitor=n,a._animationMode=i,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var r=!0,o=!1,s=void 0;try{for(var l,c=Ua[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value;a._hasHostAttributes(u)&&a._getHostElement().classList.add(u)}}catch(h){o=!0,s=h}finally{try{r||null==c.return||c.return()}finally{if(o)throw s}}return t.nativeElement.classList.add("mat-button-base"),a._focusMonitor.monitor(a._elementRef,!0),a.isRoundButton&&(a.color="accent"),a}return _inherits(e,t),_createClass(e,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),t,e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i*,.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}),Na),Ga=((La=function(t){function e(t,n,i){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,n,t,i))}return _inherits(e,t),_createClass(e,[{key:"_haltDisabledEvents",value:function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}]),e}(Xa)).\u0275fac=function(t){return new(t||La)(a.yc(li),a.yc(a.q),a.yc(Pe,8))},La.\u0275cmp=a.sc({type:La,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){1&t&&a.Nc("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(a.lc("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),a.oc("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[a.hc],attrs:Va,ngContentSelectors:qa,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&&(a.Wc(),a.Dc(0,"span",0),a.Vc(1),a.Cc(),a.zc(2,"div",1),a.zc(3,"div",2)),2&t&&(a.kc(2),a.oc("mat-button-ripple-round",e.isRoundButton||e.isIconButton),a.Xc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[ba],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}),La),Wa=((ja=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ja}),ja.\u0275inj=a.vc({factory:function(t){return new(t||ja)},imports:[[ka,Ii],Ii]}),ja),$a=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_classCallCheck(this,t),this._multiple=n,this._emitChanges=a,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Me.a,i&&i.length&&(n?i.forEach((function(t){return e._markSelected(t)})):this._markSelected(i[0]),this._selectedToEmit.length=0)}return _createClass(t,[{key:"select",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}},{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}}]),t}(),Ya=((Fa=function(){function t(){_classCallCheck(this,t),this._listeners=[]}return _createClass(t,[{key:"notify",value:function(t,e){var n=!0,i=!1,a=void 0;try{for(var r,o=this._listeners[Symbol.iterator]();!(n=(r=o.next()).done);n=!0)(0,r.value)(t,e)}catch(s){i=!0,a=s}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}}},{key:"listen",value:function(t){var e=this;return this._listeners.push(t),function(){e._listeners=e._listeners.filter((function(e){return t!==e}))}}},{key:"ngOnDestroy",value:function(){this._listeners=[]}}]),t}()).\u0275fac=function(t){return new(t||Fa)},Fa.\u0275prov=Object(a.uc)({factory:function(){return new Fa},token:Fa,providedIn:"root"}),Fa),Ka=n("DH7j"),Ja=n("XoHu"),Qa=n("Cfvw");function Za(){for(var t=arguments.length,e=new Array(t),n=0;nt?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return kr(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return kr(t.value)?null:xr.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){if(kr(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}}},{key:"pattern",value:function(e){return e?("string"==typeof e?(i="","^"!==e.charAt(0)&&(i+="^"),i+=e,"$"!==e.charAt(e.length-1)&&(i+="$"),n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(kr(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}):t.nullValidator;var n,i}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(Sr);return 0==e.length?null:function(t){return Er(function(t,e){return e.map((function(e){return e(t)}))}(t,e))}}},{key:"composeAsync",value:function(t){if(!t)return null;var e=t.filter(Sr);return 0==e.length?null:function(t){return Za(function(t,e){return e.map((function(e){return e(t)}))}(t,e).map(Dr)).pipe(Object(rn.a)(Er))}}}]),t}();function Sr(t){return null!=t}function Dr(t){var e=Object(a.Nb)(t)?Object(Qa.a)(t):t;if(!Object(a.Mb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Er(t){var e={};return t.forEach((function(t){e=null!=t?Object.assign(Object.assign({},e),t):e})),0===Object.keys(e).length?null:e}function Ar(t){return t.validate?function(e){return t.validate(e)}:t}function Rr(t){return t.validate?function(e){return t.validate(e)}:t}var Pr,Tr,Ir,Mr,jr={provide:rr,useExisting:Object(a.cb)((function(){return Lr})),multi:!0},Lr=((Pr=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}()).\u0275fac=function(t){return new(t||Pr)(a.yc(a.L),a.yc(a.q))},Pr.\u0275dir=a.tc({type:Pr,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&a.Nc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[a.jc([jr])]}),Pr),Nr={provide:rr,useExisting:Object(a.cb)((function(){return zr})),multi:!0},Fr=((Ir=function(){function t(){_classCallCheck(this,t),this._accessors=[]}return _createClass(t,[{key:"add",value:function(t,e){this._accessors.push([t,e])}},{key:"remove",value:function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}},{key:"select",value:function(t){var e=this;this._accessors.forEach((function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)}))}},{key:"_isSameGroup",value:function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}]),t}()).\u0275fac=function(t){return new(t||Ir)},Ir.\u0275prov=a.uc({token:Ir,factory:Ir.\u0275fac}),Ir),zr=((Tr=function(){function t(e,n,i,a){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this._registry=i,this._injector=a,this.onChange=function(){},this.onTouched=function(){}}return _createClass(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(vr),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}}},{key:"fireUncheck",value:function(t){this.writeValue(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){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 ')}}]),t}()).\u0275fac=function(t){return new(t||Tr)(a.yc(a.L),a.yc(a.q),a.yc(Fr),a.yc(a.w))},Tr.\u0275dir=a.tc({type:Tr,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&a.Nc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[a.jc([Nr])]}),Tr),Br={provide:rr,useExisting:Object(a.cb)((function(){return Vr})),multi:!0},Vr=((Mr=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}()).\u0275fac=function(t){return new(t||Mr)(a.yc(a.L),a.yc(a.q))},Mr.\u0275dir=a.tc({type:Mr,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&a.Nc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[a.jc([Br])]}),Mr),qr='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Ur='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Hr='\n
\n
\n \n
\n
',Xr=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"controlParentException",value:function(){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 ".concat(qr))}},{key:"ngModelGroupException",value:function(){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 '.concat(Ur,"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ").concat(Hr))}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ".concat(qr))}},{key:"groupParentException",value:function(){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 ".concat(Ur))}},{key:"arrayParentException",value:function(){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 });')}},{key:"disabledAttrWarning",value:function(){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 ")}},{key:"ngModelWarning",value:function(t){console.warn("\n It looks like you're using ngModel on the same form field as ".concat(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/").concat("formControl"===t?"FormControlDirective":"FormControlName","#use-with-ngmodel\n "))}}]),t}(),Gr={provide:rr,useExisting:Object(a.cb)((function(){return Kr})),multi:!0};function Wr(t,e){return null==t?"".concat(e):(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}var $r,Yr,Kr=((Yr=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=a.Ob}return _createClass(t,[{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=Wr(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var a=n.selectedOptions,r=0;r1?"path: '".concat(t.path.join(" -> "),"'"):t.path[0]?"name: '".concat(t.path,"'"):"unspecified name attribute",new Error("".concat(e," ").concat(n))}function uo(t){return null!=t?Or.compose(t.map(Ar)):null}function ho(t){return null!=t?Or.composeAsync(t.map(Rr)):null}function fo(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(a.Ob)(e,n.currentValue)}var mo=[sr,Vr,Lr,Kr,no,zr];function po(t,e){t._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}))}function go(t,e){if(!e)return null;Array.isArray(e)||co(t,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,a=void 0;return e.forEach((function(e){var r;e.constructor===ur?n=e:(r=e,mo.some((function(t){return r.constructor===t}))?(i&&co(t,"More than one built-in value accessor matches form control with"),i=e):(a&&co(t,"More than one custom value accessor matches form control with"),a=e))})),a||i||n||(co(t,"No valid value accessor for form control with"),null)}function vo(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function yo(t,e,n,i){Object(a.eb)()&&"never"!==i&&((null!==i&&"once"!==i||e._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(Xr.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function _o(t){var e=ko(t)?t.validators:t;return Array.isArray(e)?uo(e):e||null}function bo(t,e){var n=ko(e)?e.asyncValidators:t;return Array.isArray(n)?ho(n):n||null}function ko(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var Co,wo,xo,Oo,So,Do,Eo,Ao,Ro,Po=function(){function t(e,n){_classCallCheck(this,t),this.validator=e,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _createClass(t,[{key:"setValidators",value:function(t){this.validator=_o(t)}},{key:"setAsyncValidators",value:function(t){this.asyncValidator=bo(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(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((function(t){return t(!0)}))}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(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((function(t){return t(!1)}))}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=Dr(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return e.setErrors(n,{emitEvent:t})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(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;var i=t;return e.forEach((function(t){i=i instanceof Io?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof Mo&&i.at(t)||null})),i}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new a.s,this.statusChanges=new a.s}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls((function(e){return e.status===t}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(t){return t.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(t){return t.touched}))}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){ko(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}}]),t}(),To=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,_o(i),bo(a,i))))._onChange=[],t._applyFormState(n),t._setUpdateStrategy(i),t.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t._initObservables(),t}return _inherits(e,t),_createClass(e,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(t){return t(e.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(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}}]),e}(Po),Io=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,_o(n),bo(i,n)))).controls=t,a._initObservables(),a._setUpdateStrategy(n),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}return _inherits(e,t),_createClass(e,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach((function(i){e._throwIfControlMissing(i),e.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(i){e.controls[i]&&e.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof To?e.value:e.getRawValue(),t}))}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach((function(n){return t(e.controls[n],n)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){var e=this,n=!1;return this._forEachChild((function(i,a){n=n||e.contains(a)&&t(i)})),n}},{key:"_reduceValue",value:function(){var t=this;return this._reduceChildren({},(function(e,n,i){return(n.enabled||t.disabled)&&(e[i]=n.value),e}))}},{key:"_reduceChildren",value:function(t,e){var n=t;return this._forEachChild((function(t,i){n=e(n,t,i)})),n}},{key:"_allControlsDisabled",value:function(){for(var t=0,e=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),e}(Po),Mo=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,_o(n),bo(i,n)))).controls=t,a._initObservables(),a._setUpdateStrategy(n),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}return _inherits(e,t),_createClass(e,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach((function(t,i){e._throwIfControlMissing(i),e.at(i).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach((function(t,i){e.at(i)&&e.at(i).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map((function(t){return t instanceof To?t.value:t.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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 ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach((function(e,n){t(e,n)}))}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))}},{key:"_anyControls",value:function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var t=!0,e=!1,n=void 0;try{for(var i,a=this.controls[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){if(i.value.enabled)return!1}}catch(r){e=!0,n=r}finally{try{t||null==a.return||a.return()}finally{if(e)throw n}}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),e}(Po),jo={provide:dr,useExisting:Object(a.cb)((function(){return No}))},Lo=Promise.resolve(null),No=((wo=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).submitted=!1,i._directives=[],i.ngSubmit=new a.s,i.form=new Io({},uo(t),ho(n)),i}return _inherits(e,t),_createClass(e,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;Lo.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),ro(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;Lo.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),vo(e._directives,t)}))}},{key:"addFormGroup",value:function(t){var e=this;Lo.then((function(){var n=e._findContainer(t.path),i=new Io({});so(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;Lo.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)}))}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;Lo.then((function(){n.form.get(t.path).setValue(e)}))}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,po(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),e}(dr)).\u0275fac=function(t){return new(t||wo)(a.yc(Cr,10),a.yc(wr,10))},wo.\u0275dir=a.tc({type:wo,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&a.Nc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a.jc([jo]),a.hc]}),wo),Fo=((Co=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return ao(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return uo(this._validators)}},{key:"asyncValidator",get:function(){return ho(this._asyncValidators)}}]),e}(dr)).\u0275fac=function(t){return zo(t||Co)},Co.\u0275dir=a.tc({type:Co,features:[a.hc]}),Co),zo=a.Fc(Fo),Bo=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"modelParentException",value:function(){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 '.concat(qr,'\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 '))}},{key:"formGroupNameException",value:function(){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 ".concat(Ur,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(Hr))}},{key:"missingNameException",value:function(){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: ')}},{key:"modelGroupParentException",value:function(){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 ".concat(Ur,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(Hr))}}]),t}(),Vo={provide:dr,useExisting:Object(a.cb)((function(){return qo}))},qo=((xo=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._parent=t,a._validators=n,a._asyncValidators=i,a}return _inherits(e,t),_createClass(e,[{key:"_checkParentType",value:function(){this._parent instanceof e||this._parent instanceof No||Bo.modelGroupParentException()}}]),e}(Fo)).\u0275fac=function(t){return new(t||xo)(a.yc(dr,5),a.yc(Cr,10),a.yc(wr,10))},xo.\u0275dir=a.tc({type:xo,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[a.jc([Vo]),a.hc]}),xo),Uo={provide:vr,useExisting:Object(a.cb)((function(){return Xo}))},Ho=Promise.resolve(null),Xo=((So=function(t){function e(t,n,i,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).control=new To,o._registered=!1,o.update=new a.s,o._parent=t,o._rawValidators=n||[],o._rawAsyncValidators=i||[],o.valueAccessor=go(_assertThisInitialized(o),r),o}return _inherits(e,t),_createClass(e,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),fo(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){ro(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof qo)&&this._parent instanceof Fo?Bo.formGroupNameException():this._parent instanceof qo||this._parent instanceof No||Bo.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Bo.missingNameException()}},{key:"_updateValue",value:function(t){var e=this;Ho.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;Ho.then((function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()}))}},{key:"path",get:function(){return this._parent?ao(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return uo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ho(this._rawAsyncValidators)}}]),e}(vr)).\u0275fac=function(t){return new(t||So)(a.yc(dr,9),a.yc(Cr,10),a.yc(wr,10),a.yc(rr,10))},So.\u0275dir=a.tc({type:So,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a.jc([Uo]),a.hc,a.ic]}),So),Go=((Oo=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Oo)},Oo.\u0275dir=a.tc({type:Oo,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Oo),Wo=new a.v("NgModelWithFormControlWarning"),$o={provide:vr,useExisting:Object(a.cb)((function(){return Yo}))},Yo=((Do=function(t){function e(t,n,i,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._ngModelWarningConfig=r,o.update=new a.s,o._ngModelWarningSent=!1,o._rawValidators=t||[],o._rawAsyncValidators=n||[],o.valueAccessor=go(_assertThisInitialized(o),i),o}return _inherits(e,t),_createClass(e,[{key:"ngOnChanges",value:function(t){this._isControlChanged(t)&&(ro(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),fo(t,this.viewModel)&&(yo("formControl",e,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_isControlChanged",value:function(t){return t.hasOwnProperty("form")}},{key:"isDisabled",set:function(t){Xr.disabledAttrWarning()}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return uo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ho(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),e}(vr)).\u0275fac=function(t){return new(t||Do)(a.yc(Cr,10),a.yc(wr,10),a.yc(rr,10),a.yc(Wo,8))},Do.\u0275dir=a.tc({type:Do,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a.jc([$o]),a.hc,a.ic]}),Do._ngModelWarningSentOnce=!1,Do),Ko={provide:dr,useExisting:Object(a.cb)((function(){return Jo}))},Jo=((Eo=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._validators=t,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new a.s,i}return _inherits(e,t),_createClass(e,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return ro(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){vo(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);so(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(t){}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){var e=this.form.get(t.path);so(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(t){}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,po(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach((function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange((function(){return lo(e)})),e.valueAccessor.registerOnTouched((function(){return lo(e)})),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),n&&ro(n,e),e.control=n)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var t=uo(this._validators);this.form.validator=Or.compose([this.form.validator,t]);var e=ho(this._asyncValidators);this.form.asyncValidator=Or.composeAsync([this.form.asyncValidator,e])}},{key:"_checkFormPresent",value:function(){this.form||Xr.missingFormException()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),e}(dr)).\u0275fac=function(t){return new(t||Eo)(a.yc(Cr,10),a.yc(wr,10))},Eo.\u0275dir=a.tc({type:Eo,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&a.Nc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a.jc([Ko]),a.hc,a.ic]}),Eo),Qo={provide:dr,useExisting:Object(a.cb)((function(){return Zo}))},Zo=((Ao=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._parent=t,a._validators=n,a._asyncValidators=i,a}return _inherits(e,t),_createClass(e,[{key:"_checkParentType",value:function(){ns(this._parent)&&Xr.groupParentException()}}]),e}(Fo)).\u0275fac=function(t){return new(t||Ao)(a.yc(dr,13),a.yc(Cr,10),a.yc(wr,10))},Ao.\u0275dir=a.tc({type:Ao,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[a.jc([Qo]),a.hc]}),Ao),ts={provide:dr,useExisting:Object(a.cb)((function(){return es}))},es=((Ro=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._parent=t,a._validators=n,a._asyncValidators=i,a}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){ns(this._parent)&&Xr.arrayParentException()}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return ao(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return uo(this._validators)}},{key:"asyncValidator",get:function(){return ho(this._asyncValidators)}}]),e}(dr)).\u0275fac=function(t){return new(t||Ro)(a.yc(dr,13),a.yc(Cr,10),a.yc(wr,10))},Ro.\u0275dir=a.tc({type:Ro,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[a.jc([ts]),a.hc]}),Ro);function ns(t){return!(t instanceof Zo||t instanceof Jo||t instanceof es)}var is,as,rs,os,ss,ls,cs,us,hs,ds,fs,ms,ps,gs,vs,ys,_s,bs,ks,Cs,ws,xs,Os,Ss,Ds,Es,As,Rs,Ps,Ts,Is,Ms,js,Ls={provide:vr,useExisting:Object(a.cb)((function(){return Ns}))},Ns=((is=function(t){function e(t,n,i,r,o){var s;return _classCallCheck(this,e),(s=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._ngModelWarningConfig=o,s._added=!1,s.update=new a.s,s._ngModelWarningSent=!1,s._parent=t,s._rawValidators=n||[],s._rawAsyncValidators=i||[],s.valueAccessor=go(_assertThisInitialized(s),r),s}return _inherits(e,t),_createClass(e,[{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),fo(t,this.viewModel)&&(yo("formControlName",e,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_checkParentType",value:function(){!(this._parent instanceof Zo)&&this._parent instanceof Fo?Xr.ngModelGroupException():this._parent instanceof Zo||this._parent instanceof Jo||this._parent instanceof es||Xr.controlParentException()}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(t){Xr.disabledAttrWarning()}},{key:"path",get:function(){return ao(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return uo(this._rawValidators)}},{key:"asyncValidator",get:function(){return ho(this._rawAsyncValidators)}}]),e}(vr)).\u0275fac=function(t){return new(t||is)(a.yc(dr,13),a.yc(Cr,10),a.yc(wr,10),a.yc(rr,10),a.yc(Wo,8))},is.\u0275dir=a.tc({type:is,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[a.jc([Ls]),a.hc,a.ic]}),is._ngModelWarningSentOnce=!1,is),Fs={provide:Cr,useExisting:Object(a.cb)((function(){return Bs})),multi:!0},zs={provide:Cr,useExisting:Object(a.cb)((function(){return Vs})),multi:!0},Bs=((rs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validate",value:function(t){return this.required?Or.required(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&"false"!=="".concat(t),this._onChange&&this._onChange()}}]),t}()).\u0275fac=function(t){return new(t||rs)},rs.\u0275dir=a.tc({type:rs,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("required",e.required?"":null)},inputs:{required:"required"},features:[a.jc([Fs])]}),rs),Vs=((as=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{key:"validate",value:function(t){return this.required?Or.requiredTrue(t):null}}]),e}(Bs)).\u0275fac=function(t){return qs(t||as)},as.\u0275dir=a.tc({type:as,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("required",e.required?"":null)},features:[a.jc([zs]),a.hc]}),as),qs=a.Fc(Vs),Us={provide:Cr,useExisting:Object(a.cb)((function(){return Hs})),multi:!0},Hs=((os=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validate",value:function(t){return this._enabled?Or.email(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"email",set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}}]),t}()).\u0275fac=function(t){return new(t||os)},os.\u0275dir=a.tc({type:os,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[a.jc([Us])]}),os),Xs={provide:Cr,useExisting:Object(a.cb)((function(){return Gs})),multi:!0},Gs=((ss=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnChanges",value:function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null==this.minlength?null:this._validator(t)}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=Or.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}]),t}()).\u0275fac=function(t){return new(t||ss)},ss.\u0275dir=a.tc({type:ss,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[a.jc([Xs]),a.ic]}),ss),Ws={provide:Cr,useExisting:Object(a.cb)((function(){return $s})),multi:!0},$s=((ls=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnChanges",value:function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null!=this.maxlength?this._validator(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=Or.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}()).\u0275fac=function(t){return new(t||ls)},ls.\u0275dir=a.tc({type:ls,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[a.jc([Ws]),a.ic]}),ls),Ys={provide:Cr,useExisting:Object(a.cb)((function(){return Ks})),multi:!0},Ks=((fs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnChanges",value:function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return this._validator(t)}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=Or.pattern(this.pattern)}}]),t}()).\u0275fac=function(t){return new(t||fs)},fs.\u0275dir=a.tc({type:fs,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[a.jc([Ys]),a.ic]}),fs),Js=((ds=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ds}),ds.\u0275inj=a.vc({factory:function(t){return new(t||ds)}}),ds),Qs=((hs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),i=null,a=null,r=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,a=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,a=null!=e.asyncValidator?e.asyncValidator:null)),new Io(n,{asyncValidators:a,updateOn:r,validators:i})}},{key:"control",value:function(t,e,n){return new To(t,e,n)}},{key:"array",value:function(t,e,n){var i=this,a=t.map((function(t){return i._createControl(t)}));return new Mo(a,e,n)}},{key:"_reduceControls",value:function(t){var e=this,n={};return Object.keys(t).forEach((function(i){n[i]=e._createControl(t[i])})),n}},{key:"_createControl",value:function(t){return t instanceof To||t instanceof Io||t instanceof Mo?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}()).\u0275fac=function(t){return new(t||hs)},hs.\u0275prov=a.uc({token:hs,factory:hs.\u0275fac}),hs),Zs=((us=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:us}),us.\u0275inj=a.vc({factory:function(t){return new(t||us)},providers:[Fr],imports:[Js]}),us),tl=((cs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:Wo,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}()).\u0275mod=a.wc({type:cs}),cs.\u0275inj=a.vc({factory:function(t){return new(t||cs)},providers:[Qs,Fr],imports:[Js]}),cs),el=["button"],nl=["*"],il=new a.v("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),al={provide:rr,useExisting:Object(a.cb)((function(){return ll})),multi:!0},rl=function t(){_classCallCheck(this,t)},ol=0,sl=function t(e,n){_classCallCheck(this,t),this.source=e,this.value=n},ll=((ms=function(){function t(e,n){_classCallCheck(this,t),this._changeDetector=e,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=function(){},this._onTouched=function(){},this._name="mat-button-toggle-group-".concat(ol++),this.valueChange=new a.s,this.change=new a.s,this.appearance=n&&n.appearance?n.appearance:"standard"}return _createClass(t,[{key:"ngOnInit",value:function(){this._selectionModel=new $a(this.multiple,void 0,!1)}},{key:"ngAfterContentInit",value:function(){var t;(t=this._selectionModel).select.apply(t,_toConsumableArray(this._buttonToggles.filter((function(t){return t.checked}))))}},{key:"writeValue",value:function(t){this.value=t,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_emitChangeEvent",value:function(){var t=this.selected,e=Array.isArray(t)?t[t.length-1]:t,n=new sl(e,this.value);this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}},{key:"_syncButtonToggle",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):a=!0,a?Promise.resolve((function(){return n._updateModelValue(i)})):this._updateModelValue(i)}},{key:"_isSelected",value:function(t){return this._selectionModel&&this._selectionModel.isSelected(t)}},{key:"_isPrechecked",value:function(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some((function(e){return null!=t.value&&e===t.value})):t.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this._rawValue=t,this._buttonToggles)if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),t.forEach((function(t){return e._selectValue(t)}))}else this._clearSelection(),this._selectValue(t)}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach((function(t){return t.checked=!1}))}},{key:"_selectValue",value:function(t){var e=this._buttonToggles.find((function(e){return null!=e.value&&e.value===t}));e&&(e.checked=!0,this._selectionModel.select(e))}},{key:"_updateModelValue",value:function(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}},{key:"name",get:function(){return this._name},set:function(t){var e=this;this._name=t,this._buttonToggles&&this._buttonToggles.forEach((function(t){t.name=e._name,t._markForCheck()}))}},{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=mn(t)}},{key:"value",get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map((function(t){return t.value})):t[0]?t[0].value:void 0},set:function(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}},{key:"selected",get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=mn(t)}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=mn(t),this._buttonToggles&&this._buttonToggles.forEach((function(t){return t._markForCheck()}))}}]),t}()).\u0275fac=function(t){return new(t||ms)(a.yc(a.j),a.yc(il,8))},ms.\u0275dir=a.tc({type:ms,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,ul,!0),2&t&&a.dd(i=a.Oc())&&(e._buttonToggles=i)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(a.lc("aria-disabled",e.disabled),a.oc("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard","standard"===e.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[a.jc([al,{provide:rl,useExisting:ms}])]}),ms),cl=Li((function t(){_classCallCheck(this,t)})),ul=((gs=function(t){function e(t,n,i,r,o,s){var l;_classCallCheck(this,e),(l=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._changeDetectorRef=n,l._elementRef=i,l._focusMonitor=r,l._isSingleSelector=!1,l._checked=!1,l.ariaLabelledby=null,l._disabled=!1,l.change=new a.s;var c=Number(o);return l.tabIndex=c||0===c?c:null,l.buttonToggleGroup=t,l.appearance=s&&s.appearance?s.appearance:"standard",l}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||"mat-button-toggle-".concat(ol++),this._isSingleSelector&&(this.name=this.buttonToggleGroup.name),this.buttonToggleGroup&&this.buttonToggleGroup._isPrechecked(this)&&(this.checked=!0),this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(t){this._buttonElement.nativeElement.focus(t)}},{key:"_onButtonClick",value:function(){var t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new sl(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(t){this._appearance=t}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(t){var e=mn(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(t){this._disabled=mn(t)}}]),e}(cl)).\u0275fac=function(t){return new(t||gs)(a.yc(ll,8),a.yc(a.j),a.yc(a.q),a.yc(li),a.Kc("tabindex"),a.yc(il,8))},gs.\u0275cmp=a.sc({type:gs,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;1&t&&a.wd(el,!0),2&t&&a.dd(n=a.Oc())&&(e._buttonElement=n.first)},hostAttrs:[1,"mat-button-toggle","mat-focus-indicator"],hostVars:11,hostBindings:function(t,e){1&t&&a.Nc("focus",(function(){return e.focus()})),2&t&&(a.lc("tabindex",-1)("id",e.id)("name",null),a.oc("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard","standard"===e.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[a.hc],ngContentSelectors:nl,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,e){if(1&t&&(a.Wc(),a.Dc(0,"button",0,1),a.Nc("click",(function(){return e._onButtonClick()})),a.Dc(2,"div",2),a.Vc(3),a.Cc(),a.Cc(),a.zc(4,"div",3),a.zc(5,"div",4)),2&t){var n=a.ed(1);a.Xc("id",e.buttonId)("disabled",e.disabled||null),a.lc("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),a.kc(5),a.Xc("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[ba],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px;padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 48px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),gs),hl=((ps=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ps}),ps.\u0275inj=a.vc({factory:function(t){return new(t||ps)},imports:[[Ii,ka],Ii]}),ps),dl=["*",[["mat-card-footer"]]],fl=["*","mat-card-footer"],ml=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],pl=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],gl=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],vl=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"],yl=((Ps=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ps)},Ps.\u0275dir=a.tc({type:Ps,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Ps),_l=((Rs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Rs)},Rs.\u0275dir=a.tc({type:Rs,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Rs),bl=((As=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||As)},As.\u0275dir=a.tc({type:As,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),As),kl=((Es=function t(){_classCallCheck(this,t),this.align="start"}).\u0275fac=function(t){return new(t||Es)},Es.\u0275dir=a.tc({type:Es,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&a.oc("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Es),Cl=((Ds=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ds)},Ds.\u0275dir=a.tc({type:Ds,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),Ds),wl=((Ss=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ss)},Ss.\u0275dir=a.tc({type:Ss,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Ss),xl=((Os=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Os)},Os.\u0275dir=a.tc({type:Os,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),Os),Ol=((xs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||xs)},xs.\u0275dir=a.tc({type:xs,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),xs),Sl=((ws=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||ws)},ws.\u0275dir=a.tc({type:ws,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),ws),Dl=((Cs=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Cs)},Cs.\u0275dir=a.tc({type:Cs,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),Cs),El=((ks=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||ks)},ks.\u0275dir=a.tc({type:ks,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),ks),Al=((bs=function t(e){_classCallCheck(this,t),this._animationMode=e}).\u0275fac=function(t){return new(t||bs)(a.yc(Pe,8))},bs.\u0275cmp=a.sc({type:bs,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&a.oc("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:fl,decls:2,vars:0,template:function(t,e){1&t&&(a.Wc(dl),a.Vc(0),a.Vc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),bs),Rl=((_s=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||_s)},_s.\u0275cmp=a.sc({type:_s,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:pl,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(a.Wc(ml),a.Vc(0),a.Dc(1,"div",0),a.Vc(2,1),a.Cc(),a.Vc(3,2))},encapsulation:2,changeDetection:0}),_s),Pl=((ys=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||ys)},ys.\u0275cmp=a.sc({type:ys,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:vl,decls:4,vars:0,template:function(t,e){1&t&&(a.Wc(gl),a.Dc(0,"div"),a.Vc(1),a.Cc(),a.Vc(2,1),a.Vc(3,2))},encapsulation:2,changeDetection:0}),ys),Tl=((vs=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:vs}),vs.\u0275inj=a.vc({factory:function(t){return new(t||vs)},imports:[[Ii],Ii]}),vs),Il=["input"],Ml=function(){return{enterDuration:150}},jl=["*"],Ll=new a.v("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),Nl=new a.v("mat-checkbox-click-action"),Fl=0,zl={provide:rr,useExisting:Object(a.cb)((function(){return ql})),multi:!0},Bl=function t(){_classCallCheck(this,t)},Vl=Ni(ji(Li(Mi((function t(e){_classCallCheck(this,t),this._elementRef=e}))))),ql=((Ts=function(t){function e(t,n,i,r,o,s,l,c){var u;return _classCallCheck(this,e),(u=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._changeDetectorRef=n,u._focusMonitor=i,u._ngZone=r,u._clickAction=s,u._animationMode=l,u._options=c,u.ariaLabel="",u.ariaLabelledby=null,u._uniqueId="mat-checkbox-".concat(++Fl),u.id=u._uniqueId,u.labelPosition="after",u.name=null,u.change=new a.s,u.indeterminateChange=new a.s,u._onTouched=function(){},u._currentAnimationClass="",u._currentCheckState=0,u._controlValueAccessorChangeFn=function(){},u._checked=!1,u._disabled=!1,u._indeterminate=!1,u._options=u._options||{},u._options.color&&(u.color=u._options.color),u.tabIndex=parseInt(o)||0,u._focusMonitor.monitor(t,!0).subscribe((function(t){t||Promise.resolve().then((function(){u._onTouched(),n.markForCheck()}))})),u._clickAction=u._clickAction||u._options.clickAction,u}return _inherits(e,t),_createClass(e,[{key:"ngAfterViewInit",value:function(){this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(t){var 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);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){n.classList.remove(i)}),1e3)}))}}},{key:"_emitChangeEvent",value:function(){var t=new Bl;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(t){var e=this;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((function(){e._indeterminate=!1,e.indeterminateChange.emit(e._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"keyboard",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._inputElement,t,e)}},{key:"_onInteractionEvent",value:function(t){t.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(t,e){if("NoopAnimations"===this._animationMode)return"";var 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-".concat(n)}},{key:"_syncIndeterminate",value:function(t){var e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"required",get:function(){return this._required},set:function(t){this._required=mn(t)}},{key:"checked",get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){var e=mn(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=mn(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),e}(Vl)).\u0275fac=function(t){return new(t||Ts)(a.yc(a.q),a.yc(a.j),a.yc(li),a.yc(a.F),a.Kc("tabindex"),a.yc(Nl,8),a.yc(Pe,8),a.yc(Ll,8))},Ts.\u0275cmp=a.sc({type:Ts,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(a.wd(Il,!0),a.wd(ba,!0)),2&t&&(a.dd(n=a.Oc())&&(e._inputElement=n.first),a.dd(n=a.Oc())&&(e.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(a.Gc("id",e.id),a.lc("tabindex",null),a.oc("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:[a.jc([zl]),a.hc],ngContentSelectors:jl,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&&(a.Wc(),a.Dc(0,"label",0,1),a.Dc(2,"div",2),a.Dc(3,"input",3,4),a.Nc("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),a.Cc(),a.Dc(5,"div",5),a.zc(6,"div",6),a.Cc(),a.zc(7,"div",7),a.Dc(8,"div",8),a.Qc(),a.Dc(9,"svg",9),a.zc(10,"path",10),a.Cc(),a.Pc(),a.zc(11,"div",11),a.Cc(),a.Cc(),a.Dc(12,"span",12,13),a.Nc("cdkObserveContent",(function(){return e._onLabelTextChange()})),a.Dc(14,"span",14),a.sd(15,"\xa0"),a.Cc(),a.Vc(16),a.Cc(),a.Cc()),2&t){var n=a.ed(1),i=a.ed(13);a.lc("for",e.inputId),a.kc(2),a.oc("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),a.kc(1),a.Xc("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),a.lc("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),a.kc(2),a.Xc("matRippleTrigger",n)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",a.Zc(18,Ml))}},directives:[ba,Fn],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}),Ts),Ul={provide:Cr,useExisting:Object(a.cb)((function(){return Hl})),multi:!0},Hl=((Is=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),e}(Vs)).\u0275fac=function(t){return Xl(t||Is)},Is.\u0275dir=a.tc({type:Is,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[a.jc([Ul]),a.hc]}),Is),Xl=a.Fc(Hl),Gl=((js=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:js}),js.\u0275inj=a.vc({factory:function(t){return new(t||js)}}),js),Wl=((Ms=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Ms}),Ms.\u0275inj=a.vc({factory:function(t){return new(t||Ms)},imports:[[ka,Ii,zn,Gl],Ii,Gl]}),Ms);function $l(t){return new sn.a((function(e){var n;try{n=t()}catch(i){return void e.error(i)}return(n?Object(Qa.a)(n):cn()).subscribe(e)}))}var Yl=n("VRyK");function Kl(t,e,n,i){return Object(Ue.a)(n)&&(i=n,n=void 0),i?Kl(t,e,n).pipe(Object(rn.a)((function(t){return Object(Ka.a)(t)?i.apply(void 0,_toConsumableArray(t)):i(t)}))):new sn.a((function(i){!function t(e,n,i,a,r){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,i,r),o=function(){return s.removeEventListener(n,i,r)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var l=e;e.on(n,i),o=function(){return l.off(n,i)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var c=e;e.addListener(n,i),o=function(){return c.removeListener(n,i)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,h=e.length;u1?Array.prototype.slice.call(arguments):t)}),i,n)}))}var Jl=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).scheduler=t,i.work=n,i}return _inherits(e,t),_createClass(e,[{key:"requestAsyncId",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(e.prototype),"requestAsyncId",this).call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))}},{key:"recycleAsyncId",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(e.prototype),"recycleAsyncId",this).call(this,t,n,i);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)}}]),e}(We),Ql=new(function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,a=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(e.prototype),"requestAsyncId",this).call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=ec(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(e.prototype),"recycleAsyncId",this).call(this,t,n,i);0===t.actions.length&&(nc(n),t.scheduled=void 0)}}]),e}(We),ac=new(function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,a=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i=0}function fc(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return dc(e)?i=Number(e)<1?1:Number(e):Object(Le.a)(e)&&(n=e),Object(Le.a)(n)||(n=Ke),new sn.a((function(e){var a=dc(t)?t:+t-n.now();return n.schedule(mc,a,{index:0,period:i,subscriber:e})}))}function mc(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function pc(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ke;return e=function(){return fc(t,n)},function(t){return t.lift(new uc(e))}}function gc(t){return function(e){return e.lift(new vc(t))}}var vc=function(){function t(e){_classCallCheck(this,t),this.notifier=e}return _createClass(t,[{key:"call",value:function(t,e){var n=new yc(t),i=Object(cc.a)(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}]),t}(),yc=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).seenValue=!1,n}return _inherits(e,t),_createClass(e,[{key:"notifyNext",value:function(t,e,n,i,a){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),e}(lc.a),_c=n("51Dv");function bc(t,e){return"function"==typeof e?function(n){return n.pipe(bc((function(n,i){return Object(Qa.a)(t(n,i)).pipe(Object(rn.a)((function(t,a){return e(n,t,i,a)})))})))}:function(e){return e.lift(new kc(t))}}var kc=function(){function t(e){_classCallCheck(this,t),this.project=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Cc(t,this.project))}}]),t}(),Cc=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).project=n,i.index=0,i}return _inherits(e,t),_createClass(e,[{key:"_next",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)}},{key:"_innerSub",value:function(t,e,n){var i=this.innerSubscription;i&&i.unsubscribe();var a=new _c.a(this,void 0,void 0);this.destination.add(a),this.innerSubscription=Object(cc.a)(this,t,e,n,a)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||_get(_getPrototypeOf(e.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(e.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t,e,n,i,a){this.destination.next(e)}}]),e}(lc.a),wc=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).scheduler=t,i.work=n,i}return _inherits(e,t),_createClass(e,[{key:"schedule",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n>0?_get(_getPrototypeOf(e.prototype),"schedule",this).call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,n){return n>0||this.closed?_get(_getPrototypeOf(e.prototype),"execute",this).call(this,t,n):this._execute(t,n)}},{key:"requestAsyncId",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(e.prototype),"requestAsyncId",this).call(this,t,n,i):t.flush(this)}}]),e}(We),xc=new(function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),e}(Ye))(wc);function Oc(t,e){return new sn.a(e?function(n){return e.schedule(Sc,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function Sc(t){var e=t.error;t.subscriber.error(e)}var Dc,Ec,Ac,Rc,Pc,Tc=((Dc=function(){function t(e,n,i){_classCallCheck(this,t),this.kind=e,this.value=n,this.error=i,this.hasValue="N"===e}return _createClass(t,[{key:"observe",value:function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}},{key:"do",value:function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}},{key:"accept",value:function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return ze(this.value);case"E":return Oc(this.error);case"C":return cn()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}()).completeNotification=new Dc("C"),Dc.undefinedValueNotification=new Dc("N",void 0),Dc),Ic=function(t){function e(t,n){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).scheduler=n,i.delay=a,i}return _inherits(e,t),_createClass(e,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new Mc(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(Tc.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(Tc.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(Tc.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()}}]),e}(Ve.a),Mc=function t(e,n){_classCallCheck(this,t),this.notification=e,this.destination=n},jc=n("9ppp"),Lc=n("Ylt2"),Nc=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).scheduler=a,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=n<1?1:n,t._windowTime=i<1?1:i,i===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return _inherits(e,t),_createClass(e,[{key:"nextInfiniteTimeWindow",value:function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),_get(_getPrototypeOf(e.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this._events.push(new Fc(this._getNow(),t)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(e.prototype),"next",this).call(this,t)}},{key:"_subscribe",value:function(t){var e,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),a=this.scheduler,r=i.length;if(this.closed)throw new jc.a;if(this.isStopped||this.hasError?e=je.a.EMPTY:(this.observers.push(t),e=new Lc.a(this,t)),a&&t.add(t=new Ic(t,a)),n)for(var o=0;oe&&(r=Math.max(r,a-e)),r>0&&i.splice(0,r),i}}]),e}(Me.a),Fc=function t(e,n){_classCallCheck(this,t),this.time=e,this.value=n},zc=((Pc=function(){function t(e,n){_classCallCheck(this,t),this._ngZone=e,this._platform=n,this._scrolled=new Me.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return _createClass(t,[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe((function(){return e._scrolled.next(t)})))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new sn.a((function(n){t._globalSubscription||t._addGlobalListener();var i=e>0?t._scrolled.pipe(pc(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}})):ze()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,n){return t.deregister(n)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(en((function(t){return!t||n.indexOf(t)>-1})))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach((function(i,a){e._scrollableContainsElement(a,t)&&n.push(a)})),n}},{key:"_scrollableContainsElement",value:function(t,e){var n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return Kl(window.document,"scroll").subscribe((function(){return t._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}()).\u0275fac=function(t){return new(t||Pc)(a.Jc(a.F),a.Jc(On))},Pc.\u0275prov=Object(a.uc)({factory:function(){return new Pc(Object(a.Jc)(a.F),Object(a.Jc)(On))},token:Pc,providedIn:"root"}),Pc),Bc=((Rc=function(){function t(e,n,i,a){var r=this;_classCallCheck(this,t),this.elementRef=e,this.scrollDispatcher=n,this.ngZone=i,this.dir=a,this._destroyed=new Me.a,this._elementScrolled=new sn.a((function(t){return r.ngZone.runOutsideAngular((function(){return Kl(r.elementRef.nativeElement,"scroll").pipe(gc(r._destroyed)).subscribe(t)}))}))}return _createClass(t,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(t){var e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Rn()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Rn()?t.left=t.right:1==Rn()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var e=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==Rn()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Rn()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}]),t}()).\u0275fac=function(t){return new(t||Rc)(a.yc(a.q),a.yc(zc),a.yc(a.F),a.yc(yi,8))},Rc.\u0275dir=a.tc({type:Rc,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Rc),Vc=((Ac=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._platform=e,n.runOutsideAngular((function(){i._change=e.isBrowser?Object(Yl.a)(Kl(window,"resize"),Kl(window,"orientationchange")):ze(),i._invalidateCache=i.change().subscribe((function(){return i._updateViewportSize()}))}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._invalidateCache.unsubscribe()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=document.documentElement,e=t.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||t.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||t.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(pc(t)):this._change}},{key:"_updateViewportSize",value:function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}}}]),t}()).\u0275fac=function(t){return new(t||Ac)(a.Jc(On),a.Jc(a.F))},Ac.\u0275prov=Object(a.uc)({factory:function(){return new Ac(Object(a.Jc)(On),Object(a.Jc)(a.F))},token:Ac,providedIn:"root"}),Ac),qc=((Ec=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Ec}),Ec.\u0275inj=a.vc({factory:function(t){return new(t||Ec)},imports:[[bi,Sn],bi]}),Ec);function Uc(){throw Error("Host already has a portal attached")}var Hc,Xc,Gc=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"attach",value:function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&Uc(),this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var 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())}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),t}(),Wc=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).component=t,r.viewContainerRef=n,r.injector=i,r.componentFactoryResolver=a,r}return _inherits(e,t),e}(Gc),$c=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).templateRef=t,a.viewContainerRef=n,a.context=i,a}return _inherits(e,t),_createClass(e,[{key:"attach",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=n,_get(_getPrototypeOf(e.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(e.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),e}(Gc),Yc=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).element=t instanceof a.q?t.nativeElement:t,n}return _inherits(e,t),e}(Gc),Kc=function(){function t(){_classCallCheck(this,t),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&Uc(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof Wc?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof $c?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Yc?(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.")}()}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),Jc=function(t){function e(t,n,i,a,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).outletElement=t,o._componentFactoryResolver=n,o._appRef=i,o._defaultInjector=a,o.attachDomPortal=function(t){if(!o._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var n=t.element;if(!n.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=o._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),o.outletElement.appendChild(n),_get(_getPrototypeOf(e.prototype),"setDisposeFn",_assertThisInitialized(o)).call(_assertThisInitialized(o),(function(){i.parentNode&&i.parentNode.replaceChild(n,i)}))},o._document=r,o}return _inherits(e,t),_createClass(e,[{key:"attachComponentPortal",value:function(t){var e,n=this,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn((function(){return e.destroy()}))):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn((function(){n._appRef.detachView(e.hostView),e.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(e)),e}},{key:"attachTemplatePortal",value:function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach((function(t){return e.outletElement.appendChild(t)})),this.setDisposeFn((function(){var t=n.indexOf(i);-1!==t&&n.remove(t)})),i}},{key:"dispose",value:function(){_get(_getPrototypeOf(e.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),e}(Kc),Qc=((Xc=function(t){function e(t,n,i){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._componentFactoryResolver=t,r._viewContainerRef=n,r._isInitialized=!1,r.attached=new a.s,r.attachDomPortal=function(t){if(!r._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var n=t.element;if(!n.parentNode)throw Error("DOM portal content must be attached to a parent node.");var i=r._document.createComment("dom-portal");t.setAttachedHost(_assertThisInitialized(r)),n.parentNode.insertBefore(i,n),r._getRootNode().appendChild(n),_get(_getPrototypeOf(e.prototype),"setDisposeFn",_assertThisInitialized(r)).call(_assertThisInitialized(r),(function(){i.parentNode&&i.parentNode.replaceChild(n,i)}))},r._document=i,r}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(e.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var n=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=n.createComponent(i,n.length,t.injector||n.injector);return n!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),_get(_getPrototypeOf(e.prototype),"setDisposeFn",this).call(this,(function(){return a.destroy()})),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(t){var n=this;t.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return _get(_getPrototypeOf(e.prototype),"setDisposeFn",this).call(this,(function(){return n._viewContainerRef.clear()})),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}},{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&_get(_getPrototypeOf(e.prototype),"detach",this).call(this),t&&_get(_getPrototypeOf(e.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}}]),e}(Kc)).\u0275fac=function(t){return new(t||Xc)(a.yc(a.n),a.yc(a.X),a.yc(_e.e))},Xc.\u0275dir=a.tc({type:Xc,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.hc]}),Xc),Zc=((Hc=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Hc}),Hc.\u0275inj=a.vc({factory:function(t){return new(t||Hc)}}),Hc),tu=function(){function t(e,n){_classCallCheck(this,t),this._parentInjector=e,this._customTokens=n}return _createClass(t,[{key:"get",value:function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}]),t}(),eu=function(){function t(e,n){_classCallCheck(this,t),this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return _createClass(t,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=vn(-this._previousScrollPosition.left),t.style.top=vn(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",a=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=a}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}]),t}();function nu(){return Error("Scroll strategy has already been attached.")}var iu=function(){function t(e,n,i,a){var r=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler=i,this._config=a,this._scrollSubscription=null,this._detach=function(){r.disable(),r._overlayRef.hasAttached()&&r._ngZone.run((function(){return r._overlayRef.detach()}))}}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw nu();this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe((function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()}))):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),au=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function ru(t,e){return e.some((function(e){return t.bottome.bottom||t.righte.right}))}function ou(t,e){return e.some((function(e){return t.tope.bottom||t.lefte.right}))}var su,lu=function(){function t(e,n,i,a){_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this._config=a,this._scrollSubscription=null}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw nu();this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,a=n.height;ru(e,[{width:i,height:a,bottom:a,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run((function(){return t._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),cu=((su=function t(e,n,i,a){var r=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new au},this.close=function(t){return new iu(r._scrollDispatcher,r._ngZone,r._viewportRuler,t)},this.block=function(){return new eu(r._viewportRuler,r._document)},this.reposition=function(t){return new lu(r._scrollDispatcher,r._viewportRuler,r._ngZone,t)},this._document=a}).\u0275fac=function(t){return new(t||su)(a.Jc(zc),a.Jc(Vc),a.Jc(a.F),a.Jc(_e.e))},su.\u0275prov=Object(a.uc)({factory:function(){return new su(Object(a.Jc)(zc),Object(a.Jc)(Vc),Object(a.Jc)(a.F),Object(a.Jc)(_e.e))},token:su,providedIn:"root"}),su),uu=function t(e){if(_classCallCheck(this,t),this.scrollStrategy=new au,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var n=0,i=Object.keys(e);n-1;i--)if(e[i]._keydownEventSubscriptions>0){e[i]._keydownEvents.next(t);break}},this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._detach()}},{key:"add",value:function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}},{key:"remove",value:function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}},{key:"_detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),t}()).\u0275fac=function(t){return new(t||pu)(a.Jc(_e.e))},pu.\u0275prov=Object(a.uc)({factory:function(){return new pu(Object(a.Jc)(_e.e))},token:pu,providedIn:"root"}),pu),yu=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),_u=((gu=function(){function t(e,n){_classCallCheck(this,t),this._platform=n,this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||yu)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),n=0;np&&(p=C,m=k)}}catch(w){v=!0,y=w}finally{try{g||null==b.return||b.return()}finally{if(v)throw y}}return this._isPushed=!1,void this._applyPosition(m.position,m.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&wu(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)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,a=this._isRtl()?t.left:t.right;n="start"==e.originX?i:a}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,n){var i,a;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,a="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+a}}},{key:"_getOverlayFit",value:function(t,e,n,i){var a=t.x,r=t.y,o=this._getOffset(i,"x"),s=this._getOffset(i,"y");o&&(a+=o),s&&(r+=s);var l=0-r,c=r+e.height-n.height,u=this._subtractOverflows(e.width,0-a,a+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}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,a=n.right-e.x,r=xu(this._overlayRef.getConfig().minHeight),o=xu(this._overlayRef.getConfig().minWidth),s=t.fitsInViewportHorizontally||null!=o&&o<=a;return(t.fitsInViewportVertically||null!=r&&r<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var i,a,r=this._viewportRect,o=Math.max(t.x+e.width-r.right,0),s=Math.max(t.y+e.height-r.bottom,0),l=Math.max(r.top-n.top-t.y,0),c=Math.max(r.left-n.left-t.x,0);return i=e.width<=r.width?c||-o:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/2)}if("end"===e.overlayX&&!c||"start"===e.overlayX&&c)s=l.width-t.x+this._viewportMargin,r=t.x-this._viewportMargin;else if("start"===e.overlayX&&!c||"end"===e.overlayX&&c)o=t.x,r=l.right-t.x;else{var d=Math.min(l.right-t.x+l.left,t.x),f=this._lastBoundingBoxSize.width;r=2*d,o=t.x-d,r>f&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.x-f/2)}return{top:i,left:o,bottom:a,right:s,width:r,height:n}}},{key:"_setBoundingBoxStyles",value:function(t,e){var 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));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var a=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=vn(n.height),i.top=vn(n.top),i.bottom=vn(n.bottom),i.width=vn(n.width),i.left=vn(n.left),i.right=vn(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",a&&(i.maxHeight=vn(a)),r&&(i.maxWidth=vn(r))}this._lastBoundingBoxSize=n,wu(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){wu(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){wu(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={},i=this._hasExactPosition(),a=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){var o=this._viewportRuler.getViewportScrollPosition();wu(n,this._getExactOverlayY(e,t,o)),wu(n,this._getExactOverlayX(e,t,o))}else n.position="static";var s="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(s+="translateX(".concat(l,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),r.maxHeight&&(i?n.maxHeight=vn(r.maxHeight):a&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=vn(r.maxWidth):a&&(n.maxWidth="")),wu(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var i={top:"",bottom:""},a=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,n));var r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return a.y-=r,"bottom"===t.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(a.y+this._overlayRect.height),"px"):i.top=vn(a.y),i}},{key:"_getExactOverlayX",value:function(t,e,n){var i={left:"",right:""},a=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,n)),"right"===(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(a.x+this._overlayRect.width),"px"):i.left=vn(a.x),i}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:ou(t,n),isOriginOutsideView:ru(t,n),isOverlayClipped:ou(e,n),isOverlayOutsideView:ru(e,n)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,a=n.height,r=n.maxWidth,o=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==a&&"100vh"!==a||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?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}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var 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}}}]),t}(),Tu=((Su=function(){function t(e,n,i,a){_classCallCheck(this,t),this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=a}return _createClass(t,[{key:"global",value:function(){return new Pu}},{key:"connectedTo",value:function(t,e,n){return new Ru(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new Cu(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}()).\u0275fac=function(t){return new(t||Su)(a.Jc(Vc),a.Jc(_e.e),a.Jc(On),a.Jc(_u))},Su.\u0275prov=Object(a.uc)({factory:function(){return new Su(Object(a.Jc)(Vc),Object(a.Jc)(_e.e),Object(a.Jc)(On),Object(a.Jc)(_u))},token:Su,providedIn:"root"}),Su),Iu=0,Mu=((Ou=function(){function t(e,n,i,a,r,o,s,l,c,u){_classCallCheck(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=a,this._keyboardDispatcher=r,this._injector=o,this._ngZone=s,this._document=l,this._directionality=c,this._location=u}return _createClass(t,[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),a=new uu(t);return a.direction=a.direction||this._directionality.value,new bu(i,e,n,a,this._ngZone,this._keyboardDispatcher,this._document,this._location)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-".concat(Iu++),e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(a.g)),new Jc(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}()).\u0275fac=function(t){return new(t||Ou)(a.Jc(cu),a.Jc(_u),a.Jc(a.n),a.Jc(Tu),a.Jc(vu),a.Jc(a.w),a.Jc(a.F),a.Jc(_e.e),a.Jc(yi),a.Jc(_e.n,8))},Ou.\u0275prov=a.uc({token:Ou,factory:Ou.\u0275fac}),Ou),ju=[{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"}],Lu=new a.v("cdk-connected-overlay-scroll-strategy"),Nu=((Eu=function t(e){_classCallCheck(this,t),this.elementRef=e}).\u0275fac=function(t){return new(t||Eu)(a.yc(a.q))},Eu.\u0275dir=a.tc({type:Eu,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),Eu),Fu=((Du=function(){function t(e,n,i,r,o){_classCallCheck(this,t),this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=je.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new a.s,this.positionChange=new a.s,this.attach=new a.s,this.detach=new a.s,this.overlayKeydown=new a.s,this._templatePortal=new $c(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(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())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=ju),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe((function(e){t.overlayKeydown.next(e),27!==e.keyCode||Be(e)||(e.preventDefault(),t._detachOverlay())}))}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new uu({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}},{key:"_updatePositionStrategy",value:function(t){var e=this,n=this.positions.map((function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}}));return t.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this,e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e.positionChanges.subscribe((function(e){return t.positionChange.emit(e)})),e}},{key:"_attachOverlay",value:function(){var t=this;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((function(e){t.backdropClick.emit(e)})):this._backdropSubscription.unsubscribe()}},{key:"_detachOverlay",value:function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}},{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=mn(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=mn(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=mn(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=mn(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=mn(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}}]),t}()).\u0275fac=function(t){return new(t||Du)(a.yc(Mu),a.yc(a.U),a.yc(a.X),a.yc(Lu),a.yc(yi,8))},Du.\u0275dir=a.tc({type:Du,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:[a.ic]}),Du),zu={provide:Lu,deps:[Mu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Bu=((Au=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Au}),Au.\u0275inj=a.vc({factory:function(t){return new(t||Au)},providers:[Mu,zu],imports:[[bi,Zc,qc],qc]}),Au);function Vu(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ke,i=(e=t)instanceof Date&&!isNaN(+e)?+t-n.now():Math.abs(t);return function(t){return t.lift(new qu(i,n))}}var qu=function(){function t(e,n){_classCallCheck(this,t),this.delay=e,this.scheduler=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Uu(t,this.delay,this.scheduler))}}]),t}(),Uu=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).delay=n,a.scheduler=i,a.queue=[],a.active=!1,a.errored=!1,a}return _inherits(e,t),_createClass(e,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,n=new Hu(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(Tc.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Tc.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,n=e.queue,i=t.scheduler,a=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(a);if(n.length>0){var r=Math.max(0,n[0].time-i.now());this.schedule(t,r)}else this.unsubscribe(),e.active=!1}}]),e}(Ve.a),Hu=function t(e,n){_classCallCheck(this,t),this.time=e,this.notification=n},Xu=["underline"],Gu=["connectionContainer"],Wu=["inputContainer"],$u=["label"];function Yu(t,e){1&t&&(a.Bc(0),a.Dc(1,"div",14),a.zc(2,"div",15),a.zc(3,"div",16),a.zc(4,"div",17),a.Cc(),a.Dc(5,"div",18),a.zc(6,"div",15),a.zc(7,"div",16),a.zc(8,"div",17),a.Cc(),a.Ac())}function Ku(t,e){1&t&&(a.Dc(0,"div",19),a.Vc(1,1),a.Cc())}function Ju(t,e){if(1&t&&(a.Bc(0),a.Vc(1,2),a.Dc(2,"span"),a.sd(3),a.Cc(),a.Ac()),2&t){var n=a.Rc(2);a.kc(3),a.td(n._control.placeholder)}}function Qu(t,e){1&t&&a.Vc(0,3,["*ngSwitchCase","true"])}function Zu(t,e){1&t&&(a.Dc(0,"span",23),a.sd(1," *"),a.Cc())}function th(t,e){if(1&t){var n=a.Ec();a.Dc(0,"label",20,21),a.Nc("cdkObserveContent",(function(){return a.id(n),a.Rc().updateOutlineGap()})),a.qd(2,Ju,4,1,"ng-container",12),a.qd(3,Qu,1,0,void 0,12),a.qd(4,Zu,2,0,"span",22),a.Cc()}if(2&t){var i=a.Rc();a.oc("mat-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),a.Xc("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),a.lc("for",i._control.id)("aria-owns",i._control.id),a.kc(2),a.Xc("ngSwitchCase",!1),a.kc(1),a.Xc("ngSwitchCase",!0),a.kc(1),a.Xc("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function eh(t,e){1&t&&(a.Dc(0,"div",24),a.Vc(1,4),a.Cc())}function nh(t,e){if(1&t&&(a.Dc(0,"div",25,26),a.zc(2,"span",27),a.Cc()),2&t){var n=a.Rc();a.kc(2),a.oc("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function ih(t,e){if(1&t&&(a.Dc(0,"div"),a.Vc(1,5),a.Cc()),2&t){var n=a.Rc();a.Xc("@transitionMessages",n._subscriptAnimationState)}}function ah(t,e){if(1&t&&(a.Dc(0,"div",31),a.sd(1),a.Cc()),2&t){var n=a.Rc(2);a.Xc("id",n._hintLabelId),a.kc(1),a.td(n.hintLabel)}}function rh(t,e){if(1&t&&(a.Dc(0,"div",28),a.qd(1,ah,2,2,"div",29),a.Vc(2,6),a.zc(3,"div",30),a.Vc(4,7),a.Cc()),2&t){var n=a.Rc();a.Xc("@transitionMessages",n._subscriptAnimationState),a.kc(1),a.Xc("ngIf",n.hintLabel)}}var oh,sh,lh=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ch=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],uh=0,hh=((oh=function t(){_classCallCheck(this,t),this.id="mat-error-".concat(uh++)}).\u0275fac=function(t){return new(t||oh)},oh.\u0275dir=a.tc({type:oh,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("id",e.id)},inputs:{id:"id"}}),oh),dh={transitionMessages:o("transitionMessages",[h("enter",u({opacity:1,transform:"translateY(0%)"})),d("void => enter",[u({opacity:0,transform:"translateY(-100%)"}),s("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},fh=((sh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||sh)},sh.\u0275dir=a.tc({type:sh}),sh);function mh(t){return Error("A hint was already declared for 'align=\"".concat(t,"\"'."))}var ph,gh,vh,yh,_h,bh,kh,Ch=0,wh=((_h=function t(){_classCallCheck(this,t),this.align="start",this.id="mat-hint-".concat(Ch++)}).\u0275fac=function(t){return new(t||_h)},_h.\u0275dir=a.tc({type:_h,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(a.lc("id",e.id)("align",null),a.oc("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),_h),xh=((yh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||yh)},yh.\u0275dir=a.tc({type:yh,selectors:[["mat-label"]]}),yh),Oh=((vh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||vh)},vh.\u0275dir=a.tc({type:vh,selectors:[["mat-placeholder"]]}),vh),Sh=((gh=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||gh)},gh.\u0275dir=a.tc({type:gh,selectors:[["","matPrefix",""]]}),gh),Dh=((ph=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||ph)},ph.\u0275dir=a.tc({type:ph,selectors:[["","matSuffix",""]]}),ph),Eh=0,Ah=ji((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),Rh=new a.v("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ph=((kh=function(t){function e(t,n,i,a,r,o,s,l){var c;return _classCallCheck(this,e),(c=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._elementRef=t,c._changeDetectorRef=n,c._dir=a,c._defaults=r,c._platform=o,c._ngZone=s,c._outlineGapCalculationNeededImmediately=!1,c._outlineGapCalculationNeededOnStable=!1,c._destroyed=new Me.a,c._showAlwaysAnimate=!1,c._subscriptAnimationState="",c._hintLabel="",c._hintLabelId="mat-hint-".concat(Eh++),c._labelId="mat-form-field-label-".concat(Eh++),c._labelOptions=i||{},c.floatLabel=c._getDefaultFloatLabelState(),c._animationsEnabled="NoopAnimations"!==l,c.appearance=r&&r.appearance?r.appearance:"legacy",c._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker,c}return _inherits(e,t),_createClass(e,[{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe(Oi(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(gc(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(gc(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),Object(Yl.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(Oi(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(Oi(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(gc(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return t.updateOutlineGap()}))})):t.updateOutlineGap()}))}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!!this._labelChild}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,Kl(this._label.nativeElement,"transitionend").pipe(un(1)).subscribe((function(){t._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach((function(i){if("start"===i.align){if(t||n.hintLabel)throw mh("start");t=i}else if("end"===i.align){if(e)throw mh("end");e=i}}))}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find((function(t){return"start"===t.align})):null,n=this._hintChildren?this._hintChildren.find((function(t){return"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((function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,n=0,i=this._connectionContainerRef.nativeElement,a=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=i.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var s=this._getStartEnd(o),l=this._getStartEnd(t.children[0].getBoundingClientRect()),c=0,u=!0,h=!1,d=void 0;try{for(var f,m=t.children[Symbol.iterator]();!(u=(f=m.next()).done);u=!0)c+=f.value.offsetWidth}catch(v){h=!0,d=v}finally{try{u||null==m.return||m.return()}finally{if(h)throw d}}e=l-s-5,n=c>0?.75*c+10:0}for(var p=0;p0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_scrollToOption",value:function(){var t=this.autocomplete._keyManager.activeItemIndex||0,e=Ta(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{var n=Ia(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(n)}}},{key:"_subscribeToClosingActions",value:function(){var t=this,e=this._zone.onStable.asObservable().pipe(un(1)),n=this.autocomplete.options.changes.pipe(He((function(){return t._positionStrategy.reapplyLastPosition()})),Vu(0));return Object(Yl.a)(e,n).pipe(bc((function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions})),un(1)).subscribe((function(e){return t._setValueAndClose(e)}))}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}},{key:"_setValueAndClose",value:function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach((function(e){e!=t&&e.selected&&e.deselect()}))}},{key:"_attachOverlay",value:function(){var t=this;if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");var e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new $c(this.autocomplete.template,this._viewContainerRef),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe((function(e){(27===e.keyCode||38===e.keyCode&&e.altKey)&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())})),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe((function(){t.panelOpen&&e&&e.updateSize({width:t._getPanelWidth()})})))),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){return new uu({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,n={originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},i={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"};e="above"===this.position?[i]:"below"===this.position?[n]:[n,i],t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=mn(t)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var t=this;return Object(Yl.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(en((function(){return t._overlayAttached}))),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(en((function(){return t._overlayAttached}))):ze()).pipe(Object(rn.a)((function(t){return t instanceof Aa?t:null})))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),t}()).\u0275fac=function(t){return new(t||Fh)(a.yc(a.q),a.yc(Mu),a.yc(a.X),a.yc(a.F),a.yc(a.j),a.yc(Gh),a.yc(yi,8),a.yc(Ph,9),a.yc(_e.e,8),a.yc(Vc))},Fh.\u0275dir=a.tc({type:Fh,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&a.Nc("focusin",(function(){return e._handleFocus()}))("blur",(function(){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&a.lc("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen?null:null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[a.jc([$h]),a.ic]}),Fh),Kh=((Nh=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Nh}),Nh.\u0275inj=a.vc({factory:function(t){return new(t||Nh)},providers:[Wh],imports:[[za,Bu,Ii,_e.c],za,Ii]}),Nh);function Jh(t,e){}var Qh=function t(){_classCallCheck(this,t),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},Zh={dialogContainer:o("dialogContainer",[h("void, exit",u({opacity:0,transform:"scale(0.7)"})),h("enter",u({transform:"none"})),d("* => enter",s("150ms cubic-bezier(0, 0, 0.2, 1)",u({transform:"none",opacity:1}))),d("* => void, * => exit",s("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",u({opacity:0})))])};function td(){throw Error("Attempting to attach dialog content after content is already attached")}var ed,nd,id,ad,rd,od,sd=((ed=function(t){function e(t,n,i,r,o){var s;return _classCallCheck(this,e),(s=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._elementRef=t,s._focusTrapFactory=n,s._changeDetectorRef=i,s._config=o,s._elementFocusedBeforeDialogWasOpened=null,s._state="enter",s._animationStateChanged=new a.s,s.attachDomPortal=function(t){return s._portalOutlet.hasAttached()&&td(),s._savePreviouslyFocusedElement(),s._portalOutlet.attachDomPortal(t)},s._ariaLabelledBy=o.ariaLabelledBy||null,s._document=r,s}return _inherits(e,t),_createClass(e,[{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached()&&td(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached()&&td(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_trapFocus",value:function(){var t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var e=this._document.activeElement;e===t||t.contains(e)||t.focus()}}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var 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()}},{key:"_savePreviouslyFocusedElement",value:function(){var t=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return t._elementRef.nativeElement.focus()})))}},{key:"_onAnimationDone",value:function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}},{key:"_onAnimationStart",value:function(t){this._animationStateChanged.emit(t)}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),e}(Kc)).\u0275fac=function(t){return new(t||ed)(a.yc(a.q),a.yc(ei),a.yc(a.j),a.yc(_e.e,8),a.yc(Qh))},ed.\u0275cmp=a.sc({type:ed,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var n;1&t&&a.od(Qc,!0),2&t&&a.dd(n=a.Oc())&&(e._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&a.pc("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(a.lc("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),a.vd("@dialogContainer",e._state))},features:[a.hc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&a.qd(0,Jh,0,0,"ng-template",0)},directives:[Qc],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:[Zh.dialogContainer]}}),ed),ld=0,cd=function(){function t(e,n){var i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(ld++);_classCallCheck(this,t),this._overlayRef=e,this._containerInstance=n,this.id=a,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Me.a,this._afterClosed=new Me.a,this._beforeClosed=new Me.a,this._state=0,n._id=a,n._animationStateChanged.pipe(en((function(t){return"done"===t.phaseName&&"enter"===t.toState})),un(1)).subscribe((function(){i._afterOpened.next(),i._afterOpened.complete()})),n._animationStateChanged.pipe(en((function(t){return"done"===t.phaseName&&"exit"===t.toState})),un(1)).subscribe((function(){clearTimeout(i._closeFallbackTimeout),i._overlayRef.dispose()})),e.detachments().subscribe((function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()})),e.keydownEvents().pipe(en((function(t){return 27===t.keyCode&&!i.disableClose&&!Be(t)}))).subscribe((function(t){t.preventDefault(),i.close()}))}return _createClass(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(en((function(t){return"start"===t.phaseName})),un(1)).subscribe((function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._state=2,e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout((function(){e._overlayRef.dispose()}),n.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1}},{key:"afterOpened",value:function(){return this._afterOpened.asObservable()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"beforeClosed",value:function(){return this._beforeClosed.asObservable()}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var 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}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}(),ud=new a.v("MatDialogData"),hd=new a.v("mat-dialog-default-options"),dd=new a.v("mat-dialog-scroll-strategy"),fd={provide:dd,deps:[Mu],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},md=((od=function(){function t(e,n,i,a,r,o,s){var l=this;_classCallCheck(this,t),this._overlay=e,this._injector=n,this._defaultOptions=a,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me.a,this._afterOpenedAtThisLevel=new Me.a,this._ariaHiddenElements=new Map,this.afterAllClosed=$l((function(){return l.openDialogs.length?l._afterAllClosed:l._afterAllClosed.pipe(Oi(void 0))})),this._scrollStrategy=r}return _createClass(t,[{key:"open",value:function(t,e){var n=this;if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new Qh)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'.concat(e.id,'" exists already. The dialog id must be unique.'));var i=this._createOverlay(e),a=this._attachDialogContainer(i,e),r=this._attachDialogContent(t,a,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe((function(){return n._removeOpenDialog(r)})),this.afterOpened.next(r),r}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find((function(e){return e.id===t}))}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new uu({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}},{key:"_attachDialogContainer",value:function(t,e){var n=a.w.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Qh,useValue:e}]}),i=new Wc(sd,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}},{key:"_attachDialogContent",value:function(t,e,n,i){var r=new cd(n,e,i.id);if(i.hasBackdrop&&n.backdropClick().subscribe((function(){r.disableClose||r.close()})),t instanceof a.U)e.attachTemplatePortal(new $c(t,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,e),s=e.attachComponentPortal(new Wc(t,i.viewContainerRef,o));r.componentInstance=s.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(t,e,n){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:sd,useValue:n},{provide:ud,useValue:t.data},{provide:cd,useValue:e}];return!t.direction||i&&i.get(yi,null)||r.push({provide:yi,useValue:{value:t.direction,change:ze()}}),a.w.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var 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"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}},{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_afterAllClosed",get:function(){var t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel}}]),t}()).\u0275fac=function(t){return new(t||od)(a.Jc(Mu),a.Jc(a.w),a.Jc(_e.n,8),a.Jc(hd,8),a.Jc(dd),a.Jc(od,12),a.Jc(_u))},od.\u0275prov=a.uc({token:od,factory:od.\u0275fac}),od),pd=0,gd=((rd=function(){function t(e,n,i){_classCallCheck(this,t),this.dialogRef=e,this._elementRef=n,this._dialog=i,this.type="button"}return _createClass(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=bd(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}}]),t}()).\u0275fac=function(t){return new(t||rd)(a.yc(cd,8),a.yc(a.q),a.yc(md))},rd.\u0275dir=a.tc({type:rd,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&a.Nc("click",(function(){return e.dialogRef.close(e.dialogResult)})),2&t&&a.lc("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:[a.ic]}),rd),vd=((ad=function(){function t(e,n,i){_classCallCheck(this,t),this._dialogRef=e,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(pd++)}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=bd(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)}))}}]),t}()).\u0275fac=function(t){return new(t||ad)(a.yc(cd,8),a.yc(a.q),a.yc(md))},ad.\u0275dir=a.tc({type:ad,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&a.Gc("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),ad),yd=((id=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||id)},id.\u0275dir=a.tc({type:id,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),id),_d=((nd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||nd)},nd.\u0275dir=a.tc({type:nd,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),nd);function bd(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find((function(t){return t.id===n.id})):null}var kd,Cd,wd,xd,Od=((xd=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:xd}),xd.\u0275inj=a.vc({factory:function(t){return new(t||xd)},providers:[md,fd],imports:[[Bu,Zc,Ii],Ii]}),xd),Sd=0,Dd=((wd=function(){function t(){_classCallCheck(this,t),this._stateChanges=new Me.a,this._openCloseAllActions=new Me.a,this.id="cdk-accordion-".concat(Sd++),this._multi=!1}return _createClass(t,[{key:"openAll",value:function(){this._openCloseAll(!0)}},{key:"closeAll",value:function(){this._openCloseAll(!1)}},{key:"ngOnChanges",value:function(t){this._stateChanges.next(t)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_openCloseAll",value:function(t){this.multi&&this._openCloseAllActions.next(t)}},{key:"multi",get:function(){return this._multi},set:function(t){this._multi=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||wd)},wd.\u0275dir=a.tc({type:wd,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[a.ic]}),wd),Ed=0,Ad=((Cd=function(){function t(e,n,i){var r=this;_classCallCheck(this,t),this.accordion=e,this._changeDetectorRef=n,this._expansionDispatcher=i,this._openCloseAllSubscription=je.a.EMPTY,this.closed=new a.s,this.opened=new a.s,this.destroyed=new a.s,this.expandedChange=new a.s,this.id="cdk-accordion-child-".concat(Ed++),this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=i.listen((function(t,e){r.accordion&&!r.accordion.multi&&r.accordion.id===e&&r.id!==t&&(r.expanded=!1)})),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}},{key:"toggle",value:function(){this.disabled||(this.expanded=!this.expanded)}},{key:"close",value:function(){this.disabled||(this.expanded=!1)}},{key:"open",value:function(){this.disabled||(this.expanded=!0)}},{key:"_subscribeToOpenCloseAllActions",value:function(){var t=this;return this.accordion._openCloseAllActions.subscribe((function(e){t.disabled||(t.expanded=e)}))}},{key:"expanded",get:function(){return this._expanded},set:function(t){t=mn(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||Cd)(a.yc(Dd,12),a.yc(a.j),a.yc(Ya))},Cd.\u0275dir=a.tc({type:Cd,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[a.jc([{provide:Dd,useValue:void 0}])]}),Cd),Rd=((kd=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:kd}),kd.\u0275inj=a.vc({factory:function(t){return new(t||kd)}}),kd),Pd=["body"];function Td(t,e){}var Id=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Md=["mat-expansion-panel-header","*","mat-action-row"],jd=function(t,e){return{collapsedHeight:t,expandedHeight:e}},Ld=function(t,e){return{value:t,params:e}};function Nd(t,e){if(1&t&&a.zc(0,"span",2),2&t){var n=a.Rc();a.Xc("@indicatorRotate",n._getExpandedState())}}var Fd,zd,Bd,Vd,qd,Ud,Hd,Xd,Gd,Wd,$d,Yd,Kd,Jd=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Qd=["mat-panel-title","mat-panel-description","*"],Zd=new a.v("MAT_ACCORDION"),tf={indicatorRotate:o("indicatorRotate",[h("collapsed, void",u({transform:"rotate(0deg)"})),h("expanded",u({transform:"rotate(180deg)"})),d("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:o("expansionHeight",[h("collapsed, void",u({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),h("expanded",u({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),d("expanded <=> collapsed, void => collapsed",l([m("@indicatorRotate",f(),{optional:!0}),s("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:o("bodyExpansion",[h("collapsed, void",u({height:"0px",visibility:"hidden"})),h("expanded",u({height:"*",visibility:"visible"})),d("expanded <=> collapsed, void => collapsed",s("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},ef=((Fd=function t(e){_classCallCheck(this,t),this._template=e}).\u0275fac=function(t){return new(t||Fd)(a.yc(a.U))},Fd.\u0275dir=a.tc({type:Fd,selectors:[["ng-template","matExpansionPanelContent",""]]}),Fd),nf=0,af=new a.v("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),rf=((Hd=function(t){function e(t,n,i,r,o,s,l){var c;return _classCallCheck(this,e),(c=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n,i)))._viewContainerRef=r,c._animationMode=s,c._hideToggle=!1,c.afterExpand=new a.s,c.afterCollapse=new a.s,c._inputChanges=new Me.a,c._headerId="mat-expansion-panel-header-".concat(nf++),c._bodyAnimationDone=new Me.a,c.accordion=t,c._document=o,c._bodyAnimationDone.pipe(rc((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){"void"!==t.fromState&&("expanded"===t.toState?c.afterExpand.emit():"collapsed"===t.toState&&c.afterCollapse.emit())})),l&&(c.hideToggle=l.hideToggle),c}return _inherits(e,t),_createClass(e,[{key:"_hasSpacing",value:function(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}},{key:"_getExpandedState",value:function(){return this.expanded?"expanded":"collapsed"}},{key:"toggle",value:function(){this.expanded=!this.expanded}},{key:"close",value:function(){this.expanded=!1}},{key:"open",value:function(){this.expanded=!0}},{key:"ngAfterContentInit",value:function(){var t=this;this._lazyContent&&this.opened.pipe(Oi(null),en((function(){return t.expanded&&!t._portal})),un(1)).subscribe((function(){t._portal=new $c(t._lazyContent._template,t._viewContainerRef)}))}},{key:"ngOnChanges",value:function(t){this._inputChanges.next(t)}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(e.prototype),"ngOnDestroy",this).call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()}},{key:"_containsFocus",value:function(){if(this._body){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}},{key:"hideToggle",get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=mn(t)}},{key:"togglePosition",get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t}}]),e}(Ad)).\u0275fac=function(t){return new(t||Hd)(a.yc(Zd,12),a.yc(a.j),a.yc(Ya),a.yc(a.X),a.yc(_e.e),a.yc(Pe,8),a.yc(af,8))},Hd.\u0275cmp=a.sc({type:Hd,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,ef,!0),2&t&&a.dd(i=a.Oc())&&(e._lazyContent=i.first)},viewQuery:function(t,e){var n;1&t&&a.wd(Pd,!0),2&t&&a.dd(n=a.Oc())&&(e._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&a.oc("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[a.jc([{provide:Zd,useValue:void 0}]),a.hc,a.ic],ngContentSelectors:Md,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(a.Wc(Id),a.Vc(0),a.Dc(1,"div",0,1),a.Nc("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),a.Dc(3,"div",2),a.Vc(4,1),a.qd(5,Td,0,0,"ng-template",3),a.Cc(),a.Vc(6,2),a.Cc()),2&t&&(a.kc(1),a.Xc("@bodyExpansion",e._getExpandedState())("id",e.id),a.lc("aria-labelledby",e._headerId),a.kc(4),a.Xc("cdkPortalOutlet",e._portal))},directives:[Qc],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[tf.bodyExpansion]},changeDetection:0}),Hd),of=((Ud=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ud)},Ud.\u0275dir=a.tc({type:Ud,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),Ud),sf=((qd=function(){function t(e,n,i,a,r){var o=this;_classCallCheck(this,t),this.panel=e,this._element=n,this._focusMonitor=i,this._changeDetectorRef=a,this._parentChangeSubscription=je.a.EMPTY,this._animationsDisabled=!0;var s=e.accordion?e.accordion._stateChanges.pipe(en((function(t){return!(!t.hideToggle&&!t.togglePosition)}))):ln;this._parentChangeSubscription=Object(Yl.a)(e.opened,e.closed,s,e._inputChanges.pipe(en((function(t){return!!(t.hideToggle||t.disabled||t.togglePosition)})))).subscribe((function(){return o._changeDetectorRef.markForCheck()})),e.closed.pipe(en((function(){return e._containsFocus()}))).subscribe((function(){return i.focusVia(n,"program")})),i.monitor(n).subscribe((function(t){t&&e.accordion&&e.accordion._handleHeaderFocus(o)})),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}return _createClass(t,[{key:"_animationStarted",value:function(){this._animationsDisabled=!1}},{key:"_toggle",value:function(){this.disabled||this.panel.toggle()}},{key:"_isExpanded",value:function(){return this.panel.expanded}},{key:"_getExpandedState",value:function(){return this.panel._getExpandedState()}},{key:"_getPanelId",value:function(){return this.panel.id}},{key:"_getTogglePosition",value:function(){return this.panel.togglePosition}},{key:"_showToggle",value:function(){return!this.panel.hideToggle&&!this.panel.disabled}},{key:"_keydown",value:function(t){switch(t.keyCode){case 32:case 13:Be(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._element,t,e)}},{key:"ngOnDestroy",value:function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}},{key:"disabled",get:function(){return this.panel.disabled}}]),t}()).\u0275fac=function(t){return new(t||qd)(a.yc(rf,1),a.yc(a.q),a.yc(li),a.yc(a.j),a.yc(af,8))},qd.\u0275cmp=a.sc({type:qd,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header"],hostVars:19,hostBindings:function(t,e){1&t&&(a.pc("@expansionHeight.start",(function(){return e._animationStarted()})),a.Nc("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(a.lc("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),a.vd("@.disabled",e._animationsDisabled)("@expansionHeight",a.bd(16,Ld,e._getExpandedState(),a.bd(13,jd,e.collapsedHeight,e.expandedHeight))),a.oc("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:Qd,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(a.Wc(Jd),a.Dc(0,"span",0),a.Vc(1),a.Vc(2,1),a.Vc(3,2),a.Cc(),a.qd(4,Nd,1,1,"span",1)),2&t&&(a.kc(4),a.Xc("ngIf",e._showToggle()))},directives:[_e.t],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[tf.indicatorRotate,tf.expansionHeaderHeight]},changeDetection:0}),qd),lf=((Vd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Vd)},Vd.\u0275dir=a.tc({type:Vd,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Vd),cf=((Bd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Bd)},Bd.\u0275dir=a.tc({type:Bd,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Bd),uf=((zd=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments)))._ownHeaders=new a.K,t._hideToggle=!1,t.displayMode="default",t.togglePosition="after",t}return _inherits(e,t),_createClass(e,[{key:"ngAfterContentInit",value:function(){var t=this;this._headers.changes.pipe(Oi(this._headers)).subscribe((function(e){t._ownHeaders.reset(e.filter((function(e){return e.panel.accordion===t}))),t._ownHeaders.notifyOnChanges()})),this._keyManager=new Yn(this._ownHeaders).withWrap()}},{key:"_handleHeaderKeydown",value:function(t){var e=t.keyCode,n=this._keyManager;36===e?Be(t)||(n.setFirstItemActive(),t.preventDefault()):35===e?Be(t)||(n.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}},{key:"_handleHeaderFocus",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"hideToggle",get:function(){return this._hideToggle},set:function(t){this._hideToggle=mn(t)}}]),e}(Dd)).\u0275fac=function(t){return hf(t||zd)},zd.\u0275dir=a.tc({type:zd,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,sf,!0),2&t&&a.dd(i=a.Oc())&&(e._headers=i)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&a.oc("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[a.jc([{provide:Zd,useExisting:zd}]),a.hc]}),zd),hf=a.Fc(uf),df=((Xd=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Xd}),Xd.\u0275inj=a.vc({factory:function(t){return new(t||Xd)},imports:[[_e.c,Rd,Zc]]}),Xd),ff=["*"],mf=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],pf=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],gf=new a.v("MAT_GRID_LIST"),vf=((Kd=function(){function t(e,n){_classCallCheck(this,t),this._element=e,this._gridList=n,this._rowspan=1,this._colspan=1}return _createClass(t,[{key:"_setStyle",value:function(t,e){this._element.nativeElement.style[t]=e}},{key:"rowspan",get:function(){return this._rowspan},set:function(t){this._rowspan=Math.round(pn(t))}},{key:"colspan",get:function(){return this._colspan},set:function(t){this._colspan=Math.round(pn(t))}}]),t}()).\u0275fac=function(t){return new(t||Kd)(a.yc(a.q),a.yc(gf,8))},Kd.\u0275cmp=a.sc({type:Kd,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&a.lc("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:ff,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(a.Wc(),a.Dc(0,"figure",0),a.Vc(1),a.Cc())},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}),Kd),yf=((Yd=function(){function t(e){_classCallCheck(this,t),this._element=e}return _createClass(t,[{key:"ngAfterContentInit",value:function(){ra(this._lines,this._element)}}]),t}()).\u0275fac=function(t){return new(t||Yd)(a.yc(a.q))},Yd.\u0275cmp=a.sc({type:Yd,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,aa,!0),2&t&&a.dd(i=a.Oc())&&(e._lines=i)},ngContentSelectors:pf,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(t,e){1&t&&(a.Wc(mf),a.Vc(0),a.Dc(1,"div",0),a.Vc(2,1),a.Cc(),a.Vc(3,2))},encapsulation:2,changeDetection:0}),Yd),_f=(($d=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||$d)},$d.\u0275dir=a.tc({type:$d,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),$d),bf=((Wd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Wd)},Wd.\u0275dir=a.tc({type:Wd,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),Wd),kf=((Gd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Gd)},Gd.\u0275dir=a.tc({type:Gd,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),Gd),Cf=function(){function t(){_classCallCheck(this,t),this.columnIndex=0,this.rowIndex=0}return _createClass(t,[{key:"update",value:function(t,e){var n=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map((function(t){return n._trackTile(t)}))}},{key:"_trackTile",value:function(t){var e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new wf(this.rowIndex,e)}},{key:"_findMatchingGap",value:function(t){if(t>this.tracker.length)throw Error("mat-grid-list: tile with colspan ".concat(t," is wider than ")+'grid with cols="'.concat(this.tracker.length,'".'));var e=-1,n=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)):-1!=(e=this.tracker.indexOf(0,this.columnIndex))?(n=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e))}while(n-e1?this.rowCount+t-1:this.rowCount}}]),t}(),wf=function t(e,n){_classCallCheck(this,t),this.row=e,this.col=n},xf=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,Of=function(){function t(){_classCallCheck(this,t),this._rows=0,this._rowspan=0}return _createClass(t,[{key:"init",value:function(t,e,n,i){this._gutterSize=Rf(t),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=n,this._direction=i}},{key:"getBaseTileSize",value:function(t,e){return"(".concat(t,"% - (").concat(this._gutterSize," * ").concat(e,"))")}},{key:"getTilePosition",value:function(t,e){return 0===e?"0":Af("(".concat(t," + ").concat(this._gutterSize,") * ").concat(e))}},{key:"getTileSize",value:function(t,e){return"(".concat(t," * ").concat(e,") + (").concat(e-1," * ").concat(this._gutterSize,")")}},{key:"setStyle",value:function(t,e,n){var i=100/this._cols,a=(this._cols-1)/this._cols;this.setColStyles(t,n,i,a),this.setRowStyles(t,e,i,a)}},{key:"setColStyles",value:function(t,e,n,i){var a=this.getBaseTileSize(n,i);t._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(a,e)),t._setStyle("width",Af(this.getTileSize(a,t.colspan)))}},{key:"getGutterSpan",value:function(){return"".concat(this._gutterSize," * (").concat(this._rowspan," - 1)")}},{key:"getTileSpan",value:function(t){return"".concat(this._rowspan," * ").concat(this.getTileSize(t,1))}},{key:"getComputedHeight",value:function(){return null}}]),t}(),Sf=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this))).fixedRowHeight=t,n}return _inherits(e,t),_createClass(e,[{key:"init",value:function(t,n,i,a){if(_get(_getPrototypeOf(e.prototype),"init",this).call(this,t,n,i,a),this.fixedRowHeight=Rf(this.fixedRowHeight),!xf.test(this.fixedRowHeight))throw Error('Invalid value "'.concat(this.fixedRowHeight,'" set as rowHeight.'))}},{key:"setRowStyles",value:function(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",Af(this.getTileSize(this.fixedRowHeight,t.rowspan)))}},{key:"getComputedHeight",value:function(){return["height",Af("".concat(this.getTileSpan(this.fixedRowHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(t){t._setListStyle(["height",null]),t._tiles&&t._tiles.forEach((function(t){t._setStyle("top",null),t._setStyle("height",null)}))}}]),e}(Of),Df=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._parseRatio(t),n}return _inherits(e,t),_createClass(e,[{key:"setRowStyles",value:function(t,e,n,i){this.baseTileHeight=this.getBaseTileSize(n/this.rowHeightRatio,i),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",Af(this.getTileSize(this.baseTileHeight,t.rowspan)))}},{key:"getComputedHeight",value:function(){return["paddingBottom",Af("".concat(this.getTileSpan(this.baseTileHeight)," + ").concat(this.getGutterSpan()))]}},{key:"reset",value:function(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach((function(t){t._setStyle("marginTop",null),t._setStyle("paddingTop",null)}))}},{key:"_parseRatio",value:function(t){var e=t.split(":");if(2!==e.length)throw Error('mat-grid-list: invalid ratio given for row-height: "'.concat(t,'"'));this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}]),e}(Of),Ef=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{key:"setRowStyles",value:function(t,e){var n=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(n,e)),t._setStyle("height",Af(this.getTileSize(n,t.rowspan)))}},{key:"reset",value:function(t){t._tiles&&t._tiles.forEach((function(t){t._setStyle("top",null),t._setStyle("height",null)}))}}]),e}(Of);function Af(t){return"calc(".concat(t,")")}function Rf(t){return t.match(/([A-Za-z%]+)$/)?t:"".concat(t,"px")}var Pf,Tf,If=((Tf=function(){function t(e,n){_classCallCheck(this,t),this._element=e,this._dir=n,this._gutter="1px"}return _createClass(t,[{key:"ngOnInit",value:function(){this._checkCols(),this._checkRowHeight()}},{key:"ngAfterContentChecked",value:function(){this._layoutTiles()}},{key:"_checkCols",value:function(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: ')}},{key:"_checkRowHeight",value:function(){this._rowHeight||this._setTileStyler("1:1")}},{key:"_setTileStyler",value:function(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new Ef:t&&t.indexOf(":")>-1?new Df(t):new Sf(t)}},{key:"_layoutTiles",value:function(){var t=this;this._tileCoordinator||(this._tileCoordinator=new Cf);var e=this._tileCoordinator,n=this._tiles.filter((function(e){return!e._gridList||e._gridList===t})),i=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,n),this._tileStyler.init(this.gutterSize,e,this.cols,i),n.forEach((function(n,i){var a=e.positions[i];t._tileStyler.setStyle(n,a.row,a.col)})),this._setListStyle(this._tileStyler.getComputedHeight())}},{key:"_setListStyle",value:function(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}},{key:"cols",get:function(){return this._cols},set:function(t){this._cols=Math.max(1,Math.round(pn(t)))}},{key:"gutterSize",get:function(){return this._gutter},set:function(t){this._gutter="".concat(null==t?"":t)}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(t){var e="".concat(null==t?"":t);e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}}]),t}()).\u0275fac=function(t){return new(t||Tf)(a.yc(a.q),a.yc(yi,8))},Tf.\u0275cmp=a.sc({type:Tf,selectors:[["mat-grid-list"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,vf,!0),2&t&&a.dd(i=a.Oc())&&(e._tiles=i)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&a.lc("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[a.jc([{provide:gf,useExisting:Tf}])],ngContentSelectors:ff,decls:2,vars:0,template:function(t,e){1&t&&(a.Wc(),a.Dc(0,"div"),a.Vc(1),a.Cc())},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}),Tf),Mf=((Pf=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Pf}),Pf.\u0275inj=a.vc({factory:function(t){return new(t||Pf)},imports:[[ma,Ii],ma,Ii]}),Pf);function jf(t){return function(e){var n=new Lf(t),i=e.lift(n);return n.caught=i}}var Lf=function(){function t(e){_classCallCheck(this,t),this.selector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Nf(t,this.selector,this.caught))}}]),t}(),Nf=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).selector=n,a.caught=i,a}return _inherits(e,t),_createClass(e,[{key:"error",value:function(t){if(!this.isStopped){var n;try{n=this.selector(t,this.caught)}catch(a){return void _get(_getPrototypeOf(e.prototype),"error",this).call(this,a)}this._unsubscribeAndRecycle();var i=new _c.a(this,void 0,void 0);this.add(i),Object(cc.a)(this,n,void 0,void 0,i)}}}]),e}(lc.a);function Ff(t){return function(e){return e.lift(new zf(t))}}var zf=function(){function t(e){_classCallCheck(this,t),this.callback=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Bf(t,this.callback))}}]),t}(),Bf=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).add(new je.a(n)),i}return _inherits(e,t),e}(Ve.a),Vf=n("w1tV"),qf=n("5+tZ");function Uf(t,e){return Object(qf.a)(t,e,1)}var Hf=function t(){_classCallCheck(this,t)},Xf=function t(){_classCallCheck(this,t)},Gf=function(){function t(e){var n=this;_classCallCheck(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){n.headers=new Map,e.split("\n").forEach((function(t){var e=t.indexOf(":");if(e>0){var i=t.slice(0,e),a=i.toLowerCase(),r=t.slice(e+1).trim();n.maybeSetNormalizedName(i,a),n.headers.has(a)?n.headers.get(a).push(r):n.headers.set(a,[r])}}))}:function(){n.headers=new Map,Object.keys(e).forEach((function(t){var i=e[t],a=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(a,i),n.maybeSetNormalizedName(t,a))}))}:this.headers=new Map}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(t){return e.applyUpdate(t)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))}))}},{key:"clone",value:function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,_toConsumableArray(n)),this.headers.set(e,i);break;case"d":var a=t.value;if(a){var r=this.headers.get(e);if(!r)return;0===(r=r.filter((function(t){return-1===a.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,r)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return t(e.normalizedNames.get(n),e.headers.get(n))}))}}]),t}(),Wf=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return $f(t)}},{key:"encodeValue",value:function(t){return $f(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function $f(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,"/")}var Yf=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,t),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Wf,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){var n=new Map;return t.length>0&&t.split("&").forEach((function(t){var i=t.indexOf("="),a=_slicedToArray(-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],2),r=a[0],o=a[1],s=n.get(r)||[];s.push(o),n.set(r,s)})),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach((function(t){var i=n.fromObject[t];e.map.set(t,Array.isArray(i)?i:[i])}))):this.map=null}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map((function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map((function(e){return n+"="+t.encoder.encodeValue(e)})).join("&")})).filter((function(t){return""!==t})).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(e){return t.map.set(e,t.cloneFrom.map.get(e))})),this.updates.forEach((function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var i=t.map.get(e.param)||[],a=i.indexOf(e.value);-1!==a&&i.splice(a,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)}}]),t}();function Kf(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Jf(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Qf(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Zf=function(){function t(e,n,i,a){var r;if(_classCallCheck(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||a?(this.body=void 0!==i?i:null,r=a):r=i,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 Gf),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=e.method||this.method,i=e.url||this.url,a=e.responseType||this.responseType,r=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,l=e.headers||this.headers,c=e.params||this.params;return void 0!==e.setHeaders&&(l=Object.keys(e.setHeaders).reduce((function(t,n){return t.set(n,e.setHeaders[n])}),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((function(t,n){return t.set(n,e.setParams[n])}),c)),new t(n,i,r,{params:c,headers:l,reportProgress:s,responseType:a,withCredentials:o})}}]),t}(),tm=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}(),em=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,t),this.headers=e.headers||new Gf,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},nm=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,n))).type=tm.ResponseHeader,t}return _inherits(e,t),_createClass(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e({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})}}]),e}(em),im=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,n))).type=tm.Response,t.body=void 0!==n.body?n.body:null,t}return _inherits(e,t),_createClass(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e({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})}}]),e}(em),am=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,0,"Unknown Error"))).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),n.error=t.error||null,n}return _inherits(e,t),e}(em);function rm(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var om,sm,lm,cm,um,hm,dm,fm,mm,pm=((om=function(){function t(e){_classCallCheck(this,t),this.handler=e}return _createClass(t,[{key:"request",value:function(t,e){var n,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof Zf)n=t;else{var r=void 0;r=a.headers instanceof Gf?a.headers:new Gf(a.headers);var o=void 0;a.params&&(o=a.params instanceof Yf?a.params:new Yf({fromObject:a.params})),n=new Zf(t,e,void 0!==a.body?a.body:null,{headers:r,params:o,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials})}var s=ze(n).pipe(Uf((function(t){return i.handler.handle(t)})));if(t instanceof Zf||"events"===a.observe)return s;var l=s.pipe(en((function(t){return t instanceof im})));switch(a.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(Object(rn.a)((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return l.pipe(Object(rn.a)((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return l.pipe(Object(rn.a)((function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));case"json":default:return l.pipe(Object(rn.a)((function(t){return t.body})))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(a.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new Yf).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,rm(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,rm(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,rm(n,e))}}]),t}()).\u0275fac=function(t){return new(t||om)(a.Jc(Hf))},om.\u0275prov=a.uc({token:om,factory:om.\u0275fac}),om),gm=function(){function t(e,n){_classCallCheck(this,t),this.next=e,this.interceptor=n}return _createClass(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),vm=new a.v("HTTP_INTERCEPTORS"),ym=((sm=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||sm)},sm.\u0275prov=a.uc({token:sm,factory:sm.\u0275fac}),sm),_m=/^\)\]\}',?\n/,bm=function t(){_classCallCheck(this,t)},km=((cm=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}()).\u0275fac=function(t){return new(t||cm)},cm.\u0275prov=a.uc({token:cm,factory:cm.\u0275fac}),cm),Cm=((lm=function(){function t(e){_classCallCheck(this,t),this.xhrFactory=e}return _createClass(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new sn.a((function(n){var i=e.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((function(t,e){return i.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var a=t.detectContentTypeHeader();null!==a&&i.setRequestHeader("Content-Type",a)}if(t.responseType){var r=t.responseType.toLowerCase();i.responseType="json"!==r?r:"text"}var o=t.serializeBody(),s=null,l=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",a=new Gf(i.getAllResponseHeaders()),r=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new nm({headers:a,status:e,statusText:n,url:r})},c=function(){var e=l(),a=e.headers,r=e.status,o=e.statusText,s=e.url,c=null;204!==r&&(c=void 0===i.response?i.responseText:i.response),0===r&&(r=c?200:0);var u=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof c){var h=c;c=c.replace(_m,"");try{c=""!==c?JSON.parse(c):null}catch(d){c=h,u&&(u=!1,c={error:d,text:c})}}u?(n.next(new im({body:c,headers:a,status:r,statusText:o,url:s||void 0})),n.complete()):n.error(new am({error:c,headers:a,status:r,statusText:o,url:s||void 0}))},u=function(t){var e=l().url,a=new am({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e||void 0});n.error(a)},h=!1,d=function(e){h||(n.next(l()),h=!0);var a={type:tm.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(a.total=e.total),"text"===t.responseType&&i.responseText&&(a.partialText=i.responseText),n.next(a)},f=function(t){var e={type:tm.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",c),i.addEventListener("error",u),t.reportProgress&&(i.addEventListener("progress",d),null!==o&&i.upload&&i.upload.addEventListener("progress",f)),i.send(o),n.next({type:tm.Sent}),function(){i.removeEventListener("error",u),i.removeEventListener("load",c),t.reportProgress&&(i.removeEventListener("progress",d),null!==o&&i.upload&&i.upload.removeEventListener("progress",f)),i.abort()}}))}}]),t}()).\u0275fac=function(t){return new(t||lm)(a.Jc(bm))},lm.\u0275prov=a.uc({token:lm,factory:lm.\u0275fac}),lm),wm=new a.v("XSRF_COOKIE_NAME"),xm=new a.v("XSRF_HEADER_NAME"),Om=function t(){_classCallCheck(this,t)},Sm=((mm=function(){function t(e,n,i){_classCallCheck(this,t),this.doc=e,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(_e.O)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}()).\u0275fac=function(t){return new(t||mm)(a.Jc(_e.e),a.Jc(a.I),a.Jc(wm))},mm.\u0275prov=a.uc({token:mm,factory:mm.\u0275fac}),mm),Dm=((fm=function(){function t(e,n){_classCallCheck(this,t),this.tokenService=e,this.headerName=n}return _createClass(t,[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var 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)}}]),t}()).\u0275fac=function(t){return new(t||fm)(a.Jc(Om),a.Jc(xm))},fm.\u0275prov=a.uc({token:fm,factory:fm.\u0275fac}),fm),Em=((dm=function(){function t(e,n){_classCallCheck(this,t),this.backend=e,this.injector=n,this.chain=null}return _createClass(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(vm,[]);this.chain=e.reduceRight((function(t,e){return new gm(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||dm)(a.Jc(Xf),a.Jc(a.w))},dm.\u0275prov=a.uc({token:dm,factory:dm.\u0275fac}),dm),Am=((hm=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:Dm,useClass:ym}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:wm,useValue:e.cookieName}:[],e.headerName?{provide:xm,useValue:e.headerName}:[]]}}}]),t}()).\u0275mod=a.wc({type:hm}),hm.\u0275inj=a.vc({factory:function(t){return new(t||hm)},providers:[Dm,{provide:vm,useExisting:Dm,multi:!0},{provide:Om,useClass:Sm},{provide:wm,useValue:"XSRF-TOKEN"},{provide:xm,useValue:"X-XSRF-TOKEN"}]}),hm),Rm=((um=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:um}),um.\u0275inj=a.vc({factory:function(t){return new(t||um)},providers:[pm,{provide:Hf,useClass:Em},Cm,{provide:Xf,useExisting:Cm},km,{provide:bm,useExisting:km}],imports:[[Am.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),um),Pm=["*"];function Tm(t){return Error('Unable to find icon with the name "'.concat(t,'"'))}function Im(t){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(t,'".'))}function Mm(t){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(t,'".'))}var jm,Lm=function t(e,n){_classCallCheck(this,t),this.options=n,e.nodeName?this.svgElement=e:this.url=e},Nm=((jm=function(){function t(e,n,i,a){_classCallCheck(this,t),this._httpClient=e,this._sanitizer=n,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}return _createClass(t,[{key:"addSvgIcon",value:function(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}},{key:"addSvgIconLiteral",value:function(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}},{key:"addSvgIconInNamespace",value:function(t,e,n,i){return this._addSvgIconConfig(t,e,new Lm(n,i))}},{key:"addSvgIconLiteralInNamespace",value:function(t,e,n,i){var r=this._sanitizer.sanitize(a.P.HTML,n);if(!r)throw Mm(n);var o=this._createSvgElementForSingleIcon(r,i);return this._addSvgIconConfig(t,e,new Lm(o,i))}},{key:"addSvgIconSet",value:function(t,e){return this.addSvgIconSetInNamespace("",t,e)}},{key:"addSvgIconSetLiteral",value:function(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}},{key:"addSvgIconSetInNamespace",value:function(t,e,n){return this._addSvgIconSetConfig(t,new Lm(e,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(t,e,n){var i=this._sanitizer.sanitize(a.P.HTML,e);if(!i)throw Mm(e);var r=this._svgElementFromString(i);return this._addSvgIconSetConfig(t,new Lm(r,n))}},{key:"registerFontClassAlias",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this._fontCssClassesByAlias.set(t,e),this}},{key:"classNameForFontAlias",value:function(t){return this._fontCssClassesByAlias.get(t)||t}},{key:"setDefaultFontSetClass",value:function(t){return this._defaultFontSetClass=t,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(t){var e=this,n=this._sanitizer.sanitize(a.P.RESOURCE_URL,t);if(!n)throw Im(t);var i=this._cachedIconsByUrl.get(n);return i?ze(Fm(i)):this._loadSvgIconFromConfig(new Lm(t)).pipe(He((function(t){return e._cachedIconsByUrl.set(n,t)})),Object(rn.a)((function(t){return Fm(t)})))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=zm(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);var a=this._iconSetConfigs.get(e);return a?this._getSvgFromIconSetConfigs(t,a):Oc(Tm(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgElement?ze(Fm(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(He((function(e){return t.svgElement=e})),Object(rn.a)((function(t){return Fm(t)})))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var n=this,i=this._extractIconWithNameFromAnySet(t,e);return i?ze(i):Za(e.filter((function(t){return!t.svgElement})).map((function(t){return n._loadSvgIconSetFromConfig(t).pipe(jf((function(e){var i="Loading icon set URL: ".concat(n._sanitizer.sanitize(a.P.RESOURCE_URL,t.url)," failed: ").concat(e.message);return n._errorHandler?n._errorHandler.handleError(new Error(i)):console.error(i),ze(null)})))}))).pipe(Object(rn.a)((function(){var i=n._extractIconWithNameFromAnySet(t,e);if(!i)throw Tm(t);return i})))}},{key:"_extractIconWithNameFromAnySet",value:function(t,e){for(var n=e.length-1;n>=0;n--){var i=e[n];if(i.svgElement){var a=this._extractSvgIconFromSet(i.svgElement,t,i.options);if(a)return a}}return null}},{key:"_loadSvgIconFromConfig",value:function(t){var e=this;return this._fetchUrl(t.url).pipe(Object(rn.a)((function(n){return e._createSvgElementForSingleIcon(n,t.options)})))}},{key:"_loadSvgIconSetFromConfig",value:function(t){var e=this;return t.svgElement?ze(t.svgElement):this._fetchUrl(t.url).pipe(Object(rn.a)((function(n){return t.svgElement||(t.svgElement=e._svgElementFromString(n)),t.svgElement})))}},{key:"_createSvgElementForSingleIcon",value:function(t,e){var n=this._svgElementFromString(t);return this._setSvgAttributes(n,e),n}},{key:"_extractSvgIconFromSet",value:function(t,e,n){var i=t.querySelector('[id="'.concat(e,'"]'));if(!i)return null;var a=i.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,n);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),n);var r=this._svgElementFromString("");return r.appendChild(a),this._setSvgAttributes(r,n)}},{key:"_svgElementFromString",value:function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(t){for(var e=this._svgElementFromString(""),n=t.attributes,i=0;i0&&void 0!==arguments[0]&&arguments[0];if(this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(e||this._minRows!==this._previousMinRows||i!==this._previousValue){var a=n.placeholder;n.classList.add("cdk-textarea-autosize-measuring"),n.placeholder="",n.style.height="".concat(n.scrollHeight-4,"px"),n.classList.remove("cdk-textarea-autosize-measuring"),n.placeholder=a,this._ngZone.runOutsideAngular((function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame((function(){return t._scrollToCaretPosition(n)})):setTimeout((function(){return t._scrollToCaretPosition(n)}))})),this._previousValue=i,this._previousMinRows=this._minRows}}}},{key:"reset",value:function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}},{key:"_noopInputHandler",value:function(){}},{key:"_scrollToCaretPosition",value:function(t){var e=t.selectionStart,n=t.selectionEnd;this._destroyed.isStopped||document.activeElement!==t||t.setSelectionRange(e,n)}},{key:"minRows",get:function(){return this._minRows},set:function(t){this._minRows=pn(t),this._setMinHeight()}},{key:"maxRows",get:function(){return this._maxRows},set:function(t){this._maxRows=pn(t),this._setMaxHeight()}},{key:"enabled",get:function(){return this._enabled},set:function(t){t=mn(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}}]),t}()).\u0275fac=function(t){return new(t||Hm)(a.yc(a.q),a.yc(On),a.yc(a.F))},Hm.\u0275dir=a.tc({type:Hm,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&a.Nc("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),Hm),lp=((Um=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Um}),Um.\u0275inj=a.vc({factory:function(t){return new(t||Um)},imports:[[Sn]]}),Um),cp=((qm=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),_createClass(e,[{key:"matAutosizeMinRows",get:function(){return this.minRows},set:function(t){this.minRows=t}},{key:"matAutosizeMaxRows",get:function(){return this.maxRows},set:function(t){this.maxRows=t}},{key:"matAutosize",get:function(){return this.enabled},set:function(t){this.enabled=t}},{key:"matTextareaAutosize",get:function(){return this.enabled},set:function(t){this.enabled=t}}]),e}(sp)).\u0275fac=function(t){return up(t||qm)},qm.\u0275dir=a.tc({type:qm,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[a.hc]}),qm),up=a.Fc(cp),hp=new a.v("MAT_INPUT_VALUE_ACCESSOR"),dp=["button","checkbox","file","hidden","image","radio","range","reset","submit"],fp=0,mp=Fi((function t(e,n,i,a){_classCallCheck(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=a})),pp=((Km=function(t){function e(t,n,i,a,r,o,s,l,c){var u;_classCallCheck(this,e),(u=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,o,a,r,i)))._elementRef=t,u._platform=n,u.ngControl=i,u._autofillMonitor=l,u._uid="mat-input-".concat(fp++),u._isServer=!1,u._isNativeSelect=!1,u.focused=!1,u.stateChanges=new Me.a,u.controlType="mat-input",u.autofilled=!1,u._disabled=!1,u._required=!1,u._type="text",u._readonly=!1,u._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(t){return En().has(t)}));var h=u._elementRef.nativeElement;return u._inputValueAccessor=s||h,u._previousNativeValue=u.value,u.id=u.id,n.IOS&&c.runOutsideAngular((function(){t.nativeElement.addEventListener("keyup",(function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}))})),u._isServer=!u._platform.isBrowser,u._isNativeSelect="select"===h.nodeName.toLowerCase(),u._isNativeSelect&&(u.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select"),u}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()}))}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_focusChanged",value:function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_isTextarea",value:function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}},{key:"_dirtyCheckNativeValue",value:function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}},{key:"_validateType",value:function(){if(dp.indexOf(this._type)>-1)throw Error('Input type "'.concat(this._type,"\" isn't supported by matInput."))}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=mn(t),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=mn(t)}},{key:"type",get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&En().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(t){this._readonly=mn(t)}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var 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}}]),e}(mp)).\u0275fac=function(t){return new(t||Km)(a.yc(a.q),a.yc(On),a.yc(vr,10),a.yc(No,8),a.yc(Jo,8),a.yc(ia),a.yc(hp,10),a.yc(rp),a.yc(a.F))},Km.\u0275dir=a.tc({type:Km,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&&a.Nc("blur",(function(){return e._focusChanged(!1)}))("focus",(function(){return e._focusChanged(!0)}))("input",(function(){return e._onInput()})),2&t&&(a.Gc("disabled",e.disabled)("required",e.required),a.lc("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()),a.oc("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:[a.jc([{provide:fh,useExisting:Km}]),a.hc,a.ic]}),Km),gp=((Ym=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Ym}),Ym.\u0275inj=a.vc({factory:function(t){return new(t||Ym)},providers:[ia],imports:[[lp,Th],lp,Th]}),Ym),vp=(($m=function(){function t(){_classCallCheck(this,t),this._vertical=!1,this._inset=!1}return _createClass(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=mn(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||$m)},$m.\u0275cmp=a.sc({type:$m,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(a.lc("aria-orientation",e.vertical?"vertical":"horizontal"),a.oc("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),$m),yp=((Wm=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Wm}),Wm.\u0275inj=a.vc({factory:function(t){return new(t||Wm)},imports:[[Ii],Ii]}),Wm),_p=["*"],bp=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],kp=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],Cp=["text"];function wp(t,e){if(1&t&&a.zc(0,"mat-pseudo-checkbox",5),2&t){var n=a.Rc();a.Xc("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}var xp,Op,Sp,Dp,Ep,Ap,Rp,Pp,Tp,Ip=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],Mp=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],jp=Mi(Li((function t(){_classCallCheck(this,t)}))),Lp=Li((function t(){_classCallCheck(this,t)})),Np=((xp=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments)))._stateChanges=new Me.a,t}return _inherits(e,t),_createClass(e,[{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(jp)).\u0275fac=function(t){return Fp(t||xp)},xp.\u0275cmp=a.sc({type:xp,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[a.hc,a.ic],ngContentSelectors:_p,decls:1,vars:0,template:function(t,e){1&t&&(a.Wc(),a.Vc(0))},styles:[".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"],encapsulation:2,changeDetection:0}),xp),Fp=a.Fc(Np),zp=((Ap=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._elementRef=t,n._stateChanges=new Me.a,"action-list"===n._getListType()&&t.nativeElement.classList.add("mat-action-list"),n}return _inherits(e,t),_createClass(e,[{key:"_getListType",value:function(){var t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),e}(jp)).\u0275fac=function(t){return new(t||Ap)(a.yc(a.q))},Ap.\u0275cmp=a.sc({type:Ap,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[a.hc,a.ic],ngContentSelectors:_p,decls:1,vars:0,template:function(t,e){1&t&&(a.Wc(),a.Vc(0))},styles:[".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"],encapsulation:2,changeDetection:0}),Ap),Bp=((Ep=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Ep)},Ep.\u0275dir=a.tc({type:Ep,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Ep),Vp=((Dp=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Dp)},Dp.\u0275dir=a.tc({type:Dp,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Dp),qp=((Sp=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Sp)},Sp.\u0275dir=a.tc({type:Sp,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),Sp),Up=((Op=function(t){function e(t,n,i,a){var r;_classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._element=t,r._isInteractiveList=!1,r._destroyed=new Me.a,r._disabled=!1,r._isInteractiveList=!!(i||a&&"action-list"===a._getListType()),r._list=i||a;var o=r._getHostElement();return"button"!==o.nodeName.toLowerCase()||o.hasAttribute("type")||o.setAttribute("type","button"),r._list&&r._list._stateChanges.pipe(gc(r._destroyed)).subscribe((function(){n.markForCheck()})),r}return _inherits(e,t),_createClass(e,[{key:"ngAfterContentInit",value:function(){ra(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(t){this._disabled=mn(t)}}]),e}(Lp)).\u0275fac=function(t){return new(t||Op)(a.yc(a.q),a.yc(a.j),a.yc(Np,8),a.yc(zp,8))},Op.\u0275cmp=a.sc({type:Op,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Bp,!0),a.qc(n,Vp,!0),a.qc(n,aa,!0)),2&t&&(a.dd(i=a.Oc())&&(e._avatar=i.first),a.dd(i=a.Oc())&&(e._icon=i.first),a.dd(i=a.Oc())&&(e._lines=i))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&a.oc("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[a.hc],ngContentSelectors:kp,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(a.Wc(bp),a.Dc(0,"div",0),a.zc(1,"div",1),a.Vc(2),a.Dc(3,"div",2),a.Vc(4,1),a.Cc(),a.Vc(5,2),a.Cc()),2&t&&(a.kc(1),a.Xc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[ba],encapsulation:2,changeDetection:0}),Op),Hp=Li((function t(){_classCallCheck(this,t)})),Xp=Li((function t(){_classCallCheck(this,t)})),Gp={provide:rr,useExisting:Object(a.cb)((function(){return Yp})),multi:!0},Wp=function t(e,n){_classCallCheck(this,t),this.source=e,this.option=n},$p=((Tp=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._element=t,a._changeDetector=n,a.selectionList=i,a._selected=!1,a._disabled=!1,a._hasFocus=!1,a.checkboxPosition="after",a._inputsInitialized=!1,a}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){var t=this,e=this.selectionList;e._value&&e._value.some((function(n){return e.compareWith(n,t._value)}))&&this._setSelected(!0);var n=this._selected;Promise.resolve().then((function(){(t._selected||n)&&(t.selected=!0,t._changeDetector.markForCheck())})),this._inputsInitialized=!0}},{key:"ngAfterContentInit",value:function(){ra(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){var t=this;this.selected&&Promise.resolve().then((function(){t.selected=!1}));var e=this._hasFocus,n=this.selectionList._removeOptionFromList(this);e&&n&&n.focus()}},{key:"toggle",value:function(){this.selected=!this.selected}},{key:"focus",value:function(){this._element.nativeElement.focus()}},{key:"getLabel",value:function(){return this._text&&this._text.nativeElement.textContent||""}},{key:"_isRippleDisabled",value:function(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}},{key:"_handleClick",value:function(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}},{key:"_handleFocus",value:function(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}},{key:"_handleBlur",value:function(){this.selectionList._onTouched(),this._hasFocus=!1}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"_setSelected",value:function(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"color",get:function(){return this._color||this.selectionList.color},set:function(t){this._color=t}},{key:"value",get:function(){return this._value},set:function(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}},{key:"disabled",get:function(){return this._disabled||this.selectionList&&this.selectionList.disabled},set:function(t){var e=mn(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}},{key:"selected",get:function(){return this.selectionList.selectedOptions.isSelected(this)},set:function(t){var e=mn(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}}]),e}(Xp)).\u0275fac=function(t){return new(t||Tp)(a.yc(a.q),a.yc(a.j),a.yc(Object(a.cb)((function(){return Yp}))))},Tp.\u0275cmp=a.sc({type:Tp,selectors:[["mat-list-option"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Bp,!0),a.qc(n,Vp,!0),a.qc(n,aa,!0)),2&t&&(a.dd(i=a.Oc())&&(e._avatar=i.first),a.dd(i=a.Oc())&&(e._icon=i.first),a.dd(i=a.Oc())&&(e._lines=i))},viewQuery:function(t,e){var n;1&t&&a.wd(Cp,!0),2&t&&a.dd(n=a.Oc())&&(e._text=n.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&a.Nc("focus",(function(){return e._handleFocus()}))("blur",(function(){return e._handleBlur()}))("click",(function(){return e._handleClick()})),2&t&&(a.lc("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),a.oc("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[a.hc],ngContentSelectors:Mp,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&(a.Wc(Ip),a.Dc(0,"div",0),a.zc(1,"div",1),a.qd(2,wp,1,2,"mat-pseudo-checkbox",2),a.Dc(3,"div",3,4),a.Vc(5),a.Cc(),a.Vc(6,1),a.Cc()),2&t&&(a.oc("mat-list-item-content-reverse","after"==e.checkboxPosition),a.kc(1),a.Xc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),a.kc(1),a.Xc("ngIf",e.selectionList.multiple))},directives:[ba,_e.t,Ca],encapsulation:2,changeDetection:0}),Tp),Yp=((Pp=function(t){function e(t,n,i){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._element=t,r._changeDetector=i,r._multiple=!0,r._contentInitialized=!1,r.selectionChange=new a.s,r.tabIndex=0,r.color="accent",r.compareWith=function(t,e){return t===e},r._disabled=!1,r.selectedOptions=new $a(r._multiple),r._tabIndex=-1,r._onChange=function(t){},r._destroyed=new Me.a,r._onTouched=function(){},r}return _inherits(e,t),_createClass(e,[{key:"ngAfterContentInit",value:function(){var t=this;this._contentInitialized=!0,this._keyManager=new Yn(this.options).withWrap().withTypeAhead().skipPredicate((function(){return!1})).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(gc(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.options.changes.pipe(Oi(null),gc(this._destroyed)).subscribe((function(){t._updateTabIndex()})),this.selectedOptions.changed.pipe(gc(this._destroyed)).subscribe((function(t){if(t.added){var e=!0,n=!1,i=void 0;try{for(var a,r=t.added[Symbol.iterator]();!(e=(a=r.next()).done);e=!0)a.value.selected=!0}catch(h){n=!0,i=h}finally{try{e||null==r.return||r.return()}finally{if(n)throw i}}}if(t.removed){var o=!0,s=!1,l=void 0;try{for(var c,u=t.removed[Symbol.iterator]();!(o=(c=u.next()).done);o=!0)c.value.selected=!1}catch(h){s=!0,l=h}finally{try{o||null==u.return||u.return()}finally{if(s)throw l}}}}))}},{key:"ngOnChanges",value:function(t){var e=t.disableRipple,n=t.color;(e&&!e.firstChange||n&&!n.firstChange)&&this._markOptionsForCheck()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}},{key:"focus",value:function(t){this._element.nativeElement.focus(t)}},{key:"selectAll",value:function(){this._setAllOptionsSelected(!0)}},{key:"deselectAll",value:function(){this._setAllOptionsSelected(!1)}},{key:"_setFocusedOption",value:function(t){this._keyManager.updateActiveItem(t)}},{key:"_removeOptionFromList",value:function(t){var e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}},{key:"_keydown",value:function(t){var e=t.keyCode,n=this._keyManager,i=n.activeItemIndex,a=Be(t);switch(e){case 32:case 13:a||n.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;case 36:case 35:a||(36===e?n.setFirstItemActive():n.setLastItemActive(),t.preventDefault());break;default:65===e&&this.multiple&&Be(t,"ctrlKey")&&!n.isTyping()?(this.options.find((function(t){return!t.selected}))?this.selectAll():this.deselectAll(),t.preventDefault()):n.onKeydown(t)}38!==e&&40!==e||!t.shiftKey||n.activeItemIndex===i||this._toggleFocusedOption()}},{key:"_reportValueChange",value:function(){if(this.options&&!this._isDestroyed){var t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}},{key:"_emitChangeEvent",value:function(t){this.selectionChange.emit(new Wp(this,t))}},{key:"_onFocus",value:function(){var t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}},{key:"writeValue",value:function(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}},{key:"setDisabledState",value:function(t){this.disabled=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"_setOptionsFromValues",value:function(t){var e=this;this.options.forEach((function(t){return t._setSelected(!1)})),t.forEach((function(t){var n=e.options.find((function(n){return!n.selected&&e.compareWith(n.value,t)}));n&&n._setSelected(!0)}))}},{key:"_getSelectedOptionValues",value:function(){return this.options.filter((function(t){return t.selected})).map((function(t){return t.value}))}},{key:"_toggleFocusedOption",value:function(){var t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){var e=this.options.toArray()[t];!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent(e))}}},{key:"_setAllOptionsSelected",value:function(t){var e=!1;this.options.forEach((function(n){n._setSelected(t)&&(e=!0)})),e&&this._reportValueChange()}},{key:"_isValidIndex",value:function(t){return t>=0&&t*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0;position:relative}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}@media(hover: none){.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"],encapsulation:2,changeDetection:0}),Pp),Kp=((Rp=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Rp}),Rp.\u0275inj=a.vc({factory:function(t){return new(t||Rp)},imports:[[ma,ka,Ii,wa,_e.c],ma,Ii,wa,yp]}),Rp),Jp=["mat-menu-item",""],Qp=["*"];function Zp(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",0),a.Nc("keydown",(function(t){return a.id(n),a.Rc()._handleKeydown(t)}))("click",(function(){return a.id(n),a.Rc().closed.emit("click")}))("@transformMenu.start",(function(t){return a.id(n),a.Rc()._onAnimationStart(t)}))("@transformMenu.done",(function(t){return a.id(n),a.Rc()._onAnimationDone(t)})),a.Dc(1,"div",1),a.Vc(2),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.Xc("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),a.lc("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var tg,eg,ng,ig,ag,rg,og,sg,lg={transformMenu:o("transformMenu",[h("void",u({opacity:0,transform:"scale(0.8)"})),d("void => enter",l([m(".mat-menu-content, .mat-mdc-menu-content",s("100ms linear",u({opacity:1}))),s("120ms cubic-bezier(0, 0, 0.2, 1)",u({transform:"scale(1)"}))])),d("* => void",s("100ms 25ms linear",u({opacity:0})))]),fadeInItems:o("fadeInItems",[h("showing",u({opacity:1})),d("void => *",[u({opacity:0}),s("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},cg=((tg=function(){function t(e,n,i,a,r,o,s){_classCallCheck(this,t),this._template=e,this._componentFactoryResolver=n,this._appRef=i,this._injector=a,this._viewContainerRef=r,this._document=o,this._changeDetectorRef=s,this._attached=new Me.a}return _createClass(t,[{key:"attach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new $c(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Jc(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),t}()).\u0275fac=function(t){return new(t||tg)(a.yc(a.U),a.yc(a.n),a.yc(a.g),a.yc(a.w),a.yc(a.X),a.yc(_e.e),a.yc(a.j))},tg.\u0275dir=a.tc({type:tg,selectors:[["ng-template","matMenuContent",""]]}),tg),ug=new a.v("MAT_MENU_PANEL"),hg=Li(Mi((function t(){_classCallCheck(this,t)}))),dg=((eg=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._elementRef=t,r._focusMonitor=i,r._parentMenu=a,r.role="menuitem",r._hovered=new Me.a,r._focused=new Me.a,r._highlighted=!1,r._triggersSubmenu=!1,i&&i.monitor(r._elementRef,!1),a&&a.addItem&&a.addItem(_assertThisInitialized(r)),r._document=n,r}return _inherits(e,t),_createClass(e,[{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){var t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3,n="";if(t.childNodes)for(var i=t.childNodes.length,a=0;a0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.asObservable().pipe(un(1)).subscribe((function(){return t._focusFirstItem(e)})):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e="mat-elevation-z".concat(Math.min(4+t,24)),n=Object.keys(this._classList).find((function(t){return t.startsWith("mat-elevation-z")}));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe(Oi(this._allItems)).subscribe((function(e){t._directDescendantItems.reset(e.filter((function(e){return e._parentMenu===t}))),t._directDescendantItems.notifyOnChanges()}))}},{key:"xPosition",get:function(){return this._xPosition},set:function(t){"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n Example: ')}(),this._xPosition=t,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=mn(t)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=mn(t)}},{key:"panelClass",set:function(t){var e=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach((function(t){e._classList[t]=!1})),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach((function(t){e._classList[t]=!0})),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(t){this.panelClass=t}}]),t}()).\u0275fac=function(t){return new(t||ig)(a.yc(a.q),a.yc(a.F),a.yc(fg))},ig.\u0275dir=a.tc({type:ig,contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,cg,!0),a.qc(n,dg,!0),a.qc(n,dg,!1)),2&t&&(a.dd(i=a.Oc())&&(e.lazyContent=i.first),a.dd(i=a.Oc())&&(e._allItems=i),a.dd(i=a.Oc())&&(e.items=i))},viewQuery:function(t,e){var n;1&t&&a.wd(a.U,!0),2&t&&a.dd(n=a.Oc())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),ig),gg=((ng=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),e}(pg)).\u0275fac=function(t){return vg(t||ng)},ng.\u0275dir=a.tc({type:ng,features:[a.hc]}),ng),vg=a.Fc(gg),yg=((ag=function(t){function e(t,n,i){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n,i))}return _inherits(e,t),e}(gg)).\u0275fac=function(t){return new(t||ag)(a.yc(a.q),a.yc(a.F),a.yc(fg))},ag.\u0275cmp=a.sc({type:ag,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[a.jc([{provide:ug,useExisting:gg},{provide:gg,useExisting:ag}]),a.hc],ngContentSelectors:Qp,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(a.Wc(),a.qd(0,Zp,3,6,"ng-template"))},directives:[_e.q],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[lg.transformMenu,lg.fadeInItems]},changeDetection:0}),ag),_g=new a.v("mat-menu-scroll-strategy"),bg={provide:_g,deps:[Mu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},kg=An({passive:!0}),Cg=((sg=function(){function t(e,n,i,r,o,s,l,c){var u=this;_classCallCheck(this,t),this._overlay=e,this._element=n,this._viewContainerRef=i,this._parentMenu=o,this._menuItemInstance=s,this._dir=l,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=je.a.EMPTY,this._hoverSubscription=je.a.EMPTY,this._menuCloseSubscription=je.a.EMPTY,this._handleTouchStart=function(){return u._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new a.s,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.s,this.onMenuClose=this.menuClosed,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,kg),s&&(s._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}return _createClass(t,[{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,kg),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),n=e.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe((function(){return t.closeMenu()})),this._initMenu(),this.menu instanceof gg&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"_destroyMenu",value:function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),e instanceof gg?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(en((function(t){return"void"===t.toState})),un(1),gc(e.lazyContent._attached)).subscribe({next:function(){return e.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach()),this._restoreFocus()}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_restoreFocus",value:function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new uu({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe((function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")}))}},{key:"_setPosition",value:function(t){var e=_slicedToArray("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=e[0],i=e[1],a=_slicedToArray("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),r=a[0],o=a[1],s=r,l=o,c=n,u=i,h=0;this.triggersSubmenu()?(u=n="before"===this.menu.xPosition?"start":"end",i=c="end"===n?"start":"end",h="bottom"===r?8:-8):this.menu.overlapTrigger||(s="top"===r?"bottom":"top",l="top"===o?"bottom":"top"),t.withPositions([{originX:n,originY:s,overlayX:c,overlayY:r,offsetY:h},{originX:i,originY:s,overlayX:u,overlayY:r,offsetY:h},{originX:n,originY:l,overlayX:c,overlayY:o,offsetY:-h},{originX:i,originY:l,overlayX:u,overlayY:o,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments(),i=this._parentMenu?this._parentMenu.closed:ze(),a=this._parentMenu?this._parentMenu._hovered().pipe(en((function(e){return e!==t._menuItemInstance})),en((function(){return t._menuOpen}))):ze();return Object(Yl.a)(e,i,a,n)}},{key:"_handleMousedown",value:function(t){ci(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(en((function(e){return e===t._menuItemInstance&&!e.disabled})),Vu(0,ac)).subscribe((function(){t._openedBy="mouse",t.menu instanceof gg&&t.menu._isAnimating?t.menu._animationDone.pipe(un(1),Vu(0,ac),gc(t._parentMenu._hovered())).subscribe((function(){return t.openMenu()})):t.openMenu()})))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new $c(this.menu.templateRef,this._viewContainerRef)),this._portal}},{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"menu",get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe((function(t){e._destroyMenu(),"click"!==t&&"tab"!==t||!e._parentMenu||e._parentMenu.closed.emit(t)}))))}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}}]),t}()).\u0275fac=function(t){return new(t||sg)(a.yc(Mu),a.yc(a.q),a.yc(a.X),a.yc(_g),a.yc(gg,8),a.yc(dg,10),a.yc(yi,8),a.yc(li))},sg.\u0275dir=a.tc({type:sg,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&a.Nc("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&a.lc("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),sg),wg=((og=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:og}),og.\u0275inj=a.vc({factory:function(t){return new(t||og)},providers:[bg],imports:[Ii]}),og),xg=((rg=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:rg}),rg.\u0275inj=a.vc({factory:function(t){return new(t||rg)},providers:[bg],imports:[[_e.c,Ii,ka,Bu,wg],wg]}),rg),Og={};function Sg(){for(var t=arguments.length,e=new Array(t),n=0;nthis.total&&this.destination.next(t)}}]),e}(Ve.a),Ig=new Set,Mg=((Eg=function(){function t(e){_classCallCheck(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):jg}return _createClass(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!Ig.has(t))try{Dg||((Dg=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(Dg)),Dg.sheet&&(Dg.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),Ig.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}()).\u0275fac=function(t){return new(t||Eg)(a.Jc(On))},Eg.\u0275prov=Object(a.uc)({factory:function(){return new Eg(Object(a.Jc)(On))},token:Eg,providedIn:"root"}),Eg);function jg(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var Lg,Ng=((Lg=function(){function t(e,n){_classCallCheck(this,t),this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new Me.a}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return Fg(gn(t)).some((function(t){return e._registerQuery(t).mql.matches}))}},{key:"observe",value:function(t){var e=this,n=Sg(Fg(gn(t)).map((function(t){return e._registerQuery(t).observable})));return(n=xi(n.pipe(un(1)),n.pipe((function(t){return t.lift(new Pg(1))}),Je(0)))).pipe(Object(rn.a)((function(t){var e={matches:!1,breakpoints:{}};return t.forEach((function(t){e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches})),e})))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new sn.a((function(t){var i=function(n){return e._zone.run((function(){return t.next(n)}))};return n.addListener(i),function(){n.removeListener(i)}})).pipe(Oi(n),Object(rn.a)((function(e){return{query:t,matches:e.matches}})),gc(this._destroySubject)),mql:n};return this._queries.set(t,i),i}}]),t}()).\u0275fac=function(t){return new(t||Lg)(a.Jc(Mg),a.Jc(a.F))},Lg.\u0275prov=Object(a.uc)({factory:function(){return new Lg(Object(a.Jc)(Mg),Object(a.Jc)(a.F))},token:Lg,providedIn:"root"}),Lg);function Fg(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}var zg,Bg={tooltipState:o("state",[h("initial, void, hidden",u({opacity:0,transform:"scale(0)"})),h("visible",u({transform:"scale(1)"})),d("* => visible",s("200ms cubic-bezier(0, 0, 0.2, 1)",(zg=[u({opacity:0,transform:"scale(0)",offset:0}),u({opacity:.5,transform:"scale(0.99)",offset:.5}),u({opacity:1,transform:"scale(1)",offset:1})],{type:5,steps:zg}))),d("* => hidden",s("100ms cubic-bezier(0, 0, 0.2, 1)",u({opacity:0})))])},Vg=An({passive:!0});function qg(t){return Error('Tooltip position "'.concat(t,'" is invalid.'))}var Ug,Hg,Xg,Gg,Wg=new a.v("mat-tooltip-scroll-strategy"),$g={provide:Wg,deps:[Mu],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},Yg=new a.v("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),Kg=((Xg=function(){function t(e,n,i,a,r,o,s,l,c,u,h,d){var f=this;_classCallCheck(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=a,this._ngZone=r,this._platform=o,this._ariaDescriber=s,this._focusMonitor=l,this._dir=u,this._defaultOptions=h,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 Me.a,this._handleKeydown=function(t){f._isTooltipVisible()&&27===t.keyCode&&!Be(t)&&(t.preventDefault(),t.stopPropagation(),f._ngZone.run((function(){return f.hide(0)})))},this._scrollStrategy=c,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),l.monitor(n).pipe(gc(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&r.run((function(){return f.show()})):r.run((function(){return f.hide(0)}))})),r.runOutsideAngular((function(){n.nativeElement.addEventListener("keydown",f._handleKeydown)}))}return _createClass(t,[{key:"ngOnInit",value:function(){this._setupPointerEvents()}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((function(e,n){t.removeEventListener(n,e,Vg)})),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new Wc(Jg,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(gc(this._destroyed)).subscribe((function(){return t._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return n.positionChanges.pipe(gc(this._destroyed)).subscribe((function(e){t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run((function(){return t.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(gc(this._destroyed)).subscribe((function(){return t._detach()})),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(){var 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)])}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n||"below"==n)t={originX:"center",originY:"above"==n?"top":"bottom"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={originX:"start",originY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw qg(n);t={originX:"end",originY:"center"}}var i=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n)t={overlayX:"center",overlayY:"bottom"};else if("below"==n)t={overlayX:"center",overlayY:"top"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw qg(n);t={overlayX:"start",overlayY:"center"}}var i=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(un(1),gc(this._destroyed)).subscribe((function(){t._tooltipInstance&&t._overlayRef.updatePosition()})))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(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}}},{key:"_setupPointerEvents",value:function(){var t=this;if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var e=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",e).set("touchcancel",e).set("touchstart",(function(){clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout((function(){return t.show()}),500)}))}}else this._passiveListeners.set("mouseenter",(function(){return t.show()})).set("mouseleave",(function(){return t.hide()}));this._passiveListeners.forEach((function(e,n){t._elementRef.nativeElement.addEventListener(n,e,Vg)}))}},{key:"_disableNativeGesturesIfNecessary",value:function(){var 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")}},{key:"position",get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=mn(t),this._disabled&&this.hide(0)}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?"".concat(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message)}))})))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}}]),t}()).\u0275fac=function(t){return new(t||Xg)(a.yc(Mu),a.yc(a.q),a.yc(zc),a.yc(a.X),a.yc(a.F),a.yc(On),a.yc(Gn),a.yc(li),a.yc(Wg),a.yc(yi,8),a.yc(Yg,8),a.yc(a.q))},Xg.\u0275dir=a.tc({type:Xg,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"]}),Xg),Jg=((Hg=function(){function t(e,n){_classCallCheck(this,t),this._changeDetectorRef=e,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Me.a,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return _createClass(t,[{key:"show",value:function(t){var e=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){e._visibility="visible",e._showTimeoutId=null,e._markForCheck()}),t)}},{key:"hide",value:function(t){var e=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){e._visibility="hidden",e._hideTimeoutId=null,e._markForCheck()}),t)}},{key:"afterHidden",value:function(){return this._onHide.asObservable()}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),t}()).\u0275fac=function(t){return new(t||Hg)(a.yc(a.j),a.yc(Ng))},Hg.\u0275cmp=a.sc({type:Hg,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&a.Nc("click",(function(){return e._handleBodyInteraction()}),!1,a.fd),2&t&&a.pd("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(a.Dc(0,"div",0),a.Nc("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),a.Sc(1,"async"),a.sd(2),a.Cc()),2&t){var n,i=null==(n=a.Tc(1,5,e._isHandset))?null:n.matches;a.oc("mat-tooltip-handset",i),a.Xc("ngClass",e.tooltipClass)("@state",e._visibility),a.kc(2),a.td(e.message)}},directives:[_e.q],pipes:[_e.b],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:[Bg.tooltipState]},changeDetection:0}),Hg),Qg=((Ug=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Ug}),Ug.\u0275inj=a.vc({factory:function(t){return new(t||Ug)},providers:[$g],imports:[[gi,_e.c,Bu,Ii],Ii]}),Ug),Zg=["primaryValueBar"],tv=ji((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),ev=new a.v("mat-progress-bar-location",{providedIn:"root",factory:function(){var t=Object(a.db)(_e.e),e=t?t.location:null;return{getPathname:function(){return e?e.pathname+e.search:""}}}}),nv=0,iv=((Gg=function(t){function e(t,n,i,r){var o;_classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._elementRef=t,o._ngZone=n,o._animationMode=i,o._isNoopAnimation=!1,o._value=0,o._bufferValue=0,o.animationEnd=new a.s,o._animationEndSubscription=je.a.EMPTY,o.mode="determinate",o.progressbarId="mat-progress-bar-".concat(nv++);var s=r?r.getPathname().split("#")[0]:"";return o._rectangleFillValue="url('".concat(s,"#").concat(o.progressbarId,"')"),o._isNoopAnimation="NoopAnimations"===i,o}return _inherits(e,t),_createClass(e,[{key:"_primaryTransform",value:function(){return{transform:"scaleX(".concat(this.value/100,")")}}},{key:"_bufferTransform",value:function(){return"buffer"===this.mode?{transform:"scaleX(".concat(this.bufferValue/100,")")}:null}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.runOutsideAngular((function(){var e=t._primaryValueBar.nativeElement;t._animationEndSubscription=Kl(e,"transitionend").pipe(en((function(t){return t.target===e}))).subscribe((function(){"determinate"!==t.mode&&"buffer"!==t.mode||t._ngZone.run((function(){return t.animationEnd.next({value:t.value})}))}))}))}},{key:"ngOnDestroy",value:function(){this._animationEndSubscription.unsubscribe()}},{key:"value",get:function(){return this._value},set:function(t){this._value=av(pn(t)||0)}},{key:"bufferValue",get:function(){return this._bufferValue},set:function(t){this._bufferValue=av(t||0)}}]),e}(tv)).\u0275fac=function(t){return new(t||Gg)(a.yc(a.q),a.yc(a.F),a.yc(Pe,8),a.yc(ev,8))},Gg.\u0275cmp=a.sc({type:Gg,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var n;1&t&&a.wd(Zg,!0),2&t&&a.dd(n=a.Oc())&&(e._primaryValueBar=n.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(a.lc("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),a.oc("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[a.hc],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(a.Qc(),a.Dc(0,"svg",0),a.Dc(1,"defs"),a.Dc(2,"pattern",1),a.zc(3,"circle",2),a.Cc(),a.Cc(),a.zc(4,"rect",3),a.Cc(),a.Pc(),a.zc(5,"div",4),a.zc(6,"div",5,6),a.zc(8,"div",7)),2&t&&(a.kc(2),a.Xc("id",e.progressbarId),a.kc(2),a.lc("fill",e._rectangleFillValue),a.kc(1),a.Xc("ngStyle",e._bufferTransform()),a.kc(1),a.Xc("ngStyle",e._primaryTransform()))},directives:[_e.w],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),Gg);function av(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;return Math.max(e,Math.min(n,t))}var rv,ov=((rv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:rv}),rv.\u0275inj=a.vc({factory:function(t){return new(t||rv)},imports:[[_e.c,Ii],Ii]}),rv);function sv(t,e){if(1&t&&(a.Qc(),a.zc(0,"circle",3)),2&t){var n=a.Rc();a.pd("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),a.lc("r",n._circleRadius)}}function lv(t,e){if(1&t&&(a.Qc(),a.zc(0,"circle",3)),2&t){var n=a.Rc();a.pd("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),a.lc("r",n._circleRadius)}}function cv(t,e){if(1&t&&(a.Qc(),a.zc(0,"circle",3)),2&t){var n=a.Rc();a.pd("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),a.lc("r",n._circleRadius)}}function uv(t,e){if(1&t&&(a.Qc(),a.zc(0,"circle",3)),2&t){var n=a.Rc();a.pd("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),a.lc("r",n._circleRadius)}}var hv,dv,fv,mv,pv,gv,vv=ji((function t(e){_classCallCheck(this,t),this._elementRef=e}),"primary"),yv=new a.v("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),_v=((fv=function(t){function e(t,n,i,a,r){var o;_classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._elementRef=t,o._document=i,o._diameter=100,o._value=0,o._fallbackAnimation=!1,o.mode="determinate";var s=e._diameters;return s.has(i.head)||s.set(i.head,new Set([100])),o._fallbackAnimation=n.EDGE||n.TRIDENT,o._noopAnimations="NoopAnimations"===a&&!!r&&!r._forceAnimations,r&&(r.diameter&&(o.diameter=r.diameter),r.strokeWidth&&(o.strokeWidth=r.strokeWidth)),o}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=function(t,e){if("undefined"!=typeof window){var n=e.head;if(n&&(n.createShadowRoot||n.attachShadow)){var i=t.getRootNode?t.getRootNode():null;if(i instanceof window.ShadowRoot)return i}}return null}(t,this._document)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation"))}},{key:"_attachStyleNode",value:function(){var t=this._styleRoot,n=this._diameter,i=e._diameters,a=i.get(t);if(!a||!a.has(n)){var r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",n+""),r.textContent=this._getAnimationText(),t.appendChild(r),a||(a=new Set,i.set(t,a)),a.add(n)}}},{key:"_getAnimationText",value:function(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,"".concat(.95*this._strokeCircumference)).replace(/END_VALUE/g,"".concat(.2*this._strokeCircumference)).replace(/DIAMETER/g,"".concat(this.diameter))}},{key:"diameter",get:function(){return this._diameter},set:function(t){this._diameter=pn(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=pn(t)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,pn(t)))}},{key:"_circleRadius",get:function(){return(this.diameter-10)/2}},{key:"_viewBox",get:function(){var t=2*this._circleRadius+this.strokeWidth;return"0 0 ".concat(t," ").concat(t)}},{key:"_strokeCircumference",get:function(){return 2*Math.PI*this._circleRadius}},{key:"_strokeDashOffset",get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null}},{key:"_circleStrokeWidth",get:function(){return this.strokeWidth/this.diameter*100}}]),e}(vv)).\u0275fac=function(t){return new(t||fv)(a.yc(a.q),a.yc(On),a.yc(_e.e,8),a.yc(Pe,8),a.yc(yv))},fv.\u0275cmp=a.sc({type:fv,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(a.lc("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),a.pd("width",e.diameter,"px")("height",e.diameter,"px"),a.oc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[a.hc],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&&(a.Qc(),a.Dc(0,"svg",0),a.qd(1,sv,1,9,"circle",1),a.qd(2,lv,1,7,"circle",2),a.Cc()),2&t&&(a.pd("width",e.diameter,"px")("height",e.diameter,"px"),a.Xc("ngSwitch","indeterminate"===e.mode),a.lc("viewBox",e._viewBox),a.kc(1),a.Xc("ngSwitchCase",!0),a.kc(1),a.Xc("ngSwitchCase",!1))},directives:[_e.x,_e.y],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}),fv._diameters=new WeakMap,fv),bv=((dv=function(t){function e(t,n,i,a,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n,i,a,r))).mode="indeterminate",o}return _inherits(e,t),e}(_v)).\u0275fac=function(t){return new(t||dv)(a.yc(a.q),a.yc(On),a.yc(_e.e,8),a.yc(Pe,8),a.yc(yv))},dv.\u0275cmp=a.sc({type:dv,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(a.pd("width",e.diameter,"px")("height",e.diameter,"px"),a.oc("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[a.hc],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&&(a.Qc(),a.Dc(0,"svg",0),a.qd(1,cv,1,9,"circle",1),a.qd(2,uv,1,7,"circle",2),a.Cc()),2&t&&(a.pd("width",e.diameter,"px")("height",e.diameter,"px"),a.Xc("ngSwitch","indeterminate"===e.mode),a.lc("viewBox",e._viewBox),a.kc(1),a.Xc("ngSwitchCase",!0),a.kc(1),a.Xc("ngSwitchCase",!1))},directives:[_e.x,_e.y],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}),dv),kv=((hv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:hv}),hv.\u0275inj=a.vc({factory:function(t){return new(t||hv)},imports:[[Ii,_e.c],Ii]}),hv),Cv=["input"],wv=function(){return{enterDuration:150}},xv=["*"],Ov=new a.v("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}}),Sv=0,Dv={provide:rr,useExisting:Object(a.cb)((function(){return Av})),multi:!0},Ev=function t(e,n){_classCallCheck(this,t),this.source=e,this.value=n},Av=((mv=function(){function t(e){_classCallCheck(this,t),this._changeDetector=e,this._value=null,this._name="mat-radio-group-".concat(Sv++),this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=function(){},this.onTouched=function(){},this.change=new a.s}return _createClass(t,[{key:"_checkSelectedRadioButton",value:function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}},{key:"ngAfterContentInit",value:function(){this._isInitialized=!0}},{key:"_touch",value:function(){this.onTouched&&this.onTouched()}},{key:"_updateRadioButtonNames",value:function(){var t=this;this._radios&&this._radios.forEach((function(e){e.name=t.name,e._markForCheck()}))}},{key:"_updateSelectedRadioFromValue",value:function(){var t=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach((function(e){e.checked=t.value===e.value,e.checked&&(t._selected=e)})))}},{key:"_emitChangeEvent",value:function(){this._isInitialized&&this.change.emit(new Ev(this._selected,this._value))}},{key:"_markRadiosForCheck",value:function(){this._radios&&this._radios.forEach((function(t){return t._markForCheck()}))}},{key:"writeValue",value:function(t){this.value=t,this._changeDetector.markForCheck()}},{key:"registerOnChange",value:function(t){this._controlValueAccessorChangeFn=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetector.markForCheck()}},{key:"name",get:function(){return this._name},set:function(t){this._name=t,this._updateRadioButtonNames()}},{key:"labelPosition",get:function(){return this._labelPosition},set:function(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}},{key:"value",get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=mn(t),this._markRadiosForCheck()}},{key:"required",get:function(){return this._required},set:function(t){this._required=mn(t),this._markRadiosForCheck()}}]),t}()).\u0275fac=function(t){return new(t||mv)(a.yc(a.j))},mv.\u0275dir=a.tc({type:mv,selectors:[["mat-radio-group"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,Pv,!0),2&t&&a.dd(i=a.Oc())&&(e._radios=i)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[a.jc([Dv])]}),mv),Rv=Li(Ni((function t(e){_classCallCheck(this,t),this._elementRef=e}))),Pv=((gv=function(t){function e(t,n,i,r,o,s,l){var c;return _classCallCheck(this,e),(c=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,n)))._changeDetector=i,c._focusMonitor=r,c._radioDispatcher=o,c._animationMode=s,c._providerOverride=l,c._uniqueId="mat-radio-".concat(++Sv),c.id=c._uniqueId,c.change=new a.s,c._checked=!1,c._value=null,c._removeUniqueSelectionListener=function(){},c.radioGroup=t,c._removeUniqueSelectionListener=o.listen((function(t,e){t!==c.id&&e===c.name&&(c.checked=!1)})),c}return _inherits(e,t),_createClass(e,[{key:"focus",value:function(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}},{key:"_markForCheck",value:function(){this._changeDetector.markForCheck()}},{key:"ngOnInit",value:function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){!e&&t.radioGroup&&t.radioGroup._touch()}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}},{key:"_emitChangeEvent",value:function(){this.change.emit(new Ev(this,this._value))}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"_onInputChange",value:function(t){t.stopPropagation();var e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}},{key:"_setDisabled",value:function(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}},{key:"checked",get:function(){return this._checked},set:function(t){var e=mn(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}},{key:"value",get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}},{key:"labelPosition",get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(t){this._labelPosition=t}},{key:"disabled",get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(t){this._setDisabled(mn(t))}},{key:"required",get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(t){this._required=mn(t)}},{key:"color",get:function(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"},set:function(t){this._color=t}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),e}(Rv)).\u0275fac=function(t){return new(t||gv)(a.yc(Av,8),a.yc(a.q),a.yc(a.j),a.yc(li),a.yc(Ya),a.yc(Pe,8),a.yc(Ov,8))},gv.\u0275cmp=a.sc({type:gv,selectors:[["mat-radio-button"]],viewQuery:function(t,e){var n;1&t&&a.wd(Cv,!0),2&t&&a.dd(n=a.Oc())&&(e._inputElement=n.first)},hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&a.Nc("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(a.lc("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),a.oc("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},exportAs:["matRadioButton"],features:[a.hc],ngContentSelectors:xv,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(a.Wc(),a.Dc(0,"label",0,1),a.Dc(2,"div",2),a.zc(3,"div",3),a.zc(4,"div",4),a.Dc(5,"input",5,6),a.Nc("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),a.Cc(),a.Dc(7,"div",7),a.zc(8,"div",8),a.Cc(),a.Cc(),a.Dc(9,"div",9),a.Dc(10,"span",10),a.sd(11,"\xa0"),a.Cc(),a.Vc(12),a.Cc(),a.Cc()),2&t){var n=a.ed(1);a.lc("for",e.inputId),a.kc(5),a.Xc("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),a.lc("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),a.kc(2),a.Xc("matRippleTrigger",n)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.Zc(18,wv)),a.kc(2),a.oc("mat-radio-label-before","before"==e.labelPosition)}},directives:[ba],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),gv),Tv=((pv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:pv}),pv.\u0275inj=a.vc({factory:function(t){return new(t||pv)},imports:[[ka,Ii],Ii]}),pv),Iv=["trigger"],Mv=["panel"];function jv(t,e){if(1&t&&(a.Dc(0,"span",8),a.sd(1),a.Cc()),2&t){var n=a.Rc();a.kc(1),a.td(n.placeholder||"\xa0")}}function Lv(t,e){if(1&t&&(a.Dc(0,"span"),a.sd(1),a.Cc()),2&t){var n=a.Rc(2);a.kc(1),a.td(n.triggerValue||"\xa0")}}function Nv(t,e){1&t&&a.Vc(0,0,["*ngSwitchCase","true"])}function Fv(t,e){if(1&t&&(a.Dc(0,"span",9),a.qd(1,Lv,2,1,"span",10),a.qd(2,Nv,1,0,void 0,11),a.Cc()),2&t){var n=a.Rc();a.Xc("ngSwitch",!!n.customTrigger),a.kc(2),a.Xc("ngSwitchCase",!0)}}function zv(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",12),a.Dc(1,"div",13,14),a.Nc("@transformPanel.done",(function(t){return a.id(n),a.Rc()._panelDoneAnimatingStream.next(t.toState)}))("keydown",(function(t){return a.id(n),a.Rc()._handleKeydown(t)})),a.Vc(3,1),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.Xc("@transformPanelWrap",void 0),a.kc(1),a.nc("mat-select-panel ",i._getPanelTheme(),""),a.pd("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),a.Xc("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing")}}var Bv,Vv,qv,Uv=[[["mat-select-trigger"]],"*"],Hv=["mat-select-trigger","*"],Xv={transformPanelWrap:o("transformPanelWrap",[d("* => void",m("@transformPanel",[f()],{optional:!0}))]),transformPanel:o("transformPanel",[h("void",u({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),h("showing",u({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),h("showing-multiple",u({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),d("void => *",s("120ms cubic-bezier(0, 0, 0.2, 1)")),d("* => void",s("100ms 25ms linear",u({opacity:0})))])},Gv=0,Wv=new a.v("mat-select-scroll-strategy"),$v=new a.v("MAT_SELECT_CONFIG"),Yv={provide:Wv,deps:[Mu],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Kv=function t(e,n){_classCallCheck(this,t),this.source=e,this.value=n},Jv=Li(Ni(Mi(Fi((function t(e,n,i,a,r){_classCallCheck(this,t),this._elementRef=e,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=a,this.ngControl=r}))))),Qv=((qv=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||qv)},qv.\u0275dir=a.tc({type:qv,selectors:[["mat-select-trigger"]]}),qv),Zv=((Vv=function(t){function e(t,n,i,r,o,s,l,c,u,h,d,f,m,p){var g;return _classCallCheck(this,e),(g=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,o,r,l,c,h)))._viewportRuler=t,g._changeDetectorRef=n,g._ngZone=i,g._dir=s,g._parentFormField=u,g.ngControl=h,g._liveAnnouncer=m,g._panelOpen=!1,g._required=!1,g._scrollTop=0,g._multiple=!1,g._compareWith=function(t,e){return t===e},g._uid="mat-select-".concat(Gv++),g._destroy=new Me.a,g._triggerFontSize=0,g._onChange=function(){},g._onTouched=function(){},g._optionIds="",g._transformOrigin="top",g._panelDoneAnimatingStream=new Me.a,g._offsetY=0,g._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],g._disableOptionCentering=!1,g._focused=!1,g.controlType="mat-select",g.ariaLabel="",g.optionSelectionChanges=$l((function(){var t=g.options;return t?t.changes.pipe(Oi(t),bc((function(){return Object(Yl.a).apply(void 0,_toConsumableArray(t.map((function(t){return t.onSelectionChange}))))}))):g._ngZone.onStable.asObservable().pipe(un(1),bc((function(){return g.optionSelectionChanges})))})),g.openedChange=new a.s,g._openedStream=g.openedChange.pipe(en((function(t){return t})),Object(rn.a)((function(){}))),g._closedStream=g.openedChange.pipe(en((function(t){return!t})),Object(rn.a)((function(){}))),g.selectionChange=new a.s,g.valueChange=new a.s,g.ngControl&&(g.ngControl.valueAccessor=_assertThisInitialized(g)),g._scrollStrategyFactory=f,g._scrollStrategy=g._scrollStrategyFactory(),g.tabIndex=parseInt(d)||0,g.id=g.id,p&&(null!=p.disableOptionCentering&&(g.disableOptionCentering=p.disableOptionCentering),null!=p.typeaheadDebounceInterval&&(g.typeaheadDebounceInterval=p.typeaheadDebounceInterval)),g}return _inherits(e,t),_createClass(e,[{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new $a(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(rc(),gc(this._destroy)).subscribe((function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(gc(this._destroy)).subscribe((function(){t._panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())}))}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe(gc(this._destroy)).subscribe((function(t){t.added.forEach((function(t){return t.select()})),t.removed.forEach((function(t){return t.deselect()}))})),this.options.changes.pipe(Oi(null),gc(this._destroy)).subscribe((function(){t._resetOptions(),t._initializeSelection()}))}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){var t=this;!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(un(1)).subscribe((function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize="".concat(t._triggerFontSize,"px"))})))}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(t){this.options&&this._setSelectionByValue(t)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,n=40===e||38===e||37===e||39===e,i=13===e||32===e,a=this._keyManager;if(!a.isTyping()&&i&&!Be(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var r=this.selected;36===e||35===e?(36===e?a.setFirstItemActive():a.setLastItemActive(),t.preventDefault()):a.onKeydown(t);var o=this.selected;o&&r!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,n=t.keyCode,i=40===n||38===n,a=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(a||13!==n&&32!==n||!e.activeItem||Be(t))if(!a&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();var r=this.options.some((function(t){return!t.disabled&&!t.selected}));this.options.forEach((function(t){t.disabled||(r?t.select():t.deselect())}))}else{var o=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==o&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var t=this;this.overlayDir.positionChange.pipe(un(1)).subscribe((function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop}))}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then((function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()}))}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach((function(t){return e._selectValue(t)})),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(t);n?this._keyManager.setActiveItem(n):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,n=this.options.find((function(n){try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return Object(a.eb)()&&console.warn(i),!1}}));return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new $n(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(gc(this._destroy)).subscribe((function(){!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close()})),this._keyManager.change.pipe(gc(this._destroy)).subscribe((function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()}))}},{key:"_resetOptions",value:function(){var t=this,e=Object(Yl.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(gc(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),Object(Yl.a).apply(void 0,_toConsumableArray(this.options.map((function(t){return t._stateChanges})))).pipe(gc(e)).subscribe((function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})),this._setOptionIds()}},{key:"_onSelect",value:function(t,e){var 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()}},{key:"_sortValues",value:function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort((function(n,i){return t.sortComparator?t.sortComparator(n,i,e):e.indexOf(n)-e.indexOf(i)})),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(t){var e;e=this.multiple?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new Kv(this,e)),this._changeDetectorRef.markForCheck()}},{key:"_setOptionIds",value:function(){this._optionIds=this.options.map((function(t){return t.id})).join(" ")}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_scrollActiveOptionIntoView",value:function(){var t=this._keyManager.activeItemIndex||0,e=Ta(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=Ia(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getOptionIndex",value:function(t){return this.options.reduce((function(e,n,i){return void 0!==e?e:t===n?i:void 0}),void 0)}},{key:"_calculateOverlayPosition",value:function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n,a=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);a+=Ta(a,this.options,this.optionGroups);var r=n/2;this._scrollTop=this._calculateOverlayScroll(a,r,i),this._offsetY=this._calculateOverlayOffsetY(a,r,i),this._checkOverlayWithinViewport(i)}},{key:"_calculateOverlayScroll",value:function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}},{key:"_getAriaLabel",value:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}},{key:"_getAriaLabelledby",value:function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_calculateOverlayOffsetX",value:function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),a=this.multiple?56:32;if(this.multiple)t=40;else{var r=this._selectionModel.selected[0]||this.options.first;t=r&&r.group?32:16}i||(t*=-1);var o=0-(e.left+t-(i?a:0)),s=e.right+t-n.width+(i?0:a);o>0?t+=o+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,n){var i,a=this._getItemHeight(),r=(a-this._triggerRect.height)/2,o=Math.floor(256/a);return this._disableOptionCentering?0:(i=0===this._scrollTop?t*a:this._scrollTop===n?(t-(this._getItemCount()-o))*a+(a-(this._getItemCount()*a-256)%a):e-a/2,Math.round(-1*i-r))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,a=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>a?this._adjustPanelUp(o,a):r>i?this._adjustPanelDown(r,i,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(t,e){var 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")}},{key:"_adjustPanelDown",value:function(t,e,n){var 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")}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% ".concat(Math.abs(this._offsetY)-e+t/2,"px 0px")}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=mn(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=mn(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=mn(t)}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=pn(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map((function(t){return t.viewValue}));return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty}}]),e}(Jv)).\u0275fac=function(t){return new(t||Vv)(a.yc(Vc),a.yc(a.j),a.yc(a.F),a.yc(ia),a.yc(a.q),a.yc(yi,8),a.yc(No,8),a.yc(Jo,8),a.yc(Ph,8),a.yc(vr,10),a.Kc("tabindex"),a.yc(Wv),a.yc(oi),a.yc($v,8))},Vv.\u0275cmp=a.sc({type:Vv,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Qv,!0),a.qc(n,Pa,!0),a.qc(n,Sa,!0)),2&t&&(a.dd(i=a.Oc())&&(e.customTrigger=i.first),a.dd(i=a.Oc())&&(e.options=i),a.dd(i=a.Oc())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(a.wd(Iv,!0),a.wd(Mv,!0),a.wd(Fu,!0)),2&t&&(a.dd(n=a.Oc())&&(e.trigger=n.first),a.dd(n=a.Oc())&&(e.panel=n.first),a.dd(n=a.Oc())&&(e.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&a.Nc("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(a.lc("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()),a.oc("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:[a.jc([{provide:fh,useExisting:Vv},{provide:Ra,useExisting:Vv}]),a.hc,a.ic],ngContentSelectors:Hv,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&&(a.Wc(Uv),a.Dc(0,"div",0,1),a.Nc("click",(function(){return e.toggle()})),a.Dc(3,"div",2),a.qd(4,jv,2,1,"span",3),a.qd(5,Fv,3,2,"span",4),a.Cc(),a.Dc(6,"div",5),a.zc(7,"div",6),a.Cc(),a.Cc(),a.qd(8,zv,4,10,"ng-template",7),a.Nc("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){var n=a.ed(1);a.kc(3),a.Xc("ngSwitch",e.empty),a.kc(1),a.Xc("ngSwitchCase",!0),a.kc(1),a.Xc("ngSwitchCase",!1),a.kc(3),a.Xc("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Nu,_e.x,_e.y,Fu,_e.z,_e.q],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:[Xv.transformPanelWrap,Xv.transformPanel]},changeDetection:0}),Vv),ty=((Bv=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Bv}),Bv.\u0275inj=a.vc({factory:function(t){return new(t||Bv)},providers:[Yv],imports:[[_e.c,Bu,za,Ii],Th,za,Ii]}),Bv),ey=["*"];function ny(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",2),a.Nc("click",(function(){return a.id(n),a.Rc()._onBackdropClicked()})),a.Cc()}if(2&t){var i=a.Rc();a.oc("mat-drawer-shown",i._isShowingBackdrop())}}function iy(t,e){1&t&&(a.Dc(0,"mat-drawer-content"),a.Vc(1,2),a.Cc())}var ay=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ry=["mat-drawer","mat-drawer-content","*"];function oy(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",2),a.Nc("click",(function(){return a.id(n),a.Rc()._onBackdropClicked()})),a.Cc()}if(2&t){var i=a.Rc();a.oc("mat-drawer-shown",i._isShowingBackdrop())}}function sy(t,e){1&t&&(a.Dc(0,"mat-sidenav-content",3),a.Vc(1,2),a.Cc())}var ly=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],cy=["mat-sidenav","mat-sidenav-content","*"],uy={transformDrawer:o("transform",[h("open, open-instant",u({transform:"none",visibility:"visible"})),h("void",u({"box-shadow":"none",visibility:"hidden"})),d("void => open-instant",s("0ms")),d("void <=> open, open-instant => void",s("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function hy(t){throw Error("A drawer was already declared for 'position=\"".concat(t,"\"'"))}var dy,fy,my,py,gy,vy,yy,_y,by,ky,Cy,wy=new a.v("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),xy=new a.v("MAT_DRAWER_CONTAINER"),Oy=((gy=function(t){function e(t,n,i,a,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,i,a,r)))._changeDetectorRef=t,o._container=n,o}return _inherits(e,t),_createClass(e,[{key:"ngAfterContentInit",value:function(){var t=this;this._container._contentMarginChanges.subscribe((function(){t._changeDetectorRef.markForCheck()}))}}]),e}(Bc)).\u0275fac=function(t){return new(t||gy)(a.yc(a.j),a.yc(Object(a.cb)((function(){return Dy}))),a.yc(a.q),a.yc(zc),a.yc(a.F))},gy.\u0275cmp=a.sc({type:gy,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.pd("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.hc],ngContentSelectors:ey,decls:1,vars:0,template:function(t,e){1&t&&(a.Wc(),a.Vc(0))},encapsulation:2,changeDetection:0}),gy),Sy=((py=function(){function t(e,n,i,r,o,s,l){var c=this;_classCallCheck(this,t),this._elementRef=e,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=r,this._ngZone=o,this._doc=s,this._container=l,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Me.a,this._animationEnd=new Me.a,this._animationState="void",this.openedChange=new a.s(!0),this._destroyed=new Me.a,this.onPositionChanged=new a.s,this._modeChanged=new Me.a,this.openedChange.subscribe((function(t){t?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._restoreFocus()})),this._ngZone.runOutsideAngular((function(){Kl(c._elementRef.nativeElement,"keydown").pipe(en((function(t){return 27===t.keyCode&&!c.disableClose&&!Be(t)})),gc(c._destroyed)).subscribe((function(t){return c._ngZone.run((function(){c.close(),t.stopPropagation(),t.preventDefault()}))}))})),this._animationEnd.pipe(rc((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){var e=t.fromState,n=t.toState;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&c.openedChange.emit(c._opened)}))}return _createClass(t,[{key:"_takeFocus",value:function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()}))}},{key:"_restoreFocus",value:function(){if(this.autoFocus){var t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(t){return this.toggle(!0,t)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"toggle",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(e){t.openedChange.pipe(un(1)).subscribe((function(t){return e(t?"open":"close")}))}))}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(t){this._animationStarted.next(t)}},{key:"_animationDoneListener",value:function(t){this._animationEnd.next(t)}},{key:"position",get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(t){this._disableClose=mn(t)}},{key:"autoFocus",get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=mn(t)}},{key:"opened",get:function(){return this._opened},set:function(t){this.toggle(mn(t))}},{key:"_openedStream",get:function(){return this.openedChange.pipe(en((function(t){return t})),Object(rn.a)((function(){})))}},{key:"openedStart",get:function(){return this._animationStarted.pipe(en((function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")})),Object(rn.a)((function(){})))}},{key:"_closedStream",get:function(){return this.openedChange.pipe(en((function(t){return!t})),Object(rn.a)((function(){})))}},{key:"closedStart",get:function(){return this._animationStarted.pipe(en((function(t){return t.fromState!==t.toState&&"void"===t.toState})),Object(rn.a)((function(){})))}},{key:"_width",get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}}]),t}()).\u0275fac=function(t){return new(t||py)(a.yc(a.q),a.yc(ei),a.yc(li),a.yc(On),a.yc(a.F),a.yc(_e.e,8),a.yc(xy,8))},py.\u0275cmp=a.sc({type:py,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&a.pc("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(a.lc("align",null),a.vd("@transform",e._animationState),a.oc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",onPositionChanged:"positionChanged",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:ey,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.Wc(),a.Dc(0,"div",0),a.Vc(1),a.Cc())},encapsulation:2,data:{animation:[uy.transformDrawer]},changeDetection:0}),py),Dy=((my=function(){function t(e,n,i,r,o){var s=this,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6?arguments[6]:void 0;_classCallCheck(this,t),this._dir=e,this._element=n,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=c,this._drawers=new a.K,this.backdropClick=new a.s,this._destroyed=new Me.a,this._doCheckSubject=new Me.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Me.a,e&&e.change.pipe(gc(this._destroyed)).subscribe((function(){s._validateDrawers(),s.updateContentMargins()})),o.change().pipe(gc(this._destroyed)).subscribe((function(){return s.updateContentMargins()})),this._autosize=l}return _createClass(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._allDrawers.changes.pipe(Oi(this._allDrawers),gc(this._destroyed)).subscribe((function(e){t._drawers.reset(e.filter((function(e){return!e._container||e._container===t}))),t._drawers.notifyOnChanges()})),this._drawers.changes.pipe(Oi(null)).subscribe((function(){t._validateDrawers(),t._drawers.forEach((function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)})),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),this._doCheckSubject.pipe(Je(10),gc(this._destroyed)).subscribe((function(){return t.updateContentMargins()}))}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach((function(t){return t.open()}))}},{key:"close",value:function(){this._drawers.forEach((function(t){return t.close()}))}},{key:"updateContentMargins",value:function(){var t=this,e=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._width;else if("push"==this._left.mode){var i=this._left._width;e+=i,n-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._width;else if("push"==this._right.mode){var a=this._right._width;n+=a,e-=a}n=n||null,(e=e||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:e,right:n},this._ngZone.run((function(){return t._contentMarginChanges.next(t._contentMargins)})))}},{key:"ngDoCheck",value:function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return t._doCheckSubject.next()}))}},{key:"_watchDrawerToggle",value:function(t){var e=this;t._animationStarted.pipe(en((function(t){return t.fromState!==t.toState})),gc(this._drawers.changes)).subscribe((function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),"side"!==t.mode&&t.openedChange.pipe(gc(this._drawers.changes)).subscribe((function(){return e._setContainerClass(t.opened)}))}},{key:"_watchDrawerPosition",value:function(t){var e=this;t&&t.onPositionChanged.pipe(gc(this._drawers.changes)).subscribe((function(){e._ngZone.onMicrotaskEmpty.asObservable().pipe(un(1)).subscribe((function(){e._validateDrawers()}))}))}},{key:"_watchDrawerMode",value:function(t){var e=this;t&&t._modeChanged.pipe(gc(Object(Yl.a)(this._drawers.changes,this._destroyed))).subscribe((function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()}))}},{key:"_setContainerClass",value:function(t){var e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}},{key:"_validateDrawers",value:function(){var t=this;this._start=this._end=null,this._drawers.forEach((function(e){"end"==e.position?(null!=t._end&&hy("end"),t._end=e):(null!=t._start&&hy("start"),t._start=e)})),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawer()}},{key:"_closeModalDrawer",value:function(){var t=this;[this._start,this._end].filter((function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)})).forEach((function(t){return t.close()}))}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(t){return"side"!==t.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(t){return null!=t&&t.opened}},{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(t){this._autosize=mn(t)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:mn(t)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),t}()).\u0275fac=function(t){return new(t||my)(a.yc(yi,8),a.yc(a.q),a.yc(a.F),a.yc(a.j),a.yc(Vc),a.yc(wy),a.yc(Pe,8))},my.\u0275cmp=a.sc({type:my,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Oy,!0),a.qc(n,Sy,!0)),2&t&&(a.dd(i=a.Oc())&&(e._content=i.first),a.dd(i=a.Oc())&&(e._allDrawers=i))},viewQuery:function(t,e){var n;1&t&&a.wd(Oy,!0),2&t&&a.dd(n=a.Oc())&&(e._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.oc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.jc([{provide:xy,useExisting:my}])],ngContentSelectors:ry,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(a.Wc(ay),a.qd(0,ny,1,2,"div",0),a.Vc(1),a.Vc(2,1),a.qd(3,iy,2,0,"mat-drawer-content",1)),2&t&&(a.Xc("ngIf",e.hasBackdrop),a.kc(3),a.Xc("ngIf",!e._content))},directives:[_e.t,Oy],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),my),Ey=((fy=function(t){function e(t,n,i,a,r){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n,i,a,r))}return _inherits(e,t),e}(Oy)).\u0275fac=function(t){return new(t||fy)(a.yc(a.j),a.yc(Object(a.cb)((function(){return Py}))),a.yc(a.q),a.yc(zc),a.yc(a.F))},fy.\u0275cmp=a.sc({type:fy,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.pd("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.hc],ngContentSelectors:ey,decls:1,vars:0,template:function(t,e){1&t&&(a.Wc(),a.Vc(0))},encapsulation:2,changeDetection:0}),fy),Ay=((dy=function(t){function e(){var t;return _classCallCheck(this,e),(t=_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments)))._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return _inherits(e,t),_createClass(e,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=mn(t)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=pn(t)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=pn(t)}}]),e}(Sy)).\u0275fac=function(t){return Ry(t||dy)},dy.\u0275cmp=a.sc({type:dy,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(a.lc("align",null),a.pd("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),a.oc("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[a.hc],ngContentSelectors:ey,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.Wc(),a.Dc(0,"div",0),a.Vc(1),a.Cc())},encapsulation:2,data:{animation:[uy.transformDrawer]},changeDetection:0}),dy),Ry=a.Fc(Ay),Py=((vy=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),e}(Dy)).\u0275fac=function(t){return Ty(t||vy)},vy.\u0275cmp=a.sc({type:vy,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,Ey,!0),a.qc(n,Ay,!0)),2&t&&(a.dd(i=a.Oc())&&(e._content=i.first),a.dd(i=a.Oc())&&(e._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.oc("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[a.jc([{provide:xy,useExisting:vy}]),a.hc],ngContentSelectors:cy,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(a.Wc(ly),a.qd(0,oy,1,2,"div",0),a.Vc(1),a.Vc(2,1),a.qd(3,sy,2,0,"mat-sidenav-content",1)),2&t&&(a.Xc("ngIf",e.hasBackdrop),a.kc(3),a.Xc("ngIf",!e._content))},directives:[_e.t,Ey,Bc],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),vy),Ty=a.Fc(Py),Iy=((yy=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:yy}),yy.\u0275inj=a.vc({factory:function(t){return new(t||yy)},imports:[[_e.c,Ii,qc,Sn],Ii]}),yy),My=["thumbContainer"],jy=["toggleBar"],Ly=["input"],Ny=function(){return{enterDuration:150}},Fy=["*"],zy=new a.v("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),By=0,Vy={provide:rr,useExisting:Object(a.cb)((function(){return Hy})),multi:!0},qy=function t(e,n){_classCallCheck(this,t),this.source=e,this.checked=n},Uy=Ni(ji(Li(Mi((function t(e){_classCallCheck(this,t),this._elementRef=e}))),"accent")),Hy=((_y=function(t){function e(t,n,i,r,o,s,l,c){var u;return _classCallCheck(this,e),(u=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._focusMonitor=n,u._changeDetectorRef=i,u.defaults=s,u._animationMode=l,u._onChange=function(t){},u._onTouched=function(){},u._uniqueId="mat-slide-toggle-".concat(++By),u._required=!1,u._checked=!1,u.name=null,u.id=u._uniqueId,u.labelPosition="after",u.ariaLabel=null,u.ariaLabelledby=null,u.change=new a.s,u.toggleChange=new a.s,u.dragChange=new a.s,u.tabIndex=parseInt(r)||0,u}return _inherits(e,t),_createClass(e,[{key:"ngAfterContentInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){"keyboard"===e||"program"===e?t._inputElement.nativeElement.focus():e||Promise.resolve().then((function(){return t._onTouched()}))}))}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new qy(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"required",get:function(){return this._required},set:function(t){this._required=mn(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=mn(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}}]),e}(Uy)).\u0275fac=function(t){return new(t||_y)(a.yc(a.q),a.yc(li),a.yc(a.j),a.Kc("tabindex"),a.yc(a.F),a.yc(zy),a.yc(Pe,8),a.yc(yi,8))},_y.\u0275cmp=a.sc({type:_y,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(a.wd(My,!0),a.wd(jy,!0),a.wd(Ly,!0)),2&t&&(a.dd(n=a.Oc())&&(e._thumbEl=n.first),a.dd(n=a.Oc())&&(e._thumbBarEl=n.first),a.dd(n=a.Oc())&&(e._inputElement=n.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(a.Gc("id",e.id),a.lc("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),a.oc("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[a.jc([Vy]),a.hc],ngContentSelectors:Fy,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(a.Wc(),a.Dc(0,"label",0,1),a.Dc(2,"div",2,3),a.Dc(4,"input",4,5),a.Nc("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),a.Cc(),a.Dc(6,"div",6,7),a.zc(8,"div",8),a.Dc(9,"div",9),a.zc(10,"div",10),a.Cc(),a.Cc(),a.Cc(),a.Dc(11,"span",11,12),a.Nc("cdkObserveContent",(function(){return e._onLabelTextChange()})),a.Dc(13,"span",13),a.sd(14,"\xa0"),a.Cc(),a.Vc(15),a.Cc(),a.Cc()),2&t){var n=a.ed(1),i=a.ed(12);a.lc("for",e.inputId),a.kc(2),a.oc("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),a.kc(2),a.Xc("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),a.lc("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),a.kc(5),a.Xc("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",a.Zc(17,Ny))}},directives:[ba,Fn],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),_y),Xy={provide:Cr,useExisting:Object(a.cb)((function(){return Gy})),multi:!0},Gy=((by=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).apply(this,arguments))}return _inherits(e,t),e}(Vs)).\u0275fac=function(t){return Wy(t||by)},by.\u0275dir=a.tc({type:by,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[a.jc([Xy]),a.hc]}),by),Wy=a.Fc(Gy),$y=((Cy=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Cy}),Cy.\u0275inj=a.vc({factory:function(t){return new(t||Cy)}}),Cy),Yy=((ky=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:ky}),ky.\u0275inj=a.vc({factory:function(t){return new(t||ky)},imports:[[$y,ka,Ii,zn],$y,Ii]}),ky);function Ky(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",1),a.Dc(1,"button",2),a.Nc("click",(function(){return a.id(n),a.Rc().action()})),a.sd(2),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.kc(2),a.td(i.data.action)}}function Jy(t,e){}var Qy,Zy,t_,e_,n_,i_,a_,r_=Math.pow(2,31)-1,o_=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._overlayRef=n,this._afterDismissed=new Me.a,this._afterOpened=new Me.a,this._onAction=new Me.a,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe((function(){return i.dismiss()})),e._onExit.subscribe((function(){return i._finishDismiss()}))}return _createClass(t,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var e=this;this._durationTimeoutId=setTimeout((function(){return e.dismiss()}),Math.min(t,r_))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed.asObservable()}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction.asObservable()}}]),t}(),s_=new a.v("MatSnackBarData"),l_=function t(){_classCallCheck(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},c_=((Qy=function(){function t(e,n){_classCallCheck(this,t),this.snackBarRef=e,this.data=n}return _createClass(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}()).\u0275fac=function(t){return new(t||Qy)(a.yc(o_),a.yc(s_))},Qy.\u0275cmp=a.sc({type:Qy,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(a.Dc(0,"span"),a.sd(1),a.Cc(),a.qd(2,Ky,3,1,"div",0)),2&t&&(a.kc(1),a.td(e.data.message),a.kc(1),a.Xc("ngIf",e.hasAction))},directives:[_e.t,Xa],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),Qy),u_={snackBarState:o("state",[h("void, hidden",u({transform:"scale(0.8)",opacity:0})),h("visible",u({transform:"scale(1)",opacity:1})),d("* => visible",s("150ms cubic-bezier(0, 0, 0.2, 1)")),d("* => void, * => hidden",s("75ms cubic-bezier(0.4, 0.0, 1, 1)",u({opacity:0})))])},h_=((t_=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._ngZone=t,r._elementRef=n,r._changeDetectorRef=i,r.snackBarConfig=a,r._destroyed=!1,r._onExit=new Me.a,r._onEnter=new Me.a,r._animationState="void",r.attachDomPortal=function(t){return r._assertNotAttached(),r._applySnackBarClasses(),r._portalOutlet.attachDomPortal(t)},r._role="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?null:"status":"alert",r}return _inherits(e,t),_createClass(e,[{key:"attachComponentPortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}},{key:"onAnimationEnd",value:function(t){var e=t.fromState,n=t.toState;if(("void"===n&&"void"!==e||"hidden"===n)&&this._completeExit(),"visible"===n){var i=this._onEnter;this._ngZone.run((function(){i.next(),i.complete()}))}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){return this._animationState="hidden",this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(un(1)).subscribe((function(){t._onExit.next(),t._onExit.complete()}))}},{key:"_applySnackBarClasses",value:function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach((function(e){return t.classList.add(e)})):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}]),e}(Kc)).\u0275fac=function(t){return new(t||t_)(a.yc(a.F),a.yc(a.q),a.yc(a.j),a.yc(l_))},t_.\u0275cmp=a.sc({type:t_,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&a.od(Qc,!0),2&t&&a.dd(n=a.Oc())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&a.pc("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(a.lc("role",e._role),a.vd("@state",e._animationState))},features:[a.hc],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&a.qd(0,Jy,0,0,"ng-template",0)},directives:[Qc],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[u_.snackBarState]}}),t_),d_=((Zy=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:Zy}),Zy.\u0275inj=a.vc({factory:function(t){return new(t||Zy)},imports:[[Bu,Zc,_e.c,Wa,Ii],Ii]}),Zy),f_=new a.v("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new l_}}),m_=((e_=function(){function t(e,n,i,a,r,o){_classCallCheck(this,t),this._overlay=e,this._live=n,this._injector=i,this._breakpointObserver=a,this._parentSnackBar=r,this._defaultConfig=o,this._snackBarRefAtThisLevel=null}return _createClass(t,[{key:"openFromComponent",value:function(t,e){return this._attach(t,e)}},{key:"openFromTemplate",value:function(t,e){return this._attach(t,e)}},{key:"open",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage||(i.announcementMessage=t),this.openFromComponent(c_,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(t,e){var n=new tu(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[l_,e]])),i=new Wc(h_,e.viewContainerRef,n),a=t.attach(i);return a.instance.snackBarConfig=e,a.instance}},{key:"_attach",value:function(t,e){var n=Object.assign(Object.assign(Object.assign({},new l_),this._defaultConfig),e),i=this._createOverlay(n),r=this._attachSnackBarContainer(i,n),o=new o_(r,i);if(t instanceof a.U){var s=new $c(t,null,{$implicit:n.data,snackBarRef:o});o.instance=r.attachTemplatePortal(s)}else{var l=this._createInjector(n,o),c=new Wc(t,void 0,l),u=r.attachComponentPortal(c);o.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(gc(i.detachments())).subscribe((function(t){var e=i.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")})),this._animateSnackBar(o,n),this._openedSnackBarRef=o,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(t,e){var n=this;t.afterDismissed().subscribe((function(){n._openedSnackBarRef==t&&(n._openedSnackBarRef=null),e.announcementMessage&&n._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){t.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe((function(){return t._dismissAfter(e.duration)})),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}},{key:"_createOverlay",value:function(t){var e=new uu;e.direction=t.direction;var n=this._overlay.position().global(),i="rtl"===t.direction,a="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,r=!a&&"center"!==t.horizontalPosition;return a?n.left("0"):r?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}},{key:"_createInjector",value:function(t,e){return new tu(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[o_,e],[s_,t.data]]))}},{key:"_openedSnackBarRef",get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}}]),t}()).\u0275fac=function(t){return new(t||e_)(a.Jc(Mu),a.Jc(oi),a.Jc(a.w),a.Jc(Ng),a.Jc(e_,12),a.Jc(f_))},e_.\u0275prov=Object(a.uc)({factory:function(){return new e_(Object(a.Jc)(Mu),Object(a.Jc)(oi),Object(a.Jc)(a.t),Object(a.Jc)(Ng),Object(a.Jc)(e_,12),Object(a.Jc)(f_))},token:e_,providedIn:d_}),e_),p_=["*",[["mat-toolbar-row"]]],g_=["*","mat-toolbar-row"],v_=ji((function t(e){_classCallCheck(this,t),this._elementRef=e})),y_=((a_=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||a_)},a_.\u0275dir=a.tc({type:a_,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),a_),__=((i_=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t)))._platform=n,a._document=i,a}return _inherits(e,t),_createClass(e,[{key:"ngAfterViewInit",value:function(){var t=this;Object(a.eb)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return t._checkToolbarMixedModes()})))}},{key:"_checkToolbarMixedModes",value:function(){var t=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))})).filter((function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)})).some((function(t){return!(!t.textContent||!t.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()}}]),e}(v_)).\u0275fac=function(t){return new(t||i_)(a.yc(a.q),a.yc(On),a.yc(_e.e))},i_.\u0275cmp=a.sc({type:i_,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&a.qc(n,y_,!0),2&t&&a.dd(i=a.Oc())&&(e._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&a.oc("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[a.hc],ngContentSelectors:g_,decls:2,vars:0,template:function(t,e){1&t&&(a.Wc(p_),a.Vc(0),a.Vc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}\n"],encapsulation:2,changeDetection:0}),i_),b_=((n_=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:n_}),n_.\u0275inj=a.vc({factory:function(t){return new(t||n_)},imports:[[Ii],Ii]}),n_);function k_(t){var e=t.subscriber,n=t.counter,i=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}function C_(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function w_(t,e){var n=e?"":"none";C_(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function x_(t){var e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function O_(t,e){return t.getPropertyValue(e).split(",").map((function(t){return t.trim()}))}var S_=An({passive:!0}),D_=An({passive:!1}),E_=function(){function t(e,n,i,a,r,o){var s=this;_classCallCheck(this,t),this._config=n,this._document=i,this._ngZone=a,this._viewportRuler=r,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new Me.a,this._pointerMoveSubscription=je.a.EMPTY,this._pointerUpSubscription=je.a.EMPTY,this._scrollSubscription=je.a.EMPTY,this._resizeSubscription=je.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Me.a,this.started=new Me.a,this.released=new Me.a,this.ended=new Me.a,this.entered=new Me.a,this.exited=new Me.a,this.dropped=new Me.a,this.moved=this._moveEvents.asObservable(),this._pointerDown=function(t){if(s.beforeStarted.next(),s._handles.length){var e=s._handles.find((function(e){var n=t.target;return!!n&&(n===e||e.contains(n))}));!e||s._disabledHandles.has(e)||s.disabled||s._initializeDragSequence(e,t)}else s.disabled||s._initializeDragSequence(s._rootElement,t)},this._pointerMove=function(t){if(t.preventDefault(),s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect()));var e=s._getConstrainedPointerPosition(t);if(s._hasMoved=!0,s._updatePointerDirectionDelta(e),s._dropContainer)s._updateActiveDropContainer(e);else{var n=s._activeTransform;n.x=e.x-s._pickupPositionOnPage.x+s._passiveTransform.x,n.y=e.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(n.x,n.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement&&s._rootElement.setAttribute("transform","translate(".concat(n.x," ").concat(n.y,")"))}s._moveEvents.observers.length&&s._ngZone.run((function(){s._moveEvents.next({source:s,pointerPosition:e,event:t,distance:s._getDragDistance(e),delta:s._pointerDirectionDelta})}))}else{var i=s._getPointerPositionOnPage(t);if(Math.abs(i.x-s._pickupPositionOnPage.x)+Math.abs(i.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){if(!(Date.now()>=s._dragStartTime+s._getDragStartDelay(t)))return void s._endDragSequence(t);s._dropContainer&&s._dropContainer.isDragging()||(s._hasStartedDragging=!0,s._ngZone.run((function(){return s._startDragSequence(t)})))}}},this._pointerUp=function(t){s._endDragSequence(t)},this.withRootElement(e),o.registerDragItem(this)}return _createClass(t,[{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(t){return this._handles=t.map((function(t){return yn(t)})),this._handles.forEach((function(t){return w_(t,!1)})),this._toggleNativeDragInteractions(),this}},{key:"withPreviewTemplate",value:function(t){return this._previewTemplate=t,this}},{key:"withPlaceholderTemplate",value:function(t){return this._placeholderTemplate=t,this}},{key:"withRootElement",value:function(t){var e=yn(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),e.addEventListener("mousedown",this._pointerDown,D_),e.addEventListener("touchstart",this._pointerDown,S_),this._initialTransform=void 0,this._rootElement=e),this}},{key:"withBoundaryElement",value:function(t){var e=this;return this._boundaryElement=t?yn(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe((function(){return e._containInsideBoundaryOnResize()}))),this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&T_(this._rootElement),T_(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}},{key:"enableHandle",value:function(t){this._disabledHandles.delete(t)}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"_withDropContainer",value:function(t){this._dropContainer=t}},{key:"getFreeDragPosition",value:function(){var t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}},{key:"setFreeDragPosition",value:function(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var t=this._pointerPositionAtLastDirectionChange;t&&this._dropContainer&&this._updateActiveDropContainer(t)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&T_(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&T_(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(t){var e=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then((function(){e._cleanupDragArtifacts(t),e._cleanupCachedDimensions(),e._dragDropRegistry.stopDragging(e)}))):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run((function(){e.ended.next({source:e,distance:e._getDragDistance(e._getPointerPositionOnPage(t))})})),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(t){if(this.started.next({source:this}),I_(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions(),this._dropContainer){var e=this._rootElement,n=e.parentNode,i=this._preview=this._createPreviewElement(),a=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment("");n.insertBefore(r,e),e.style.display="none",this._document.body.appendChild(n.replaceChild(a,e)),(o=this._document,o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body).appendChild(i),this._dropContainer.start(),this._initialContainer=this._dropContainer,this._initialIndex=this._dropContainer.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;var o}},{key:"_initializeDragSequence",value:function(t,e){var n=this;e.stopPropagation();var i=this.isDragging(),a=I_(e),r=!a&&0!==e.button,o=this._rootElement,s=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),!(i||r||s)){this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor,o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.pipe(Oi(null)).subscribe((function(){n._scrollPosition=n._viewportRuler.getViewportScrollPosition()})),this._boundaryElement&&(this._boundaryRect=this._boundaryElement.getBoundingClientRect());var l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);var c=this._pickupPositionOnPage=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}}},{key:"_cleanupDragArtifacts",value:function(t){var e=this;this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run((function(){var n=e._dropContainer,i=n.getItemIndex(e),a=e._getPointerPositionOnPage(t),r=e._getDragDistance(e._getPointerPositionOnPage(t)),o=n._isOverContainer(a.x,a.y);e.ended.next({source:e,distance:r}),e.dropped.next({item:e,currentIndex:i,previousIndex:e._initialIndex,container:n,previousContainer:e._initialContainer,isPointerOverContainer:o,distance:r}),n.drop(e,i,e._initialContainer,o,r,e._initialIndex),e._dropContainer=e._initialContainer}))}},{key:"_updateActiveDropContainer",value:function(t){var e=this,n=t.x,i=t.y,a=this._initialContainer._getSiblingContainerFromPosition(this,n,i);!a&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,i)&&(a=this._initialContainer),a&&a!==this._dropContainer&&this._ngZone.run((function(){e.exited.next({item:e,container:e._dropContainer}),e._dropContainer.exit(e),e._dropContainer=a,e._dropContainer.enter(e,n,i,a===e._initialContainer?e._initialIndex:void 0),e.entered.next({item:e,container:a,currentIndex:a.getItemIndex(e)})})),this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,n,i,this._pointerDirectionDelta),this._preview.style.transform=A_(n-this._pickupPositionInElement.x,i-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var t,e=this._previewTemplate,n=this.previewClass,i=e?e.template:null;if(i){var a=e.viewContainer.createEmbeddedView(i,e.context);t=M_(a,this._document),this._previewRef=a,e.matchSize?j_(t,this._rootElement):t.style.transform=A_(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var r=this._rootElement;j_(t=R_(r),r)}return C_(t.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:"1000"}),w_(t,!1),t.classList.add("cdk-drag-preview"),t.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach((function(e){return t.classList.add(e)})):t.classList.add(n)),t}},{key:"_animatePreviewToPlaceholder",value:function(){var t=this;if(!this._hasMoved)return Promise.resolve();var e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=A_(e.left,e.top);var n=function(t){var e=getComputedStyle(t),n=O_(e,"transition-property"),i=n.find((function(t){return"transform"===t||"all"===t}));if(!i)return 0;var a=n.indexOf(i),r=O_(e,"transition-duration"),o=O_(e,"transition-delay");return x_(r[a])+x_(o[a])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular((function(){return new Promise((function(e){var i=function n(i){(!i||i.target===t._preview&&"transform"===i.propertyName)&&(t._preview.removeEventListener("transitionend",n),e(),clearTimeout(a))},a=setTimeout(i,1.5*n);t._preview.addEventListener("transitionend",i)}))}))}},{key:"_createPlaceholderElement",value:function(){var t,e=this._placeholderTemplate,n=e?e.template:null;return n?(this._placeholderRef=e.viewContainer.createEmbeddedView(n,e.context),t=M_(this._placeholderRef,this._document)):t=R_(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}},{key:"_getPointerPositionInElement",value:function(t,e){var n=this._rootElement.getBoundingClientRect(),i=t===this._rootElement?null:t,a=i?i.getBoundingClientRect():n,r=I_(e)?e.targetTouches[0]:e;return{x:a.left-n.left+(r.pageX-a.left-this._scrollPosition.left),y:a.top-n.top+(r.pageY-a.top-this._scrollPosition.top)}}},{key:"_getPointerPositionOnPage",value:function(t){var e=I_(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.pageX-this._scrollPosition.left,y:e.pageY-this._scrollPosition.top}}},{key:"_getConstrainedPointerPosition",value:function(t){var e=this._getPointerPositionOnPage(t),n=this.constrainPosition?this.constrainPosition(e,this):e,i=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===i?n.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==i||(n.x=this._pickupPositionOnPage.x),this._boundaryRect){var a=this._pickupPositionInElement,r=a.x,o=a.y,s=this._boundaryRect,l=this._previewRect,c=s.top+o,u=s.bottom-(l.height-o);n.x=P_(n.x,s.left+r,s.right-(l.width-r)),n.y=P_(n.y,c,u)}return n}},{key:"_updatePointerDirectionDelta",value:function(t){var e=t.x,n=t.y,i=this._pointerDirectionDelta,a=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-a.x),o=Math.abs(n-a.y);return r>this._config.pointerDirectionChangeThreshold&&(i.x=e>a.x?1:-1,a.x=e),o>this._config.pointerDirectionChangeThreshold&&(i.y=n>a.y?1:-1,a.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,w_(this._rootElement,t))}}},{key:"_removeRootElementListeners",value:function(t){t.removeEventListener("mousedown",this._pointerDown,D_),t.removeEventListener("touchstart",this._pointerDown,S_)}},{key:"_applyRootElementTransform",value:function(t,e){var n=A_(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}},{key:"_getDragDistance",value:function(t){var e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0}},{key:"_containInsideBoundaryOnResize",value:function(){var t=this._passiveTransform,e=t.x,n=t.y;if(!(0===e&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),a=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===a.width&&0===a.height)){var r=i.left-a.left,o=a.right-i.right,s=i.top-a.top,l=a.bottom-i.bottom;i.width>a.width?(r>0&&(e+=r),o>0&&(e-=o)):e=0,i.height>a.height?(s>0&&(n+=s),l>0&&(n-=l)):n=0,e===this._passiveTransform.x&&n===this._passiveTransform.y||this.setFreeDragPosition({y:n,x:e})}}}},{key:"_getDragStartDelay",value:function(t){var e=this.dragStartDelay;return"number"==typeof e?e:I_(t)?e.touch:e?e.mouse:0}},{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(t){var e=mn(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}}]),t}();function A_(t,e){return"translate3d(".concat(Math.round(t),"px, ").concat(Math.round(e),"px, 0)")}function R_(t){var e=t.cloneNode(!0),n=e.querySelectorAll("[id]"),i=t.querySelectorAll("canvas");e.removeAttribute("id");for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ke;return(!dc(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Ke),new sn.a((function(n){return n.add(e.schedule(k_,t,{subscriber:n,counter:0,period:t})),n}))}(0,Ql).pipe(gc(o._stopScrollTimers)).subscribe((function(){var t=o._scrollNode;1===o._verticalScrollDirection?H_(t,-2):2===o._verticalScrollDirection&&H_(t,2),1===o._horizontalScrollDirection?X_(t,-2):2===o._horizontalScrollDirection&&X_(t,2)}))},this.element=yn(e),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this)}return _createClass(t,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){var t=this,e=yn(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach((function(e){return e._startReceiving(t)})),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"enter",value:function(t,e,n,i){var a;this.start(),null==i?-1===(a=this.sortingDisabled?this._draggables.indexOf(t):-1)&&(a=this._getItemIndexFromPointerPosition(t,e,n)):a=i;var r=this._activeDraggables,o=r.indexOf(t),s=t.getPlaceholderElement(),l=r[a];if(l===t&&(l=r[a+1]),o>-1&&r.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){var c=l.getRootElement();c.parentElement.insertBefore(s,c),r.splice(a,0,t)}else yn(this.element).appendChild(s),r.push(t);s.style.transform="",this._cacheItemPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}},{key:"exit",value:function(t){this._reset(),this.exited.next({item:t,container:this})}},{key:"drop",value:function(t,e,n,i,a,r){this._reset(),null==r&&(r=n.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:r,container:this,previousContainer:n,isPointerOverContainer:i,distance:a})}},{key:"withItems",value:function(t){var e=this;return this._draggables=t,t.forEach((function(t){return t._withDropContainer(e)})),this.isDragging()&&this._cacheItems(),this}},{key:"withDirection",value:function(t){return this._direction=t,this}},{key:"connectedTo",value:function(t){return this._siblings=t.slice(),this}},{key:"withOrientation",value:function(t){return this._orientation=t,this}},{key:"withScrollableParents",value:function(t){var e=yn(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e].concat(_toConsumableArray(t)):t.slice(),this}},{key:"getItemIndex",value:function(t){return this._isDragging?V_("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,(function(e){return e.drag===t})):this._draggables.indexOf(t)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(t,e,n,i){if(!this.sortingDisabled&&B_(this._clientRect,e,n)){var a=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,n,i);if(!(-1===r&&a.length>0)){var o="horizontal"===this._orientation,s=V_(a,(function(e){return e.drag===t})),l=a[r],c=a[s].clientRect,u=l.clientRect,h=s>r?1:-1;this._previousSwap.drag=l.drag,this._previousSwap.delta=o?i.x:i.y;var d=this._getItemOffsetPx(c,u,h),f=this._getSiblingOffsetPx(s,a,h),m=a.slice();L_(a,s,r),this.sorted.next({previousIndex:s,currentIndex:r,container:this,item:t}),a.forEach((function(e,n){if(m[n]!==e){var i=e.drag===t,a=i?d:f,r=i?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=a,o?(r.style.transform="translate3d(".concat(Math.round(e.offset),"px, 0, 0)"),z_(e.clientRect,0,a)):(r.style.transform="translate3d(0, ".concat(Math.round(e.offset),"px, 0)"),z_(e.clientRect,a,0))}}))}}}},{key:"_startScrollingIfNecessary",value:function(t,e){var n=this;if(!this.autoScrollDisabled){var i,a=0,r=0;if(this._parentPositions.forEach((function(o,s){var l;s!==n._document&&o.clientRect&&!i&&B_(o.clientRect,t,e)&&(l=_slicedToArray(function(t,e,n,i){var a=G_(e,i),r=W_(e,n),o=0,s=0;if(a){var l=t.scrollTop;1===a?l>0&&(o=1):t.scrollHeight-l>t.clientHeight&&(o=2)}if(r){var c=t.scrollLeft;1===r?c>0&&(s=1):t.scrollWidth-c>t.clientWidth&&(s=2)}return[o,s]}(s,o.clientRect,t,e),2),a=l[0],r=l[1],(a||r)&&(i=s))})),!a&&!r){var o=this._viewportRuler.getViewportSize(),s=o.width,l=o.height,c={width:s,height:l,top:0,right:s,bottom:l,left:0};a=G_(c,e),r=W_(c,t),i=window}!i||a===this._verticalScrollDirection&&r===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=a,this._horizontalScrollDirection=r,this._scrollNode=i,(a||r)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_cacheParentPositions",value:function(){var t=this;this._parentPositions.clear(),this._parentPositions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),this._scrollableElements.forEach((function(e){var n=U_(e);e===t.element&&(t._clientRect=n),t._parentPositions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:n})}))}},{key:"_cacheItemPositions",value:function(){var t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map((function(t){var e=t.getVisibleElement();return{drag:t,offset:0,clientRect:U_(e)}})).sort((function(e,n){return t?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top}))}},{key:"_reset",value:function(){var t=this;this._isDragging=!1;var e=yn(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach((function(t){return t.getRootElement().style.transform=""})),this._siblings.forEach((function(e){return e._stopReceiving(t)})),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(t,e,n){var i="horizontal"===this._orientation,a=e[t].clientRect,r=e[t+-1*n],o=a[i?"width":"height"]*n;if(r){var s=i?"left":"top",l=i?"right":"bottom";-1===n?o-=r.clientRect[s]-a[l]:o+=a[s]-r.clientRect[l]}return o}},{key:"_getItemOffsetPx",value:function(t,e,n){var i="horizontal"===this._orientation,a=i?e.left-t.left:e.top-t.top;return-1===n&&(a+=i?e.width-t.width:e.height-t.height),a}},{key:"_getItemIndexFromPointerPosition",value:function(t,e,n,i){var a=this,r="horizontal"===this._orientation;return V_(this._itemPositions,(function(o,s,l){var c=o.drag,u=o.clientRect;if(c===t)return l.length<2;if(i){var h=r?i.x:i.y;if(c===a._previousSwap.drag&&h===a._previousSwap.delta)return!1}return r?e>=Math.floor(u.left)&&e<=Math.floor(u.right):n>=Math.floor(u.top)&&n<=Math.floor(u.bottom)}))}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_updateAfterScroll",value:function(t,e,n){var i=this,a=this._parentPositions.get(t).scrollPosition,r=a.top-e,o=a.left-n;this._parentPositions.forEach((function(e,n){e.clientRect&&t!==n&&t.contains(n)&&z_(e.clientRect,r,o)})),this._itemPositions.forEach((function(t){z_(t.clientRect,r,o)})),this._itemPositions.forEach((function(t){var e=t.drag;i._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()})),a.top=e,a.left=n}},{key:"_isOverContainer",value:function(t,e){return q_(this._clientRect,t,e)}},{key:"_getSiblingContainerFromPosition",value:function(t,e,n){return this._siblings.find((function(i){return i._canReceive(t,e,n)}))}},{key:"_canReceive",value:function(t,e,n){if(!q_(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;var i=this._getShadowRoot().elementFromPoint(e,n);if(!i)return!1;var a=yn(this.element);return i===a||a.contains(i)}},{key:"_startReceiving",value:function(t){var e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var t=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe((function(e){if(t.isDragging()){var n=e.target;if(t._parentPositions.get(n)){var i,a;if(n===t._document){var r=t._viewportRuler.getViewportScrollPosition();i=r.top,a=r.left}else i=n.scrollTop,a=n.scrollLeft;t._updateAfterScroll(n,i,a)}}else t.isReceiving()&&t._cacheParentPositions()}))}},{key:"_getShadowRoot",value:function(){return this._cachedShadowRoot||(this._cachedShadowRoot=function(t){if(Pn()){var e=t.getRootNode?t.getRootNode():null;if(e instanceof ShadowRoot)return e}return null}(yn(this.element))||this._document),this._cachedShadowRoot}}]),t}();function z_(t,e,n){t.top+=e,t.bottom=t.top+t.height,t.left+=n,t.right=t.left+t.width}function B_(t,e,n){var i=t.top,a=t.right,r=t.bottom,o=t.left,s=.05*t.width,l=.05*t.height;return n>i-l&&no-s&&e=i&&n<=a&&e>=r&&e<=o}function U_(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function H_(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function X_(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function G_(t,e){var n=t.top,i=t.bottom,a=.05*t.height;return e>=n-a&&e<=n+a?1:e>=i-a&&e<=i+a?2:0}function W_(t,e){var n=t.left,i=t.right,a=.05*t.width;return e>=n-a&&e<=n+a?1:e>=i-a&&e<=i+a?2:0}var $_,Y_,K_,J_,Q_,Z_,tb=An({passive:!1,capture:!0}),eb=(($_=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new Me.a,this.pointerUp=new Me.a,this.scroll=new Me.a,this._preventDefaultWhileDragging=function(t){i._activeDragInstances.size&&t.preventDefault()},this._document=n}return _createClass(t,[{key:"registerDropContainer",value:function(t){this._dropInstances.has(t)||this._dropInstances.add(t)}},{key:"registerDragItem",value:function(t){var e=this;this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular((function(){e._document.addEventListener("touchmove",e._preventDefaultWhileDragging,tb)}))}},{key:"removeDropContainer",value:function(t){this._dropInstances.delete(t)}},{key:"removeDragItem",value:function(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,tb)}},{key:"startDragging",value:function(t,e){var n=this;if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){var i=e.type.startsWith("touch"),a=i?"touchend":"mouseup";this._globalListeners.set(i?"touchmove":"mousemove",{handler:function(t){return n.pointerMove.next(t)},options:tb}).set(a,{handler:function(t){return n.pointerUp.next(t)},options:!0}).set("scroll",{handler:function(t){return n.scroll.next(t)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:tb}),this._ngZone.runOutsideAngular((function(){n._globalListeners.forEach((function(t,e){n._document.addEventListener(e,t.handler,t.options)}))}))}}},{key:"stopDragging",value:function(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}},{key:"isDragging",value:function(t){return this._activeDragInstances.has(t)}},{key:"ngOnDestroy",value:function(){var t=this;this._dragInstances.forEach((function(e){return t.removeDragItem(e)})),this._dropInstances.forEach((function(e){return t.removeDropContainer(e)})),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var t=this;this._globalListeners.forEach((function(e,n){t._document.removeEventListener(n,e.handler,e.options)})),this._globalListeners.clear()}}]),t}()).\u0275fac=function(t){return new(t||$_)(a.Jc(a.F),a.Jc(_e.e))},$_.\u0275prov=Object(a.uc)({factory:function(){return new $_(Object(a.Jc)(a.F),Object(a.Jc)(_e.e))},token:$_,providedIn:"root"}),$_),nb={dragStartThreshold:5,pointerDirectionChangeThreshold:5},ib=((Y_=function(){function t(e,n,i,a){_classCallCheck(this,t),this._document=e,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=a}return _createClass(t,[{key:"createDrag",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nb;return new E_(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(t){return new F_(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),t}()).\u0275fac=function(t){return new(t||Y_)(a.Jc(_e.e),a.Jc(a.F),a.Jc(Vc),a.Jc(eb))},Y_.\u0275prov=Object(a.uc)({factory:function(){return new Y_(Object(a.Jc)(_e.e),Object(a.Jc)(a.F),Object(a.Jc)(Vc),Object(a.Jc)(eb))},token:Y_,providedIn:"root"}),Y_),ab=new a.v("CDK_DRAG_PARENT"),rb=((Q_=function(){function t(e,n){_classCallCheck(this,t),this.element=e,this._stateChanges=new Me.a,this._disabled=!1,this._parentDrag=n,w_(e.nativeElement,!1)}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=mn(t),this._stateChanges.next(this)}}]),t}()).\u0275fac=function(t){return new(t||Q_)(a.yc(a.q),a.yc(ab,8))},Q_.\u0275dir=a.tc({type:Q_,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),Q_),ob=((J_=function t(e){_classCallCheck(this,t),this.templateRef=e}).\u0275fac=function(t){return new(t||J_)(a.yc(a.U))},J_.\u0275dir=a.tc({type:J_,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),J_),sb=((K_=function(){function t(e){_classCallCheck(this,t),this.templateRef=e,this._matchSize=!1}return _createClass(t,[{key:"matchSize",get:function(){return this._matchSize},set:function(t){this._matchSize=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||K_)(a.yc(a.U))},K_.\u0275dir=a.tc({type:K_,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),K_),lb=new a.v("CDK_DRAG_CONFIG"),cb=new a.v("CDK_DROP_LIST"),ub=((Z_=function(){function t(e,n,i,r,o,s,l,c,u){var h=this;_classCallCheck(this,t),this.element=e,this.dropContainer=n,this._document=i,this._ngZone=r,this._viewContainerRef=o,this._dir=l,this._changeDetectorRef=u,this._destroyed=new Me.a,this.started=new a.s,this.released=new a.s,this.ended=new a.s,this.entered=new a.s,this.exited=new a.s,this.dropped=new a.s,this.moved=new sn.a((function(t){var e=h._dragRef.moved.pipe(Object(rn.a)((function(t){return{source:h,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}}))).subscribe(t);return function(){e.unsubscribe()}})),this._dragRef=c.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5}),this._dragRef.data=this,s&&this._assignDefaults(s),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return _createClass(t,[{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var t=this;this._ngZone.onStable.asObservable().pipe(un(1),gc(this._destroyed)).subscribe((function(){t._updateRootElement(),t._handles.changes.pipe(Oi(t._handles),He((function(e){var n=e.filter((function(e){return e._parentDrag===t})).map((function(t){return t.element}));t._dragRef.withHandles(n)})),bc((function(t){return Object(Yl.a).apply(void 0,_toConsumableArray(t.map((function(t){return t._stateChanges.pipe(Oi(t))}))))})),gc(t._destroyed)).subscribe((function(e){var n=t._dragRef,i=e.element.nativeElement;e.disabled?n.disableHandle(i):n.enableHandle(i)})),t.freeDragPosition&&t._dragRef.setFreeDragPosition(t.freeDragPosition)}))}},{key:"ngOnChanges",value:function(t){var e=t.rootElementSelector,n=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var t=this.element.nativeElement,e=this.rootElementSelector?hb(t,this.rootElementSelector):t;if(e&&e.nodeType!==this._document.ELEMENT_NODE)throw Error("cdkDrag must be attached to an element node. "+'Currently attached to "'.concat(e.nodeName,'".'));this._dragRef.withRootElement(e||t)}},{key:"_getBoundaryElement",value:function(){var t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return hb(this.element.nativeElement,t);var e=yn(t);if(Object(a.eb)()&&!e.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return e}},{key:"_syncInputs",value:function(t){var e=this;t.beforeStarted.subscribe((function(){if(!t.isDragging()){var n=e._dir,i=e.dragStartDelay,a=e._placeholderTemplate?{template:e._placeholderTemplate.templateRef,context:e._placeholderTemplate.data,viewContainer:e._viewContainerRef}:null,r=e._previewTemplate?{template:e._previewTemplate.templateRef,context:e._previewTemplate.data,matchSize:e._previewTemplate.matchSize,viewContainer:e._viewContainerRef}:null;t.disabled=e.disabled,t.lockAxis=e.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:pn(i),t.constrainPosition=e.constrainPosition,t.previewClass=e.previewClass,t.withBoundaryElement(e._getBoundaryElement()).withPlaceholderTemplate(a).withPreviewTemplate(r),n&&t.withDirection(n.value)}}))}},{key:"_handleEvents",value:function(t){var e=this;t.started.subscribe((function(){e.started.emit({source:e}),e._changeDetectorRef.markForCheck()})),t.released.subscribe((function(){e.released.emit({source:e})})),t.ended.subscribe((function(t){e.ended.emit({source:e,distance:t.distance}),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:t.container.data,item:e,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:t.container.data,item:e})})),t.dropped.subscribe((function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:e,distance:t.distance})}))}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,n=t.dragStartDelay,i=t.constrainPosition,a=t.previewClass,r=t.boundaryElement,o=t.draggingDisabled,s=t.rootElementSelector;this.disabled=null!=o&&o,this.dragStartDelay=n||0,e&&(this.lockAxis=e),i&&(this.constrainPosition=i),a&&(this.previewClass=a),r&&(this.boundaryElement=r),s&&(this.rootElementSelector=s)}},{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(t){this._disabled=mn(t),this._dragRef.disabled=this._disabled}}]),t}()).\u0275fac=function(t){return new(t||Z_)(a.yc(a.q),a.yc(cb,12),a.yc(_e.e),a.yc(a.F),a.yc(a.X),a.yc(lb,8),a.yc(yi,8),a.yc(ib),a.yc(a.j))},Z_.\u0275dir=a.tc({type:Z_,selectors:[["","cdkDrag",""]],contentQueries:function(t,e,n){var i;1&t&&(a.qc(n,sb,!0),a.qc(n,ob,!0),a.qc(n,rb,!0)),2&t&&(a.dd(i=a.Oc())&&(e._previewTemplate=i.first),a.dd(i=a.Oc())&&(e._placeholderTemplate=i.first),a.dd(i=a.Oc())&&(e._handles=i))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,e){2&t&&a.oc("cdk-drag-disabled",e.disabled)("cdk-drag-dragging",e._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[a.jc([{provide:ab,useExisting:Z_}]),a.ic]}),Z_);function hb(t,e){for(var n=t.parentElement;n;){if(n.matches?n.matches(e):n.msMatchesSelector(e))return n;n=n.parentElement}return null}var db,fb,mb,pb=((mb=function(){function t(){_classCallCheck(this,t),this._items=new Set,this._disabled=!1}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._items.clear()}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||mb)},mb.\u0275dir=a.tc({type:mb,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),mb),gb=0,vb=((fb=function(){function t(e,n,i,r,o,s,l){var c=this;_classCallCheck(this,t),this.element=e,this._changeDetectorRef=i,this._dir=r,this._group=o,this._scrollDispatcher=s,this._destroyed=new Me.a,this.connectedTo=[],this.id="cdk-drop-list-".concat(gb++),this.enterPredicate=function(){return!0},this.dropped=new a.s,this.entered=new a.s,this.exited=new a.s,this.sorted=new a.s,this._unsortedItems=new Set,this._dropListRef=n.createDropList(e),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=function(t,e){return c.enterPredicate(t.data,e.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),o&&o._items.add(this)}return _createClass(t,[{key:"ngAfterContentInit",value:function(){if(this._scrollDispatcher){var t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map((function(t){return t.getElementRef().nativeElement}));this._dropListRef.withScrollableParents(t)}}},{key:"addItem",value:function(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort((function(t,e){return t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))}},{key:"ngOnDestroy",value:function(){var e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"start",value:function(){this._dropListRef.start()}},{key:"drop",value:function(t,e,n,i){this._dropListRef.drop(t._dragRef,e,n._dropListRef,i,{x:0,y:0})}},{key:"enter",value:function(t,e,n){this._dropListRef.enter(t._dragRef,e,n)}},{key:"exit",value:function(t){this._dropListRef.exit(t._dragRef)}},{key:"getItemIndex",value:function(t){return this._dropListRef.getItemIndex(t._dragRef)}},{key:"_setupInputSyncSubscription",value:function(e){var n=this;this._dir&&this._dir.change.pipe(Oi(this._dir.value),gc(this._destroyed)).subscribe((function(t){return e.withDirection(t)})),e.beforeStarted.subscribe((function(){var i=gn(n.connectedTo).map((function(e){return"string"==typeof e?t._dropLists.find((function(t){return t.id===e})):e}));n._group&&n._group._items.forEach((function(t){-1===i.indexOf(t)&&i.push(t)})),e.disabled=n.disabled,e.lockAxis=n.lockAxis,e.sortingDisabled=mn(n.sortingDisabled),e.autoScrollDisabled=mn(n.autoScrollDisabled),e.connectedTo(i.filter((function(t){return t&&t!==n})).map((function(t){return t._dropListRef}))).withOrientation(n.orientation)}))}},{key:"_handleEvents",value:function(t){var e=this;t.beforeStarted.subscribe((function(){e._syncItemsWithRef(),e._changeDetectorRef.markForCheck()})),t.entered.subscribe((function(t){e.entered.emit({container:e,item:t.item.data,currentIndex:t.currentIndex})})),t.exited.subscribe((function(t){e.exited.emit({container:e,item:t.item.data}),e._changeDetectorRef.markForCheck()})),t.sorted.subscribe((function(t){e.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:e,item:t.item.data})})),t.dropped.subscribe((function(t){e.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),e._changeDetectorRef.markForCheck()}))}},{key:"_assignDefaults",value:function(t){var e=t.lockAxis,n=t.draggingDisabled,i=t.sortingDisabled,a=t.listAutoScrollDisabled,r=t.listOrientation;this.disabled=null!=n&&n,this.sortingDisabled=null!=i&&i,this.autoScrollDisabled=null!=a&&a,this.orientation=r||"vertical",e&&(this.lockAxis=e)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map((function(t){return t._dragRef})))}},{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(t){this._dropListRef.disabled=this._disabled=mn(t)}}]),t}()).\u0275fac=function(t){return new(t||fb)(a.yc(a.q),a.yc(ib),a.yc(a.j),a.yc(yi,8),a.yc(pb,12),a.yc(zc),a.yc(lb,8))},fb.\u0275dir=a.tc({type:fb,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,e){2&t&&(a.Gc("id",e.id),a.oc("cdk-drop-list-disabled",e.disabled)("cdk-drop-list-dragging",e._dropListRef.isDragging())("cdk-drop-list-receiving",e._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[a.jc([{provide:pb,useValue:void 0},{provide:cb,useExisting:fb}])]}),fb._dropLists=[],fb),yb=((db=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:db}),db.\u0275inj=a.vc({factory:function(t){return new(t||db)},providers:[ib]}),db);function _b(t){return jf(t)(this)}sn.a.prototype.map=function(t,e){return Object(rn.a)(t,e)(this)},sn.a.prototype.catch=_b,sn.a.prototype._catch=_b,sn.a.throw=Oc,sn.a.throwError=Oc;var bb={default:{key:"default",background_color:"ghostwhite",alternate_color:"gray",css_label:"default-theme",social_theme:"material-light"},dark:{key:"dark",background_color:"#757575",alternate_color:"#695959",css_label:"dark-theme",social_theme:"material-dark"},light:{key:"light",background_color:"white",css_label:"light-theme",social_theme:"material-light"}},kb=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this)))._value=t,n}return _inherits(e,t),_createClass(e,[{key:"_subscribe",value:function(t){var n=_get(_getPrototypeOf(e.prototype),"_subscribe",this).call(this,t);return n&&!n.closed&&t.next(this._value),n}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new jc.a;return this._value}},{key:"next",value:function(t){_get(_getPrototypeOf(e.prototype),"next",this).call(this,this._value=t)}},{key:"value",get:function(){return this.getValue()}}]),e}(Me.a),Cb=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}();function wb(t){return function(e){return 0===t?cn():e.lift(new xb(t))}}var xb=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new on}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Ob(t,this.total))}}]),t}(),Ob=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).total=n,i.ring=new Array,i.count=0,i}return _inherits(e,t),_createClass(e,[{key:"_next",value:function(t){var e=this.ring,n=this.total,i=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,a=0;a0&&void 0!==arguments[0]?arguments[0]:Ab;return function(e){return e.lift(new Db(t))}}var Db=function(){function t(e){_classCallCheck(this,t),this.errorFactory=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Eb(t,this.errorFactory))}}]),t}(),Eb=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).errorFactory=n,i.hasValue=!1,i}return _inherits(e,t),_createClass(e,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),e}(Ve.a);function Ab(){return new Cb}function Rb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new Pb(t))}}var Pb=function(){function t(e){_classCallCheck(this,t),this.defaultValue=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Tb(t,this.defaultValue))}}]),t}(),Tb=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).defaultValue=n,i.isEmpty=!0,i}return _inherits(e,t),_createClass(e,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),e}(Ve.a),Ib=n("SpAZ");function Mb(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?en((function(e,n){return t(e,n,i)})):Ib.a,wb(1),n?Rb(e):Sb((function(){return new Cb})))}}function jb(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?en((function(e,n){return t(e,n,i)})):Ib.a,un(1),n?Rb(e):Sb((function(){return new Cb})))}}var Lb=function(){function t(e,n,i){_classCallCheck(this,t),this.predicate=e,this.thisArg=n,this.source=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Nb(t,this.predicate,this.thisArg,this.source))}}]),t}(),Nb=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).predicate=n,r.thisArg=i,r.source=a,r.index=0,r.thisArg=i||_assertThisInitialized(r),r}return _inherits(e,t),_createClass(e,[{key:"notifyComplete",value:function(t){this.destination.next(t),this.destination.complete()}},{key:"_next",value:function(t){var 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)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),e}(Ve.a);function Fb(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Bb(t,e,n))}}var zb,Bb=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.accumulator=e,this.seed=n,this.hasSeed=i}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Vb(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),Vb=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).accumulator=n,r._seed=i,r.hasSeed=a,r.index=0,r}return _inherits(e,t),_createClass(e,[{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=e,this.destination.next(e)}},{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}}]),e}(Ve.a),qb=n("mCNh"),Ub=function t(e,n){_classCallCheck(this,t),this.id=e,this.url=n},Hb=function(t){function e(t,n){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).navigationTrigger=a,i.restoredState=r,i}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(Ub),Xb=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,a}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),e}(Ub),Gb=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).reason=i,a}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),e}(Ub),Wb=function(t){function e(t,n,i){var a;return _classCallCheck(this,e),(a=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).error=i,a}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),e}(Ub),$b=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,r.state=a,r}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(Ub),Yb=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,r.state=a,r}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(Ub),Kb=function(t){function e(t,n,i,a,r){var o;return _classCallCheck(this,e),(o=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,o.state=a,o.shouldActivate=r,o}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),e}(Ub),Jb=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,r.state=a,r}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(Ub),Qb=function(t){function e(t,n,i,a){var r;return _classCallCheck(this,e),(r=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t,n))).urlAfterRedirects=i,r.state=a,r}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),e}(Ub),Zb=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),tk=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),ek=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),nk=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),ik=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),ak=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),rk=function(){function t(e,n,i){_classCallCheck(this,t),this.routerEvent=e,this.position=n,this.anchor=i}return _createClass(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),ok=((zb=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||zb)},zb.\u0275cmp=a.sc({type:zb,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&a.zc(0,"router-outlet")},directives:function(){return[vw]},encapsulation:2}),zb),sk=function(){function t(e){_classCallCheck(this,t),this.params=e||{}}return _createClass(t,[{key:"has",value:function(t){return this.params.hasOwnProperty(t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function lk(t){return new sk(t)}function ck(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function uk(t,e,n){var i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length1&&void 0!==arguments[1]?arguments[1]:"",n=0;n-1})):t===e}function yk(t){return Array.prototype.concat.apply([],t)}function _k(t){return t.length>0?t[t.length-1]:null}function bk(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function kk(t){return Object(a.Mb)(t)?t:Object(a.Nb)(t)?Object(Qa.a)(Promise.resolve(t)):ze(t)}function Ck(t,e,n){return n?function(t,e){return gk(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Sk(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var 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((function(n){return vk(t[n],e[n])}))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,a){if(n.segments.length>a.length)return!!Sk(n.segments.slice(0,a.length),a)&&!i.hasChildren();if(n.segments.length===a.length){if(!Sk(n.segments,a))return!1;for(var r in i.children){if(!n.children[r])return!1;if(!t(n.children[r],i.children[r]))return!1}return!0}var o=a.slice(0,n.segments.length),s=a.slice(n.segments.length);return!!Sk(n.segments,o)&&!!n.children.primary&&e(n.children.primary,i,s)}(e,n,n.segments)}(t.root,e.root)}var wk=function(){function t(e,n,i){_classCallCheck(this,t),this.root=e,this.queryParams=n,this.fragment=i}return _createClass(t,[{key:"toString",value:function(){return Rk.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=lk(this.queryParams)),this._queryParamMap}}]),t}(),xk=function(){function t(e,n){var i=this;_classCallCheck(this,t),this.segments=e,this.children=n,this.parent=null,bk(n,(function(t,e){return t.parent=i}))}return _createClass(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Pk(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),Ok=function(){function t(e,n){_classCallCheck(this,t),this.path=e,this.parameters=n}return _createClass(t,[{key:"toString",value:function(){return Nk(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=lk(this.parameters)),this._parameterMap}}]),t}();function Sk(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function Dk(t,e){var n=[];return bk(t.children,(function(t,i){"primary"===i&&(n=n.concat(e(t,i)))})),bk(t.children,(function(t,i){"primary"!==i&&(n=n.concat(e(t,i)))})),n}var Ek=function t(){_classCallCheck(this,t)},Ak=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"parse",value:function(t){var e=new qk(t);return new wk(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,i;return"".concat("/".concat(function t(e,n){if(!e.hasChildren())return Pk(e);if(n){var i=e.children.primary?t(e.children.primary,!1):"",a=[];return bk(e.children,(function(e,n){"primary"!==n&&a.push("".concat(n,":").concat(t(e,!1)))})),a.length>0?"".concat(i,"(").concat(a.join("//"),")"):i}var r=Dk(e,(function(n,i){return"primary"===i?[t(e.children.primary,!1)]:["".concat(i,":").concat(t(n,!1))]}));return"".concat(Pk(e),"/(").concat(r.join("//"),")")}(t.root,!0)),(n=t.queryParams,i=Object.keys(n).map((function(t){var e=n[t];return Array.isArray(e)?e.map((function(e){return"".concat(Ik(t),"=").concat(Ik(e))})).join("&"):"".concat(Ik(t),"=").concat(Ik(e))})),i.length?"?".concat(i.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),Rk=new Ak;function Pk(t){return t.segments.map((function(t){return Nk(t)})).join("/")}function Tk(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ik(t){return Tk(t).replace(/%3B/gi,";")}function Mk(t){return Tk(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function jk(t){return decodeURIComponent(t)}function Lk(t){return jk(t.replace(/\+/g,"%20"))}function Nk(t){return"".concat(Mk(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat(Mk(t),"=").concat(Mk(e[t]))})).join("")));var e}var Fk=/^[^\/()?;=#]+/;function zk(t){var e=t.match(Fk);return e?e[0]:""}var Bk=/^[^=?&#]+/,Vk=/^[^?&#]+/,qk=function(){function t(e){_classCallCheck(this,t),this.url=e,this.remaining=e}return _createClass(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new xk([],{}):new xk([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new xk(t,e)),n}},{key:"parseSegment",value:function(){var t=zk(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Ok(jk(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=zk(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=zk(this.remaining);i&&(n=i,this.capture(n))}t[jk(e)]=jk(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(Bk);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(Vk);return e?e[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var a=Lk(e),r=Lk(n);if(t.hasOwnProperty(a)){var o=t[a];Array.isArray(o)||(o=[o],t[a]=o),o.push(r)}else t[a]=r}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=zk(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var a=void 0;n.indexOf(":")>-1?(a=n.substr(0,n.indexOf(":")),this.capture(a),this.capture(":")):t&&(a="primary");var r=this.parseChildren();e[a]=1===Object.keys(r).length?r.primary:new xk([],r),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),Uk=function(){function t(e){_classCallCheck(this,t),this._root=e}return _createClass(t,[{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=Hk(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=Hk(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Xk(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))}},{key:"pathFromRoot",value:function(t){return Xk(t,this._root).map((function(t){return t.value}))}},{key:"root",get:function(){return this._root.value}}]),t}();function Hk(t,e){if(t===e.value)return e;var n=!0,i=!1,a=void 0;try{for(var r,o=e.children[Symbol.iterator]();!(n=(r=o.next()).done);n=!0){var s=Hk(t,r.value);if(s)return s}}catch(l){i=!0,a=l}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return null}function Xk(t,e){if(t===e.value)return[e];var n=!0,i=!1,a=void 0;try{for(var r,o=e.children[Symbol.iterator]();!(n=(r=o.next()).done);n=!0){var s=Xk(t,r.value);if(s.length)return s.unshift(e),s}}catch(l){i=!0,a=l}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return[]}var Gk=function(){function t(e,n){_classCallCheck(this,t),this.value=e,this.children=n}return _createClass(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function Wk(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var $k=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).snapshot=n,tC(_assertThisInitialized(i),t),i}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return this.snapshot.toString()}}]),e}(Uk);function Yk(t,e){var n=function(t,e){var n=new Qk([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Zk("",new Gk(n,[]))}(t,e),i=new kb([new Ok("",{})]),a=new kb({}),r=new kb({}),o=new kb({}),s=new kb(""),l=new Kk(i,a,o,s,r,"primary",e,n.root);return l.snapshot=n.root,new $k(new Gk(l,[]),n)}var Kk=function(){function t(e,n,i,a,r,o,s,l){_classCallCheck(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this._futureSnapshot=l}return _createClass(t,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(rn.a)((function(t){return lk(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(rn.a)((function(t){return lk(t)})))),this._queryParamMap}}]),t}();function Jk(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var a=n[i],r=n[i-1];if(a.routeConfig&&""===a.routeConfig.path)i--;else{if(r.component)break;i--}}return function(t){return t.reduce((function(t,e){return{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))}var Qk=function(){function t(e,n,i,a,r,o,s,l,c,u,h){_classCallCheck(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=a,this.data=r,this.outlet=o,this.component=s,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=h}return _createClass(t,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(t){return t.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=lk(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=lk(this.queryParams)),this._queryParamMap}}]),t}(),Zk=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,n))).url=t,tC(_assertThisInitialized(i),n),i}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return eC(this._root)}}]),e}(Uk);function tC(t,e){e.value._routerState=t,e.children.forEach((function(e){return tC(t,e)}))}function eC(t){var e=t.children.length>0?" { ".concat(t.children.map(eC).join(", ")," } "):"";return"".concat(t.value).concat(e)}function nC(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,gk(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),gk(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&aC(i[0]))throw new Error("Root segment cannot have matrix parameters");var a=i.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(a&&a!==_k(i))throw new Error("{outlets:{}} has to be the last command")}return _createClass(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),sC=function t(e,n,i){_classCallCheck(this,t),this.segmentGroup=e,this.processChildren=n,this.index=i};function lC(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:"".concat(t)}function cC(t,e,n){if(t||(t=new xk([],{})),0===t.segments.length&&t.hasChildren())return uC(t,e,n);var i=function(t,e,n){for(var i=0,a=e,r={match:!1,pathIndex:0,commandIndex:0};a=n.length)return r;var o=t.segments[a],s=lC(n[i]),l=i0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!mC(s,l,o))return r;i+=2}else{if(!mC(s,{},o))return r;i++}a++}return{match:!0,pathIndex:a,commandIndex:i}}(t,e,n),a=n.slice(i.commandIndex);if(i.match&&i.pathIndex0?new xk([],{primary:t}):t;return new wk(i,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(rn.a)((function(t){return new xk([],t)}))):this.expandSegment(t,n,e,n.segments,i,!0)}},{key:"expandChildren",value:function(t,e,n){var i=this;return function(n,a){if(0===Object.keys(n).length)return ze({});var r=[],o=[],s={};return bk(n,(function(n,a){var l,c,u=(l=a,c=n,i.expandSegmentGroup(t,e,c,l)).pipe(Object(rn.a)((function(t){return s[a]=t})));"primary"===a?r.push(u):o.push(u)})),ze.apply(null,r.concat(o)).pipe(wi(),Mb(),Object(rn.a)((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(t,e,n,i,a,r){var o=this;return ze.apply(void 0,_toConsumableArray(n)).pipe(Object(rn.a)((function(s){return o.expandSegmentAgainstRoute(t,e,n,s,i,a,r).pipe(jf((function(t){if(t instanceof _C)return ze(null);throw t})))})),wi(),jb((function(t){return!!t})),jf((function(t,n){if(t instanceof Cb||"EmptyError"===t.name){if(o.noLeftoversInUrl(e,i,a))return ze(new xk([],{}));throw new _C(e)}throw t})))}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,i,a,r,o){return EC(i)!==r?kC(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,a,r):kC(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,a,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,a,r)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,i){var a=this,r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?CC(r):this.lineralizeSegments(n,r).pipe(Object(qf.a)((function(n){var r=new xk(n,{});return a.expandSegment(t,r,e,n,i,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,a,r){var o=this,s=OC(e,i,a),l=s.matched,c=s.consumedSegments,u=s.lastChild,h=s.positionalParamSegments;if(!l)return kC(e);var d=this.applyRedirectCommands(c,i.redirectTo,h);return i.redirectTo.startsWith("/")?CC(d):this.lineralizeSegments(i,d).pipe(Object(qf.a)((function(i){return o.expandSegment(t,e,n,i.concat(a.slice(u)),r,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,i){var a=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(rn.a)((function(t){return n._loadedConfig=t,new xk(i,{})}))):ze(new xk(i,{}));var r=OC(e,n,i),o=r.matched,s=r.consumedSegments,l=r.lastChild;if(!o)return kC(e);var c=i.slice(l);return this.getChildConfig(t,n,i).pipe(Object(qf.a)((function(t){var n=t.module,i=t.routes,r=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some((function(n){return DC(t,e,n)&&"primary"!==EC(n)}))}(t,n,i)?{segmentGroup:SC(new xk(e,function(t,e){var n={};n.primary=e;var i=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var l=o.value;""===l.path&&"primary"!==EC(l)&&(n[EC(l)]=new xk([],{}))}}catch(c){a=!0,r=c}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}return n}(i,new xk(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return DC(t,e,n)}))}(t,n,i)?{segmentGroup:SC(new xk(t.segments,function(t,e,n,i){var a={},r=!0,o=!1,s=void 0;try{for(var l,c=n[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value;DC(t,e,u)&&!i[EC(u)]&&(a[EC(u)]=new xk([],{}))}}catch(h){o=!0,s=h}finally{try{r||null==c.return||c.return()}finally{if(o)throw s}}return Object.assign(Object.assign({},i),a)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,c,i),o=r.segmentGroup,l=r.slicedSegments;return 0===l.length&&o.hasChildren()?a.expandChildren(n,i,o).pipe(Object(rn.a)((function(t){return new xk(s,t)}))):0===i.length&&0===l.length?ze(new xk(s,{})):a.expandSegment(n,o,i,l,"primary",!0).pipe(Object(rn.a)((function(t){return new xk(s.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,n){var i=this;return e.children?ze(new hk(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?ze(e._loadedConfig):function(t,e,n){var i,a=e.canLoad;return a&&0!==a.length?Object(Qa.a)(a).pipe(Object(rn.a)((function(i){var a,r=t.get(i);if(function(t){return t&&vC(t.canLoad)}(r))a=r.canLoad(e,n);else{if(!vC(r))throw new Error("Invalid CanLoad guard");a=r(e,n)}return kk(a)}))).pipe(wi(),(i=function(t){return!0===t},function(t){return t.lift(new Lb(i,void 0,t))})):ze(!0)}(t.injector,e,n).pipe(Object(qf.a)((function(n){return n?i.configLoader.load(t.injector,e).pipe(Object(rn.a)((function(t){return e._loadedConfig=t,t}))):function(t){return new sn.a((function(e){return e.error(ck("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):ze(new hk([],t))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return ze(n);if(i.numberOfChildren>1||!i.children.primary)return wC(t.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,i){var a=this.createSegmentGroup(t,e.root,n,i);return new wk(a,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return bk(t,(function(t,i){if("string"==typeof t&&t.startsWith(":")){var a=t.substring(1);n[i]=e[a]}else n[i]=t})),n}},{key:"createSegmentGroup",value:function(t,e,n,i){var a=this,r=this.createSegments(t,e.segments,n,i),o={};return bk(e.children,(function(e,r){o[r]=a.createSegmentGroup(t,e,n,i)})),new xk(r,o)}},{key:"createSegments",value:function(t,e,n,i){var a=this;return e.map((function(e){return e.path.startsWith(":")?a.findPosParam(t,e,i):a.findOrReturn(e,n)}))}},{key:"findPosParam",value:function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return i}},{key:"findOrReturn",value:function(t,e){var n=0,i=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0){var l=o.value;if(l.path===t.path)return e.splice(n),l;n++}}catch(c){a=!0,r=c}finally{try{i||null==s.return||s.return()}finally{if(a)throw r}}return t}}]),t}();function OC(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:{}};var i=(e.matcher||uk)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function SC(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new xk(t.segments.concat(e.segments),e.children)}return t}function DC(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function EC(t){return t.outlet||"primary"}var AC=function t(e){_classCallCheck(this,t),this.path=e,this.route=this.path[this.path.length-1]},RC=function t(e,n){_classCallCheck(this,t),this.component=e,this.route=n};function PC(t,e,n){var i=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function TC(t,e,n){var i=Wk(t),a=t.value;bk(i,(function(t,i){TC(t,a.component?e?e.children.getContext(i):null:e,n)})),n.canDeactivateChecks.push(new RC(a.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,a))}var IC=Symbol("INITIAL_VALUE");function MC(){return bc((function(t){return Sg.apply(void 0,_toConsumableArray(t.map((function(t){return t.pipe(un(1),Oi(IC))})))).pipe(Fb((function(t,e){var n=!1;return e.reduce((function(t,i,a){if(t!==IC)return t;if(i===IC&&(n=!0),!n){if(!1===i)return i;if(a===e.length-1||yC(i))return i}return t}),t)}),IC),en((function(t){return t!==IC})),Object(rn.a)((function(t){return yC(t)?t:!0===t})),un(1))}))}function jC(t,e){return null!==t&&e&&e(new ik(t)),ze(!0)}function LC(t,e){return null!==t&&e&&e(new ek(t)),ze(!0)}function NC(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?ze(i.map((function(i){return $l((function(){var a,r=PC(i,e,n);if(function(t){return t&&vC(t.canActivate)}(r))a=kk(r.canActivate(e,t));else{if(!vC(r))throw new Error("Invalid CanActivate guard");a=kk(r(e,t))}return a.pipe(jb())}))}))).pipe(MC()):ze(!0)}function FC(t,e,n){var i=e[e.length-1],a=e.slice(0,e.length-1).reverse().map((function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return $l((function(){return ze(e.guards.map((function(a){var r,o=PC(a,e.node,n);if(function(t){return t&&vC(t.canActivateChild)}(o))r=kk(o.canActivateChild(i,t));else{if(!vC(o))throw new Error("Invalid CanActivateChild guard");r=kk(o(i,t))}return r.pipe(jb())}))).pipe(MC())}))}));return ze(a).pipe(MC())}var zC=function t(){_classCallCheck(this,t)},BC=function(){function t(e,n,i,a,r,o){_classCallCheck(this,t),this.rootComponentType=e,this.config=n,this.urlTree=i,this.url=a,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}return _createClass(t,[{key:"recognize",value:function(){try{var t=UC(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Qk([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Gk(n,e),a=new Zk(this.url,i);return this.inheritParamsAndData(a._root),ze(a)}catch(r){return new sn.a((function(t){return t.error(r)}))}}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,i=Jk(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){var n,i=this,a=Dk(e,(function(e,n){return i.processSegmentGroup(t,e,n)}));return n={},a.forEach((function(t){var e=n[t.value.outlet];if(e){var i=e.url.map((function(t){return t.toString()})).join("/"),a=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(i,"' and '").concat(a,"'."))}n[t.value.outlet]=t.value})),a.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)})),a}},{key:"processSegment",value:function(t,e,n,i){var a=!0,r=!1,o=void 0;try{for(var s,l=t[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;try{return this.processSegmentAgainstRoute(c,e,n,i)}catch(u){if(!(u instanceof zC))throw u}}}catch(h){r=!0,o=h}finally{try{a||null==l.return||l.return()}finally{if(r)throw o}}if(this.noLeftoversInUrl(e,n,i))return[];throw new zC}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"processSegmentAgainstRoute",value:function(t,e,n,i){if(t.redirectTo)throw new zC;if((t.outlet||"primary")!==i)throw new zC;var a,r=[],o=[];if("**"===t.path){var s=n.length>0?_k(n).parameters:{};a=new Qk(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,GC(t),i,t.component,t,VC(e),qC(e)+n.length,WC(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new zC;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||uk)(n,t,e);if(!i)throw new zC;var a={};bk(i.posParams,(function(t,e){a[e]=t.path}));var r=i.consumed.length>0?Object.assign(Object.assign({},a),i.consumed[i.consumed.length-1].parameters):a;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:r}}(e,t,n);r=l.consumedSegments,o=n.slice(l.lastChild),a=new Qk(r,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,GC(t),i,t.component,t,VC(e),qC(e)+r.length,WC(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),u=UC(e,r,o,c,this.relativeLinkResolution),h=u.segmentGroup,d=u.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(c,h);return[new Gk(a,f)]}if(0===c.length&&0===d.length)return[new Gk(a,[])];var m=this.processSegment(c,h,d,"primary");return[new Gk(a,m)]}}]),t}();function VC(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function qC(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function UC(t,e,n,i,a){if(n.length>0&&function(t,e,n){return n.some((function(n){return HC(t,e,n)&&"primary"!==XC(n)}))}(t,n,i)){var r=new xk(e,function(t,e,n,i){var a={};a.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;var r=!0,o=!1,s=void 0;try{for(var l,c=n[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value;if(""===u.path&&"primary"!==XC(u)){var h=new xk([],{});h._sourceSegment=t,h._segmentIndexShift=e.length,a[XC(u)]=h}}}catch(d){o=!0,s=d}finally{try{r||null==c.return||c.return()}finally{if(o)throw s}}return a}(t,e,i,new xk(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((function(n){return HC(t,e,n)}))}(t,n,i)){var o=new xk(t.segments,function(t,e,n,i,a,r){var o={},s=!0,l=!1,c=void 0;try{for(var u,h=i[Symbol.iterator]();!(s=(u=h.next()).done);s=!0){var d=u.value;if(HC(t,n,d)&&!a[XC(d)]){var f=new xk([],{});f._sourceSegment=t,f._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[XC(d)]=f}}}catch(m){l=!0,c=m}finally{try{s||null==h.return||h.return()}finally{if(l)throw c}}return Object.assign(Object.assign({},a),o)}(t,e,n,i,t.children,a));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new xk(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function HC(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function XC(t){return t.outlet||"primary"}function GC(t){return t.data||{}}function WC(t){return t.resolve||{}}function $C(t,e,n,i){var a=PC(t,e,i);return kk(a.resolve?a.resolve(e,n):a(e,n))}function YC(t){return function(e){return e.pipe(bc((function(e){var n=t(e);return n?Object(Qa.a)(n).pipe(Object(rn.a)((function(){return e}))):Object(Qa.a)([e])})))}}var KC=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}(),JC=new a.v("ROUTES"),QC=function(){function t(e,n,i,a){_classCallCheck(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=a}return _createClass(t,[{key:"load",value:function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(rn.a)((function(i){n.onLoadEndListener&&n.onLoadEndListener(e);var a=i.create(t);return new hk(yk(a.injector.get(JC)).map(pk),a)})))}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?Object(Qa.a)(this.loader.load(t)):kk(t()).pipe(Object(qf.a)((function(t){return t instanceof a.B?ze(t):Object(Qa.a)(e.compiler.compileModuleAsync(t))})))}}]),t}(),ZC=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function tw(t){throw t}function ew(t,e,n){return e.parse("/")}function nw(t,e){return ze(null)}var iw,aw,rw,ow=((rw=function(){function t(e,n,i,r,o,s,l,c){var u=this;_classCallCheck(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new Me.a,this.errorHandler=tw,this.malformedUriErrorHandler=ew,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:nw,afterPreactivation:nw},this.urlHandlingStrategy=new ZC,this.routeReuseStrategy=new KC,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(a.D),this.console=o.get(a.ib);var h=o.get(a.F);this.isNgZoneEnabled=h instanceof a.F,this.resetConfig(c),this.currentUrlTree=new wk(new xk([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new QC(s,l,(function(t){return u.triggerEvent(new Zb(t))}),(function(t){return u.triggerEvent(new tk(t))})),this.routerState=Yk(this.currentUrlTree,this.rootComponentType),this.transitions=new kb({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()}return _createClass(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(en((function(t){return 0!==t.id})),Object(rn.a)((function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),bc((function(t){var i,a,r,o=!1,s=!1;return ze(t).pipe(He((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),bc((function(t){var i,a,r,o,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return ze(t).pipe(bc((function(t){var i=e.transitions.getValue();return n.next(new Hb(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?ln:[t]})),bc((function(t){return Promise.resolve(t)})),(i=e.ngModule.injector,a=e.configLoader,r=e.urlSerializer,o=e.config,function(t){return t.pipe(bc((function(t){return function(t,e,n,i,a){return new xC(t,e,n,i,a).apply()}(i,a,r,t.extractedUrl,o).pipe(Object(rn.a)((function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})})))})))}),He((function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,n,i,a,r){return function(i){return i.pipe(Object(qf.a)((function(i){return function(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new BC(t,e,n,i,a,r).recognize()}(t,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,e.serializeUrl(o)),a,r).pipe(Object(rn.a)((function(t){return Object.assign(Object.assign({},i),{targetSnapshot:t})})));var o})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),He((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),He((function(t){var i=new $b(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)})));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var l=t.id,c=t.extractedUrl,u=t.source,h=t.restoredState,d=t.extras,f=new Hb(l,e.serializeUrl(c),u,h);n.next(f);var m=Yk(c,e.rootComponentType).snapshot;return ze(Object.assign(Object.assign({},t),{targetSnapshot:m,urlAfterRedirects:c,extras:Object.assign(Object.assign({},d),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ln})),YC((function(t){var n=t.targetSnapshot,i=t.id,a=t.extractedUrl,r=t.rawUrl,o=t.extras,s=o.skipLocationChange,l=o.replaceUrl;return e.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:a,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!l})})),He((function(t){var n=new Yb(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),Object(rn.a)((function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,i=t.currentSnapshot,a=e.rootContexts,r=n._root,function t(e,n,i,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=Wk(n);return e.children.forEach((function(e){!function(e,n,i,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,s=n?n.value:null,l=i?i.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Sk(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Sk(t.url,e.url)||!gk(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!iC(t,e)||!gk(t.queryParams,e.queryParams);case"paramsChange":default:return!iC(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new AC(a)):(o.data=s.data,o._resolvedData=s._resolvedData),t(e,n,o.component?l?l.children:null:i,a,r),c&&r.canDeactivateChecks.push(new RC(l&&l.outlet&&l.outlet.component||null,s))}else s&&TC(n,l,r),r.canActivateChecks.push(new AC(a)),t(e,null,o.component?l?l.children:null:i,a,r)}(e,o[e.value.outlet],i,a.concat([e.value]),r),delete o[e.value.outlet]})),bk(o,(function(t,e){return TC(t,i.getContext(e),r)})),r}(r,i?i._root:null,a,[r.value]))});var n,i,a,r})),function(t,e){return function(n){return n.pipe(Object(qf.a)((function(n){var i=n.targetSnapshot,a=n.currentSnapshot,r=n.guards,o=r.canActivateChecks,s=r.canDeactivateChecks;return 0===s.length&&0===o.length?ze(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(Qa.a)(t).pipe(Object(qf.a)((function(t){return function(t,e,n,i,a){var r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?ze(r.map((function(r){var o,s=PC(r,e,a);if(function(t){return t&&vC(t.canDeactivate)}(s))o=kk(s.canDeactivate(t,e,n,i));else{if(!vC(s))throw new Error("Invalid CanDeactivate guard");o=kk(s(t,e,n,i))}return o.pipe(jb())}))).pipe(MC()):ze(!0)}(t.component,t.route,n,e,i)})),jb((function(t){return!0!==t}),!0))}(s,i,a,t).pipe(Object(qf.a)((function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return Object(Qa.a)(e).pipe(Uf((function(e){return Object(Qa.a)([LC(e.route.parent,i),jC(e.route,i),FC(t,e.path,n),NC(t,e.route,n)]).pipe(wi(),jb((function(t){return!0!==t}),!0))})),jb((function(t){return!0!==t}),!0))}(i,o,t,e):ze(n)})),Object(rn.a)((function(t){return Object.assign(Object.assign({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),He((function(t){if(yC(t.guardsResult)){var n=ck('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}})),He((function(t){var n=new Kb(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),en((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var i=new Gb(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(i),t.resolve(!1),!1}return!0})),YC((function(t){if(t.guards.canActivateChecks.length)return ze(t).pipe(He((function(t){var n=new Jb(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),(n=e.paramsInheritanceStrategy,i=e.ngModule.injector,function(t){return t.pipe(Object(qf.a)((function(t){var e=t.targetSnapshot,a=t.guards.canActivateChecks;return a.length?Object(Qa.a)(a).pipe(Uf((function(t){return function(t,e,n,i){return function(t,e,n,i){var a=Object.keys(t);if(0===a.length)return ze({});if(1===a.length){var r=a[0];return $C(t[r],e,n,i).pipe(Object(rn.a)((function(t){return _defineProperty({},r,t)})))}var o={};return Object(Qa.a)(a).pipe(Object(qf.a)((function(a){return $C(t[a],e,n,i).pipe(Object(rn.a)((function(t){return o[a]=t,t})))}))).pipe(Mb(),Object(rn.a)((function(){return o})))}(t._resolve,t,e,i).pipe(Object(rn.a)((function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Jk(t,n).resolve),null})))}(t.route,e,n,i)})),function(t,e){return arguments.length>=2?function(n){return Object(qb.a)(Fb(t,e),wb(1),Rb(e))(n)}:function(e){return Object(qb.a)(Fb((function(e,n,i){return t(e,n,i+1)})),wb(1))(e)}}((function(t,e){return t})),Object(rn.a)((function(e){return t}))):ze(t)})))}),He((function(t){var n=new Qb(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})));var n,i})),YC((function(t){var n=t.targetSnapshot,i=t.id,a=t.extractedUrl,r=t.rawUrl,o=t.extras,s=o.skipLocationChange,l=o.replaceUrl;return e.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:a,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!l})})),Object(rn.a)((function(t){var n=function(t,e,n){var i=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){var a=i.value;a._futureSnapshot=n.value;var r=function(e,n,i){return n.children.map((function(n){var a=!0,r=!1,o=void 0;try{for(var s,l=i.children[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var c=s.value;if(e.shouldReuseRoute(c.value.snapshot,n.value))return t(e,n,c)}}catch(u){r=!0,o=u}finally{try{a||null==l.return||l.return()}finally{if(r)throw o}}return t(e,n)}))}(e,n,i);return new Gk(a,r)}var o=e.retrieve(n.value);if(o){var s=o.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(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,i=e.queryParams,r=e.fragment,o=e.preserveQueryParams,s=e.queryParamsHandling,l=e.preserveFragment;Object(a.eb)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,u=l?this.currentUrlTree.fragment:r,h=null;if(s)switch(s){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=o?this.currentUrlTree.queryParams:i||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,i,a){if(0===n.length)return rC(e.root,e.root,e,i,a);var r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new oC(!0,0,t);var e=0,n=!1,i=t.reduce((function(t,i,a){if("object"==typeof i&&null!=i){if(i.outlets){var r={};return bk(i.outlets,(function(t,e){r[e]="string"==typeof t?t.split("/"):t})),[].concat(_toConsumableArray(t),[{outlets:r}])}if(i.segmentPath)return[].concat(_toConsumableArray(t),[i.segmentPath])}return"string"!=typeof i?[].concat(_toConsumableArray(t),[i]):0===a?(i.split("/").forEach((function(i,a){0==a&&"."===i||(0==a&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))})),t):[].concat(_toConsumableArray(t),[i])}),[]);return new oC(n,e,i)}(n);if(r.toRoot())return rC(e.root,new xk([],{}),e,i,a);var o=function(t,e,n){if(t.isAbsolute)return new sC(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new sC(n.snapshot._urlSegment,!0,0);var i=aC(t.commands[0])?0:1;return function(t,e,n){for(var i=t,a=e,r=n;r>a;){if(r-=a,!(i=i.parent))throw new Error("Invalid number of '../'");a=i.segments.length}return new sC(i,!1,a-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),s=o.processChildren?uC(o.segmentGroup,o.index,r.commands):cC(o.segmentGroup,o.index,r.commands);return rC(o.segmentGroup,s,e,i,a)}(c,this.currentUrlTree,t,h,u)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Object(a.eb)()&&this.isNgZoneEnabled&&!a.F.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=yC(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,t),this.router=e,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return _createClass(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof Hb?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Xb&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof rk&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new rk(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){a.Mc()},dw.\u0275dir=a.tc({type:dw}),dw),ww=new a.v("ROUTER_CONFIGURATION"),xw=new a.v("ROUTER_FORROOT_GUARD"),Ow=[_e.n,{provide:Ek,useClass:Ak},{provide:ow,useFactory:function(t,e,n,i,a,r,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,u=new ow(null,t,e,n,i,a,r,yk(o));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),s.errorHandler&&(u.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(u.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var h=Object(_e.N)();u.events.subscribe((function(t){h.logGroup("Router Event: ".concat(t.constructor.name)),h.log(t.toString()),h.log(t),h.logGroupEnd()}))}return s.onSameUrlNavigation&&(u.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(u.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(u.relativeLinkResolution=s.relativeLinkResolution),u},deps:[Ek,gw,_e.n,a.w,a.C,a.k,JC,ww,[function(){return function t(){_classCallCheck(this,t)}}(),new a.G],[function(){return function t(){_classCallCheck(this,t)}}(),new a.G]]},gw,{provide:Kk,useFactory:function(t){return t.routerState.root},deps:[ow]},{provide:a.C,useClass:a.R},kw,bw,function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return e().pipe(jf((function(){return ze(null)})))}}]),t}(),{provide:ww,useValue:{enableTracing:!1}}];function Sw(){return new a.E("Router",ow)}var Dw,Ew=((Dw=function(){function t(e,n){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[Ow,Tw(e),{provide:xw,useFactory:Pw,deps:[[ow,new a.G,new a.Q]]},{provide:ww,useValue:n||{}},{provide:_e.o,useFactory:Rw,deps:[_e.D,[new a.u(_e.a),new a.G],ww]},{provide:Cw,useFactory:Aw,deps:[ow,_e.H,ww]},{provide:_w,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:bw},{provide:a.E,multi:!0,useFactory:Sw},[Mw,{provide:a.d,multi:!0,useFactory:jw,deps:[Mw]},{provide:Fw,useFactory:Lw,deps:[Mw]},{provide:a.b,multi:!0,useExisting:Fw}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Tw(e)]}}}]),t}()).\u0275mod=a.wc({type:Dw}),Dw.\u0275inj=a.vc({factory:function(t){return new(t||Dw)(a.Jc(xw,8),a.Jc(ow,8))}}),Dw);function Aw(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Cw(t,e,n)}function Rw(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new _e.h(t,e):new _e.B(t,e)}function Pw(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Tw(t){return[{provide:a.a,multi:!0,useValue:t},{provide:JC,multi:!0,useValue:t}]}var Iw,Mw=((Iw=function(){function t(e){_classCallCheck(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new Me.a}return _createClass(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(_e.m,Promise.resolve(null)).then((function(){var e=null,n=new Promise((function(t){return e=t})),i=t.injector.get(ow),a=t.injector.get(ww);if(t.isLegacyDisabled(a)||t.isLegacyEnabled(a))e(!0);else if("disabled"===a.initialNavigation)i.setUpLocationChangeListener(),e(!0);else{if("enabled"!==a.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(a.initialNavigation,"'"));i.hooks.afterPreactivation=function(){return t.initNavigation?ze(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},i.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(ww),n=this.injector.get(kw),i=this.injector.get(Cw),r=this.injector.get(ow),o=this.injector.get(a.g);t===o.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}},{key:"isLegacyDisabled",value:function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}]),t}()).\u0275fac=function(t){return new(t||Iw)(a.Jc(a.w))},Iw.\u0275prov=a.uc({token:Iw,factory:Iw.\u0275fac}),Iw);function jw(t){return t.appInitializer.bind(t)}function Lw(t){return t.bootstrapListener.bind(t)}var Nw,Fw=new a.v("Router Initializer"),zw=((Nw=function(){function t(e,n,i){_classCallCheck(this,t),this.http=e,this.router=n,this.document=i,this.path="",this.audioFolder="",this.videoFolder="",this.startPath=null,this.startPathSSL=null,this.handShakeComplete=!1,this.THEMES_CONFIG=bb,this.settings_changed=new kb(!1),this.debugMode=!1,console.log("PostsService Initialized..."),this.path=this.document.location.origin+"/api/",Object(a.eb)()&&(this.debugMode=!0,this.path="http://localhost:17442/api/")}return _createClass(t,[{key:"setTheme",value:function(t){this.theme=this.THEMES_CONFIG[t]}},{key:"startHandshake",value:function(t){return this.http.get(t+"geturl")}},{key:"startHandshakeSSL",value:function(t){return this.http.get(t+"geturl")}},{key:"getVideoFolder",value:function(){return this.http.get(this.startPath+"videofolder")}},{key:"getAudioFolder",value:function(){return this.http.get(this.startPath+"audiofolder")}},{key:"makeMP3",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;return this.http.post(this.path+"tomp3",{url:t,maxBitrate:e,customQualityConfiguration:n,customArgs:i,customOutput:a,youtubeUsername:r,youtubePassword:o})}},{key:"makeMP4",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;return this.http.post(this.path+"tomp4",{url:t,selectedHeight:e,customQualityConfiguration:n,customArgs:i,customOutput:a,youtubeUsername:r,youtubePassword:o})}},{key:"getFileStatusMp3",value:function(t){return this.http.post(this.path+"fileStatusMp3",{name:t})}},{key:"getFileStatusMp4",value:function(t){return this.http.post(this.path+"fileStatusMp4",{name:t})}},{key:"loadNavItems",value:function(){return Object(a.eb)()?this.http.get("./assets/default.json"):this.http.get(this.path+"config")}},{key:"setConfig",value:function(t){return this.http.post(this.path+"setConfig",{new_config_file:t})}},{key:"deleteFile",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.http.post(e?this.path+"deleteMp3":this.path+"deleteMp4",{name:t,blacklistMode:n})}},{key:"getMp3s",value:function(){return this.http.post(this.path+"getMp3s",{})}},{key:"getMp4s",value:function(){return this.http.post(this.path+"getMp4s",{})}},{key:"downloadFileFromServer",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return this.http.post(this.path+"downloadFile",{fileNames:t,type:e,zip_mode:Array.isArray(t),outputName:n,fullPathProvided:i},{responseType:"blob"})}},{key:"downloadArchive",value:function(t){return this.http.post(this.path+"downloadArchive",{sub:t},{responseType:"blob"})}},{key:"getFileInfo",value:function(t,e,n){return this.http.post(this.path+"getVideoInfos",{fileNames:t,type:e,urlMode:n})}},{key:"isPinSet",value:function(){return this.http.post(this.path+"isPinSet",{})}},{key:"setPin",value:function(t){return this.http.post(this.path+"setPin",{pin:t})}},{key:"checkPin",value:function(t){return this.http.post(this.path+"checkPin",{input_pin:t})}},{key:"createPlaylist",value:function(t,e,n,i){return this.http.post(this.path+"createPlaylist",{playlistName:t,fileNames:e,type:n,thumbnailURL:i})}},{key:"updatePlaylist",value:function(t,e,n){return this.http.post(this.path+"updatePlaylist",{playlistID:t,fileNames:e,type:n})}},{key:"removePlaylist",value:function(t,e){return this.http.post(this.path+"deletePlaylist",{playlistID:t,type:e})}},{key:"createSubscription",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.http.post(this.path+"subscribe",{url:t,name:e,timerange:n})}},{key:"unsubscribe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.http.post(this.path+"unsubscribe",{sub:t,deleteMode:e})}},{key:"deleteSubscriptionFile",value:function(t,e,n){return this.http.post(this.path+"deleteSubscriptionFile",{sub:t,file:e,deleteForever:n})}},{key:"getSubscription",value:function(t){return this.http.post(this.path+"getSubscription",{id:t})}},{key:"getAllSubscriptions",value:function(){return this.http.post(this.path+"getAllSubscriptions",{})}}]),t}()).\u0275fac=function(t){return new(t||Nw)(a.Jc(pm),a.Jc(ow),a.Jc(_e.e))},Nw.\u0275prov=a.uc({token:Nw,factory:Nw.\u0275fac}),Nw);sn.a.of=ze;var Bw=function(){function t(e){_classCallCheck(this,t),this.value=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Vw(t,this.value))}}]),t}(),Vw=function(t){function e(t,n){var i;return _classCallCheck(this,e),(i=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).value=n,i}return _inherits(e,t),_createClass(e,[{key:"_next",value:function(t){this.destination.next(this.value)}}]),e}(Ve.a);function qw(t,e,n){return He(t,e,n)(this)}function Uw(){return bc(Ib.a)(this)}function Hw(t,e){if(1&t&&(a.Dc(0,"h4",5),a.sd(1),a.Cc()),2&t){var n=a.Rc();a.kc(1),a.td(n.dialog_title)}}function Xw(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div"),a.Dc(1,"mat-form-field",6),a.Dc(2,"input",7),a.Nc("keyup.enter",(function(){return a.id(n),a.Rc().doAction()}))("ngModelChange",(function(t){return a.id(n),a.Rc().input=t})),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.kc(2),a.Xc("ngModel",i.input)("placeholder",i.input_placeholder)}}function Gw(t,e){1&t&&(a.Dc(0,"div",8),a.zc(1,"mat-spinner",9),a.Cc()),2&t&&(a.kc(1),a.Xc("diameter",25))}sn.a.prototype.mapTo=function(t){return function(t){return function(e){return e.lift(new Bw(t))}}(t)(this)},n("XypG"),sn.a.fromEvent=Kl,sn.a.prototype.filter=function(t,e){return en(t,e)(this)},sn.a.prototype.debounceTime=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ke;return Je(t,e)(this)},sn.a.prototype.do=qw,sn.a.prototype._do=qw,sn.a.prototype.switch=Uw,sn.a.prototype._switch=Uw;var Ww,$w,Yw,Kw,Jw,Qw,Zw,tx,ex,nx=((Ww=function(){function t(e,n,i,a){_classCallCheck(this,t),this.postsService=e,this.data=n,this.dialogRef=i,this.snackBar=a,this.pinSetChecked=!1,this.pinSet=!0,this.resetMode=!1,this.dialog_title="",this.input_placeholder=null,this.input="",this.button_label=""}return _createClass(t,[{key:"ngOnInit",value:function(){this.data&&(this.resetMode=this.data.resetMode),this.resetMode?(this.pinSetChecked=!0,this.notSetLogic()):this.isPinSet()}},{key:"isPinSet",value:function(){var t=this;this.postsService.isPinSet().subscribe((function(e){t.pinSetChecked=!0,e.is_set?t.isSetLogic():t.notSetLogic()}))}},{key:"isSetLogic",value:function(){this.pinSet=!0,this.dialog_title="Pin Required",this.input_placeholder="Pin",this.button_label="Submit"}},{key:"notSetLogic",value:function(){this.pinSet=!1,this.dialog_title="Set your pin",this.input_placeholder="New pin",this.button_label="Set Pin"}},{key:"doAction",value:function(){var t=this;this.pinSetChecked&&0!==this.input.length&&(this.pinSet?this.postsService.checkPin(this.input).subscribe((function(e){e.success?t.dialogRef.close(!0):(t.dialogRef.close(!1),t.openSnackBar("Pin is incorrect!"))})):this.postsService.setPin(this.input).subscribe((function(e){e.success?(t.dialogRef.close(!0),t.openSnackBar("Pin successfully set!")):(t.dialogRef.close(!1),t.openSnackBar("Failed to set pin!"))})))}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||Ww)(a.yc(zw),a.yc(ud),a.yc(cd),a.yc(m_))},Ww.\u0275cmp=a.sc({type:Ww,selectors:[["app-check-or-set-pin-dialog"]],decls:8,vars:5,consts:[["mat-dialog-title","",4,"ngIf"],[2,"position","relative"],[4,"ngIf"],["class","spinner-div",4,"ngIf"],["color","accent","mat-raised-button","",2,"margin-bottom","12px",3,"disabled","click"],["mat-dialog-title",""],["color","accent"],["type","password","matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],[1,"spinner-div"],[3,"diameter"]],template:function(t,e){1&t&&(a.qd(0,Hw,2,1,"h4",0),a.Dc(1,"mat-dialog-content"),a.Dc(2,"div",1),a.qd(3,Xw,3,2,"div",2),a.qd(4,Gw,2,1,"div",3),a.Cc(),a.Cc(),a.Dc(5,"mat-dialog-actions"),a.Dc(6,"button",4),a.Nc("click",(function(){return e.doAction()})),a.sd(7),a.Cc(),a.Cc()),2&t&&(a.Xc("ngIf",e.pinSetChecked),a.kc(3),a.Xc("ngIf",e.pinSetChecked),a.kc(1),a.Xc("ngIf",!e.pinSetChecked),a.kc(2),a.Xc("disabled",0===e.input.length),a.kc(1),a.td(e.button_label))},directives:[_e.t,yd,_d,Xa,vd,Ph,pp,ur,_r,Xo,bv],styles:[".spinner-div[_ngcontent-%COMP%]{position:absolute;margin:0 auto;top:30%;left:42%}"]}),Ww),ix={ab:{name:"Abkhaz",nativeName:"\u0430\u04a7\u0441\u0443\u0430"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"\u12a0\u121b\u122d\u129b"},ar:{name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},an:{name:"Aragonese",nativeName:"Aragon\xe9s"},hy:{name:"Armenian",nativeName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},as:{name:"Assamese",nativeName:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},av:{name:"Avaric",nativeName:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0, \u043c\u0430\u0433\u04c0\u0430\u0440\u0443\u043b \u043c\u0430\u0446\u04c0"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"az\u0259rbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435"},eu:{name:"Basque",nativeName:"euskara, euskera"},be:{name:"Belarusian",nativeName:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f"},bn:{name:"Bengali",nativeName:"\u09ac\u09be\u0982\u09b2\u09be"},bh:{name:"Bihari",nativeName:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"},my:{name:"Burmese",nativeName:"\u1017\u1019\u102c\u1005\u102c"},ca:{name:"Catalan; Valencian",nativeName:"Catal\xe0"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiChe\u0175a, chinyanja"},zh:{name:"Chinese",nativeName:"\u4e2d\u6587 (Zh\u014dngw\xe9n), \u6c49\u8bed, \u6f22\u8a9e"},cv:{name:"Chuvash",nativeName:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu, lingua corsa"},cr:{name:"Cree",nativeName:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"\u010desky, \u010de\u0161tina"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"\u078b\u07a8\u0788\u07ac\u0780\u07a8"},nl:{name:"Dutch",nativeName:"Nederlands, Vlaams"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti, eesti keel"},ee:{name:"Ewe",nativeName:"E\u028begbe"},fo:{name:"Faroese",nativeName:"f\xf8royskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi, suomen kieli"},fr:{name:"French",nativeName:"fran\xe7ais, langue fran\xe7aise"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde, Pulaar, Pular"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek, Modern",nativeName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},gn:{name:"Guaran\xed",nativeName:"Ava\xf1e\u1ebd"},gu:{name:"Gujarati",nativeName:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},ht:{name:"Haitian; Haitian Creole",nativeName:"Krey\xf2l ayisyen"},ha:{name:"Hausa",nativeName:"Hausa, \u0647\u064e\u0648\u064f\u0633\u064e"},he:{name:"Hebrew (modern)",nativeName:"\u05e2\u05d1\u05e8\u05d9\u05ea"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"\u0939\u093f\u0928\u094d\u0926\u0940, \u0939\u093f\u0902\u0926\u0940"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"As\u1ee5s\u1ee5 Igbo"},ik:{name:"Inupiaq",nativeName:"I\xf1upiaq, I\xf1upiatun"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"\xcdslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"\u1403\u14c4\u1483\u144e\u1450\u1466"},ja:{name:"Japanese",nativeName:"\u65e5\u672c\u8a9e (\u306b\u307b\u3093\u3054\uff0f\u306b\u3063\u307d\u3093\u3054)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut, Greenlandic",nativeName:"kalaallisut, kalaallit oqaasii"},kn:{name:"Kannada",nativeName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940, \u0643\u0634\u0645\u064a\u0631\u064a\u200e"},kk:{name:"Kazakh",nativeName:"\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"},km:{name:"Khmer",nativeName:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a"},ki:{name:"Kikuyu, Gikuyu",nativeName:"G\u0129k\u0169y\u0169"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz, Kyrgyz",nativeName:"\u043a\u044b\u0440\u0433\u044b\u0437 \u0442\u0438\u043b\u0438"},kv:{name:"Komi",nativeName:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"\ud55c\uad6d\uc5b4 (\u97d3\u570b\u8a9e), \uc870\uc120\ub9d0 (\u671d\u9bae\u8a9e)"},ku:{name:"Kurdish",nativeName:"Kurd\xee, \u0643\u0648\u0631\u062f\u06cc\u200e"},kj:{name:"Kwanyama, Kuanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine, lingua latina"},lb:{name:"Luxembourgish, Letzeburgesch",nativeName:"L\xebtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish, Limburgan, Limburger",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Ling\xe1la"},lo:{name:"Lao",nativeName:"\u0e9e\u0eb2\u0eaa\u0eb2\u0ea5\u0eb2\u0ea7"},lt:{name:"Lithuanian",nativeName:"lietuvi\u0173 kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latvie\u0161u valoda"},gv:{name:"Manx",nativeName:"Gaelg, Gailck"},mk:{name:"Macedonian",nativeName:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu, \u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064a\u0648\u200e"},ml:{name:"Malayalam",nativeName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"M\u0101ori",nativeName:"te reo M\u0101ori"},mr:{name:"Marathi (Mar\u0101\u1e6dh\u012b)",nativeName:"\u092e\u0930\u093e\u0920\u0940"},mh:{name:"Marshallese",nativeName:"Kajin M\u0327aje\u013c"},mn:{name:"Mongolian",nativeName:"\u043c\u043e\u043d\u0433\u043e\u043b"},na:{name:"Nauru",nativeName:"Ekakair\u0169 Naoero"},nv:{name:"Navajo, Navaho",nativeName:"Din\xe9 bizaad, Din\xe9k\u02bceh\u01f0\xed"},nb:{name:"Norwegian Bokm\xe5l",nativeName:"Norsk bokm\xe5l"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"\u0928\u0947\u092a\u093e\u0932\u0940"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"\ua188\ua320\ua4bf Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe, Ojibwa",nativeName:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0"},cu:{name:"Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic",nativeName:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"\u0b13\u0b21\u0b3c\u0b3f\u0b06"},os:{name:"Ossetian, Ossetic",nativeName:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433"},pa:{name:"Panjabi, Punjabi",nativeName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40, \u067e\u0646\u062c\u0627\u0628\u06cc\u200e"},pi:{name:"P\u0101li",nativeName:"\u092a\u093e\u0934\u093f"},fa:{name:"Persian",nativeName:"\u0641\u0627\u0631\u0633\u06cc"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto, Pushto",nativeName:"\u067e\u069a\u062a\u0648"},pt:{name:"Portuguese",nativeName:"Portugu\xeas"},qu:{name:"Quechua",nativeName:"Runa Simi, Kichwa"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian, Moldavian, Moldovan",nativeName:"rom\xe2n\u0103"},ru:{name:"Russian",nativeName:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a"},sa:{name:"Sanskrit (Sa\u1e41sk\u1e5bta)",nativeName:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"\u0938\u093f\u0928\u094d\u0927\u0940, \u0633\u0646\u068c\u064a\u060c \u0633\u0646\u062f\u06be\u06cc\u200e"},se:{name:"Northern Sami",nativeName:"Davvis\xe1megiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"y\xe2ng\xe2 t\xee s\xe4ng\xf6"},sr:{name:"Serbian",nativeName:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"G\xe0idhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala, Sinhalese",nativeName:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},sk:{name:"Slovak",nativeName:"sloven\u010dina"},sl:{name:"Slovene",nativeName:"sloven\u0161\u010dina"},so:{name:"Somali",nativeName:"Soomaaliga, af Soomaali"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"espa\xf1ol"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},te:{name:"Telugu",nativeName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},tg:{name:"Tajik",nativeName:"\u0442\u043e\u04b7\u0438\u043a\u04e3, to\u011fik\u012b, \u062a\u0627\u062c\u06cc\u06a9\u06cc\u200e"},th:{name:"Thai",nativeName:"\u0e44\u0e17\u0e22"},ti:{name:"Tigrinya",nativeName:"\u1275\u130d\u122d\u129b"},bo:{name:"Tibetan Standard, Tibetan, Central",nativeName:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42"},tk:{name:"Turkmen",nativeName:"T\xfcrkmen, \u0422\u04af\u0440\u043a\u043c\u0435\u043d"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog, \u170f\u1712\u1703\u1705\u1714 \u1706\u1704\u170e\u1713\u1704\u1714"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"T\xfcrk\xe7e"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430, tatar\xe7a, \u062a\u0627\u062a\u0627\u0631\u0686\u0627\u200e"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur, Uyghur",nativeName:"Uy\u01a3urq\u0259, \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5\u200e"},uk:{name:"Ukrainian",nativeName:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},ur:{name:"Urdu",nativeName:"\u0627\u0631\u062f\u0648"},uz:{name:"Uzbek",nativeName:"zbek, \u040e\u0437\u0431\u0435\u043a, \u0623\u06c7\u0632\u0628\u06d0\u0643\u200e"},ve:{name:"Venda",nativeName:"Tshiven\u1e13a"},vi:{name:"Vietnamese",nativeName:"Ti\u1ebfng Vi\u1ec7t"},vo:{name:"Volap\xfck",nativeName:"Volap\xfck"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},yo:{name:"Yoruba",nativeName:"Yor\xf9b\xe1"},za:{name:"Zhuang, Chuang",nativeName:"Sa\u026f cue\u014b\u0185, Saw cuengh"}},ax={uncategorized:{label:"Main"},network:{label:"Network"},geo_restriction:{label:"Geo Restriction"},video_selection:{label:"Video Selection"},download:{label:"Download"},filesystem:{label:"Filesystem"},thumbnail:{label:"Thumbnail"},verbosity:{label:"Verbosity"},workarounds:{label:"Workarounds"},video_format:{label:"Video Format"},subtitle:{label:"Subtitle"},authentication:{label:"Authentication"},adobe_pass:{label:"Adobe Pass"},post_processing:{label:"Post Processing"}},rx={uncategorized:[{key:"-h",alt:"--help",description:"Print this help text and exit"},{key:"--version",description:"Print program version and exit"},{key:"-U",alt:"--update",description:"Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)"},{key:"-i",alt:"--ignore-errors",description:"Continue on download errors, for example to skip unavailable videos in a playlist"},{key:"--abort-on-error",description:"Abort downloading of further videos (in the playlist or the command line) if an error occurs"},{key:"--dump-user-agent",description:"Display the current browser identification"},{key:"--list-extractors",description:"List all supported extractors"},{key:"--extractor-descriptions",description:"Output descriptions of all supported extractors"},{key:"--force-generic-extractor",description:"Force extraction to use the generic extractor"},{key:"--default-search",description:'Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two videos from google videos for youtube-dl "large apple". Use the value "auto" to let youtube-dl guess ("auto_warning" to emit awarning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching.'},{key:"--ignore-config",description:"Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: Do not read the user configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows)"},{key:"--config-location",description:"Location of the configuration file; either the path to the config or its containing directory."},{key:"--flat-playlist",description:"Do not extract the videos of a playlist, only list them."},{key:"--mark-watched",description:"Mark videos watched (YouTube only)"},{key:"--no-mark-watched",description:"Do not mark videos watched (YouTube only)"},{key:"--no-color",description:"Do not emit color codes in output"}],network:[{key:"--proxy",description:'Use the specified HTTP/HTTPS/SOCKS proxy.To enable SOCKS proxy, specify a proper scheme. For example socks5://127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection.'},{key:"--socket-timeout",description:"Time to wait before giving up, in seconds"},{key:"--source-address",description:"Client-side IP address to bind to"},{key:"-4",alt:"--force-ipv4",description:"Make all connections via IPv4"},{key:"-6",alt:"--force-ipv6",description:"Make all connections via IPv6"}],geo_restriction:[{key:"--geo-verification-proxy",description:"Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy', if the option is not present) is used for the actual downloading."},{key:"--geo-bypass",description:"Bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--no-geo-bypass",description:"Do not bypass geographic restriction via faking X-Forwarded-For HTTP header"},{key:"--geo-bypass-country",description:"Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code"},{key:"--geo-bypass-ip-block",description:"Force bypass geographic restriction with explicitly provided IP block in CIDR notation"}],video_selection:[{key:"--playlist-start",description:"Playlist video to start at (default is 1)"},{key:"--playlist-end",description:"Playlist video to end at (default is last)"},{key:"--playlist-items",description:'Playlist video items to download. Specify indices of the videos in the playlist separated by commas like: "--playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13.'},{key:"--match-title",description:"Download only matching titles (regex orcaseless sub-string)"},{key:"--reject-title",description:"Skip download for matching titles (regex orcaseless sub-string)"},{key:"--max-downloads",description:"Abort after downloading NUMBER files"},{key:"--min-filesize",description:"Do not download any videos smaller than SIZE (e.g. 50k or 44.6m)"},{key:"--max-filesize",description:"Do not download any videos larger than SIZE (e.g. 50k or 44.6m)"},{key:"--date",description:"Download only videos uploaded in this date"},{key:"--datebefore",description:"Download only videos uploaded on or before this date (i.e. inclusive)"},{key:"--dateafter",description:"Download only videos uploaded on or after this date (i.e. inclusive)"},{key:"--min-views",description:"Do not download any videos with less than COUNT views"},{key:"--max-views",description:"Do not download any videos with more than COUNT views"},{key:"--match-filter",description:'Generic video filter. Specify any key (seethe "OUTPUT TEMPLATE" for a list of available keys) to match if the key is present, !key to check if the key is not present, key > NUMBER (like "comment_count > 12", also works with >=, <, <=, !=, =) to compare against a number, key = \'LITERAL\' (like "uploader = \'Mike Smith\'", also works with !=) to match against a string literal and & to require multiple matches. Values which are not known are excluded unless you put a question mark (?) after the operator. For example, to only match videos that have been liked more than 100 times and disliked less than 50 times (or the dislike functionality is not available at the given service), but who also have a description, use --match-filter'},{key:"--no-playlist",description:"Download only the video, if the URL refers to a video and a playlist."},{key:"--yes-playlist",description:"Download the playlist, if the URL refers to a video and a playlist."},{key:"--age-limit",description:"Download only videos suitable for the given age"},{key:"--download-archive",description:"Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it."},{key:"--include-ads",description:"Download advertisements as well (experimental)"}],download:[{key:"-r",alt:"--limit-rate",description:"Maximum download rate in bytes per second(e.g. 50K or 4.2M)"},{key:"-R",alt:"--retries",description:'Number of retries (default is 10), or "infinite".'},{key:"--fragment-retries",description:'Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM)'},{key:"--skip-unavailable-fragments",description:"Skip unavailable fragments (DASH, hlsnative and ISM)"},{key:"--abort-on-unavailable-fragment",description:"Abort downloading when some fragment is not available"},{key:"--keep-fragments",description:"Keep downloaded fragments on disk after downloading is finished; fragments are erased by default"},{key:"--buffer-size",description:"Size of download buffer (e.g. 1024 or 16K) (default is 1024)"},{key:"--no-resize-buffer",description:"Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE."},{key:"--http-chunk-size",description:"Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental)"},{key:"--playlist-reverse",description:"Download playlist videos in reverse order"},{key:"--playlist-random",description:"Download playlist videos in random order"},{key:"--xattr-set-filesize",description:"Set file xattribute ytdl.filesize with expected file size"},{key:"--hls-prefer-native",description:"Use the native HLS downloader instead of ffmpeg"},{key:"--hls-prefer-ffmpeg",description:"Use ffmpeg instead of the native HLS downloader"},{key:"--hls-use-mpegts",description:"Use the mpegts container for HLS videos, allowing to play the video while downloading (some players may not be able to play it)"},{key:"--external-downloader",description:"Use the specified external downloader. Currently supports aria2c,avconv,axel,curl,ffmpeg,httpie,wget"},{key:"--external-downloader-args"}],filesystem:[{key:"-a",alt:"--batch-file",description:"File containing URLs to download ('-' for stdin), one URL per line. Lines starting with '#', ';' or ']' are considered as comments and ignored."},{key:"--id",description:"Use only video ID in file name"},{key:"-o",alt:"--output",description:'Output filename template, see the "OUTPUT TEMPLATE" for all the info'},{key:"--autonumber-start",description:"Specify the start value for %(autonumber)s (default is 1)"},{key:"--restrict-filenames",description:'Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames'},{key:"-w",alt:"--no-overwrites",description:"Do not overwrite files"},{key:"-c",alt:"--continue",description:"Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible."},{key:"--no-continue",description:"Do not resume partially downloaded files (restart from beginning)"},{key:"--no-part",description:"Do not use .part files - write directlyinto output file"},{key:"--no-mtime",description:"Do not use the Last-modified header to set the file modification time"},{key:"--write-description",description:"Write video description to a .description file"},{key:"--write-info-json",description:"Write video metadata to a .info.json file"},{key:"--write-annotations",description:"Write video annotations to a.annotations.xml file"},{key:"--load-info-json",description:'JSON file containing the video information (created with the "--write-info-json" option)'},{key:"--cookies",description:"File to read cookies from and dump cookie jar in"},{key:"--cache-dir",description:"Location in the file system where youtube-dl can store some downloaded information permanently. By default $XDG_CACHE_HOME/youtube-dl or ~/.cache/youtube-dl . At the moment, only YouTube player files (for videos with obfuscated signatures) are cached, but that may change."},{key:"--no-cache-dir",description:"Disable filesystem caching"},{key:"--rm-cache-dir",description:"Delete all filesystem cache files"}],thumbnail:[{key:"--write-thumbnail",description:"Write thumbnail image to disk"},{key:"--write-all-thumbnails",description:"Write all thumbnail image formats to disk"},{key:"--list-thumbnails",description:"Simulate and list all available thumbnail formats"}],verbosity:[{key:"-q",alt:"--quiet",description:"Activate quiet mode"},{key:"--no-warnings",description:"Ignore warnings"},{key:"-s",alt:"--simulate",description:"Do not download the video and do not writeanything to disk"},{key:"--skip-download",description:"Do not download the video"},{key:"-g",alt:"--get-url",description:"Simulate, quiet but print URL"},{key:"-e",alt:"--get-title",description:"Simulate, quiet but print title"},{key:"--get-id",description:"Simulate, quiet but print id"},{key:"--get-thumbnail",description:"Simulate, quiet but print thumbnail URL"},{key:"--get-description",description:"Simulate, quiet but print video description"},{key:"--get-duration",description:"Simulate, quiet but print video length"},{key:"--get-filename",description:"Simulate, quiet but print output filename"},{key:"--get-format",description:"Simulate, quiet but print output format"},{key:"-j",alt:"--dump-json",description:'Simulate, quiet but print JSON information. See the "OUTPUT TEMPLATE" for a description of available keys.'},{key:"-J",alt:"--dump-single-json",description:"Simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole playlist information in a single line."},{key:"--print-json",description:"Be quiet and print the video information as JSON (video is still being downloaded)."},{key:"--newline",description:"Output progress bar as new lines"},{key:"--no-progress",description:"Do not print progress bar"},{key:"--console-title",description:"Display progress in console title bar"},{key:"-v",alt:"--verbose",description:"Print various debugging information"},{key:"--dump-pages",description:"Print downloaded pages encoded using base64 to debug problems (very verbose)"},{key:"--write-pages",description:"Write downloaded intermediary pages to files in the current directory to debug problems"},{key:"--print-traffic",description:"Display sent and read HTTP traffic"},{key:"-C",alt:"--call-home",description:"Contact the youtube-dl server for debugging"},{key:"--no-call-home",description:"Do NOT contact the youtube-dl server for debugging"}],workarounds:[{key:"--encoding",description:"Force the specified encoding (experimental)"},{key:"--no-check-certificate",description:"Suppress HTTPS certificate validation"},{key:"--prefer-insecure",description:"Use an unencrypted connection to retrieve information about the video. (Currently supported only for YouTube)"},{key:"--user-agent",description:"Specify a custom user agent"},{key:"--referer",description:"Specify a custom referer, use if the video access is restricted to one domain"},{key:"--add-header",description:"Specify a custom HTTP header and its value, separated by a colon ':'. You can use this option multiple times"},{key:"--bidi-workaround",description:"Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH"},{key:"--sleep-interval",description:"Number of seconds to sleep before each download when used alone or a lower boundof a range for randomized sleep before each download (minimum possible number of seconds to sleep) when used along with --max-sleep-interval"},{key:"--max-sleep-interval",description:"Upper bound of a range for randomized sleep before each download (maximum possible number of seconds to sleep). Must only beused along with --min-sleep-interval"}],video_format:[{key:"-f",alt:"--format",description:'Video format code, see the "FORMAT SELECTION" for all the info'},{key:"--all-formats",description:"Download all available video formats"},{key:"--prefer-free-formats",description:"Prefer free video formats unless a specific one is requested"},{key:"-F",alt:"--list-formats",description:"List all available formats of requested videos"},{key:"--youtube-skip-dash-manifest",description:"Do not download the DASH manifests and related data on YouTube videos"},{key:"--merge-output-format",description:"If a merge is required (e.g. bestvideo+bestaudio), output to given container format. One of mkv, mp4, ogg, webm, flv. Ignored if no merge is required"}],subtitle:[{key:"--write-sub",description:"Write subtitle file"},{key:"--write-auto-sub",description:"Write automatically generated subtitle file (YouTube only)"},{key:"--all-subs",description:"Download all the available subtitles of the video"},{key:"--list-subs",description:"List all available subtitles for the video"},{key:"--sub-format",description:'Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best"'},{key:"--sub-lang",description:"Languages of the subtitles to download (optional) separated by commas, use --list-subs"}],authentication:[{key:"-u",alt:"--username",description:"Login with this account ID"},{key:"-p",alt:"--password",description:"Account password. If this option is left out, youtube-dl will ask interactively."},{key:"-2",alt:"--twofactor",description:"Two-factor authentication code"},{key:"-n",alt:"--netrc",description:"Use .netrc authentication data"},{key:"--video-password",description:"Video password (vimeo, smotri, youku)"}],adobe_pass:[{key:"--ap-mso",description:"Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso"},{key:"--ap-username",description:"Multiple-system operator account login"},{key:"--ap-password",description:"Multiple-system operator account password. If this option is left out, youtube-dl will ask interactively."},{key:"--ap-list-mso",description:"List all supported multiple-system operators"}],post_processing:[{key:"-x",alt:"--extract-audio",description:"Convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)"},{key:"--audio-format",description:'Specify audio format: "best", "aac", "flac", "mp3", "m4a", "opus", "vorbis", or "wav"; "best" by default; No effect without -x'},{key:"--audio-quality",description:"Specify ffmpeg/avconv audio quality, insert a value between 0 (better) and 9 (worse)for VBR or a specific bitrate like 128K (default 5)"},{key:"--recode-video",description:"Encode the video to another format if necessary (currently supported:mp4|flv|ogg|webm|mkv|avi)"},{key:"--postprocessor-args",description:"Give these arguments to the postprocessor"},{key:"-k",alt:"--keep-video",description:"Keep the video file on disk after the post-processing; the video is erased by default"},{key:"--no-post-overwrites",description:"Do not overwrite post-processed files; the post-processed files are overwritten by default"},{key:"--embed-subs",description:"Embed subtitles in the video (only for mp4,webm and mkv videos)"},{key:"--embed-thumbnail",description:"Embed thumbnail in the audio as cover art"},{key:"--add-metadata",description:"Write metadata to the video file"},{key:"--metadata-from-title",description:"Parse additional metadata like song title/artist from the video title. The format syntax is the same as --output"},{key:"--xattrs",description:"Write metadata to the video file's xattrs (using dublin core and xdg standards)"},{key:"--fixup",description:"Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix file if we can, warn otherwise)"},{key:"--prefer-avconv",description:"Prefer avconv over ffmpeg for running the postprocessors"},{key:"--prefer-ffmpeg",description:"Prefer ffmpeg over avconv for running the postprocessors (default)"},{key:"--ffmpeg-location",description:"Location of the ffmpeg/avconv binary; either the path to the binary or its containing directory."},{key:"--exec",description:"Execute a command on the file after downloading, similar to find's -exec syntax. Example: --exec"},{key:"--convert-subs",description:"Convert the subtitles to other format (currently supported: srt|ass|vtt|lrc)"}]};function ox(t,e){if(1&t&&(a.Dc(0,"mat-option",20),a.zc(1,"span",21),a.Sc(2,"highlight"),a.Dc(3,"button",22),a.Dc(4,"mat-icon"),a.sd(5,"info"),a.Cc(),a.Cc(),a.Cc()),2&t){var n=e.$implicit,i=a.Rc();a.Xc("value",n.key),a.kc(1),a.Xc("innerHTML",a.Uc(2,3,n.key,i.stateCtrl.value),a.jd),a.kc(2),a.Xc("matTooltip",n.description)}}function sx(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",26),a.Nc("click",(function(){a.id(n);var t=e.$implicit;return a.Rc(2).setFirstArg(t.key)})),a.Dc(1,"div",27),a.sd(2),a.Cc(),a.sd(3,"\xa0\xa0"),a.Dc(4,"div",28),a.Dc(5,"mat-icon",29),a.sd(6,"info"),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=e.$implicit;a.kc(2),a.td(i.key),a.kc(3),a.Xc("matTooltip",i.description)}}function lx(t,e){if(1&t&&(a.Bc(0),a.Dc(1,"button",23),a.sd(2),a.Cc(),a.Dc(3,"mat-menu",null,24),a.qd(5,sx,7,2,"button",25),a.Cc(),a.Ac()),2&t){var n=e.$implicit,i=a.ed(4),r=a.Rc();a.kc(1),a.Xc("matMenuTriggerFor",i),a.kc(1),a.td(r.argsInfo[n.key].label),a.kc(3),a.Xc("ngForOf",n.value)}}$w=$localize(_templateObject()),Yw=$localize(_templateObject2()),Kw=$localize(_templateObject3()),Jw=$localize(_templateObject4()),Qw=$localize(_templateObject5()),Zw=$localize(_templateObject6()),tx=$localize(_templateObject7()),ex=$localize(_templateObject8());var cx=["placeholder",$localize(_templateObject9())],ux=function(){return{standalone:!0}};function hx(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div"),a.Dc(1,"mat-form-field",8),a.Dc(2,"input",30),a.Ic(3,cx),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().secondArg=t})),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.kc(2),a.Xc("ngModelOptions",a.Zc(3,ux))("disabled",!i.secondArgEnabled)("ngModel",i.secondArg)}}var dx,fx,mx,px,gx,vx,yx,_x,bx,kx,Cx,wx,xx,Ox,Sx=((fx=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e){var n=e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").split(" ").filter((function(t){return t.length>0})).join("|"):void 0,i=new RegExp(n,"gi");return e?t.replace(i,(function(t){return"".concat(t,"")})):t}}]),t}()).\u0275fac=function(t){return new(t||fx)},fx.\u0275pipe=a.xc({name:"highlight",type:fx,pure:!0}),fx),Dx=((dx=function(){function t(e,n,i){_classCallCheck(this,t),this.data=e,this.dialogRef=n,this.dialog=i,this.myGroup=new To,this.firstArg="",this.secondArg="",this.secondArgEnabled=!1,this.modified_args="",this.stateCtrl=new To,this.availableArgs=null,this.argsByCategory=null,this.argsInfo=null}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.data&&(this.modified_args=this.data.initial_args),this.getAllPossibleArgs(),this.filteredOptions=this.stateCtrl.valueChanges.pipe(Oi(""),Object(rn.a)((function(e){return t.filter(e)})))}},{key:"filter",value:function(t){if(this.availableArgs)return this.availableArgs.filter((function(e){return e.key.toLowerCase().includes(t.toLowerCase())}))}},{key:"addArg",value:function(){""!==this.modified_args&&(this.modified_args+=" "),this.modified_args+=this.stateCtrl.value+" "+(this.secondArgEnabled?this.secondArg:"")}},{key:"canAddArg",value:function(){return this.stateCtrl.value&&""!==this.stateCtrl.value&&(!this.secondArgEnabled||this.secondArg&&""!==this.secondArg)}},{key:"getFirstArg",value:function(){var t=this;return new Promise((function(e){e(t.stateCtrl.value)}))}},{key:"getValueAsync",value:function(t){return new Promise((function(e){e(t)}))}},{key:"getAllPossibleArgs",value:function(){var t=rx,e=Object.keys(t).map((function(e){return t[e]})),n=[].concat.apply([],e);this.availableArgs=n,this.argsByCategory=t,this.argsInfo=ax}},{key:"setFirstArg",value:function(t){this.stateCtrl.setValue(t)}}],[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275fac=function(t){return new(t||dx)(a.yc(ud),a.yc(cd),a.yc(md))},dx.\u0275cmp=a.sc({type:dx,selectors:[["app-arg-modifier-dialog"]],features:[a.jc([Sx])],decls:48,vars:17,consts:[["mat-dialog-title",""],[1,"container"],[1,"row"],[1,"col-12"],[1,"mat-elevation-z6"],["color","accent",2,"width","100%"],["matInput","",3,"disabled"],[1,"mat-elevation-z6","my-2"],["color","accent",2,"width","75%"],["matInput","","placeholder","Arg",3,"matAutocomplete","formControl"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["argsByCategoryMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-stroked-button","",2,"margin-bottom","15px",3,"matMenuTriggerFor"],["color","accent",3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngIf"],["mat-stroked-button","","color","accent",3,"disabled","click"],["mat-button","","mat-dialog-close",""],["mat-button","","color","accent",3,"mat-dialog-close"],[3,"value"],[3,"innerHTML"],["mat-icon-button","",2,"float","right",3,"matTooltip"],["mat-menu-item","",3,"matMenuTriggerFor"],["subMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"],[2,"display","inline-block"],[1,"info-menu-icon"],[3,"matTooltip"],["matInput","",3,"ngModelOptions","disabled","ngModel","ngModelChange",6,"placeholder"]],template:function(t,e){if(1&t&&(a.Dc(0,"h4",0),a.Hc(1,$w),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"div",1),a.Dc(4,"div",2),a.Dc(5,"div",3),a.Dc(6,"mat-card",4),a.Dc(7,"h6"),a.Hc(8,Yw),a.Cc(),a.Dc(9,"mat-form-field",5),a.Dc(10,"textarea",6),a.sd(11),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(12,"div",3),a.Dc(13,"mat-card",7),a.Dc(14,"h6"),a.Hc(15,Kw),a.Cc(),a.Dc(16,"form"),a.Dc(17,"div"),a.Dc(18,"mat-form-field",8),a.zc(19,"input",9),a.Cc(),a.Dc(20,"mat-autocomplete",null,10),a.qd(22,ox,6,6,"mat-option",11),a.Sc(23,"async"),a.Cc(),a.Dc(24,"div"),a.Dc(25,"mat-menu",null,12),a.qd(27,lx,6,3,"ng-container",13),a.Sc(28,"keyvalue"),a.Cc(),a.Dc(29,"button",14),a.Bc(30),a.Hc(31,Jw),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(32,"div"),a.Dc(33,"mat-checkbox",15),a.Nc("ngModelChange",(function(t){return e.secondArgEnabled=t})),a.Bc(34),a.Hc(35,Qw),a.Ac(),a.Cc(),a.Cc(),a.qd(36,hx,4,4,"div",16),a.Cc(),a.Dc(37,"div"),a.Dc(38,"button",17),a.Nc("click",(function(){return e.addArg()})),a.Bc(39),a.Hc(40,Zw),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(41,"mat-dialog-actions"),a.Dc(42,"button",18),a.Bc(43),a.Hc(44,tx),a.Ac(),a.Cc(),a.Dc(45,"button",19),a.Bc(46),a.Hc(47,ex),a.Ac(),a.Cc(),a.Cc()),2&t){var n=a.ed(21),i=a.ed(26);a.kc(10),a.Xc("disabled",!0),a.kc(1),a.td(e.modified_args),a.kc(8),a.Xc("matAutocomplete",n)("formControl",e.stateCtrl),a.kc(3),a.Xc("ngForOf",a.Tc(23,12,e.filteredOptions)),a.kc(5),a.Xc("ngForOf",a.Tc(28,14,e.argsByCategory)),a.kc(2),a.Xc("matMenuTriggerFor",i),a.kc(4),a.Xc("ngModelOptions",a.Zc(16,ux))("ngModel",e.secondArgEnabled),a.kc(3),a.Xc("ngIf",e.secondArgEnabled),a.kc(2),a.Xc("disabled",!e.canAddArg()),a.kc(7),a.Xc("mat-dialog-close",e.modified_args)}},directives:[vd,yd,Al,Ph,pp,Go,br,No,Yh,ur,_r,Yo,Hh,_e.s,yg,Xa,Cg,ql,Xo,_e.t,_d,gd,Pa,Kg,np,dg],pipes:[_e.b,_e.l,Sx],styles:[".info-menu-icon[_ngcontent-%COMP%]{float:right}"]}),dx);function Ex(t,e){if(1&t&&(a.Dc(0,"mat-option",8),a.sd(1),a.Cc()),2&t){var n=e.$implicit,i=a.Rc();a.Xc("value",n),a.kc(1),a.ud(" ",i.all_locales[n].nativeName," ")}}mx=$localize(_templateObject10()),px=$localize(_templateObject11()),gx=$localize(_templateObject12()),vx=$localize(_templateObject13()),yx=$localize(_templateObject14()),_x=$localize(_templateObject15()),bx=$localize(_templateObject16()),kx=$localize(_templateObject17()),Cx=$localize(_templateObject18()),wx=$localize(_templateObject19()),xx=$localize(_templateObject20()),Ox=$localize(_templateObject21());var Ax,Rx=["placeholder",$localize(_templateObject22())];Ax=$localize(_templateObject23());var Px,Tx,Ix=["placeholder",$localize(_templateObject24())];function Mx(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-form-field",12),a.Dc(4,"input",13),a.Ic(5,Rx),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Host.url=t})),a.Cc(),a.Dc(6,"mat-hint"),a.Bc(7),a.Hc(8,Ax),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(9,"div",14),a.Dc(10,"mat-form-field",12),a.Dc(11,"input",13),a.Ic(12,Ix),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Host.port=t})),a.Cc(),a.Dc(13,"mat-hint"),a.Bc(14),a.Hc(15,Px),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.kc(4),a.Xc("ngModel",i.new_config.Host.url),a.kc(7),a.Xc("ngModel",i.new_config.Host.port)}}Px=$localize(_templateObject25()),Tx=$localize(_templateObject26());var jx=["placeholder",$localize(_templateObject27())],Lx=["placeholder",$localize(_templateObject28())];function Nx(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-checkbox",15),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Encryption["use-encryption"]=t})),a.Bc(4),a.Hc(5,Tx),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",11),a.Dc(7,"mat-form-field",12),a.Dc(8,"input",16),a.Ic(9,jx),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Encryption["cert-file-path"]=t})),a.Cc(),a.Cc(),a.Cc(),a.Dc(10,"div",11),a.Dc(11,"mat-form-field",12),a.Dc(12,"input",16),a.Ic(13,Lx),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Encryption["key-file-path"]=t})),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.kc(3),a.Xc("ngModel",i.new_config.Encryption["use-encryption"]),a.kc(5),a.Xc("disabled",!i.new_config.Encryption["use-encryption"])("ngModel",i.new_config.Encryption["cert-file-path"]),a.kc(4),a.Xc("disabled",!i.new_config.Encryption["use-encryption"])("ngModel",i.new_config.Encryption["key-file-path"])}}var Fx,zx=["placeholder",$localize(_templateObject29())];Fx=$localize(_templateObject30());var Bx,Vx=["placeholder",$localize(_templateObject31())];Bx=$localize(_templateObject32());var qx,Ux,Hx=["placeholder",$localize(_templateObject33())];function Xx(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-form-field",12),a.Dc(4,"input",13),a.Ic(5,zx),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Downloader["path-audio"]=t})),a.Cc(),a.Dc(6,"mat-hint"),a.Bc(7),a.Hc(8,Fx),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(9,"div",14),a.Dc(10,"mat-form-field",12),a.Dc(11,"input",13),a.Ic(12,Vx),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Downloader["path-video"]=t})),a.Cc(),a.Dc(13,"mat-hint"),a.Bc(14),a.Hc(15,Bx),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(16,"div",14),a.Dc(17,"mat-form-field",12),a.Dc(18,"textarea",17),a.Ic(19,Hx),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Downloader.custom_args=t})),a.Cc(),a.Dc(20,"mat-hint"),a.Bc(21),a.Hc(22,qx),a.Ac(),a.Cc(),a.Cc(),a.Dc(23,"button",18),a.Nc("click",(function(){return a.id(n),a.Rc().openArgsModifierDialog()})),a.sd(24,"Modify args"),a.Cc(),a.Cc(),a.Dc(25,"div",14),a.Dc(26,"mat-checkbox",15),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Downloader.use_youtubedl_archive=t})),a.Bc(27),a.Hc(28,Ux),a.Ac(),a.Cc(),a.Dc(29,"p"),a.sd(30,"Note: This setting only applies to downloads on the Home page. If you would like to use youtube-dl archive functionality in subscriptions, head down to the Subscriptions section."),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.kc(4),a.Xc("ngModel",i.new_config.Downloader["path-audio"]),a.kc(7),a.Xc("ngModel",i.new_config.Downloader["path-video"]),a.kc(7),a.Xc("ngModel",i.new_config.Downloader.custom_args),a.kc(8),a.Xc("ngModel",i.new_config.Downloader.use_youtubedl_archive)}}qx=$localize(_templateObject34()),Ux=$localize(_templateObject35());var Gx,Wx,$x,Yx,Kx,Jx,Qx,Zx=["placeholder",$localize(_templateObject36())];function tO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-form-field",12),a.Dc(4,"input",13),a.Ic(5,Zx),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Extra.title_top=t})),a.Cc(),a.zc(6,"mat-hint"),a.Cc(),a.Cc(),a.Dc(7,"div",11),a.Dc(8,"mat-checkbox",15),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Extra.file_manager_enabled=t})),a.Bc(9),a.Hc(10,Gx),a.Ac(),a.Cc(),a.Cc(),a.Dc(11,"div",11),a.Dc(12,"mat-checkbox",15),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Extra.allow_quality_select=t})),a.Bc(13),a.Hc(14,Wx),a.Ac(),a.Cc(),a.Cc(),a.Dc(15,"div",11),a.Dc(16,"mat-checkbox",15),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Extra.download_only_mode=t})),a.Bc(17),a.Hc(18,$x),a.Ac(),a.Cc(),a.Cc(),a.Dc(19,"div",11),a.Dc(20,"mat-checkbox",15),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Extra.allow_multi_download_mode=t})),a.Bc(21),a.Hc(22,Yx),a.Ac(),a.Cc(),a.Cc(),a.Dc(23,"div",11),a.Dc(24,"mat-checkbox",15),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Extra.settings_pin_required=t})),a.Bc(25),a.Hc(26,Kx),a.Ac(),a.Cc(),a.Dc(27,"button",19),a.Nc("click",(function(){return a.id(n),a.Rc().setNewPin()})),a.Bc(28),a.Hc(29,Jx),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.kc(4),a.Xc("ngModel",i.new_config.Extra.title_top),a.kc(4),a.Xc("ngModel",i.new_config.Extra.file_manager_enabled),a.kc(4),a.Xc("ngModel",i.new_config.Extra.allow_quality_select),a.kc(4),a.Xc("ngModel",i.new_config.Extra.download_only_mode),a.kc(4),a.Xc("ngModel",i.new_config.Extra.allow_multi_download_mode),a.kc(4),a.Xc("ngModel",i.new_config.Extra.settings_pin_required),a.kc(3),a.Xc("disabled",!i.new_config.Extra.settings_pin_required)}}Gx=$localize(_templateObject37()),Wx=$localize(_templateObject38()),$x=$localize(_templateObject39()),Yx=$localize(_templateObject40()),Kx=$localize(_templateObject41()),Jx=$localize(_templateObject42()),Qx=$localize(_templateObject43());var eO,nO,iO,aO,rO,oO=["placeholder",$localize(_templateObject44())];function sO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-checkbox",15),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.API.use_youtube_API=t})),a.Bc(4),a.Hc(5,Qx),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",11),a.Dc(7,"mat-form-field",12),a.Dc(8,"input",20),a.Ic(9,oO),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.API.youtube_API_key=t})),a.Cc(),a.Dc(10,"mat-hint"),a.Dc(11,"a",21),a.Bc(12),a.Hc(13,eO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.kc(3),a.Xc("ngModel",i.new_config.API.use_youtube_API),a.kc(5),a.Xc("disabled",!i.new_config.API.use_youtube_API)("ngModel",i.new_config.API.youtube_API_key)}}function lO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-select",22),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Themes.default_theme=t})),a.Dc(4,"mat-option",23),a.Bc(5),a.Hc(6,nO),a.Ac(),a.Cc(),a.Dc(7,"mat-option",24),a.Bc(8),a.Hc(9,iO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(10,"div",14),a.Dc(11,"mat-checkbox",15),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Themes.allow_theme_change=t})),a.Bc(12),a.Hc(13,aO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.kc(3),a.Xc("ngModel",i.new_config.Themes.default_theme),a.kc(8),a.Xc("ngModel",i.new_config.Themes.allow_theme_change)}}eO=$localize(_templateObject45()),nO=$localize(_templateObject46()),iO=$localize(_templateObject47()),aO=$localize(_templateObject48()),rO=$localize(_templateObject49());var cO,uO=["placeholder",$localize(_templateObject50())];cO=$localize(_templateObject51());var hO,dO,fO,mO,pO,gO,vO,yO,_O,bO,kO,CO,wO,xO,OO,SO=["placeholder",$localize(_templateObject52())];function DO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-checkbox",15),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Subscriptions.allow_subscriptions=t})),a.Bc(4),a.Hc(5,rO),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",11),a.Dc(7,"mat-form-field",12),a.Dc(8,"input",16),a.Ic(9,uO),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Subscriptions.subscriptions_base_path=t})),a.Cc(),a.Dc(10,"mat-hint"),a.Bc(11),a.Hc(12,cO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(13,"div",25),a.Dc(14,"mat-form-field",12),a.Dc(15,"input",16),a.Ic(16,SO),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Subscriptions.subscriptions_check_interval=t})),a.Cc(),a.Dc(17,"mat-hint"),a.Bc(18),a.Hc(19,hO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(20,"div",14),a.Dc(21,"mat-checkbox",26),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Subscriptions.subscriptions_use_youtubedl_archive=t})),a.Bc(22),a.Hc(23,dO),a.Ac(),a.Cc(),a.Dc(24,"p"),a.Dc(25,"a",27),a.Bc(26),a.Hc(27,fO),a.Ac(),a.Cc(),a.sd(28,"\xa0"),a.Bc(29),a.Hc(30,mO),a.Ac(),a.Cc(),a.Dc(31,"p"),a.Bc(32),a.Hc(33,pO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.kc(3),a.Xc("ngModel",i.new_config.Subscriptions.allow_subscriptions),a.kc(5),a.Xc("disabled",!i.new_config.Subscriptions.allow_subscriptions)("ngModel",i.new_config.Subscriptions.subscriptions_base_path),a.kc(7),a.Xc("disabled",!i.new_config.Subscriptions.allow_subscriptions)("ngModel",i.new_config.Subscriptions.subscriptions_check_interval),a.kc(6),a.Xc("disabled",!i.new_config.Subscriptions.allow_subscriptions)("ngModel",i.new_config.Subscriptions.subscriptions_use_youtubedl_archive)}}function EO(t,e){if(1&t&&(a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"h6"),a.sd(4,"Chrome"),a.Cc(),a.Dc(5,"p"),a.Dc(6,"a",28),a.Bc(7),a.Hc(8,gO),a.Ac(),a.Cc(),a.sd(9,"\xa0"),a.Bc(10),a.Hc(11,vO),a.Ac(),a.Cc(),a.Dc(12,"p"),a.Bc(13),a.Hc(14,yO),a.Ac(),a.Cc(),a.zc(15,"mat-divider",29),a.Cc(),a.Dc(16,"div",11),a.Dc(17,"h6"),a.sd(18,"Firefox"),a.Cc(),a.Dc(19,"p"),a.Dc(20,"a",30),a.Bc(21),a.Hc(22,_O),a.Ac(),a.Cc(),a.sd(23,"\xa0"),a.Bc(24),a.Hc(25,bO),a.Ac(),a.Cc(),a.Dc(26,"p"),a.Dc(27,"a",31),a.Bc(28),a.Hc(29,kO),a.Ac(),a.Cc(),a.sd(30,"\xa0"),a.Bc(31),a.Hc(32,CO),a.Ac(),a.Cc(),a.zc(33,"mat-divider",29),a.Cc(),a.Dc(34,"div",11),a.Dc(35,"h6"),a.sd(36,"Bookmarklet"),a.Cc(),a.Dc(37,"p"),a.Bc(38),a.Hc(39,wO),a.Ac(),a.Cc(),a.Dc(40,"p"),a.Dc(41,"a",32),a.sd(42,"YTDL-Bookmarklet"),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()),2&t){var n=a.Rc();a.kc(41),a.Xc("href",n.generated_bookmarklet_code,a.kd)}}function AO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",9),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"mat-checkbox",15),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Advanced.use_default_downloading_agent=t})),a.Bc(4),a.Hc(5,xO),a.Ac(),a.Cc(),a.Cc(),a.Dc(6,"div",33),a.Dc(7,"mat-select",34),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Advanced.custom_downloading_agent=t})),a.Dc(8,"mat-option",35),a.sd(9,"Select a downloader"),a.Cc(),a.Dc(10,"mat-option",36),a.sd(11,"aria2c"),a.Cc(),a.Dc(12,"mat-option",37),a.sd(13,"avconv"),a.Cc(),a.Dc(14,"mat-option",38),a.sd(15,"axel"),a.Cc(),a.Dc(16,"mat-option",39),a.sd(17,"curl"),a.Cc(),a.Dc(18,"mat-option",40),a.sd(19,"ffmpeg"),a.Cc(),a.Dc(20,"mat-option",41),a.sd(21,"httpie"),a.Cc(),a.Dc(22,"mat-option",42),a.sd(23,"wget"),a.Cc(),a.Cc(),a.Cc(),a.Dc(24,"div",43),a.Dc(25,"mat-checkbox",15),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().new_config.Advanced.allow_advanced_download=t})),a.Bc(26),a.Hc(27,OO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.kc(3),a.Xc("ngModel",i.new_config.Advanced.use_default_downloading_agent),a.kc(4),a.Xc("disabled",i.new_config.Advanced.use_default_downloading_agent)("ngModel",i.new_config.Advanced.custom_downloading_agent),a.kc(18),a.Xc("ngModel",i.new_config.Advanced.allow_advanced_download)}}hO=$localize(_templateObject53()),dO=$localize(_templateObject54()),fO=$localize(_templateObject55()),mO=$localize(_templateObject56()),pO=$localize(_templateObject57()),gO=$localize(_templateObject58()),vO=$localize(_templateObject59()),yO=$localize(_templateObject60()),_O=$localize(_templateObject61()),bO=$localize(_templateObject62()),kO=$localize(_templateObject63()),CO=$localize(_templateObject64()),wO=$localize(_templateObject65()),xO=$localize(_templateObject66()),OO=$localize(_templateObject67());var RO,PO,TO,IO,MO,jO,LO,NO,FO,zO=((RO=function(){function t(e,n,i,a){_classCallCheck(this,t),this.postsService=e,this.snackBar=n,this.sanitizer=i,this.dialog=a,this.all_locales=ix,this.supported_locales=["en","es"],this.initialLocale=localStorage.getItem("locale"),this.initial_config=null,this.new_config=null,this.loading_config=!1,this.generated_bookmarklet_code=null}return _createClass(t,[{key:"ngOnInit",value:function(){this.getConfig(),this.generated_bookmarklet_code=this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode())}},{key:"getConfig",value:function(){var t=this;this.loading_config=!0,this.postsService.loadNavItems().subscribe((function(e){t.loading_config=!1,t.initial_config=t.postsService.debugMode?e.YoutubeDLMaterial:e.config_file.YoutubeDLMaterial,t.new_config=JSON.parse(JSON.stringify(t.initial_config))}))}},{key:"settingsSame",value:function(){return JSON.stringify(this.new_config)===JSON.stringify(this.initial_config)}},{key:"saveSettings",value:function(){var t=this;this.postsService.setConfig({YoutubeDLMaterial:this.new_config}).subscribe((function(e){e.success&&(t.postsService.settings_changed.next(!0),t.initial_config=JSON.parse(JSON.stringify(t.new_config)))}),(function(t){console.error("Failed to save config!")}))}},{key:"setNewPin",value:function(){this.dialog.open(nx,{data:{resetMode:!0}})}},{key:"localeSelectChanged",value:function(t){localStorage.setItem("locale",t),this.openSnackBar("Language successfully changed! Reload to update the page.")}},{key:"generateBookmarklet",value:function(){this.bookmarksite("YTDL-Material",this.generated_bookmarklet_code)}},{key:"generateBookmarkletCode",value:function(){return"javascript:(function()%7Bwindow.open('".concat(window.location.href.split("#")[0]+"#/home;url=","' + encodeURIComponent(window.location))%7D)()")}},{key:"bookmarksite",value:function(t,e){if(document.all)window.external.AddFavorite(e,t);else if(window.chrome)this.openSnackBar("Chrome users must drag the 'Alternate URL' link to your bookmarks.");else if(window.sidebar)window.sidebar.addPanel(t,e,"");else if(window.opera&&window.print){var n=document.createElement("a");n.setAttribute("href",e),n.setAttribute("title",t),n.setAttribute("rel","sidebar"),n.click()}}},{key:"openArgsModifierDialog",value:function(){var t=this;this.dialog.open(Dx,{data:{initial_args:this.new_config.Downloader.custom_args}}).afterClosed().subscribe((function(e){e&&(t.new_config.Downloader.custom_args=e)}))}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||RO)(a.yc(zw),a.yc(m_),a.yc(i.b),a.yc(md))},RO.\u0275cmp=a.sc({type:RO,selectors:[["app-settings"]],decls:75,vars:13,consts:[["mat-dialog-title",""],[1,"locale-select",3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"settings-expansion-panel"],["class","container-fluid",4,"ngIf"],[2,"margin-bottom","10px"],["color","accent","mat-raised-button","",3,"disabled","click"],["mat-flat-button","",3,"mat-dialog-close"],[3,"value"],[1,"container-fluid"],[1,"row"],[1,"col-12"],["color","accent"],["matInput","","required","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-4"],["color","accent",3,"ngModel","ngModelChange"],["matInput","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],["mat-stroked-button","",2,"margin-left","12px",3,"click"],["mat-stroked-button","",2,"margin-left","15px",3,"disabled","click"],["matInput","","required","",3,"disabled","ngModel","ngModelChange",6,"placeholder"],["target","_blank","href","https://developers.google.com/youtube/v3/getting-started"],["color","accent",2,"width","100px",3,"ngModel","ngModelChange"],["value","default"],["value","dark"],[1,"col-12","mt-5"],["color","accent",3,"disabled","ngModel","ngModelChange"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#how-do-i-download-only-new-videos-from-a-playlist"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/blob/master/chrome-extension/youtubedl-material-chrome-extension.zip?raw=true"],[1,"ext-divider"],["href","https://addons.mozilla.org/en-US/firefox/addon/youtubedl-material/","target","_blank"],["href","https://github.com/Tzahi12345/YoutubeDL-Material/wiki/Firefox-Extension","target","_blank"],["target","_blank",3,"href"],[1,"col-12","my-2"],["color","accent",2,"width","200px",3,"disabled","ngModel","ngModelChange"],["value",""],["value","aria2c"],["value","avconv"],["value","axel"],["value","curl"],["value","ffmpeg"],["value","httpie"],["value","wget"],[1,"col-12","mt-2"]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.Hc(1,mx),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"div"),a.sd(4," Language:\xa0\xa0\xa0"),a.Dc(5,"mat-select",1),a.Nc("selectionChange",(function(t){return e.localeSelectChanged(t.value)}))("valueChange",(function(t){return e.initialLocale=t})),a.qd(6,Ex,2,2,"mat-option",2),a.Cc(),a.Cc(),a.Dc(7,"mat-expansion-panel",3),a.Dc(8,"mat-expansion-panel-header"),a.Dc(9,"mat-panel-title"),a.Bc(10),a.Hc(11,px),a.Ac(),a.Cc(),a.Cc(),a.qd(12,Mx,16,2,"div",4),a.Cc(),a.Dc(13,"mat-expansion-panel",3),a.Dc(14,"mat-expansion-panel-header"),a.Dc(15,"mat-panel-title"),a.Bc(16),a.Hc(17,gx),a.Ac(),a.Cc(),a.Cc(),a.qd(18,Nx,14,5,"div",4),a.Cc(),a.Dc(19,"mat-expansion-panel",3),a.Dc(20,"mat-expansion-panel-header"),a.Dc(21,"mat-panel-title"),a.Bc(22),a.Hc(23,vx),a.Ac(),a.Cc(),a.Cc(),a.qd(24,Xx,31,4,"div",4),a.Cc(),a.Dc(25,"mat-expansion-panel",3),a.Dc(26,"mat-expansion-panel-header"),a.Dc(27,"mat-panel-title"),a.Bc(28),a.Hc(29,yx),a.Ac(),a.Cc(),a.Cc(),a.qd(30,tO,30,7,"div",4),a.Cc(),a.Dc(31,"mat-expansion-panel",3),a.Dc(32,"mat-expansion-panel-header"),a.Dc(33,"mat-panel-title"),a.Bc(34),a.Hc(35,_x),a.Ac(),a.Cc(),a.Cc(),a.qd(36,sO,14,3,"div",4),a.Cc(),a.Dc(37,"mat-expansion-panel",3),a.Dc(38,"mat-expansion-panel-header"),a.Dc(39,"mat-panel-title"),a.Bc(40),a.Hc(41,bx),a.Ac(),a.Cc(),a.Cc(),a.qd(42,lO,14,2,"div",4),a.Cc(),a.Dc(43,"mat-expansion-panel",3),a.Dc(44,"mat-expansion-panel-header"),a.Dc(45,"mat-panel-title"),a.Bc(46),a.Hc(47,kx),a.Ac(),a.Cc(),a.Cc(),a.qd(48,DO,34,7,"div",4),a.Cc(),a.Dc(49,"mat-expansion-panel",3),a.Dc(50,"mat-expansion-panel-header"),a.Dc(51,"mat-panel-title"),a.Bc(52),a.Hc(53,Cx),a.Ac(),a.Cc(),a.Cc(),a.qd(54,EO,43,1,"div",4),a.Cc(),a.Dc(55,"mat-expansion-panel",3),a.Dc(56,"mat-expansion-panel-header"),a.Dc(57,"mat-panel-title"),a.Bc(58),a.Hc(59,wx),a.Ac(),a.Cc(),a.Cc(),a.qd(60,AO,28,4,"div",4),a.Cc(),a.Cc(),a.Dc(61,"mat-dialog-actions"),a.Dc(62,"div",5),a.Dc(63,"button",6),a.Nc("click",(function(){return e.saveSettings()})),a.Dc(64,"mat-icon"),a.sd(65,"done"),a.Cc(),a.sd(66,"\xa0\xa0 "),a.Bc(67),a.Hc(68,xx),a.Ac(),a.Cc(),a.Dc(69,"button",7),a.Dc(70,"mat-icon"),a.sd(71,"cancel"),a.Cc(),a.sd(72,"\xa0\xa0 "),a.Bc(73),a.Hc(74,Ox),a.Ac(),a.Cc(),a.Cc(),a.Cc()),2&t&&(a.kc(5),a.Xc("value",e.initialLocale),a.kc(1),a.Xc("ngForOf",e.supported_locales),a.kc(6),a.Xc("ngIf",e.new_config),a.kc(6),a.Xc("ngIf",e.new_config),a.kc(6),a.Xc("ngIf",e.new_config),a.kc(6),a.Xc("ngIf",e.new_config),a.kc(6),a.Xc("ngIf",e.new_config),a.kc(6),a.Xc("ngIf",e.new_config),a.kc(6),a.Xc("ngIf",e.new_config),a.kc(6),a.Xc("ngIf",e.new_config),a.kc(6),a.Xc("ngIf",e.new_config),a.kc(3),a.Xc("disabled",e.settingsSame()),a.kc(6),a.Xc("mat-dialog-close",!1))},directives:[vd,yd,Zv,_e.s,rf,sf,cf,_e.t,_d,Xa,np,gd,Pa,Ph,pp,ur,Bs,_r,Xo,wh,ql,vp],styles:[".settings-expansion-panel[_ngcontent-%COMP%]{margin-bottom:20px}.locale-select[_ngcontent-%COMP%]{margin-bottom:10px;width:130px}.ext-divider[_ngcontent-%COMP%]{margin-bottom:14px}"]}),RO);PO=$localize(_templateObject68()),TO=$localize(_templateObject69()),IO=$localize(_templateObject70()),MO=$localize(_templateObject71()),jO=$localize(_templateObject72()),LO=$localize(_templateObject73()),NO=$localize(_templateObject74()),FO=$localize(_templateObject75());var BO,VO,qO,UO,HO,XO,GO=((BO=function(){function t(){_classCallCheck(this,t),this.projectLink="https://github.com/Tzahi12345/YoutubeDL-Material",this.issuesLink="https://github.com/Tzahi12345/YoutubeDL-Material/issues",this.latestUpdateLink="https://github.com/Tzahi12345/YoutubeDL-Material/releases/latest",this.version="v3.5"}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||BO)},BO.\u0275cmp=a.sc({type:BO,selectors:[["app-about-dialog"]],decls:38,vars:4,consts:[["mat-dialog-title",""],[2,"margin-bottom","5px"],["target","_blank",3,"href"],["src","assets/images/GitHub-64px.png",2,"width","32px","margin-bottom","10px"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.Hc(1,PO),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"div",1),a.Dc(4,"p"),a.Dc(5,"i"),a.sd(6,"YoutubeDL-Material"),a.Cc(),a.sd(7,"\xa0"),a.Bc(8),a.Hc(9,TO),a.Ac(),a.Cc(),a.Dc(10,"p"),a.Dc(11,"i"),a.sd(12,"YoutubeDL-Material"),a.Cc(),a.sd(13,"\xa0"),a.Bc(14),a.Hc(15,IO),a.Ac(),a.Cc(),a.Dc(16,"p"),a.Bc(17),a.Hc(18,MO),a.Ac(),a.sd(19,"\xa0"),a.Dc(20,"a",2),a.Bc(21),a.Hc(22,jO),a.Ac(),a.Cc(),a.sd(23,"\xa0"),a.Bc(24),a.Hc(25,LO),a.Ac(),a.Cc(),a.Dc(26,"a",2),a.zc(27,"img",3),a.Cc(),a.Dc(28,"p"),a.Bc(29),a.Hc(30,NO),a.Ac(),a.sd(31),a.Dc(32,"a",2),a.Bc(33),a.Hc(34,FO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(35,"mat-dialog-actions"),a.Dc(36,"button",4),a.sd(37,"Close"),a.Cc(),a.Cc()),2&t&&(a.kc(20),a.Xc("href",e.issuesLink,a.kd),a.kc(6),a.Xc("href",e.projectLink,a.kd),a.kc(5),a.ud("\xa0",e.version," - "),a.kc(1),a.Xc("href",e.latestUpdateLink,a.kd))},directives:[vd,yd,_d,Xa,gd],styles:["i[_ngcontent-%COMP%]{margin-right:1px}"]}),BO),WO=["sidenav"],$O=["hamburgerMenu"];function YO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",17,18),a.Nc("click",(function(){return a.id(n),a.Rc().toggleSidenav()})),a.Dc(2,"mat-icon"),a.sd(3,"menu"),a.Cc(),a.Cc()}}function KO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",19),a.Nc("click",(function(){return a.id(n),a.Rc().goBack()})),a.Dc(1,"mat-icon"),a.sd(2,"arrow_back"),a.Cc(),a.Cc()}}function JO(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",11),a.Nc("click",(function(t){return a.id(n),a.Rc().themeMenuItemClicked(t)})),a.Dc(1,"mat-icon"),a.sd(2),a.Cc(),a.Dc(3,"span"),a.Hc(4,XO),a.Cc(),a.zc(5,"mat-slide-toggle",20),a.Cc()}if(2&t){var i=a.Rc();a.kc(2),a.td("default"===i.postsService.theme.key?"brightness_5":"brightness_2"),a.kc(3),a.Xc("checked","dark"===i.postsService.theme.key)}}VO=$localize(_templateObject76()),qO=$localize(_templateObject77()),UO=$localize(_templateObject78()),HO=$localize(_templateObject79()),XO=$localize(_templateObject80());var QO,ZO,tS=((QO=function(){function t(e,n,i,a,r,o){var s=this;_classCallCheck(this,t),this.postsService=e,this.snackBar=n,this.dialog=i,this.router=a,this.overlayContainer=r,this.elementRef=o,this.THEMES_CONFIG=bb,this.topBarTitle="Youtube Downloader",this.defaultTheme=null,this.allowThemeChange=null,this.allowSubscriptions=!1,this.settingsPinRequired=!0,this.navigator=null,this.navigator=localStorage.getItem("player_navigator"),this.router.events.subscribe((function(t){t instanceof Hb?s.navigator=localStorage.getItem("player_navigator"):t instanceof Xb&&s.hamburgerMenuButton&&s.hamburgerMenuButton.nativeElement&&s.hamburgerMenuButton.nativeElement.blur()})),this.loadConfig(),this.postsService.settings_changed.subscribe((function(t){t&&s.loadConfig()}))}return _createClass(t,[{key:"toggleSidenav",value:function(){this.sidenav.toggle()}},{key:"loadConfig",value:function(){var t=this;this.postsService.loadNavItems().subscribe((function(e){var n=t.postsService.debugMode?e:e.config_file;t.topBarTitle=n.YoutubeDLMaterial.Extra.title_top,t.settingsPinRequired=n.YoutubeDLMaterial.Extra.settings_pin_required;var i=n.YoutubeDLMaterial.Themes;t.defaultTheme=i?n.YoutubeDLMaterial.Themes.default_theme:"default",t.allowThemeChange=!i||n.YoutubeDLMaterial.Themes.allow_theme_change,t.allowSubscriptions=n.YoutubeDLMaterial.Subscriptions.allow_subscriptions,localStorage.getItem("theme")||t.setTheme(i?t.defaultTheme:"default")}),(function(t){console.log(t)}))}},{key:"setTheme",value:function(t){var e=null;this.THEMES_CONFIG[t]?(localStorage.getItem("theme")&&(e=localStorage.getItem("theme"),this.THEMES_CONFIG[e]||(console.log("bad theme found, setting to default"),null===this.defaultTheme?console.error("No default theme detected"):(localStorage.setItem("theme",this.defaultTheme),e=localStorage.getItem("theme")))),localStorage.setItem("theme",t),this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor=this.THEMES_CONFIG[t].background_color,this.postsService.setTheme(t),this.onSetTheme(this.THEMES_CONFIG[t].css_label,e?this.THEMES_CONFIG[e].css_label:e)):console.error("Invalid theme: "+t)}},{key:"onSetTheme",value:function(t,e){e&&(document.body.classList.remove(e),this.overlayContainer.getContainerElement().classList.remove(e)),this.overlayContainer.getContainerElement().classList.add(t),this.componentCssClass=t}},{key:"flipTheme",value:function(){"default"===this.postsService.theme.key?this.setTheme("dark"):"dark"===this.postsService.theme.key&&this.setTheme("default")}},{key:"themeMenuItemClicked",value:function(t){this.flipTheme(),t.stopPropagation()}},{key:"ngOnInit",value:function(){localStorage.getItem("theme")&&this.setTheme(localStorage.getItem("theme"))}},{key:"goBack",value:function(){this.navigator?this.router.navigateByUrl(this.navigator):this.router.navigate(["/home"])}},{key:"openSettingsDialog",value:function(){this.settingsPinRequired?this.openPinDialog():this.actuallyOpenSettingsDialog()}},{key:"actuallyOpenSettingsDialog",value:function(){this.dialog.open(zO,{width:"80vw"})}},{key:"openPinDialog",value:function(){var t=this;this.dialog.open(nx,{}).afterClosed().subscribe((function(e){e&&t.actuallyOpenSettingsDialog()}))}},{key:"openAboutDialog",value:function(){this.dialog.open(GO,{width:"80vw"})}}]),t}()).\u0275fac=function(t){return new(t||QO)(a.yc(zw),a.yc(m_),a.yc(md),a.yc(ow),a.yc(_u),a.yc(a.q))},QO.\u0275cmp=a.sc({type:QO,selectors:[["app-root"]],viewQuery:function(t,e){var n;1&t&&(a.wd(WO,!0),a.wd($O,!0,a.q)),2&t&&(a.dd(n=a.Oc())&&(e.sidenav=n.first),a.dd(n=a.Oc())&&(e.hamburgerMenuButton=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&a.mc(e.componentCssClass)},decls:40,vars:9,consts:[[2,"width","100%","height","100%"],["color","primary",1,"top"],["width","100%","height","100%",1,"flex-row"],[1,"flex-column",2,"text-align","left","margin-top","1px"],["style","outline: none","mat-icon-button","","aria-label","Toggle side navigation",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"flex-column",2,"text-align","center","margin-top","5px"],[1,"flex-column",2,"text-align","right","align-items","flex-end"],["mat-icon-button","",3,"matMenuTriggerFor"],["menuSettings","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[2,"height","calc(100% - 64px)"],[2,"height","100%"],["sidenav",""],["mat-list-item","","routerLink","/home",3,"click"],["mat-list-item","","routerLink","/subscriptions",3,"click"],["mat-icon-button","","aria-label","Toggle side navigation",2,"outline","none",3,"click"],["hamburgerMenu",""],["mat-icon-button","",3,"click"],[1,"theme-slide-toggle",3,"checked"]],template:function(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",0),a.Dc(1,"div"),a.Dc(2,"mat-toolbar",1),a.Dc(3,"div",2),a.Dc(4,"div",3),a.qd(5,YO,4,0,"button",4),a.qd(6,KO,3,0,"button",5),a.Cc(),a.Dc(7,"div",6),a.Dc(8,"div"),a.sd(9),a.Cc(),a.Cc(),a.Dc(10,"div",7),a.Dc(11,"button",8),a.Dc(12,"mat-icon"),a.sd(13,"more_vert"),a.Cc(),a.Cc(),a.Dc(14,"mat-menu",null,9),a.qd(16,JO,6,2,"button",10),a.Dc(17,"button",11),a.Nc("click",(function(){return e.openSettingsDialog()})),a.Dc(18,"mat-icon"),a.sd(19,"settings"),a.Cc(),a.Dc(20,"span"),a.Hc(21,VO),a.Cc(),a.Cc(),a.Dc(22,"button",11),a.Nc("click",(function(){return e.openAboutDialog()})),a.Dc(23,"mat-icon"),a.sd(24,"info"),a.Cc(),a.Dc(25,"span"),a.Hc(26,qO),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(27,"div",12),a.Dc(28,"mat-sidenav-container",13),a.Dc(29,"mat-sidenav",null,14),a.Dc(31,"mat-nav-list"),a.Dc(32,"a",15),a.Nc("click",(function(){return a.id(n),a.ed(30).close()})),a.Bc(33),a.Hc(34,UO),a.Ac(),a.Cc(),a.Dc(35,"a",16),a.Nc("click",(function(){return a.id(n),a.ed(30).close()})),a.Bc(36),a.Hc(37,HO),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(38,"mat-sidenav-content"),a.zc(39,"router-outlet"),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.ed(15);a.pd("background",e.postsService.theme?e.postsService.theme.background_color:null,a.rc),a.kc(5),a.Xc("ngIf","/player"!==e.router.url.split(";")[0]&&e.allowSubscriptions),a.kc(1),a.Xc("ngIf","/player"===e.router.url.split(";")[0]),a.kc(3),a.td(e.topBarTitle),a.kc(2),a.Xc("matMenuTriggerFor",i),a.kc(5),a.Xc("ngIf",e.allowThemeChange),a.kc(22),a.pd("background",e.postsService.theme?e.postsService.theme.background_color:null,a.rc)}},directives:[__,_e.t,Xa,Cg,np,yg,dg,Py,Ay,Np,Up,lw,Ey,vw,Hy],styles:[".flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-basis:100%;flex:1}.theme-slide-toggle[_ngcontent-%COMP%]{top:2px;left:10px;position:relative}"]}),QO),eS=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.uc({token:t,factory:t.\u0275fac}),t}(),nS=function(){var t={Get:0,Post:1,Put:2,Delete:3,Options:4,Head:5,Patch:6};return t[t.Get]="Get",t[t.Post]="Post",t[t.Put]="Put",t[t.Delete]="Delete",t[t.Options]="Options",t[t.Head]="Head",t[t.Patch]="Patch",t}(),iS=function(){var t={Basic:0,Cors:1,Default:2,Error:3,Opaque:4};return t[t.Basic]="Basic",t[t.Cors]="Cors",t[t.Default]="Default",t[t.Error]="Error",t[t.Opaque]="Opaque",t}(),aS=function(){var t={NONE:0,JSON:1,FORM:2,FORM_DATA:3,TEXT:4,BLOB:5,ARRAY_BUFFER:6};return t[t.NONE]="NONE",t[t.JSON]="JSON",t[t.FORM]="FORM",t[t.FORM_DATA]="FORM_DATA",t[t.TEXT]="TEXT",t[t.BLOB]="BLOB",t[t.ARRAY_BUFFER]="ARRAY_BUFFER",t}(),rS=function(){var t={Text:0,Json:1,ArrayBuffer:2,Blob:3};return t[t.Text]="Text",t[t.Json]="Json",t[t.ArrayBuffer]="ArrayBuffer",t[t.Blob]="Blob",t}(),oS=function(){function t(e){var n=this;_classCallCheck(this,t),this._headers=new Map,this._normalizedNames=new Map,e&&(e instanceof t?e.forEach((function(t,e){t.forEach((function(t){return n.append(e,t)}))})):Object.keys(e).forEach((function(t){var i=Array.isArray(e[t])?e[t]:[e[t]];n.delete(t),i.forEach((function(e){return n.append(t,e)}))})))}return _createClass(t,[{key:"append",value:function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)}},{key:"delete",value:function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)}},{key:"forEach",value:function(t){var e=this;this._headers.forEach((function(n,i){return t(n,e._normalizedNames.get(i),e._headers)}))}},{key:"get",value:function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null}},{key:"has",value:function(t){return this._headers.has(t.toLowerCase())}},{key:"keys",value:function(){return Array.from(this._normalizedNames.values())}},{key:"set",value:function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)}},{key:"values",value:function(){return Array.from(this._headers.values())}},{key:"toJSON",value:function(){var t=this,e={};return this._headers.forEach((function(n,i){var a=[];n.forEach((function(t){return a.push.apply(a,_toConsumableArray(t.split(",")))})),e[t._normalizedNames.get(i)]=a})),e}},{key:"getAll",value:function(t){return this.has(t)&&this._headers.get(t.toLowerCase())||null}},{key:"entries",value:function(){throw new Error('"entries" method is not implemented on Headers class')}},{key:"mayBeSetNormalizedName",value:function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)}}],[{key:"fromResponseHeaderString",value:function(e){var n=new t;return e.split("\n").forEach((function(t){var e=t.indexOf(":");if(e>0){var i=t.slice(0,e),a=t.slice(e+1).trim();n.set(i,a)}})),n}}]),t}(),sS=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t);var n=e.body,i=e.status,a=e.headers,r=e.statusText,o=e.type,s=e.url;this.body=null!=n?n:null,this.status=null!=i?i:null,this.headers=null!=a?a:null,this.statusText=null!=r?r:null,this.type=null!=o?o:null,this.url=null!=s?s:null}return _createClass(t,[{key:"merge",value:function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})}}]),t}(),lS=((ZO=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,{status:200,statusText:"Ok",type:iS.Default,headers:new oS}))}return _inherits(e,t),e}(sS)).\u0275fac=function(t){return new(t||ZO)},ZO.\u0275prov=a.uc({token:ZO,factory:ZO.\u0275fac}),ZO),cS=function t(){_classCallCheck(this,t)},uS=function t(){_classCallCheck(this,t)};function hS(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return nS.Get;case"POST":return nS.Post;case"PUT":return nS.Put;case"DELETE":return nS.Delete;case"OPTIONS":return nS.Options;case"HEAD":return nS.Head;case"PATCH":return nS.Patch}throw new Error('Invalid request method. The method "'.concat(t,'" is not supported.'))}var dS=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return fS(t)}},{key:"encodeValue",value:function(t){return fS(t)}}]),t}();function fS(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,"/")}var mS,pS,gS=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new dS;_classCallCheck(this,t),this.rawParams=e,this.queryEncoder=n,this.paramsMap=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=new Map;return t.length>0&&t.split("&").forEach((function(t){var n=t.indexOf("="),i=_slicedToArray(-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],2),a=i[0],r=i[1],o=e.get(a)||[];o.push(r),e.set(a,o)})),e}(e)}return _createClass(t,[{key:"clone",value:function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e}},{key:"has",value:function(t){return this.paramsMap.has(t)}},{key:"get",value:function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null}},{key:"getAll",value:function(t){return this.paramsMap.get(t)||[]}},{key:"set",value:function(t,e){if(null!=e){var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)}else this.delete(t)}},{key:"setAll",value:function(t){var e=this;t.paramsMap.forEach((function(t,n){var i=e.paramsMap.get(n)||[];i.length=0,i.push(t[0]),e.paramsMap.set(n,i)}))}},{key:"append",value:function(t,e){if(null!=e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}}},{key:"appendAll",value:function(t){var e=this;t.paramsMap.forEach((function(t,n){for(var i=e.paramsMap.get(n)||[],a=0;a0&&void 0!==arguments[0]?arguments[0]:"legacy";if(this._body instanceof gS)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(t){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: ".concat(t))}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()}},{key:"arrayBuffer",value:function(){return this._body instanceof ArrayBuffer?this._body:function(t){for(var e=new Uint16Array(t.length),n=0,i=t.length;n=200&&n.status<=299,n.statusText=t.statusText,n.headers=t.headers,n.type=t.type,n.url=t.url,n}return _inherits(e,t),_createClass(e,[{key:"toString",value:function(){return"Response with status: ".concat(this.status," ").concat(this.statusText," for URL: ").concat(this.url)}}]),e}(vS),_S=/^\)\]\}',?\n/,bS=function(){function t(e,n,i){var a=this;_classCallCheck(this,t),this.request=e,this.response=new sn.a((function(t){var r=n.build();r.open(nS[e.method].toUpperCase(),e.url),null!=e.withCredentials&&(r.withCredentials=e.withCredentials);var o=function(){var n=1223===r.status?204:r.status,a=null;204!==n&&("string"==typeof(a=void 0===r.response?r.responseText:r.response)&&(a=a.replace(_S,""))),0===n&&(n=a?200:0);var o,s=oS.fromResponseHeaderString(r.getAllResponseHeaders()),l=("responseURL"in(o=r)?o.responseURL:/^X-Request-URL:/m.test(o.getAllResponseHeaders())?o.getResponseHeader("X-Request-URL"):null)||e.url,c=new sS({body:a,status:n,headers:s,statusText:r.statusText||"OK",url:l});null!=i&&(c=i.merge(c));var u=new yS(c);if(u.ok=function(t){return t>=200&&t<300}(n),u.ok)return t.next(u),void t.complete();t.error(u)},s=function(e){var n=new sS({body:e,type:iS.Error,status:r.status,statusText:r.statusText});null!=i&&(n=i.merge(n)),t.error(new yS(n))};if(a.setDetectedContentType(e,r),null==e.headers&&(e.headers=new oS),e.headers.has("Accept")||e.headers.append("Accept","application/json, text/plain, */*"),e.headers.forEach((function(t,e){return r.setRequestHeader(e,t.join(","))})),null!=e.responseType&&null!=r.responseType)switch(e.responseType){case rS.ArrayBuffer:r.responseType="arraybuffer";break;case rS.Json:r.responseType="json";break;case rS.Text:r.responseType="text";break;case rS.Blob:r.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return r.addEventListener("load",o),r.addEventListener("error",s),r.send(a.request.getBody()),function(){r.removeEventListener("load",o),r.removeEventListener("error",s),r.abort()}}))}return _createClass(t,[{key:"setDetectedContentType",value:function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case aS.NONE:break;case aS.JSON:e.setRequestHeader("content-type","application/json");break;case aS.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case aS.TEXT:e.setRequestHeader("content-type","text/plain");break;case aS.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}}}]),t}(),kS=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"XSRF-TOKEN",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"X-XSRF-TOKEN";_classCallCheck(this,t),this._cookieName=e,this._headerName=n}return _createClass(t,[{key:"configureRequest",value:function(t){var e=Object(_e.N)().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)}}]),t}(),CS=((mS=function(){function t(e,n,i){_classCallCheck(this,t),this._browserXHR=e,this._baseResponseOptions=n,this._xsrfStrategy=i}return _createClass(t,[{key:"createConnection",value:function(t){return this._xsrfStrategy.configureRequest(t),new bS(t,this._browserXHR,this._baseResponseOptions)}}]),t}()).\u0275fac=function(t){return new(t||mS)(a.Jc(eS),a.Jc(sS),a.Jc(uS))},mS.\u0275prov=a.uc({token:mS,factory:mS.\u0275fac}),mS),wS=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,t);var n=e.method,i=e.headers,a=e.body,r=e.url,o=e.search,s=e.params,l=e.withCredentials,c=e.responseType;this.method=null!=n?hS(n):null,this.headers=null!=i?i:null,this.body=null!=a?a:null,this.url=null!=r?r:null,this.params=this._mergeSearchParams(s||o),this.withCredentials=null!=l?l:null,this.responseType=null!=c?c:null}return _createClass(t,[{key:"search",get:function(){return this.params},set:function(t){this.params=t}}]),_createClass(t,[{key:"merge",value:function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new oS(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})}},{key:"_mergeSearchParams",value:function(t){return t?t instanceof gS?t.clone():"string"==typeof t?new gS(t):this._parseParams(t):this.params}},{key:"_parseParams",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new gS;return Object.keys(e).forEach((function(i){var a=e[i];Array.isArray(a)?a.forEach((function(e){return t._appendParam(i,e,n)})):t._appendParam(i,a,n)})),n}},{key:"_appendParam",value:function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)}}]),t}(),xS=((pS=function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,{method:nS.Get,headers:new oS}))}return _inherits(e,t),e}(wS)).\u0275fac=function(t){return new(t||pS)},pS.\u0275prov=a.uc({token:pS,factory:pS.\u0275fac}),pS),OS=function(t){function e(t){var n;_classCallCheck(this,e),n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this));var i=t.url;n.url=t.url;var a,r=t.params||t.search;if(r&&(a="object"!=typeof r||r instanceof gS?r.toString():function(t){var e=new gS;return Object.keys(t).forEach((function(n){var i=t[n];i&&Array.isArray(i)?i.forEach((function(t){return e.append(n,t.toString())})):e.append(n,i.toString())})),e}(r).toString()).length>0){var o="?";-1!=n.url.indexOf("?")&&(o="&"==n.url[n.url.length-1]?"":"&"),n.url=i+o+a}return n._body=t.body,n.method=hS(t.method),n.headers=new oS(t.headers),n.contentType=n.detectContentType(),n.withCredentials=t.withCredentials,n.responseType=t.responseType,n}return _inherits(e,t),_createClass(e,[{key:"detectContentType",value:function(){switch(this.headers.get("content-type")){case"application/json":return aS.JSON;case"application/x-www-form-urlencoded":return aS.FORM;case"multipart/form-data":return aS.FORM_DATA;case"text/plain":case"text/html":return aS.TEXT;case"application/octet-stream":return this._body instanceof RS?aS.ARRAY_BUFFER:aS.BLOB;default:return this.detectContentTypeFromBody()}}},{key:"detectContentTypeFromBody",value:function(){return null==this._body?aS.NONE:this._body instanceof gS?aS.FORM:this._body instanceof ES?aS.FORM_DATA:this._body instanceof AS?aS.BLOB:this._body instanceof RS?aS.ARRAY_BUFFER:this._body&&"object"==typeof this._body?aS.JSON:aS.TEXT}},{key:"getBody",value:function(){switch(this.contentType){case aS.JSON:case aS.FORM:return this.text();case aS.FORM_DATA:return this._body;case aS.TEXT:return this.text();case aS.BLOB:return this.blob();case aS.ARRAY_BUFFER:return this.arrayBuffer();default:return null}}}]),e}(vS),SS=function(){},DS="object"==typeof window?window:SS,ES=DS.FormData||SS,AS=DS.Blob||SS,RS=DS.ArrayBuffer||SS;function PS(t,e){return t.createConnection(e).response}function TS(t,e,n,i){return t.merge(new wS(e?{method:e.method||n,url:e.url||i,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}:{method:n,url:i}))}var IS,MS=((IS=function(){function t(e,n){_classCallCheck(this,t),this._backend=e,this._defaultOptions=n}return _createClass(t,[{key:"request",value:function(t,e){var n;if("string"==typeof t)n=PS(this._backend,new OS(TS(this._defaultOptions,e,nS.Get,t)));else{if(!(t instanceof OS))throw new Error("First argument must be a url string or Request instance.");n=PS(this._backend,t)}return n}},{key:"get",value:function(t,e){return this.request(new OS(TS(this._defaultOptions,e,nS.Get,t)))}},{key:"post",value:function(t,e,n){return this.request(new OS(TS(this._defaultOptions.merge(new wS({body:e})),n,nS.Post,t)))}},{key:"put",value:function(t,e,n){return this.request(new OS(TS(this._defaultOptions.merge(new wS({body:e})),n,nS.Put,t)))}},{key:"delete",value:function(t,e){return this.request(new OS(TS(this._defaultOptions,e,nS.Delete,t)))}},{key:"patch",value:function(t,e,n){return this.request(new OS(TS(this._defaultOptions.merge(new wS({body:e})),n,nS.Patch,t)))}},{key:"head",value:function(t,e){return this.request(new OS(TS(this._defaultOptions,e,nS.Head,t)))}},{key:"options",value:function(t,e){return this.request(new OS(TS(this._defaultOptions,e,nS.Options,t)))}}]),t}()).\u0275fac=function(t){return new(t||IS)(a.Jc(cS),a.Jc(wS))},IS.\u0275prov=a.uc({token:IS,factory:IS.\u0275fac}),IS);function jS(){return new kS}function LS(t,e){return new MS(t,e)}var NS,FS=((NS=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:NS}),NS.\u0275inj=a.vc({factory:function(t){return new(t||NS)},providers:[{provide:MS,useFactory:LS,deps:[CS,wS]},eS,{provide:wS,useClass:xS},{provide:sS,useClass:lS},CS,{provide:uS,useFactory:jS}]}),NS);function zS(t,e,n,i){return new(n||(n=Promise))((function(a,r){function o(t){try{l(i.next(t))}catch(e){r(e)}}function s(t){try{l(i.throw(t))}catch(e){r(e)}}function l(t){t.done?a(t.value):new n((function(e){e(t.value)})).then(o,s)}l((i=i.apply(t,e||[])).next())}))}var BS,VS,qS=n("Iab2"),US=function t(e){_classCallCheck(this,t),this.id=e&&e.id||null,this.title=e&&e.title||null,this.desc=e&&e.desc||null,this.thumbnailUrl=e&&e.thumbnailUrl||null,this.uploaded=e&&e.uploaded||null,this.videoUrl=e&&e.videoUrl||"https://www.youtube.com/watch?v=".concat(this.id),this.uploaded=function(t){var e,n=new Date(t),i=XS(n.getMonth()+1),a=XS(n.getDate()),r=n.getFullYear();e=n.getHours();var o=XS(n.getMinutes()),s="AM",l=parseInt(e,10);return l>12?(s="PM",e=l-12):0===l&&(e="12"),i+"-"+a+"-"+r+" "+(e=XS(e))+":"+o+" "+s}(Date.parse(this.uploaded))},HS=((BS=function(){function t(e){_classCallCheck(this,t),this.http=e,this.url="https://www.googleapis.com/youtube/v3/search",this.key=null}return _createClass(t,[{key:"initializeAPI",value:function(t){this.key=t}},{key:"search",value:function(t){if(this.ValidURL(t))return new sn.a;var e=["q=".concat(t),"key=".concat(this.key),"part=snippet","type=video","maxResults=5"].join("&");return this.http.get("".concat(this.url,"?").concat(e)).map((function(t){return t.items.map((function(t){return new US({id:t.id.videoId,title:t.snippet.title,desc:t.snippet.description,thumbnailUrl:t.snippet.thumbnails.high.url,uploaded:t.snippet.publishedAt})}))}))}},{key:"ValidURL",value:function(t){return new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t)}}]),t}()).\u0275fac=function(t){return new(t||BS)(a.Jc(pm))},BS.\u0275prov=a.uc({token:BS,factory:BS.\u0275fac,providedIn:"root"}),BS);function XS(t){return t<10?"0"+t:t}VS=$localize(_templateObject81());var GS,WS,$S=["placeholder",$localize(_templateObject82())];function YS(t,e){1&t&&(a.Dc(0,"mat-label"),a.Bc(1),a.Hc(2,GS),a.Ac(),a.Cc())}function KS(t,e){1&t&&(a.Dc(0,"mat-label"),a.Bc(1),a.Hc(2,WS),a.Ac(),a.Cc())}function JS(t,e){if(1&t&&(a.Dc(0,"mat-option",8),a.sd(1),a.Cc()),2&t){var n=e.$implicit;a.Xc("value",n.id),a.kc(1),a.td(n.id)}}function QS(t,e){1&t&&(a.Dc(0,"div",9),a.zc(1,"mat-spinner",10),a.Cc()),2&t&&(a.kc(1),a.Xc("diameter",25))}GS=$localize(_templateObject83()),WS=$localize(_templateObject84());var ZS,tD,eD,nD,iD,aD,rD=function(){return{standalone:!0}},oD=((ZS=function(){function t(e,n,i){_classCallCheck(this,t),this.data=e,this.postsService=n,this.dialogRef=i,this.filesToSelectFrom=null,this.type=null,this.filesSelect=new To,this.name="",this.create_in_progress=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.data&&(this.filesToSelectFrom=this.data.filesToSelectFrom,this.type=this.data.type)}},{key:"createPlaylist",value:function(){var t=this,e=this.getThumbnailURL();this.create_in_progress=!0,this.postsService.createPlaylist(this.name,this.filesSelect.value,this.type,e).subscribe((function(e){t.create_in_progress=!1,t.dialogRef.close(!!e.success)}))}},{key:"getThumbnailURL",value:function(){for(var t=0;t1?"first-result-card":"",r===o.results.length-1&&o.results.length>1?"last-result-card":"",1===o.results.length?"only-result-card":"")),a.kc(2),a.ud(" ",i.title," "),a.kc(2),a.ud(" ",i.uploaded," ")}}function OD(t,e){if(1&t&&(a.Dc(0,"div",34),a.qd(1,xD,12,7,"span",28),a.Cc()),2&t){var n=a.Rc();a.kc(1),a.Xc("ngForOf",n.results)}}function SD(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-checkbox",40),a.Nc("change",(function(t){return a.id(n),a.Rc().multiDownloadModeChanged(t)}))("ngModelChange",(function(t){return a.id(n),a.Rc().multiDownloadMode=t})),a.Bc(1),a.Hc(2,_D),a.Ac(),a.Cc()}if(2&t){var i=a.Rc();a.Xc("disabled",i.current_download)("ngModel",i.multiDownloadMode)}}function DD(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",41),a.Nc("click",(function(){return a.id(n),a.Rc().cancelDownload()})),a.Bc(1),a.Hc(2,bD),a.Ac(),a.Cc()}}_D=$localize(_templateObject92()),bD=$localize(_templateObject93()),kD=$localize(_templateObject94()),CD=$localize(_templateObject95());var ED,AD,RD=["placeholder",$localize(_templateObject96())];ED=$localize(_templateObject97()),AD=$localize(_templateObject98());var PD,TD,ID,MD,jD=["placeholder",$localize(_templateObject99())];function LD(t,e){if(1&t&&(a.Dc(0,"p"),a.Bc(1),a.Hc(2,ID),a.Ac(),a.sd(3," \xa0"),a.Dc(4,"i"),a.sd(5),a.Cc(),a.Cc()),2&t){var n=a.Rc(2);a.kc(5),a.td(n.simulatedOutput)}}PD=$localize(_templateObject100()),TD=$localize(_templateObject101()),ID=$localize(_templateObject102()),MD=$localize(_templateObject103());var ND=["placeholder",$localize(_templateObject104())];function FD(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",52),a.Dc(1,"mat-checkbox",46),a.Nc("change",(function(t){return a.id(n),a.Rc(2).youtubeAuthEnabledChanged(t)}))("ngModelChange",(function(t){return a.id(n),a.Rc(2).youtubeAuthEnabled=t})),a.Bc(2),a.Hc(3,MD),a.Ac(),a.Cc(),a.Dc(4,"mat-form-field",53),a.Dc(5,"input",49),a.Ic(6,ND),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc(2).youtubeUsername=t})),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Rc(2);a.kc(1),a.Xc("disabled",i.current_download)("ngModel",i.youtubeAuthEnabled)("ngModelOptions",a.Zc(6,vD)),a.kc(4),a.Xc("ngModel",i.youtubeUsername)("ngModelOptions",a.Zc(7,vD))("disabled",!i.youtubeAuthEnabled)}}var zD,BD,VD,qD,UD,HD,XD,GD,WD=["placeholder",$localize(_templateObject105())];function $D(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",52),a.Dc(1,"mat-form-field",54),a.Dc(2,"input",55),a.Ic(3,WD),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc(2).youtubePassword=t})),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Rc(2);a.kc(2),a.Xc("ngModel",i.youtubePassword)("ngModelOptions",a.Zc(3,vD))("disabled",!i.youtubeAuthEnabled)}}function YD(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",0),a.Dc(1,"form",42),a.Dc(2,"mat-expansion-panel",43),a.Dc(3,"mat-expansion-panel-header"),a.Dc(4,"mat-panel-title"),a.Bc(5),a.Hc(6,kD),a.Ac(),a.Cc(),a.Cc(),a.qd(7,LD,6,1,"p",10),a.Dc(8,"div",44),a.Dc(9,"div",5),a.Dc(10,"div",45),a.Dc(11,"mat-checkbox",46),a.Nc("change",(function(t){return a.id(n),a.Rc().customArgsEnabledChanged(t)}))("ngModelChange",(function(t){return a.id(n),a.Rc().customArgsEnabled=t})),a.Bc(12),a.Hc(13,CD),a.Ac(),a.Cc(),a.Dc(14,"button",47),a.Nc("click",(function(){return a.id(n),a.Rc().openArgsModifierDialog()})),a.Dc(15,"mat-icon"),a.sd(16,"edit"),a.Cc(),a.Cc(),a.Dc(17,"mat-form-field",48),a.Dc(18,"input",49),a.Ic(19,RD),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().customArgs=t})),a.Cc(),a.Dc(20,"mat-hint"),a.Bc(21),a.Hc(22,ED),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(23,"div",45),a.Dc(24,"mat-checkbox",46),a.Nc("change",(function(t){return a.id(n),a.Rc().customOutputEnabledChanged(t)}))("ngModelChange",(function(t){return a.id(n),a.Rc().customOutputEnabled=t})),a.Bc(25),a.Hc(26,AD),a.Ac(),a.Cc(),a.Dc(27,"mat-form-field",48),a.Dc(28,"input",49),a.Ic(29,jD),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().customOutput=t})),a.Cc(),a.Dc(30,"mat-hint"),a.Dc(31,"a",50),a.Bc(32),a.Hc(33,PD),a.Ac(),a.Cc(),a.sd(34,". "),a.Bc(35),a.Hc(36,TD),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.qd(37,FD,7,8,"div",51),a.qd(38,$D,4,4,"div",51),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.kc(7),a.Xc("ngIf",i.simulatedOutput),a.kc(4),a.Xc("disabled",i.current_download)("ngModel",i.customArgsEnabled)("ngModelOptions",a.Zc(15,vD)),a.kc(7),a.Xc("ngModel",i.customArgs)("ngModelOptions",a.Zc(16,vD))("disabled",!i.customArgsEnabled),a.kc(6),a.Xc("disabled",i.current_download)("ngModel",i.customOutputEnabled)("ngModelOptions",a.Zc(17,vD)),a.kc(4),a.Xc("ngModel",i.customOutput)("ngModelOptions",a.Zc(18,vD))("disabled",!i.customOutputEnabled),a.kc(9),a.Xc("ngIf",!i.youtubeAuthDisabledOverride),a.kc(1),a.Xc("ngIf",!i.youtubeAuthDisabledOverride)}}function KD(t,e){1&t&&a.zc(0,"mat-divider",2)}function JD(t,e){if(1&t){var n=a.Ec();a.Bc(0),a.Dc(1,"app-download-item",59),a.Nc("cancelDownload",(function(t){return a.id(n),a.Rc(3).cancelDownload(t)})),a.Cc(),a.qd(2,KD,1,0,"mat-divider",60),a.Ac()}if(2&t){var i=a.Rc(),r=i.$implicit,o=i.index,s=a.Rc(2);a.kc(1),a.Xc("download",r)("queueNumber",o+1),a.kc(1),a.Xc("ngIf",o!==s.downloads.length-1)}}function QD(t,e){if(1&t&&(a.Dc(0,"div",5),a.qd(1,JD,3,3,"ng-container",10),a.Cc()),2&t){var n=e.$implicit,i=a.Rc(2);a.kc(1),a.Xc("ngIf",i.current_download!==n)}}function ZD(t,e){if(1&t&&(a.Dc(0,"div",56),a.Dc(1,"mat-card",1),a.Dc(2,"div",57),a.qd(3,QD,2,1,"div",58),a.Cc(),a.Cc(),a.Cc()),2&t){var n=a.Rc();a.kc(3),a.Xc("ngForOf",n.downloads)}}function tE(t,e){if(1&t&&(a.Dc(0,"div",66),a.zc(1,"mat-progress-bar",67),a.zc(2,"br"),a.Cc()),2&t){var n=a.Rc(2);a.Xc("ngClass",n.determinateProgress&&100===n.percentDownloaded?"make-room-for-spinner":"equal-sizes"),a.kc(1),a.Yc("value",n.percentDownloaded)}}function eE(t,e){1&t&&(a.Dc(0,"div",68),a.zc(1,"mat-spinner",33),a.Cc()),2&t&&(a.kc(1),a.Xc("diameter",25))}function nE(t,e){1&t&&a.zc(0,"mat-progress-bar",69)}function iE(t,e){if(1&t&&(a.Dc(0,"div",61),a.Dc(1,"div",62),a.qd(2,tE,3,2,"div",63),a.qd(3,eE,2,1,"div",64),a.qd(4,nE,1,0,"ng-template",null,65,a.rd),a.Cc(),a.zc(6,"br"),a.Cc()),2&t){var n=a.ed(5),i=a.Rc();a.kc(2),a.Xc("ngIf",i.determinateProgress)("ngIfElse",n),a.kc(1),a.Xc("ngIf",i.determinateProgress&&100===i.percentDownloaded)}}function aE(t,e){}function rE(t,e){1&t&&a.zc(0,"mat-progress-bar",81)}function oE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-tile"),a.Dc(1,"app-file-card",78,79),a.Nc("removeFile",(function(t){return a.id(n),a.Rc(3).removeFromMp3(t)})),a.Cc(),a.qd(3,rE,1,0,"mat-progress-bar",80),a.Cc()}if(2&t){var i=e.$implicit,r=a.Rc(3);a.kc(1),a.Xc("file",i)("title",i.title)("name",i.id)("thumbnailURL",i.thumbnailURL)("length",i.duration)("isAudio",!0)("use_youtubedl_archive",r.use_youtubedl_archive),a.kc(2),a.Xc("ngIf",r.downloading_content.audio[i.id])}}function sE(t,e){1&t&&a.zc(0,"mat-progress-bar",81)}function lE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-tile"),a.Dc(1,"app-file-card",83,79),a.Nc("removeFile",(function(){a.id(n);var t=e.$implicit,i=e.index;return a.Rc(4).removePlaylistMp3(t.id,i)})),a.Cc(),a.qd(3,sE,1,0,"mat-progress-bar",80),a.Cc()}if(2&t){var i=e.$implicit,r=a.Rc(4);a.kc(1),a.Xc("title",i.name)("name",i.id)("thumbnailURL",r.playlist_thumbnails[i.id])("length",null)("isAudio",!0)("isPlaylist",!0)("count",i.fileNames.length)("use_youtubedl_archive",r.use_youtubedl_archive),a.kc(2),a.Xc("ngIf",r.downloading_content.audio[i.id])}}function cE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-list",82),a.Nc("resize",(function(t){return a.id(n),a.Rc(3).onResize(t)}),!1,a.hd),a.qd(1,lE,4,9,"mat-grid-tile",28),a.Cc()}if(2&t){var i=a.Rc(3);a.Xc("cols",i.files_cols),a.kc(1),a.Xc("ngForOf",i.playlists.audio)}}function uE(t,e){1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,HD),a.Ac(),a.Cc())}function hE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div"),a.Dc(1,"mat-grid-list",73),a.Nc("resize",(function(t){return a.id(n),a.Rc(2).onResize(t)}),!1,a.hd),a.qd(2,oE,4,8,"mat-grid-tile",28),a.Cc(),a.zc(3,"mat-divider"),a.Dc(4,"div",74),a.Dc(5,"h6"),a.Hc(6,UD),a.Cc(),a.Cc(),a.qd(7,cE,2,2,"mat-grid-list",75),a.Dc(8,"div",76),a.Dc(9,"button",77),a.Nc("click",(function(){return a.id(n),a.Rc(2).openCreatePlaylistDialog("audio")})),a.Dc(10,"mat-icon"),a.sd(11,"add"),a.Cc(),a.Cc(),a.Cc(),a.qd(12,uE,3,0,"div",10),a.Cc()}if(2&t){var i=a.Rc(2);a.kc(1),a.Xc("cols",i.files_cols),a.kc(1),a.Xc("ngForOf",i.mp3s),a.kc(5),a.Xc("ngIf",i.playlists.audio.length>0),a.kc(5),a.Xc("ngIf",0===i.playlists.audio.length)}}function dE(t,e){1&t&&a.zc(0,"mat-progress-bar",81)}function fE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-tile"),a.Dc(1,"app-file-card",78,84),a.Nc("removeFile",(function(t){return a.id(n),a.Rc(3).removeFromMp4(t)})),a.Cc(),a.qd(3,dE,1,0,"mat-progress-bar",80),a.Cc()}if(2&t){var i=e.$implicit,r=a.Rc(3);a.kc(1),a.Xc("file",i)("title",i.title)("name",i.id)("thumbnailURL",i.thumbnailURL)("length",i.duration)("isAudio",!1)("use_youtubedl_archive",r.use_youtubedl_archive),a.kc(2),a.Xc("ngIf",r.downloading_content.video[i.id])}}function mE(t,e){1&t&&a.zc(0,"mat-progress-bar",81)}function pE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-tile"),a.Dc(1,"app-file-card",83,84),a.Nc("removeFile",(function(){a.id(n);var t=e.$implicit,i=e.index;return a.Rc(4).removePlaylistMp4(t.id,i)})),a.Cc(),a.qd(3,mE,1,0,"mat-progress-bar",80),a.Cc()}if(2&t){var i=e.$implicit,r=a.Rc(4);a.kc(1),a.Xc("title",i.name)("name",i.id)("thumbnailURL",r.playlist_thumbnails[i.id])("length",null)("isAudio",!1)("isPlaylist",!0)("count",i.fileNames.length)("use_youtubedl_archive",r.use_youtubedl_archive),a.kc(2),a.Xc("ngIf",r.downloading_content.video[i.id])}}function gE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-grid-list",82),a.Nc("resize",(function(t){return a.id(n),a.Rc(3).onResize(t)}),!1,a.hd),a.qd(1,pE,4,9,"mat-grid-tile",28),a.Cc()}if(2&t){var i=a.Rc(3);a.Xc("cols",i.files_cols),a.kc(1),a.Xc("ngForOf",i.playlists.video)}}function vE(t,e){1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,GD),a.Ac(),a.Cc())}function yE(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div"),a.Dc(1,"mat-grid-list",73),a.Nc("resize",(function(t){return a.id(n),a.Rc(2).onResize(t)}),!1,a.hd),a.qd(2,fE,4,8,"mat-grid-tile",28),a.Cc(),a.zc(3,"mat-divider"),a.Dc(4,"div",74),a.Dc(5,"h6"),a.Hc(6,XD),a.Cc(),a.Cc(),a.qd(7,gE,2,2,"mat-grid-list",75),a.Dc(8,"div",76),a.Dc(9,"button",77),a.Nc("click",(function(){return a.id(n),a.Rc(2).openCreatePlaylistDialog("video")})),a.Dc(10,"mat-icon"),a.sd(11,"add"),a.Cc(),a.Cc(),a.Cc(),a.qd(12,vE,3,0,"div",10),a.Cc()}if(2&t){var i=a.Rc(2);a.kc(1),a.Xc("cols",i.files_cols),a.kc(1),a.Xc("ngForOf",i.mp4s),a.kc(5),a.Xc("ngIf",i.playlists.video.length>0),a.kc(5),a.Xc("ngIf",0===i.playlists.video.length)}}function _E(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",70),a.Dc(1,"mat-accordion"),a.Dc(2,"mat-expansion-panel",71),a.Nc("opened",(function(){return a.id(n),a.Rc().accordionOpened("audio")}))("closed",(function(){return a.id(n),a.Rc().accordionClosed("audio")}))("mouseleave",(function(){return a.id(n),a.Rc().accordionLeft("audio")}))("mouseenter",(function(){return a.id(n),a.Rc().accordionEntered("audio")})),a.Dc(3,"mat-expansion-panel-header"),a.Dc(4,"mat-panel-title"),a.Bc(5),a.Hc(6,zD),a.Ac(),a.Cc(),a.Dc(7,"mat-panel-description"),a.Bc(8),a.Hc(9,BD),a.Ac(),a.Cc(),a.Cc(),a.qd(10,hE,13,4,"div",72),a.Cc(),a.Dc(11,"mat-expansion-panel",71),a.Nc("opened",(function(){return a.id(n),a.Rc().accordionOpened("video")}))("closed",(function(){return a.id(n),a.Rc().accordionClosed("video")}))("mouseleave",(function(){return a.id(n),a.Rc().accordionLeft("video")}))("mouseenter",(function(){return a.id(n),a.Rc().accordionEntered("video")})),a.Dc(12,"mat-expansion-panel-header"),a.Dc(13,"mat-panel-title"),a.Bc(14),a.Hc(15,VD),a.Ac(),a.Cc(),a.Dc(16,"mat-panel-description"),a.Bc(17),a.Hc(18,qD),a.Ac(),a.Cc(),a.Cc(),a.qd(19,yE,13,4,"div",72),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Rc(),r=a.ed(39),o=a.ed(41);a.kc(10),a.Xc("ngIf",i.mp3s.length>0)("ngIfElse",r),a.kc(9),a.Xc("ngIf",i.mp4s.length>0)("ngIfElse",o)}}function bE(t,e){}function kE(t,e){}zD=$localize(_templateObject106()),BD=$localize(_templateObject107()),VD=$localize(_templateObject108()),qD=$localize(_templateObject109()),UD=$localize(_templateObject110()),HD=$localize(_templateObject111()),XD=$localize(_templateObject112()),GD=$localize(_templateObject113());var CE,wE=!1,xE=!1,OE=!1,SE=!1,DE=((CE=function(){function t(e,n,i,a,r,o,s){_classCallCheck(this,t),this.postsService=e,this.youtubeSearch=n,this.snackBar=i,this.router=a,this.dialog=r,this.platform=o,this.route=s,this.youtubeAuthDisabledOverride=!1,this.iOS=!1,this.determinateProgress=!1,this.downloadingfile=!1,this.multiDownloadMode=!1,this.customArgsEnabled=!1,this.customArgs=null,this.customOutputEnabled=!1,this.customOutput=null,this.youtubeAuthEnabled=!1,this.youtubeUsername=null,this.youtubePassword=null,this.urlError=!1,this.path="",this.url="",this.exists="",this.autoStartDownload=!1,this.fileManagerEnabled=!1,this.allowQualitySelect=!1,this.downloadOnlyMode=!1,this.allowMultiDownloadMode=!1,this.use_youtubedl_archive=!1,this.globalCustomArgs=null,this.allowAdvancedDownload=!1,this.useDefaultDownloadingAgent=!0,this.customDownloadingAgent=null,this.cachedAvailableFormats={},this.youtubeSearchEnabled=!1,this.youtubeAPIKey=null,this.results_loading=!1,this.results_showing=!0,this.results=[],this.mp3s=[],this.mp4s=[],this.files_cols=null,this.playlists={audio:[],video:[]},this.playlist_thumbnails={},this.downloading_content={audio:{},video:{}},this.downloads=[],this.current_download=null,this.urlForm=new To("",[Or.required]),this.qualityOptions={video:[{resolution:null,value:"",label:"Max"},{resolution:"3840x2160",value:"2160",label:"2160p (4K)"},{resolution:"2560x1440",value:"1440",label:"1440p"},{resolution:"1920x1080",value:"1080",label:"1080p"},{resolution:"1280x720",value:"720",label:"720p"},{resolution:"720x480",value:"480",label:"480p"},{resolution:"480x360",value:"360",label:"360p"},{resolution:"360x240",value:"240",label:"240p"},{resolution:"256x144",value:"144",label:"144p"}],audio:[{kbitrate:null,value:"",label:"Max"},{kbitrate:"256",value:"256K",label:"256 Kbps"},{kbitrate:"160",value:"160K",label:"160 Kbps"},{kbitrate:"128",value:"128K",label:"128 Kbps"},{kbitrate:"96",value:"96K",label:"96 Kbps"},{kbitrate:"70",value:"70K",label:"70 Kbps"},{kbitrate:"50",value:"50K",label:"50 Kbps"},{kbitrate:"32",value:"32K",label:"32 Kbps"}]},this.selectedQuality="",this.formats_loading=!1,this.last_valid_url="",this.last_url_check=0,this.test_download={uid:null,type:"audio",percent_complete:0,url:"http://youtube.com/watch?v=17848rufj",downloading:!0,is_playlist:!1},this.simulatedOutput="",this.audioOnly=!1}return _createClass(t,[{key:"configLoad",value:function(){return zS(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadConfig();case 2:this.autoStartDownload&&this.downloadClicked(),setInterval((function(){return e.getSimulatedOutput()}),1e3);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"loadConfig",value:function(){return zS(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.postsService.loadNavItems().subscribe((function(t){var n=e.postsService.debugMode?t:t.config_file;if(e.fileManagerEnabled=n.YoutubeDLMaterial.Extra.file_manager_enabled,e.downloadOnlyMode=n.YoutubeDLMaterial.Extra.download_only_mode,e.allowMultiDownloadMode=n.YoutubeDLMaterial.Extra.allow_multi_download_mode,e.audioFolderPath=n.YoutubeDLMaterial.Downloader["path-audio"],e.videoFolderPath=n.YoutubeDLMaterial.Downloader["path-video"],e.use_youtubedl_archive=n.YoutubeDLMaterial.Downloader.use_youtubedl_archive,e.globalCustomArgs=n.YoutubeDLMaterial.Downloader.custom_args,e.youtubeSearchEnabled=n.YoutubeDLMaterial.API&&n.YoutubeDLMaterial.API.use_youtube_API&&n.YoutubeDLMaterial.API.youtube_API_key,e.youtubeAPIKey=e.youtubeSearchEnabled?n.YoutubeDLMaterial.API.youtube_API_key:null,e.allowQualitySelect=n.YoutubeDLMaterial.Extra.allow_quality_select,e.allowAdvancedDownload=n.YoutubeDLMaterial.Advanced.allow_advanced_download,e.useDefaultDownloadingAgent=n.YoutubeDLMaterial.Advanced.use_default_downloading_agent,e.customDownloadingAgent=n.YoutubeDLMaterial.Advanced.custom_downloading_agent,e.fileManagerEnabled&&(e.getMp3s(),e.getMp4s()),e.youtubeSearchEnabled&&e.youtubeAPIKey&&(e.youtubeSearch.initializeAPI(e.youtubeAPIKey),e.attachToInput()),e.allowAdvancedDownload){null!==localStorage.getItem("customArgsEnabled")&&(e.customArgsEnabled="true"===localStorage.getItem("customArgsEnabled")),null!==localStorage.getItem("customOutputEnabled")&&(e.customOutputEnabled="true"===localStorage.getItem("customOutputEnabled")),null!==localStorage.getItem("youtubeAuthEnabled")&&(e.youtubeAuthEnabled="true"===localStorage.getItem("youtubeAuthEnabled"));var i=localStorage.getItem("customArgs"),a=localStorage.getItem("customOutput"),r=localStorage.getItem("youtubeUsername");i&&"null"!==i&&(e.customArgs=i),a&&"null"!==a&&(e.customOutput=a),r&&"null"!==r&&(e.youtubeUsername=r)}return!0}),(function(t){return console.log(t),!1}));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"ngOnInit",value:function(){var t=this;this.configLoad(),this.postsService.settings_changed.subscribe((function(e){e&&t.loadConfig()})),this.iOS=this.platform.IOS,null!==localStorage.getItem("audioOnly")&&(this.audioOnly="true"===localStorage.getItem("audioOnly")),null!==localStorage.getItem("multiDownloadMode")&&(this.multiDownloadMode="true"===localStorage.getItem("multiDownloadMode")),this.route.snapshot.paramMap.get("url")&&(this.url=decodeURIComponent(this.route.snapshot.paramMap.get("url")),this.audioOnly="true"===this.route.snapshot.paramMap.get("audioOnly"),this.autoStartDownload=!0),this.setCols()}},{key:"getMp3s",value:function(){var t=this;this.postsService.getMp3s().subscribe((function(e){var n=e.mp3s,i=e.playlists;JSON.stringify(t.mp3s)!==JSON.stringify(n)&&(t.mp3s=n),t.playlists.audio=i;for(var a=0;a1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(this.downloadingfile=!1,a&&this.current_download!==a);else if(!this.multiDownloadMode||!a)if(!1===i&&this.downloadOnlyMode&&!this.iOS)if(n){var r=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"audio",r)}else this.downloadAudioFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(n?["/player",{fileNames:t.join("|nvr|"),type:"audio"}]:["/player",{fileNames:t,type:"audio"}]);this.removeDownloadFromCurrentDownloads(a),this.fileManagerEnabled&&(this.getMp3s(),setTimeout((function(){e.audioFileCards.forEach((function(t){t.onHoverResponse()}))}),200))}},{key:"downloadHelperMp4",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(this.downloadingfile=!1,a&&this.current_download!==a);else if(!this.multiDownloadMode||!a)if(!1===i&&this.downloadOnlyMode)if(n){var r=t[0].split(" ")[0]+t[1].split(" ")[0];this.downloadPlaylist(t,"video",r)}else this.downloadVideoFile(decodeURI(t));else localStorage.setItem("player_navigator",this.router.url.split(";")[0]),this.router.navigate(n?["/player",{fileNames:t.join("|nvr|"),type:"video"}]:["/player",{fileNames:t,type:"video"}]);this.removeDownloadFromCurrentDownloads(a),this.fileManagerEnabled&&(this.getMp4s(),setTimeout((function(){e.videoFileCards.forEach((function(t){t.onHoverResponse()}))}),200))}},{key:"downloadClicked",value:function(){var t=this;if(this.ValidURL(this.url)){this.urlError=!1,this.path="";var e=this.customArgsEnabled?this.customArgs:null,n=this.customOutputEnabled?this.customOutput:null,i=this.youtubeAuthEnabled&&this.youtubeUsername?this.youtubeUsername:null,a=this.youtubeAuthEnabled&&this.youtubePassword?this.youtubePassword:null;if(this.allowAdvancedDownload&&(e&&localStorage.setItem("customArgs",e),n&&localStorage.setItem("customOutput",n),i&&localStorage.setItem("youtubeUsername",i)),this.audioOnly){var r={uid:Object(sD.v4)(),type:"audio",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist")};this.downloads.push(r),this.current_download||this.multiDownloadMode||(this.current_download=r),this.downloadingfile=!0;var o=null;""!==this.selectedQuality&&(o=this.getSelectedAudioFormat()),this.postsService.makeMP3(this.url,""===this.selectedQuality?null:this.selectedQuality,o,e,n,i,a).subscribe((function(e){r.downloading=!1,r.percent_complete=100;var n=!!e.file_names;t.path=n?e.file_names:e.audiopathEncoded,"-1"!==t.path&&t.downloadHelperMp3(t.path,n,!1,r)}),(function(e){t.downloadingfile=!1,t.current_download=null,r.downloading=!1,t.openSnackBar("Download failed!","OK.")}))}else{var s={uid:Object(sD.v4)(),type:"video",percent_complete:0,url:this.url,downloading:!0,is_playlist:this.url.includes("playlist")};this.downloads.push(s),this.current_download||this.multiDownloadMode||(this.current_download=s),this.downloadingfile=!0;var l=this.getSelectedVideoFormat();this.postsService.makeMP4(this.url,""===this.selectedQuality?null:this.selectedQuality,l,e,n,i,a).subscribe((function(e){s.downloading=!1,s.percent_complete=100;var n=!!e.file_names;t.path=n?e.file_names:e.videopathEncoded,"-1"!==t.path&&t.downloadHelperMp4(t.path,n,!1,s)}),(function(e){t.downloadingfile=!1,t.current_download=null,s.downloading=!1,t.openSnackBar("Download failed!","OK.")}))}this.multiDownloadMode&&(this.url="",this.downloadingfile=!1)}else this.urlError=!0}},{key:"cancelDownload",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t?this.removeDownloadFromCurrentDownloads(t):(this.downloadingfile=!1,this.current_download.downloading=!1,this.current_download=null)}},{key:"getSelectedAudioFormat",value:function(){return""===this.selectedQuality?null:this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats?this.cachedAvailableFormats[this.url].formats.audio[this.selectedQuality].format_id:null}},{key:"getSelectedVideoFormat",value:function(){if(""===this.selectedQuality)return null;if(this.cachedAvailableFormats[this.url]&&this.cachedAvailableFormats[this.url].formats){var t=this.cachedAvailableFormats[this.url].formats.video;if(t.best_audio_format&&""!==this.selectedQuality)return t[this.selectedQuality].format_id+"+"+t.best_audio_format}return null}},{key:"getDownloadByUID",value:function(t){var e=this.downloads.findIndex((function(e){return e.uid===t}));return-1!==e?this.downloads[e]:null}},{key:"removeDownloadFromCurrentDownloads",value:function(t){var e=this.downloads.indexOf(t);return-1!==e&&(this.downloads.splice(e,1),!0)}},{key:"downloadAudioFile",value:function(t){var e=this;this.downloading_content.audio[t]=!0,this.postsService.downloadFileFromServer(t,"audio").subscribe((function(n){e.downloading_content.audio[t]=!1;var i=n;Object(qS.saveAs)(i,t+".mp3"),e.fileManagerEnabled||e.postsService.deleteFile(t,!0).subscribe((function(t){e.getMp3s()}))}))}},{key:"downloadVideoFile",value:function(t){var e=this;this.downloading_content.video[t]=!0,this.postsService.downloadFileFromServer(t,"video").subscribe((function(n){e.downloading_content.video[t]=!1;var i=n;Object(qS.saveAs)(i,t+".mp4"),e.fileManagerEnabled||e.postsService.deleteFile(t,!1).subscribe((function(t){e.getMp4s()}))}))}},{key:"downloadPlaylist",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.postsService.downloadFileFromServer(t,e,i).subscribe((function(t){a&&(n.downloading_content[e][a]=!1);var r=t;Object(qS.saveAs)(r,i+".zip")}))}},{key:"clearInput",value:function(){this.url="",this.results_showing=!1}},{key:"onInputBlur",value:function(){this.results_showing=!1}},{key:"visitURL",value:function(t){window.open(t)}},{key:"useURL",value:function(t){this.results_showing=!1,this.url=t}},{key:"inputChanged",value:function(t){""!==t&&t?this.ValidURL(t)&&(this.results_showing=!1):this.results_showing=!1}},{key:"ValidURL",value:function(t){var e=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/).test(t);return!!e&&(new RegExp(/(?:http(?:s)?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"'<> #]+)/),e&&Date.now()-this.last_url_check>1e3&&(t!==this.last_valid_url&&this.allowQualitySelect&&this.getURLInfo(t),this.last_valid_url=t),e)}},{key:"openSnackBar",value:function(t,e){this.snackBar.open(t,e,{duration:2e3})}},{key:"getURLInfo",value:function(t){var e=this;this.cachedAvailableFormats[t]||(this.cachedAvailableFormats[t]={}),this.cachedAvailableFormats[t]&&this.cachedAvailableFormats[t].formats||(this.cachedAvailableFormats[t].formats_loading=!0,this.postsService.getFileInfo([t],"irrelevant",!0).subscribe((function(n){e.cachedAvailableFormats[t].formats_loading=!1;var i=n.result;if(i&&i.formats){var a=e.getAudioAndVideoFormats(i.formats);e.cachedAvailableFormats[t].formats={audio:a[0],video:a[1]}}else e.errorFormats(t)}),(function(n){e.errorFormats(t)})))}},{key:"getSimulatedOutput",value:function(){var t,e,n=this.globalCustomArgs&&""!==this.globalCustomArgs,i=[],a=["youtube-dl",this.url];if(this.customArgsEnabled&&this.customArgs)return this.simulatedOutput=a.join(" ")+" "+this.customArgs,this.simulatedOutput;(t=i).push.apply(t,a);var r=this.audioOnly?".mp3":".mp4",o=["-o",(this.audioOnly?this.audioFolderPath:this.videoFolderPath)+"%(title)s"+r];if(this.customOutputEnabled&&this.customOutput&&(o=["-o",this.customOutput+r]),this.useDefaultDownloadingAgent||"aria2c"!==this.customDownloadingAgent||i.push("--external-downloader","aria2c"),(e=i).push.apply(e,_toConsumableArray(o)),this.audioOnly){var s,l=[],c=this.getSelectedAudioFormat();c?l.push("-f",c):this.selectedQuality&&l.push("--audio-quality",this.selectedQuality),(s=i).splice.apply(s,[2,0].concat(l)),i.push("-x","--audio-format","mp3","--write-info-json","--print-json")}else{var u,h=["-f","bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"],d=this.getSelectedVideoFormat();d?h=["-f",d]:this.selectedQuality&&(h=["bestvideo[height=".concat(this.selectedQuality,"]+bestaudio/best[height=").concat(this.selectedQuality,"]")]),(u=i).splice.apply(u,[2,0].concat(_toConsumableArray(h))),i.push("--write-info-json","--print-json")}return this.use_youtubedl_archive&&i.push("--download-archive","archive.txt"),n&&(i=i.concat(this.globalCustomArgs.split(" "))),this.simulatedOutput=i.join(" "),this.simulatedOutput}},{key:"errorFormats",value:function(t){this.cachedAvailableFormats[t].formats_loading=!1,console.error("Could not load formats for url "+t)}},{key:"attachToInput",value:function(){var t=this;sn.a.fromEvent(this.urlInput.nativeElement,"keyup").map((function(t){return t.target.value})).filter((function(t){return t.length>1})).debounceTime(250).do((function(){return t.results_loading=!0})).map((function(e){return t.youtubeSearch.search(e)})).switch().subscribe((function(e){t.results_loading=!1,""!==t.url&&e&&e.length>0?(t.results=e,t.results_showing=!0):t.results_showing=!1}),(function(e){console.log(e),t.results_loading=!1,t.results_showing=!1}),(function(){t.results_loading=!1}))}},{key:"onResize",value:function(t){this.setCols()}},{key:"videoModeChanged",value:function(t){this.selectedQuality="",localStorage.setItem("audioOnly",t.checked.toString())}},{key:"multiDownloadModeChanged",value:function(t){localStorage.setItem("multiDownloadMode",t.checked.toString())}},{key:"customArgsEnabledChanged",value:function(t){localStorage.setItem("customArgsEnabled",t.checked.toString()),!0===t.checked&&this.customOutputEnabled&&(this.customOutputEnabled=!1,localStorage.setItem("customOutputEnabled","false"),this.youtubeAuthEnabled=!1,localStorage.setItem("youtubeAuthEnabled","false"))}},{key:"customOutputEnabledChanged",value:function(t){localStorage.setItem("customOutputEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}},{key:"youtubeAuthEnabledChanged",value:function(t){localStorage.setItem("youtubeAuthEnabled",t.checked.toString()),!0===t.checked&&this.customArgsEnabled&&(this.customArgsEnabled=!1,localStorage.setItem("customArgsEnabled","false"))}},{key:"getAudioAndVideoFormats",value:function(t){for(var e={},n={},i=0;in&&(e=r.format_id,n=r.bitrate)}return e}},{key:"accordionEntered",value:function(t){"audio"===t?(wE=!0,this.audioFileCards.forEach((function(t){t.onHoverResponse()}))):"video"===t&&(xE=!0,this.videoFileCards.forEach((function(t){t.onHoverResponse()})))}},{key:"accordionLeft",value:function(t){"audio"===t?wE=!1:"video"===t&&(xE=!1)}},{key:"accordionOpened",value:function(t){"audio"===t?OE=!0:"video"===t&&(SE=!0)}},{key:"accordionClosed",value:function(t){"audio"===t?OE=!1:"video"===t&&(SE=!1)}},{key:"openCreatePlaylistDialog",value:function(t){var e=this;this.dialog.open(oD,{data:{filesToSelectFrom:"audio"===t?this.mp3s:this.mp4s,type:t}}).afterClosed().subscribe((function(n){n?("audio"===t&&e.getMp3s(),"video"===t&&e.getMp4s(),e.openSnackBar("Successfully created playlist!","")):!1===n&&e.openSnackBar("ERROR: failed to create playlist!","")}))}},{key:"openArgsModifierDialog",value:function(){var t=this;this.dialog.open(Dx,{data:{initial_args:this.customArgs}}).afterClosed().subscribe((function(e){e&&(t.customArgs=e)}))}}]),t}()).\u0275fac=function(t){return new(t||CE)(a.yc(zw),a.yc(HS),a.yc(m_),a.yc(ow),a.yc(md),a.yc(On),a.yc(Kk))},CE.\u0275cmp=a.sc({type:CE,selectors:[["app-root"]],viewQuery:function(t,e){var n;1&t&&(a.wd(lD,!0,a.q),a.wd(cD,!0),a.wd(uD,!0)),2&t&&(a.dd(n=a.Oc())&&(e.urlInput=n.first),a.dd(n=a.Oc())&&(e.audioFileCards=n),a.dd(n=a.Oc())&&(e.videoFileCards=n))},decls:42,vars:17,consts:[[1,"big","demo-basic"],["id","card",2,"margin-right","20px","margin-left","20px"],[2,"position","relative"],[1,"example-form"],[1,"container-fluid"],[1,"row"],[1,"col-12",3,"ngClass"],["color","accent",1,"example-full-width"],["matInput","","type","url","name","url","required","",2,"padding-right","25px",3,"ngModel","placeholder","formControl","ngModelChange"],["urlinput",""],[4,"ngIf"],["mat-icon-button","",1,"input-clear-button",3,"click"],["class","col-7 col-sm-3",4,"ngIf"],["class","results-div",4,"ngIf"],[2,"float","left","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["style","float: right; margin-top: -12px",3,"disabled","ngModel","change","ngModelChange",4,"ngIf"],["type","submit","mat-stroked-button","","color","accent",2,"margin-left","8px","margin-bottom","8px",3,"disabled","click"],["style","float: right","mat-stroked-button","","color","warn",3,"click",4,"ngIf"],["class","big demo-basic",4,"ngIf"],["style","margin-top: 15px;","class","big demo-basic",4,"ngIf"],["class","centered big","id","bar_div",4,"ngIf","ngIfElse"],["nofile",""],["style","margin: 20px",4,"ngIf"],["nomp3s",""],["nomp4s",""],[1,"col-7","col-sm-3"],["color","accent",2,"display","inline-block","width","inherit","min-width","120px"],[3,"ngModelOptions","ngModel","ngModelChange"],[4,"ngFor","ngForOf"],["class","spinner-div",4,"ngIf"],[3,"value",4,"ngIf"],[3,"value"],[1,"spinner-div"],[3,"diameter"],[1,"results-div"],[1,"result-card","mat-elevation-z7",3,"ngClass"],[1,"search-card-title"],[2,"font-size","12px","margin-bottom","10px"],["mat-flat-button","","color","primary",2,"float","left",3,"click"],["mat-stroked-button","","color","primary",2,"float","right",3,"click"],[2,"float","right","margin-top","-12px",3,"disabled","ngModel","change","ngModelChange"],["mat-stroked-button","","color","warn",2,"float","right",3,"click"],[2,"margin-left","20px","margin-right","20px"],[1,"big"],[1,"container",2,"padding-bottom","20px"],[1,"col-12","col-sm-6"],["color","accent",2,"z-index","999",3,"disabled","ngModel","ngModelOptions","change","ngModelChange"],["mat-icon-button","",1,"edit-button",3,"click"],["color","accent",1,"advanced-input",2,"margin-bottom","42px"],["matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],["target","_blank","href","https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template"],["class","col-12 col-sm-6 mt-2",4,"ngIf"],[1,"col-12","col-sm-6","mt-2"],["color","accent",1,"advanced-input"],["color","accent",1,"advanced-input",2,"margin-top","31px"],["type","password","matInput","",3,"ngModel","ngModelOptions","disabled","ngModelChange",6,"placeholder"],[1,"big","demo-basic",2,"margin-top","15px"],[1,"container"],["class","row",4,"ngFor","ngForOf"],[2,"width","100%",3,"download","queueNumber","cancelDownload"],["style","position: relative",4,"ngIf"],["id","bar_div",1,"centered","big"],[1,"margined"],["style","display: inline-block; width: 100%; padding-left: 20px",3,"ngClass",4,"ngIf","ngIfElse"],["class","spinner",4,"ngIf"],["indeterminateprogress",""],[2,"display","inline-block","width","100%","padding-left","20px",3,"ngClass"],["mode","determinate",3,"value"],[1,"spinner"],["mode","indeterminate"],[2,"margin","20px"],[1,"big",3,"opened","closed","mouseleave","mouseenter"],[4,"ngIf","ngIfElse"],["rowHeight","150px",2,"margin-bottom","15px",3,"cols","resize"],[2,"width","100%","text-align","center","margin-top","10px"],["rowHeight","150px",3,"cols","resize",4,"ngIf"],[1,"add-playlist-button"],["mat-fab","",3,"click"],[3,"file","title","name","thumbnailURL","length","isAudio","use_youtubedl_archive","removeFile"],["audiofilecard",""],["class","download-progress-bar","mode","indeterminate",4,"ngIf"],["mode","indeterminate",1,"download-progress-bar"],["rowHeight","150px",3,"cols","resize"],[3,"title","name","thumbnailURL","length","isAudio","isPlaylist","count","use_youtubedl_archive","removeFile"],["videofilecard",""]],template:function(t,e){if(1&t&&(a.zc(0,"br"),a.Dc(1,"div",0),a.Dc(2,"mat-card",1),a.Dc(3,"mat-card-title"),a.Bc(4),a.Hc(5,tD),a.Ac(),a.Cc(),a.Dc(6,"mat-card-content"),a.Dc(7,"div",2),a.Dc(8,"form",3),a.Dc(9,"div",4),a.Dc(10,"div",5),a.Dc(11,"div",6),a.Dc(12,"mat-form-field",7),a.Dc(13,"input",8,9),a.Nc("ngModelChange",(function(t){return e.inputChanged(t)}))("ngModelChange",(function(t){return e.url=t})),a.Cc(),a.qd(15,hD,3,0,"mat-error",10),a.Dc(16,"button",11),a.Nc("click",(function(){return e.clearInput()})),a.Dc(17,"mat-icon"),a.sd(18,"clear"),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.qd(19,yD,8,5,"div",12),a.Cc(),a.Cc(),a.qd(20,OD,2,1,"div",13),a.Cc(),a.zc(21,"br"),a.Dc(22,"mat-checkbox",14),a.Nc("change",(function(t){return e.videoModeChanged(t)}))("ngModelChange",(function(t){return e.audioOnly=t})),a.Bc(23),a.Hc(24,eD),a.Ac(),a.Cc(),a.qd(25,SD,3,2,"mat-checkbox",15),a.Cc(),a.Cc(),a.Dc(26,"mat-card-actions"),a.Dc(27,"button",16),a.Nc("click",(function(){return e.downloadClicked()})),a.Bc(28),a.Hc(29,nD),a.Ac(),a.Cc(),a.qd(30,DD,3,0,"button",17),a.Cc(),a.Cc(),a.Cc(),a.qd(31,YD,39,19,"div",18),a.qd(32,ZD,4,1,"div",19),a.zc(33,"br"),a.qd(34,iE,7,3,"div",20),a.qd(35,aE,0,0,"ng-template",null,21,a.rd),a.qd(37,_E,20,4,"div",22),a.qd(38,bE,0,0,"ng-template",null,23,a.rd),a.qd(40,kE,0,0,"ng-template",null,24,a.rd)),2&t){var n=a.ed(36);a.kc(11),a.Xc("ngClass",e.allowQualitySelect?"col-sm-9":null),a.kc(2),a.Xc("ngModel",e.url)("placeholder","URL"+(e.youtubeSearchEnabled?" or search":""))("formControl",e.urlForm),a.kc(2),a.Xc("ngIf",e.urlError||e.urlForm.invalid),a.kc(4),a.Xc("ngIf",e.allowQualitySelect),a.kc(1),a.Xc("ngIf",e.results_showing),a.kc(2),a.Xc("disabled",e.current_download)("ngModel",e.audioOnly),a.kc(3),a.Xc("ngIf",e.allowMultiDownloadMode),a.kc(2),a.Xc("disabled",e.downloadingfile),a.kc(3),a.Xc("ngIf",!!e.current_download),a.kc(1),a.Xc("ngIf",e.allowAdvancedDownload),a.kc(1),a.Xc("ngIf",e.multiDownloadMode&&e.downloads.length>0&&!e.current_download),a.kc(2),a.Xc("ngIf",e.current_download&&e.current_download.downloading)("ngIfElse",n),a.kc(3),a.Xc("ngIf",e.fileManagerEnabled)}},styles:[".demo-card[_ngcontent-%COMP%]{margin:16px}.demo-basic[_ngcontent-%COMP%]{padding:0}.demo-basic[_ngcontent-%COMP%] .mat-card-content[_ngcontent-%COMP%]{padding:16px}mat-toolbar.top[_ngcontent-%COMP%]{height:60px;width:100%;text-align:center}.big[_ngcontent-%COMP%]{max-width:800px;margin:0 auto}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.example-full-width[_ngcontent-%COMP%]{width:100%}.example-80-width[_ngcontent-%COMP%]{width:80%}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:24px}.spinner[_ngcontent-%COMP%]{position:absolute;display:inline-block;margin-left:-28px;margin-top:-10px}.make-room-for-spinner[_ngcontent-%COMP%]{padding-right:40px}.equal-sizes[_ngcontent-%COMP%]{padding-right:20px}.search-card-title[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.input-clear-button[_ngcontent-%COMP%]{position:absolute;right:-10px;top:5px}.spinner-div[_ngcontent-%COMP%]{display:inline-block;position:absolute;top:15px;right:-40px}.margined[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.results-div[_ngcontent-%COMP%]{position:relative;top:-15px}.first-result-card[_ngcontent-%COMP%]{border-radius:4px 4px 0 0!important}.last-result-card[_ngcontent-%COMP%]{border-radius:0 0 4px 4px!important}.only-result-card[_ngcontent-%COMP%]{border-radius:4px!important}.result-card[_ngcontent-%COMP%]{height:120px;border-radius:0;padding-bottom:5px}.download-progress-bar[_ngcontent-%COMP%]{z-index:999;position:absolute;bottom:0;width:150px}.add-playlist-button[_ngcontent-%COMP%]{float:right}.advanced-input[_ngcontent-%COMP%]{width:100%}.edit-button[_ngcontent-%COMP%]{margin-left:10px;top:-5px}"]}),CE);sn.a.merge=Yl.a;var EE,AE,RE,PE,TE,IE,ME,jE=n("zuWl"),LE=n.n(jE);EE=$localize(_templateObject114()),AE=$localize(_templateObject115()),RE=$localize(_templateObject116()),PE=$localize(_templateObject117()),TE=$localize(_templateObject118()),IE=$localize(_templateObject119()),ME=$localize(_templateObject120());var NE,FE=((NE=function(){function t(e){_classCallCheck(this,t),this.data=e}return _createClass(t,[{key:"ngOnInit",value:function(){this.filesize=LE.a,this.data&&(this.file=this.data.file)}}]),t}()).\u0275fac=function(t){return new(t||NE)(a.yc(ud))},NE.\u0275cmp=a.sc({type:NE,selectors:[["app-video-info-dialog"]],decls:56,vars:8,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-label"],[1,"info-item-value"],["target","_blank",3,"href"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.sd(1),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"div",1),a.Dc(4,"div",2),a.Dc(5,"strong"),a.Bc(6),a.Hc(7,EE),a.Ac(),a.sd(8,"\xa0"),a.Cc(),a.Cc(),a.Dc(9,"div",3),a.sd(10),a.Cc(),a.Cc(),a.Dc(11,"div",1),a.Dc(12,"div",2),a.Dc(13,"strong"),a.Bc(14),a.Hc(15,AE),a.Ac(),a.sd(16,"\xa0"),a.Cc(),a.Cc(),a.Dc(17,"div",3),a.Dc(18,"a",4),a.sd(19),a.Cc(),a.Cc(),a.Cc(),a.Dc(20,"div",1),a.Dc(21,"div",2),a.Dc(22,"strong"),a.Bc(23),a.Hc(24,RE),a.Ac(),a.sd(25,"\xa0"),a.Cc(),a.Cc(),a.Dc(26,"div",3),a.sd(27),a.Cc(),a.Cc(),a.Dc(28,"div",1),a.Dc(29,"div",2),a.Dc(30,"strong"),a.Bc(31),a.Hc(32,PE),a.Ac(),a.sd(33,"\xa0"),a.Cc(),a.Cc(),a.Dc(34,"div",3),a.sd(35),a.Cc(),a.Cc(),a.Dc(36,"div",1),a.Dc(37,"div",2),a.Dc(38,"strong"),a.Bc(39),a.Hc(40,TE),a.Ac(),a.sd(41,"\xa0"),a.Cc(),a.Cc(),a.Dc(42,"div",3),a.sd(43),a.Cc(),a.Cc(),a.Dc(44,"div",1),a.Dc(45,"div",2),a.Dc(46,"strong"),a.Bc(47),a.Hc(48,IE),a.Ac(),a.sd(49,"\xa0"),a.Cc(),a.Cc(),a.Dc(50,"div",3),a.sd(51),a.Cc(),a.Cc(),a.Cc(),a.Dc(52,"mat-dialog-actions"),a.Dc(53,"button",5),a.Bc(54),a.Hc(55,ME),a.Ac(),a.Cc(),a.Cc()),2&t&&(a.kc(1),a.td(e.file.title),a.kc(9),a.td(e.file.title),a.kc(8),a.Xc("href",e.file.url,a.kd),a.kc(1),a.td(e.file.url),a.kc(8),a.td(e.file.uploader?e.file.uploader:"N/A"),a.kc(8),a.td(e.filesize(e.file.size)),a.kc(8),a.td(e.file.path),a.kc(8),a.td(e.file.upload_date))},directives:[vd,yd,_d,Xa,gd],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px;width:100%}.info-item-value[_ngcontent-%COMP%]{font-size:13px;display:inline-block;width:70%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.info-item-label[_ngcontent-%COMP%]{display:inline-block;width:30%;vertical-align:top}"]}),NE);function zE(t,e){t.className.includes(e)||(t.className+=" ".concat(e))}function BE(){return"undefined"!=typeof window?window.navigator:void 0}function VE(t){return Boolean(t.parentElement&&"picture"===t.parentElement.nodeName.toLowerCase())}function qE(t){return"img"===t.nodeName.toLowerCase()}function UE(t,e,n){return qE(t)?n&&"srcset"in t?t.srcset=e:t.src=e:t.style.backgroundImage="url('".concat(e,"')"),t}function HE(t){return function(e){for(var n=e.parentElement.getElementsByTagName("source"),i=0;i1&&void 0!==arguments[1]?arguments[1]:lA;return t.customObservable?t.customObservable:e(t)}}),uA=Object.assign({},QE,{isVisible:function(){return!0},getObservable:function(){return ze("load")},loadImage:function(t){return[t.imagePath]}}),hA=((nA=function(){function t(e,n,i,r){_classCallCheck(this,t),this.onLoad=new a.s,this.elementRef=e,this.ngZone=n,this.propertyChanges$=new Nc,this.platformId=i,this.hooks=function(t,e){var n=cA,i=e&&e.isBot?e.isBot:n.isBot;if(i(BE(),t))return Object.assign(uA,{isBot:i});if(!e)return n;var a={};return Object.assign(a,e.preset?e.preset:n),Object.keys(e).filter((function(t){return"preset"!==t})).forEach((function(t){a[t]=e[t]})),a}(i,r)}return _createClass(t,[{key:"ngOnChanges",value:function(){this.propertyChanges$.next({element:this.elementRef.nativeElement,imagePath:this.lazyImage,defaultImagePath:this.defaultImage,errorImagePath:this.errorImage,useSrcset:this.useSrcset,offset:this.offset?0|this.offset:0,scrollContainer:this.scrollTarget,customObservable:this.customObservable,decode:this.decode})}},{key:"ngAfterContentInit",value:function(){var t=this;if(Object(_e.J)(this.platformId)&&!this.hooks.isBot(BE(),this.platformId))return null;this.ngZone.runOutsideAngular((function(){t.scrollSubscription=t.propertyChanges$.pipe(He((function(e){return t.hooks.setup(e)})),bc((function(e){return t.hooks.getObservable(e).pipe(function(t,e){return function(n){return n.pipe(en((function(n){return t.isVisible({element:e.element,event:n,offset:e.offset,scrollContainer:e.scrollContainer})})),un(1),Object(qf.a)((function(){return t.loadImage(e)})),He((function(n){return t.setLoadedImage({element:e.element,imagePath:n,useSrcset:e.useSrcset})})),Object(rn.a)((function(){return!0})),jf((function(){return t.setErrorImage(e),ze(!1)})),He((function(){return t.finally(e)})))}}(t.hooks,e))}))).subscribe((function(e){return t.onLoad.emit(e)}))}))}},{key:"ngOnDestroy",value:function(){this.scrollSubscription&&this.scrollSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||nA)(a.yc(a.q),a.yc(a.F),a.yc(a.I),a.yc("options",8))},nA.\u0275dir=a.tc({type:nA,selectors:[["","lazyLoad",""]],inputs:{lazyImage:["lazyLoad","lazyImage"],defaultImage:"defaultImage",errorImage:"errorImage",scrollTarget:"scrollTarget",customObservable:"customObservable",offset:"offset",useSrcset:"useSrcset",decode:"decode"},outputs:{onLoad:"onLoad"},features:[a.ic]}),nA),dA=((aA=iA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(t){return{ngModule:iA,providers:[{provide:"options",useValue:t}]}}}]),t}()).\u0275mod=a.wc({type:aA}),aA.\u0275inj=a.vc({factory:function(t){return new(t||aA)}}),aA),fA=[[["","before-svg",""]],"*",[["","after-svg",""]]],mA=["[before-svg]","*","[after-svg]"],pA=["ngx-rect",""],gA=["ngx-svg-stop",""],vA=["ngx-facebook-preset",""],yA=["ngx-instagram-preset",""],_A=["ngx-circle",""],bA=["ngx-code-preset",""],kA=["ngx-bullet-list-preset",""],CA=["ngx-list-preset",""],wA=((oA=function(){function t(){_classCallCheck(this,t),this.width="400",this.height="130",this.primaryColor="#f3f3f3",this.secondaryColor="#ecebeb",this.speed="1000ms",this.preserveAspectRatio="xMidYMid meet"}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"viewBox",get:function(){return"0 0 ".concat(this.width," ").concat(this.height)}}]),t}()).\u0275fac=function(t){return new(t||oA)},oA.\u0275cmp=a.sc({type:oA,selectors:[["ngx-content-loading"]],inputs:{width:"width",height:"height",primaryColor:"primaryColor",secondaryColor:"secondaryColor",speed:"speed",preserveAspectRatio:"preserveAspectRatio"},ngContentSelectors:mA,decls:4,vars:2,consts:[["version","1.1"]],template:function(t,e){1&t&&(a.Wc(fA),a.Vc(0),a.Qc(),a.Dc(1,"svg",0),a.Vc(2,1),a.Cc(),a.Vc(3,2)),2&t&&(a.kc(1),a.lc("preserveAspectRatio",e.preserveAspectRatio)("viewBox",e.viewBox))},styles:[""],changeDetection:0}),oA),xA=((rA=function(){function t(e){_classCallCheck(this,t),this.content=e,this.clipPathId=OA(),this.linearGradientId=OA()}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"clipPathUrl",get:function(){return"url(#".concat(this.clipPathId,")")}},{key:"linearGradientUrl",get:function(){return"url(#".concat(this.linearGradientId,")")}}]),t}()).\u0275fac=function(t){return new(t||rA)(a.yc(wA))},rA.\u0275cmp=a.sc({type:rA,selectors:[["ngx-svg-element"]],decls:0,vars:0,template:function(t,e){},styles:[""],changeDetection:0}),rA);function OA(){return(performance.now()*Math.random()).toString()}var SA,DA,EA,AA,RA,PA,TA,IA,MA,jA,LA,NA,FA,zA,BA=((MA=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).content=t,n.rx="0",n.ry="1",n}return _inherits(e,t),e}(xA)).\u0275fac=function(t){return new(t||MA)(a.yc(wA))},MA.\u0275cmp=a.sc({type:MA,selectors:[["","ngx-rect",""]],inputs:{rx:"rx",ry:"ry",y:"y",x:"x",width:"width",height:"height",primaryColor:"primaryColor",secondaryColor:"secondaryColor",speed:"speed"},features:[a.hc],attrs:pA,decls:7,vars:22,consts:[["ngx-svg-stop","",3,"offset","values","speed","color"]],template:function(t,e){1&t&&(a.Qc(),a.zc(0,"rect"),a.Dc(1,"defs"),a.zc(2,"clipPath"),a.Dc(3,"linearGradient"),a.zc(4,"stop",0),a.zc(5,"stop",0),a.zc(6,"stop",0),a.Cc(),a.Cc()),2&t&&(a.lc("x",e.x)("y",e.y)("rx",e.rx)("ry",e.ry)("width",e.width)("fill",e.linearGradientUrl)("clipPath",e.clipPathUrl)("height",e.height),a.kc(2),a.lc("id",e.clipPathId),a.kc(1),a.lc("id",e.linearGradientId),a.kc(1),a.Xc("offset","0%")("values","-2; 1")("speed",e.content.speed)("color",e.content.primaryColor),a.kc(1),a.Xc("offset","50%")("values","-1.5; 1.5")("speed",e.content.speed)("color",e.content.secondaryColor),a.kc(1),a.Xc("offset","100%")("values","-1; 2")("speed",e.content.speed)("color",e.content.primaryColor))},directives:function(){return[VA]},styles:[""]}),MA),VA=((IA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||IA)},IA.\u0275cmp=a.sc({type:IA,selectors:[["","ngx-svg-stop",""]],hostVars:2,hostBindings:function(t,e){2&t&&a.lc("offset",e.offset)("stop-color",e.color)},inputs:{speed:"speed",values:"values",offset:"offset",color:"color"},attrs:gA,decls:1,vars:2,consts:[["attributeName","offset","repeatCount","indefinite"]],template:function(t,e){1&t&&(a.Qc(),a.zc(0,"animate",0)),2&t&&a.lc("values",e.values)("dur",e.speed)},styles:[""],changeDetection:0}),IA),qA=((TA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||TA)},TA.\u0275cmp=a.sc({type:TA,selectors:[["","ngx-facebook-preset",""]],attrs:vA,decls:6,vars:0,consts:[["ngx-circle","","cx","25","cy","25","r","25"],["ngx-rect","","width","100","height","5","y","15","x","60","rx","5","ry","5"],["ngx-rect","","width","60","height","5","y","30","x","60","rx","5","ry","5"],["ngx-rect","","width","170","height","5","y","65","x","0","rx","5","ry","5"],["ngx-rect","","width","220","height","5","y","80","x","0","rx","5","ry","5"],["ngx-rect","","width","130","height","5","y","95","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(a.Qc(),a.zc(0,"g",0),a.zc(1,"g",1),a.zc(2,"g",2),a.zc(3,"g",3),a.zc(4,"g",4),a.zc(5,"g",5))},directives:function(){return[HA,BA]},styles:[""],changeDetection:0}),TA),UA=((PA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||PA)},PA.\u0275cmp=a.sc({type:PA,selectors:[["","ngx-instagram-preset",""]],attrs:yA,decls:4,vars:0,consts:[["ngx-circle","","cx","25","cy","25","r","25"],["ngx-rect","","width","120","height","10","y","10","x","60","rx","5","ry","5"],["ngx-rect","","width","40","height","5","y","30","x","60","rx","5","ry","5"],["ngx-rect","","width","250","height","250","y","60","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(a.Qc(),a.zc(0,"g",0),a.zc(1,"g",1),a.zc(2,"g",2),a.zc(3,"g",3))},directives:function(){return[HA,BA]},styles:[""],changeDetection:0}),PA),HA=((RA=function(t){function e(t){var n;return _classCallCheck(this,e),(n=_possibleConstructorReturn(this,_getPrototypeOf(e).call(this,t))).content=t,n}return _inherits(e,t),e}(xA)).\u0275fac=function(t){return new(t||RA)(a.yc(wA))},RA.\u0275cmp=a.sc({type:RA,selectors:[["","ngx-circle",""]],inputs:{r:"r",cx:"cx",cy:"cy"},features:[a.hc],attrs:_A,decls:7,vars:19,consts:[["ngx-svg-stop","",3,"offset","values","speed","color"]],template:function(t,e){1&t&&(a.Qc(),a.zc(0,"circle"),a.Dc(1,"defs"),a.zc(2,"clipPath"),a.Dc(3,"linearGradient"),a.zc(4,"stop",0),a.zc(5,"stop",0),a.zc(6,"stop",0),a.Cc(),a.Cc()),2&t&&(a.lc("cx",e.cx)("cy",e.cy)("r",e.r)("fill",e.linearGradientUrl)("clipPath",e.clipPathUrl),a.kc(2),a.lc("id",e.clipPathId),a.kc(1),a.lc("id",e.linearGradientId),a.kc(1),a.Xc("offset","0%")("values","-2; 1")("speed",e.content.speed)("color",e.content.primaryColor),a.kc(1),a.Xc("offset","50%")("values","-1.5; 1.5")("speed",e.content.speed)("color",e.content.secondaryColor),a.kc(1),a.Xc("offset","100%")("values","-1; 2")("speed",e.content.speed)("color",e.content.primaryColor))},directives:[VA],styles:[""]}),RA),XA=((AA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||AA)},AA.\u0275cmp=a.sc({type:AA,selectors:[["","ngx-code-preset",""]],attrs:bA,decls:9,vars:0,consts:[["ngx-rect","","width","60","height","10","y","15","x","0","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","15","x","70","rx","5","ry","5"],["ngx-rect","","width","20","height","10","y","15","x","170","rx","5","ry","5"],["ngx-rect","","width","100","height","10","y","35","x","9","rx","5","ry","5"],["ngx-rect","","width","120","height","10","y","35","x","120","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","55","x","5","rx","5","ry","5"],["ngx-rect","","width","90","height","10","y","55","x","105","rx","5","ry","5"],["ngx-rect","","width","70","height","10","y","55","x","205","rx","5","ry","5"],["ngx-rect","","width","30","height","10","y","75","x","0","rx","5","ry","5"]],template:function(t,e){1&t&&(a.Qc(),a.zc(0,"g",0),a.zc(1,"g",1),a.zc(2,"g",2),a.zc(3,"g",3),a.zc(4,"g",4),a.zc(5,"g",5),a.zc(6,"g",6),a.zc(7,"g",7),a.zc(8,"g",8))},directives:[BA],encapsulation:2,changeDetection:0}),AA),GA=((EA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||EA)},EA.\u0275cmp=a.sc({type:EA,selectors:[["","ngx-bullet-list-preset",""]],attrs:kA,decls:8,vars:0,consts:[["ngx-circle","","cx","7","cy","7","r","7"],["ngx-circle","","cx","7","cy","37","r","7"],["ngx-circle","","cx","7","cy","67","r","7"],["ngx-circle","","cx","7","cy","97","r","7"],["ngx-rect","","width","200","height","12","y","2","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","32","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","62","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","12","y","92","x","20","rx","5","ry","5"]],template:function(t,e){1&t&&(a.Qc(),a.zc(0,"g",0),a.zc(1,"g",1),a.zc(2,"g",2),a.zc(3,"g",3),a.zc(4,"g",4),a.zc(5,"g",5),a.zc(6,"g",6),a.zc(7,"g",7))},directives:[HA,BA],encapsulation:2,changeDetection:0}),EA),WA=((DA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||DA)},DA.\u0275cmp=a.sc({type:DA,selectors:[["","ngx-list-preset",""]],attrs:CA,decls:6,vars:0,consts:[["ngx-rect","","width","200","height","10","y","0","x","0","rx","5","ry","5"],["ngx-rect","","width","180","height","10","y","20","x","20","rx","5","ry","5"],["ngx-rect","","width","160","height","10","y","40","x","20","rx","5","ry","5"],["ngx-rect","","width","200","height","10","y","60","x","0","rx","5","ry","5"],["ngx-rect","","width","180","height","10","y","80","x","20","rx","5","ry","5"],["ngx-rect","","width","60","height","10","y","100","x","20","rx","5","ry","5"]],template:function(t,e){1&t&&(a.Qc(),a.zc(0,"g",0),a.zc(1,"g",1),a.zc(2,"g",2),a.zc(3,"g",3),a.zc(4,"g",4),a.zc(5,"g",5))},directives:[BA],encapsulation:2,changeDetection:0}),DA),$A=((SA=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:SA}),SA.\u0275inj=a.vc({factory:function(t){return new(t||SA)},imports:[[_e.c]]}),SA);function YA(t,e){if(1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,FA),a.Ac(),a.sd(3),a.Cc()),2&t){var n=a.Rc();a.kc(3),a.ud("\xa0",n.count,"")}}function KA(t,e){1&t&&(a.Dc(0,"span"),a.Dc(1,"ngx-content-loading",14),a.Qc(),a.zc(2,"g",15),a.Cc(),a.Cc()),2&t&&(a.kc(1),a.Xc("width",500)("height",360))}function JA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",12),a.Dc(1,"img",13),a.Nc("error",(function(t){return a.id(n),a.Rc().onImgError(t)}))("onLoad",(function(t){return a.id(n),a.Rc().imageLoaded(t)})),a.Cc(),a.qd(2,KA,3,2,"span",5),a.Cc()}if(2&t){var i=a.Rc();a.kc(1),a.Xc("id",i.type)("lazyLoad",i.thumbnailURL)("customObservable",i.scrollAndLoad),a.kc(1),a.Xc("ngIf",!i.image_loaded)}}function QA(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",16),a.Nc("click",(function(){return a.id(n),a.Rc().deleteFile()})),a.Dc(1,"mat-icon"),a.sd(2,"delete_forever"),a.Cc(),a.Cc()}}function ZA(t,e){if(1&t&&(a.Dc(0,"button",17),a.Dc(1,"mat-icon"),a.sd(2,"more_vert"),a.Cc(),a.Cc()),2&t){a.Rc();var n=a.ed(16);a.Xc("matMenuTriggerFor",n)}}function tR(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",10),a.Nc("click",(function(){return a.id(n),a.Rc().deleteFile(!0)})),a.Dc(1,"mat-icon"),a.sd(2,"delete_forever"),a.Cc(),a.Bc(3),a.Hc(4,zA),a.Ac(),a.Cc()}}jA=$localize(_templateObject121()),LA=$localize(_templateObject122()),NA=$localize(_templateObject123()),FA=$localize(_templateObject124()),zA=$localize(_templateObject125());var eR,nR=((eR=function(){function t(e,n,i,r){_classCallCheck(this,t),this.postsService=e,this.snackBar=n,this.mainComponent=i,this.dialog=r,this.isAudio=!0,this.removeFile=new a.s,this.isPlaylist=!1,this.count=null,this.use_youtubedl_archive=!1,this.image_loaded=!1,this.image_errored=!1,this.scrollSubject=new Me.a,this.scrollAndLoad=sn.a.merge(sn.a.fromEvent(window,"scroll"),this.scrollSubject)}return _createClass(t,[{key:"ngOnInit",value:function(){this.type=this.isAudio?"audio":"video"}},{key:"deleteFile",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isPlaylist?this.removeFile.emit(this.name):this.postsService.deleteFile(this.name,this.isAudio,e).subscribe((function(e){!0===e?(t.openSnackBar("Delete success!","OK."),t.removeFile.emit(t.name)):t.openSnackBar("Delete failed!","OK.")}))}},{key:"openVideoInfoDialog",value:function(){this.dialog.open(FE,{data:{file:this.file},minWidth:"50vw"})}},{key:"onImgError",value:function(t){this.image_errored=!0}},{key:"onHoverResponse",value:function(){this.scrollSubject.next()}},{key:"imageLoaded",value:function(t){this.image_loaded=!0}},{key:"openSnackBar",value:function(t,e){this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||eR)(a.yc(zw),a.yc(m_),a.yc(DE),a.yc(md))},eR.\u0275cmp=a.sc({type:eR,selectors:[["app-file-card"]],inputs:{file:"file",title:"title",length:"length",name:"name",thumbnailURL:"thumbnailURL",isAudio:"isAudio",isPlaylist:"isPlaylist",count:"count",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{removeFile:"removeFile"},decls:28,vars:7,consts:[[1,"example-card","mat-elevation-z6"],[2,"padding","5px"],[2,"height","52px"],["href","javascript:void(0)",1,"file-link",3,"click"],[1,"max-two-lines"],[4,"ngIf"],["class","img-div",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"click",4,"ngIf"],["class","deleteButton","mat-icon-button","",3,"matMenuTriggerFor",4,"ngIf"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"id","lazyLoad","customObservable","error","onLoad"],[3,"width","height"],["ngx-rect","","width","500","height","360","y","0","x","0","rx","4","ry","4"],["mat-icon-button","",1,"deleteButton",3,"click"],["mat-icon-button","",1,"deleteButton",3,"matMenuTriggerFor"]],template:function(t,e){1&t&&(a.Dc(0,"mat-card",0),a.Dc(1,"div",1),a.Dc(2,"div",2),a.Dc(3,"div"),a.Dc(4,"b"),a.Dc(5,"a",3),a.Nc("click",(function(){return e.isPlaylist?e.mainComponent.goToPlaylist(e.name,e.type):e.mainComponent.goToFile(e.name,e.isAudio)})),a.sd(6),a.Cc(),a.Cc(),a.Cc(),a.Dc(7,"span",4),a.Bc(8),a.Hc(9,jA),a.Ac(),a.sd(10),a.Cc(),a.qd(11,YA,4,1,"div",5),a.Cc(),a.qd(12,JA,3,4,"div",6),a.Cc(),a.qd(13,QA,3,0,"button",7),a.qd(14,ZA,3,1,"button",8),a.Dc(15,"mat-menu",null,9),a.Dc(17,"button",10),a.Nc("click",(function(){return e.openVideoInfoDialog()})),a.Dc(18,"mat-icon"),a.sd(19,"info"),a.Cc(),a.Bc(20),a.Hc(21,LA),a.Ac(),a.Cc(),a.Dc(22,"button",10),a.Nc("click",(function(){return e.deleteFile()})),a.Dc(23,"mat-icon"),a.sd(24,"delete"),a.Cc(),a.Bc(25),a.Hc(26,NA),a.Ac(),a.Cc(),a.qd(27,tR,5,0,"button",11),a.Cc(),a.Cc()),2&t&&(a.kc(6),a.td(e.title),a.kc(4),a.ud("\xa0",e.name,""),a.kc(1),a.Xc("ngIf",e.isPlaylist),a.kc(1),a.Xc("ngIf",!e.image_errored&&e.thumbnailURL),a.kc(1),a.Xc("ngIf",e.isPlaylist),a.kc(1),a.Xc("ngIf",!e.isPlaylist),a.kc(13),a.Xc("ngIf",e.use_youtubedl_archive))},directives:[Al,_e.t,yg,dg,np,hA,wA,BA,Xa,Cg],styles:[".example-card[_ngcontent-%COMP%]{width:150px;height:125px;padding:0}.deleteButton[_ngcontent-%COMP%]{top:-5px;right:-5px;position:absolute}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:100%}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{height:60px;padding:0;margin:8px 0 0 -5px;width:calc(100% + 10px);overflow:hidden;border-radius:0 0 4px 4px}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;-webkit-box-orient:vertical;-webkit-line-clamp:2}.file-link[_ngcontent-%COMP%], .max-two-lines[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.file-link[_ngcontent-%COMP%]{width:80%;white-space:nowrap;display:block}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:125px!important}}"]}),eR);function iR(t,e){1&t&&(a.Dc(0,"div",6),a.zc(1,"mat-spinner",7),a.Cc()),2&t&&(a.kc(1),a.Xc("diameter",25))}var aR,rR=((aR=function(){function t(e,n){_classCallCheck(this,t),this.dialogRef=e,this.data=n,this.inputText="",this.inputSubmitted=!1,this.doneEmitter=null,this.onlyEmitOnDone=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.inputTitle=this.data.inputTitle,this.inputPlaceholder=this.data.inputPlaceholder,this.submitText=this.data.submitText,this.data.doneEmitter&&(this.doneEmitter=this.data.doneEmitter,this.onlyEmitOnDone=!0)}},{key:"enterPressed",value:function(){this.inputText&&(this.onlyEmitOnDone?(this.doneEmitter.emit(this.inputText),this.inputSubmitted=!0):this.dialogRef.close(this.inputText))}}]),t}()).\u0275fac=function(t){return new(t||aR)(a.yc(cd),a.yc(ud))},aR.\u0275cmp=a.sc({type:aR,selectors:[["app-input-dialog"]],decls:12,vars:6,consts:[["mat-dialog-title",""],["color","accent"],["matInput","",3,"ngModel","placeholder","keyup.enter","ngModelChange"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.sd(1),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"div"),a.Dc(4,"mat-form-field",1),a.Dc(5,"input",2),a.Nc("keyup.enter",(function(){return e.enterPressed()}))("ngModelChange",(function(t){return e.inputText=t})),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(6,"mat-dialog-actions"),a.Dc(7,"button",3),a.sd(8,"Cancel"),a.Cc(),a.Dc(9,"button",4),a.Nc("click",(function(){return e.enterPressed()})),a.sd(10),a.Cc(),a.qd(11,iR,2,1,"div",5),a.Cc()),2&t&&(a.kc(1),a.td(e.inputTitle),a.kc(4),a.Xc("ngModel",e.inputText)("placeholder",e.inputPlaceholder),a.kc(4),a.Xc("disabled",!e.inputText),a.kc(1),a.td(e.submitText),a.kc(1),a.Xc("ngIf",e.inputSubmitted))},directives:[vd,yd,Ph,pp,ur,_r,Xo,_d,Xa,gd,_e.t,bv],styles:[".mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),aR),oR=["*"],sR=["volumeBar"],lR=function(t){return{dragging:t}};function cR(t,e){if(1&t&&a.zc(0,"span",2),2&t){var n=e.$implicit;a.pd("width",null==n.$$style?null:n.$$style.width)("left",null==n.$$style?null:n.$$style.left)}}function uR(t,e){1&t&&a.zc(0,"span",2)}function hR(t,e){1&t&&(a.Dc(0,"span"),a.sd(1,"LIVE"),a.Cc())}function dR(t,e){if(1&t&&(a.Dc(0,"span"),a.sd(1),a.Sc(2,"vgUtc"),a.Cc()),2&t){var n=a.Rc();a.kc(1),a.td(a.Uc(2,1,n.getTime(),n.vgFormat))}}function fR(t,e){if(1&t&&(a.Dc(0,"option",4),a.sd(1),a.Cc()),2&t){var n=e.$implicit;a.Xc("value",n.id)("selected",!0===n.selected),a.kc(1),a.ud(" ",n.label," ")}}function mR(t,e){if(1&t&&(a.Dc(0,"option",4),a.sd(1),a.Cc()),2&t){var n=e.$implicit,i=a.Rc();a.Xc("value",n.qualityIndex.toString())("selected",n.qualityIndex===(null==i.bitrateSelected?null:i.bitrateSelected.qualityIndex)),a.kc(1),a.ud(" ",n.label," ")}}var pR,gR,vR,yR,_R,bR,kR,CR,wR,xR,OR,SR,DR,ER,AR,RR,PR,TR,IR,MR,jR,LR,NR,FR,zR,BR,VR,qR,UR,HR,XR=((UR=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||UR)},UR.\u0275prov=a.uc({token:UR,factory:UR.\u0275fac}),UR.VG_ENDED="ended",UR.VG_PAUSED="paused",UR.VG_PLAYING="playing",UR.VG_LOADING="waiting",UR),GR=((qR=function(){function t(){_classCallCheck(this,t),this.medias={},this.playerReadyEvent=new a.s(!0),this.isPlayerReady=!1}return _createClass(t,[{key:"onPlayerReady",value:function(t){this.fsAPI=t,this.isPlayerReady=!0,this.playerReadyEvent.emit(this)}},{key:"getDefaultMedia",value:function(){for(var t in this.medias)if(this.medias[t])return this.medias[t]}},{key:"getMasterMedia",value:function(){var t;for(var e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=this.medias[e];break}return t||this.getDefaultMedia()}},{key:"isMasterDefined",value:function(){var t=!1;for(var e in this.medias)if("true"===this.medias[e].vgMaster||!0===this.medias[e].vgMaster){t=!0;break}return t}},{key:"getMediaById",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.medias[t];return t&&"*"!==t||(e=this),e}},{key:"play",value:function(){for(var t in this.medias)this.medias[t]&&this.medias[t].play()}},{key:"pause",value:function(){for(var t in this.medias)this.medias[t]&&this.medias[t].pause()}},{key:"seekTime",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(var n in this.medias)this.medias[n]&&this.$$seek(this.medias[n],t,e)}},{key:"$$seek",value:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=t.duration;i?(this.isMasterDefined()&&(a=this.getMasterMedia().duration),n=e*a/100):n=e,t.currentTime=n}},{key:"addTextTrack",value:function(t,e,n){for(var i in this.medias)this.medias[i]&&this.$$addTextTrack(this.medias[i],t,e,n)}},{key:"$$addTextTrack",value:function(t,e,n,i){t.addTextTrack(e,n,i)}},{key:"$$getAllProperties",value:function(t){var e,n={};for(var i in this.medias)this.medias[i]&&(n[i]=this.medias[i]);switch(Object.keys(n).length){case 0:switch(t){case"state":e=XR.VG_PAUSED;break;case"playbackRate":case"volume":e=1;break;case"time":e={current:0,total:0,left:0}}break;case 1:e=n[Object.keys(n)[0]][t];break;default:e=n[this.getMasterMedia().id][t]}return e}},{key:"$$setAllProperties",value:function(t,e){for(var n in this.medias)this.medias[n]&&(this.medias[n][t]=e)}},{key:"registerElement",value:function(t){this.videogularElement=t}},{key:"registerMedia",value:function(t){this.medias[t.id]=t}},{key:"unregisterMedia",value:function(t){delete this.medias[t.id]}},{key:"duration",get:function(){return this.$$getAllProperties("duration")}},{key:"currentTime",set:function(t){this.$$setAllProperties("currentTime",t)},get:function(){return this.$$getAllProperties("currentTime")}},{key:"state",set:function(t){this.$$setAllProperties("state",t)},get:function(){return this.$$getAllProperties("state")}},{key:"volume",set:function(t){this.$$setAllProperties("volume",t)},get:function(){return this.$$getAllProperties("volume")}},{key:"playbackRate",set:function(t){this.$$setAllProperties("playbackRate",t)},get:function(){return this.$$getAllProperties("playbackRate")}},{key:"canPlay",get:function(){return this.$$getAllProperties("canPlay")}},{key:"canPlayThrough",get:function(){return this.$$getAllProperties("canPlayThrough")}},{key:"isMetadataLoaded",get:function(){return this.$$getAllProperties("isMetadataLoaded")}},{key:"isWaiting",get:function(){return this.$$getAllProperties("isWaiting")}},{key:"isCompleted",get:function(){return this.$$getAllProperties("isCompleted")}},{key:"isLive",get:function(){return this.$$getAllProperties("isLive")}},{key:"isMaster",get:function(){return this.$$getAllProperties("isMaster")}},{key:"time",get:function(){return this.$$getAllProperties("time")}},{key:"buffer",get:function(){return this.$$getAllProperties("buffer")}},{key:"buffered",get:function(){return this.$$getAllProperties("buffered")}},{key:"subscriptions",get:function(){return this.$$getAllProperties("subscriptions")}},{key:"textTracks",get:function(){return this.$$getAllProperties("textTracks")}}]),t}()).\u0275fac=function(t){return new(t||qR)},qR.\u0275prov=a.uc({token:qR,factory:qR.\u0275fac}),qR),WR=((VR=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.checkInterval=50,this.currentPlayPos=0,this.lastPlayPos=0,this.subscriptions=[],this.isBuffering=!1,this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){var t=this;this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.bufferDetected.subscribe((function(e){return t.onUpdateBuffer(e)})))}},{key:"onUpdateBuffer",value:function(t){this.isBuffering=t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||VR)(a.yc(a.q),a.yc(GR))},VR.\u0275cmp=a.sc({type:VR,selectors:[["vg-buffering"]],hostVars:2,hostBindings:function(t,e){2&t&&a.oc("is-buffering",e.isBuffering)},inputs:{vgFor:"vgFor"},decls:3,vars:0,consts:[[1,"vg-buffering"],[1,"bufferingContainer"],[1,"loadingSpinner"]],template:function(t,e){1&t&&(a.Dc(0,"div",0),a.Dc(1,"div",1),a.zc(2,"div",2),a.Cc(),a.Cc())},styles:["\n vg-buffering {\n display: none;\n z-index: 201;\n }\n vg-buffering.is-buffering {\n display: block;\n }\n\n .vg-buffering {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n }\n .vg-buffering .bufferingContainer {\n width: 100%;\n position: absolute;\n cursor: pointer;\n top: 50%;\n margin-top: -50px;\n zoom: 1;\n filter: alpha(opacity=60);\n opacity: 0.6;\n }\n /* Loading Spinner\n * http://www.alessioatzeni.com/blog/css3-loading-animation-loop/\n */\n .vg-buffering .loadingSpinner {\n background-color: rgba(0, 0, 0, 0);\n border: 5px solid rgba(255, 255, 255, 1);\n opacity: .9;\n border-top: 5px solid rgba(0, 0, 0, 0);\n border-left: 5px solid rgba(0, 0, 0, 0);\n border-radius: 50px;\n box-shadow: 0 0 35px #FFFFFF;\n width: 50px;\n height: 50px;\n margin: 0 auto;\n -moz-animation: spin .5s infinite linear;\n -webkit-animation: spin .5s infinite linear;\n }\n .vg-buffering .loadingSpinner .stop {\n -webkit-animation-play-state: paused;\n -moz-animation-play-state: paused;\n }\n @-moz-keyframes spin {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(360deg);\n }\n }\n @-moz-keyframes spinoff {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(-360deg);\n }\n }\n @-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n @-webkit-keyframes spinoff {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(-360deg);\n }\n }\n "],encapsulation:2}),VR),$R=((BR=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:BR}),BR.\u0275inj=a.vc({factory:function(t){return new(t||BR)},imports:[[_e.c]]}),BR),YR=((zR=function(){function t(){_classCallCheck(this,t),this.isHiddenSubject=new Me.a,this.isHidden=this.isHiddenSubject.asObservable()}return _createClass(t,[{key:"state",value:function(t){this.isHiddenSubject.next(t)}}]),t}()).\u0275fac=function(t){return new(t||zR)},zR.\u0275prov=a.uc({token:zR,factory:zR.\u0275fac}),zR),KR=((FR=function(){function t(e,n,i){_classCallCheck(this,t),this.API=e,this.ref=n,this.hidden=i,this.isAdsPlaying="initial",this.hideControls=!1,this.vgAutohide=!1,this.vgAutohideTime=3,this.subscriptions=[],this.elem=n.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.mouseMove$=Kl(this.API.videogularElement,"mousemove"),this.subscriptions.push(this.mouseMove$.subscribe(this.show.bind(this))),this.touchStart$=Kl(this.API.videogularElement,"touchstart"),this.subscriptions.push(this.touchStart$.subscribe(this.show.bind(this))),this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.play.subscribe(this.onPlay.bind(this))),this.subscriptions.push(this.target.subscriptions.pause.subscribe(this.onPause.bind(this))),this.subscriptions.push(this.target.subscriptions.startAds.subscribe(this.onStartAds.bind(this))),this.subscriptions.push(this.target.subscriptions.endAds.subscribe(this.onEndAds.bind(this)))}},{key:"ngAfterViewInit",value:function(){this.vgAutohide?this.hide():this.show()}},{key:"onPlay",value:function(){this.vgAutohide&&this.hide()}},{key:"onPause",value:function(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1)}},{key:"onStartAds",value:function(){this.isAdsPlaying="none"}},{key:"onEndAds",value:function(){this.isAdsPlaying="initial"}},{key:"hide",value:function(){this.vgAutohide&&(clearTimeout(this.timer),this.hideAsync())}},{key:"show",value:function(){clearTimeout(this.timer),this.hideControls=!1,this.hidden.state(!1),this.vgAutohide&&this.hideAsync()}},{key:"hideAsync",value:function(){var t=this;this.API.state===XR.VG_PLAYING&&(this.timer=setTimeout((function(){t.hideControls=!0,t.hidden.state(!0)}),1e3*this.vgAutohideTime))}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||FR)(a.yc(GR),a.yc(a.q),a.yc(YR))},FR.\u0275cmp=a.sc({type:FR,selectors:[["vg-controls"]],hostVars:4,hostBindings:function(t,e){2&t&&(a.pd("pointer-events",e.isAdsPlaying),a.oc("hide",e.hideControls))},inputs:{vgAutohide:"vgAutohide",vgAutohideTime:"vgAutohideTime",vgFor:"vgFor"},ngContentSelectors:oR,decls:1,vars:0,template:function(t,e){1&t&&(a.Wc(),a.Vc(0))},styles:["\n vg-controls {\n position: absolute;\n display: flex;\n width: 100%;\n height: 50px;\n z-index: 300;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-transition: bottom 1s;\n -khtml-transition: bottom 1s;\n -moz-transition: bottom 1s;\n -ms-transition: bottom 1s;\n transition: bottom 1s;\n }\n vg-controls.hide {\n bottom: -50px;\n }\n "],encapsulation:2}),FR),JR=((NR=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"getZIndex",value:function(){for(var t,e=1,n=document.getElementsByTagName("*"),i=0,a=n.length;ie&&(e=t+1);return e}},{key:"isMobileDevice",value:function(){return void 0!==window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")}},{key:"isiOSDevice",value:function(){return navigator.userAgent.match(/ip(hone|ad|od)/i)&&!navigator.userAgent.match(/(iemobile)[\/\s]?([\w\.]*)/i)}},{key:"isCordova",value:function(){return-1===document.URL.indexOf("http://")&&-1===document.URL.indexOf("https://")}}]),t}()).\u0275fac=function(t){return new(t||NR)},NR.\u0275prov=Object(a.uc)({factory:function(){return new NR},token:NR,providedIn:"root"}),NR),QR=((LR=function(){function t(){_classCallCheck(this,t),this.nativeFullscreen=!0,this.isFullscreen=!1,this.onChangeFullscreen=new a.s}return _createClass(t,[{key:"init",value:function(t,e){var n=this;this.videogularElement=t,this.medias=e;var i={w3:{enabled:"fullscreenEnabled",element:"fullscreenElement",request:"requestFullscreen",exit:"exitFullscreen",onchange:"fullscreenchange",onerror:"fullscreenerror"},newWebkit:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitRequestFullscreen",exit:"webkitExitFullscreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},oldWebkit:{enabled:"webkitIsFullScreen",element:"webkitCurrentFullScreenElement",request:"webkitRequestFullScreen",exit:"webkitCancelFullScreen",onchange:"webkitfullscreenchange",onerror:"webkitfullscreenerror"},moz:{enabled:"mozFullScreen",element:"mozFullScreenElement",request:"mozRequestFullScreen",exit:"mozCancelFullScreen",onchange:"mozfullscreenchange",onerror:"mozfullscreenerror"},ios:{enabled:"webkitFullscreenEnabled",element:"webkitFullscreenElement",request:"webkitEnterFullscreen",exit:"webkitExitFullscreen",onchange:"webkitendfullscreen",onerror:"webkitfullscreenerror"},ms:{enabled:"msFullscreenEnabled",element:"msFullscreenElement",request:"msRequestFullscreen",exit:"msExitFullscreen",onchange:"MSFullscreenChange",onerror:"MSFullscreenError"}};for(var a in i)if(i[a].enabled in document){this.polyfill=i[a];break}if(JR.isiOSDevice()&&(this.polyfill=i.ios),this.isAvailable=null!=this.polyfill,null!=this.polyfill){var r;switch(this.polyfill.onchange){case"mozfullscreenchange":r=document;break;case"webkitendfullscreen":r=this.medias.toArray()[0].elem;break;default:r=t}this.fsChangeSubscription=Kl(r,this.polyfill.onchange).subscribe((function(){n.onFullscreenChange()}))}}},{key:"onFullscreenChange",value:function(){this.isFullscreen=!!document[this.polyfill.element],this.onChangeFullscreen.emit(this.isFullscreen)}},{key:"toggleFullscreen",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.isFullscreen?this.exit():this.request(t)}},{key:"request",value:function(t){t||(t=this.videogularElement),this.isFullscreen=!0,this.onChangeFullscreen.emit(!0),this.isAvailable&&this.nativeFullscreen&&(JR.isMobileDevice()?((!this.polyfill.enabled&&t===this.videogularElement||JR.isiOSDevice())&&(t=this.medias.toArray()[0].elem),this.enterElementInFullScreen(t)):this.enterElementInFullScreen(this.videogularElement))}},{key:"enterElementInFullScreen",value:function(t){t[this.polyfill.request]()}},{key:"exit",value:function(){this.isFullscreen=!1,this.onChangeFullscreen.emit(!1),this.isAvailable&&this.nativeFullscreen&&document[this.polyfill.exit]()}}]),t}()).\u0275fac=function(t){return new(t||LR)},LR.\u0275prov=a.uc({token:LR,factory:LR.\u0275fac}),LR),ZR=((jR=function(){function t(e,n,i){_classCallCheck(this,t),this.API=n,this.fsAPI=i,this.isFullscreen=!1,this.subscriptions=[],this.ariaValue="normal mode",this.elem=e.nativeElement,this.subscriptions.push(this.fsAPI.onChangeFullscreen.subscribe(this.onChangeFullscreen.bind(this)))}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onChangeFullscreen",value:function(t){this.ariaValue=t?"fullscren mode":"normal mode",this.isFullscreen=t}},{key:"onClick",value:function(){this.changeFullscreenState()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeFullscreenState())}},{key:"changeFullscreenState",value:function(){var t=this.target;this.target instanceof GR&&(t=null),this.fsAPI.toggleFullscreen(t)}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||jR)(a.yc(a.q),a.yc(GR),a.yc(QR))},jR.\u0275cmp=a.sc({type:jR,selectors:[["vg-fullscreen"]],hostBindings:function(t,e){1&t&&a.Nc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},decls:1,vars:5,consts:[["tabindex","0","role","button","aria-label","fullscreen button",1,"icon"]],template:function(t,e){1&t&&a.zc(0,"div",0),2&t&&(a.oc("vg-icon-fullscreen",!e.isFullscreen)("vg-icon-fullscreen_exit",e.isFullscreen),a.lc("aria-valuetext",e.ariaValue))},styles:["\n vg-fullscreen {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n\n vg-fullscreen .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),jR),tP=((MR=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.subscriptions=[],this.ariaValue="unmuted",this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.currentVolume=this.target.volume}},{key:"onClick",value:function(){this.changeMuteState()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.changeMuteState())}},{key:"changeMuteState",value:function(){var t=this.getVolume();0===t?(0===this.target.volume&&0===this.currentVolume&&(this.currentVolume=1),this.target.volume=this.currentVolume):(this.currentVolume=t,this.target.volume=0)}},{key:"getVolume",value:function(){var t=this.target?this.target.volume:0;return this.ariaValue=t?"unmuted":"muted",t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||MR)(a.yc(a.q),a.yc(GR))},MR.\u0275cmp=a.sc({type:MR,selectors:[["vg-mute"]],hostBindings:function(t,e){1&t&&a.Nc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:9,consts:[["tabindex","0","role","button","aria-label","mute button",1,"icon"]],template:function(t,e){1&t&&a.zc(0,"div",0),2&t&&(a.oc("vg-icon-volume_up",e.getVolume()>=.75)("vg-icon-volume_down",e.getVolume()>=.25&&e.getVolume()<.75)("vg-icon-volume_mute",e.getVolume()>0&&e.getVolume()<.25)("vg-icon-volume_off",0===e.getVolume()),a.lc("aria-valuetext",e.ariaValue))},styles:["\n vg-mute {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-mute .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),MR),eP=((IR=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.subscriptions=[],this.elem=e.nativeElement,this.isDragging=!1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.ariaValue=100*this.getVolume()}},{key:"onClick",value:function(t){this.setVolume(this.calculateVolume(t.clientX))}},{key:"onMouseDown",value:function(t){this.mouseDownPosX=t.clientX,this.isDragging=!0}},{key:"onDrag",value:function(t){this.isDragging&&this.setVolume(this.calculateVolume(t.clientX))}},{key:"onStopDrag",value:function(t){this.isDragging&&(this.isDragging=!1,this.mouseDownPosX===t.clientX&&this.setVolume(this.calculateVolume(t.clientX)))}},{key:"arrowAdjustVolume",value:function(t){38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()+10)))):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.setVolume(Math.max(0,Math.min(100,100*this.getVolume()-10))))}},{key:"calculateVolume",value:function(t){var e=this.volumeBarRef.nativeElement.getBoundingClientRect();return(t-e.left)/e.width*100}},{key:"setVolume",value:function(t){this.target.volume=Math.max(0,Math.min(1,t/100)),this.ariaValue=100*this.target.volume}},{key:"getVolume",value:function(){return this.target?this.target.volume:0}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||IR)(a.yc(a.q),a.yc(GR))},IR.\u0275cmp=a.sc({type:IR,selectors:[["vg-volume"]],viewQuery:function(t,e){var n;1&t&&a.od(sR,!0),2&t&&a.dd(n=a.Oc())&&(e.volumeBarRef=n.first)},hostBindings:function(t,e){1&t&&a.Nc("mousemove",(function(t){return e.onDrag(t)}),!1,a.gd)("mouseup",(function(t){return e.onStopDrag(t)}),!1,a.gd)("keydown",(function(t){return e.arrowAdjustVolume(t)}))},inputs:{vgFor:"vgFor"},decls:5,vars:9,consts:[["tabindex","0","role","slider","aria-label","volume level","aria-level","polite","aria-valuemin","0","aria-valuemax","100","aria-orientation","horizontal",1,"volumeBar",3,"click","mousedown"],["volumeBar",""],[1,"volumeBackground",3,"ngClass"],[1,"volumeValue"],[1,"volumeKnob"]],template:function(t,e){1&t&&(a.Dc(0,"div",0,1),a.Nc("click",(function(t){return e.onClick(t)}))("mousedown",(function(t){return e.onMouseDown(t)})),a.Dc(2,"div",2),a.zc(3,"div",3),a.zc(4,"div",4),a.Cc(),a.Cc()),2&t&&(a.lc("aria-valuenow",e.ariaValue)("aria-valuetext",e.ariaValue+"%"),a.kc(2),a.Xc("ngClass",a.ad(7,lR,e.isDragging)),a.kc(1),a.pd("width",85*e.getVolume()+"%"),a.kc(1),a.pd("left",85*e.getVolume()+"%"))},directives:[_e.q],styles:["\n vg-volume {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 100px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-volume .volumeBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n }\n vg-volume .volumeBackground {\n display: flex;\n flex-grow: 1;\n height: 5px;\n pointer-events: none;\n background-color: #333;\n }\n vg-volume .volumeValue {\n display: flex;\n height: 5px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeKnob {\n position: absolute;\n width: 15px; height: 15px;\n left: 0; top: 50%;\n transform: translateY(-50%);\n border-radius: 15px;\n pointer-events: none;\n background-color: #FFF;\n transition:all 0.2s ease-out;\n }\n vg-volume .volumeBackground.dragging .volumeValue,\n vg-volume .volumeBackground.dragging .volumeKnob {\n transition: none;\n }\n "],encapsulation:2}),IR),nP=((TR=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.subscriptions=[],this.ariaValue=XR.VG_PAUSED,this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onClick",value:function(){this.playPause()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.playPause())}},{key:"playPause",value:function(){switch(this.getState()){case XR.VG_PLAYING:this.target.pause();break;case XR.VG_PAUSED:case XR.VG_ENDED:this.target.play()}}},{key:"getState",value:function(){return this.ariaValue=this.target?this.target.state:XR.VG_PAUSED,this.ariaValue}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||TR)(a.yc(a.q),a.yc(GR))},TR.\u0275cmp=a.sc({type:TR,selectors:[["vg-play-pause"]],hostBindings:function(t,e){1&t&&a.Nc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{vgFor:"vgFor"},decls:1,vars:6,consts:[["tabindex","0","role","button",1,"icon"]],template:function(t,e){1&t&&a.zc(0,"div",0),2&t&&(a.oc("vg-icon-pause","playing"===e.getState())("vg-icon-play_arrow","paused"===e.getState()||"ended"===e.getState()),a.lc("aria-label","paused"===e.getState()?"play":"pause")("aria-valuetext",e.ariaValue))},styles:["\n vg-play-pause {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-play-pause .icon {\n pointer-events: none;\n }\n "],encapsulation:2}),TR),iP=((PR=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.subscriptions=[],this.ariaValue=1,this.elem=e.nativeElement,this.playbackValues=["0.5","1.0","1.5","2.0"],this.playbackIndex=1}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"onClick",value:function(){this.updatePlaybackSpeed()}},{key:"onKeyDown",value:function(t){13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.updatePlaybackSpeed())}},{key:"updatePlaybackSpeed",value:function(){this.playbackIndex=++this.playbackIndex%this.playbackValues.length,this.target instanceof GR?this.target.playbackRate=this.playbackValues[this.playbackIndex]:this.target.playbackRate[this.vgFor]=this.playbackValues[this.playbackIndex]}},{key:"getPlaybackRate",value:function(){return this.ariaValue=this.target?this.target.playbackRate:1,this.ariaValue}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||PR)(a.yc(a.q),a.yc(GR))},PR.\u0275cmp=a.sc({type:PR,selectors:[["vg-playback-button"]],hostBindings:function(t,e){1&t&&a.Nc("click",(function(){return e.onClick()}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{playbackValues:"playbackValues",vgFor:"vgFor"},decls:2,vars:2,consts:[["tabindex","0","role","button","aria-label","playback speed button",1,"button"]],template:function(t,e){1&t&&(a.Dc(0,"span",0),a.sd(1),a.Cc()),2&t&&(a.lc("aria-valuetext",e.ariaValue),a.kc(1),a.ud(" ",e.getPlaybackRate(),"x "))},styles:["\n vg-playback-button {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n vg-playback-button .button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n }\n "],encapsulation:2}),PR),aP=((RR=function(){function t(e,n,i){var a=this;_classCallCheck(this,t),this.API=n,this.hideScrubBar=!1,this.vgSlider=!0,this.isSeeking=!1,this.wasPlaying=!1,this.subscriptions=[],this.elem=e.nativeElement,this.subscriptions.push(i.isHidden.subscribe((function(t){return a.onHideScrubBar(t)})))}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"seekStart",value:function(){this.target.canPlay&&(this.isSeeking=!0,this.target.state===XR.VG_PLAYING&&(this.wasPlaying=!0),this.target.pause())}},{key:"seekMove",value:function(t){if(this.isSeeking){var e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.time.current=e*this.target.time.total/100,this.target.seekTime(e,!0)}}},{key:"seekEnd",value:function(t){if(this.isSeeking=!1,this.target.canPlay){var e=Math.max(Math.min(100*t/this.elem.scrollWidth,99.9),0);this.target.seekTime(e,!0),this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}}},{key:"touchEnd",value:function(){this.isSeeking=!1,this.wasPlaying&&(this.wasPlaying=!1,this.target.play())}},{key:"getTouchOffset",value:function(t){for(var e=0,n=t.target;n;)e+=n.offsetLeft,n=n.offsetParent;return t.touches[0].pageX-e}},{key:"onMouseDownScrubBar",value:function(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(t.offsetX)))}},{key:"onMouseMoveScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(t.offsetX)}},{key:"onMouseUpScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekEnd(t.offsetX)}},{key:"onTouchStartScrubBar",value:function(t){this.target&&(this.target.isLive||(this.vgSlider?this.seekStart():this.seekEnd(this.getTouchOffset(t))))}},{key:"onTouchMoveScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.seekMove(this.getTouchOffset(t))}},{key:"onTouchCancelScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}},{key:"onTouchEndScrubBar",value:function(t){this.target&&!this.target.isLive&&this.vgSlider&&this.isSeeking&&this.touchEnd()}},{key:"arrowAdjustVolume",value:function(t){this.target&&(38===t.keyCode||39===t.keyCode?(t.preventDefault(),this.target.seekTime((this.target.time.current+5e3)/1e3,!1)):37!==t.keyCode&&40!==t.keyCode||(t.preventDefault(),this.target.seekTime((this.target.time.current-5e3)/1e3,!1)))}},{key:"getPercentage",value:function(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}},{key:"onHideScrubBar",value:function(t){this.hideScrubBar=t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||RR)(a.yc(a.q),a.yc(GR),a.yc(YR))},RR.\u0275cmp=a.sc({type:RR,selectors:[["vg-scrub-bar"]],hostVars:2,hostBindings:function(t,e){1&t&&a.Nc("mousedown",(function(t){return e.onMouseDownScrubBar(t)}))("mousemove",(function(t){return e.onMouseMoveScrubBar(t)}),!1,a.gd)("mouseup",(function(t){return e.onMouseUpScrubBar(t)}),!1,a.gd)("touchstart",(function(t){return e.onTouchStartScrubBar(t)}))("touchmove",(function(t){return e.onTouchMoveScrubBar(t)}),!1,a.gd)("touchcancel",(function(t){return e.onTouchCancelScrubBar(t)}),!1,a.gd)("touchend",(function(t){return e.onTouchEndScrubBar(t)}),!1,a.gd)("keydown",(function(t){return e.arrowAdjustVolume(t)})),2&t&&a.oc("hide",e.hideScrubBar)},inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},ngContentSelectors:oR,decls:2,vars:2,consts:[["tabindex","0","role","slider","aria-label","scrub bar","aria-level","polite","aria-valuemin","0","aria-valuemax","100",1,"scrubBar"]],template:function(t,e){1&t&&(a.Wc(),a.Dc(0,"div",0),a.Vc(1),a.Cc()),2&t&&a.lc("aria-valuenow",e.getPercentage())("aria-valuetext",e.getPercentage()+"%")},styles:["\n vg-scrub-bar {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: absolute;\n width: 100%;\n height: 5px;\n bottom: 50px;\n margin: 0;\n cursor: pointer;\n align-items: center;\n background: rgba(0, 0, 0, 0.75);\n z-index: 250;\n -webkit-transition: bottom 1s, opacity 0.5s;\n -khtml-transition: bottom 1s, opacity 0.5s;\n -moz-transition: bottom 1s, opacity 0.5s;\n -ms-transition: bottom 1s, opacity 0.5s;\n transition: bottom 1s, opacity 0.5s;\n }\n vg-scrub-bar .scrubBar {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n height: 100%;\n }\n vg-controls vg-scrub-bar {\n position: relative;\n bottom: 0;\n background: transparent;\n height: 50px;\n flex-grow: 1;\n flex-basis: 0;\n margin: 0 10px;\n -webkit-transition: initial;\n -khtml-transition: initial;\n -moz-transition: initial;\n -ms-transition: initial;\n transition: initial;\n }\n vg-scrub-bar.hide {\n bottom: 0;\n opacity: 0;\n }\n vg-controls vg-scrub-bar.hide {\n bottom: initial;\n opacity: initial;\n }\n "],encapsulation:2}),RR),rP=((AR=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getBufferTime",value:function(){var t="0%";return this.target&&this.target.buffer&&this.target.buffered.length&&(t=0===this.target.time.total?"0%":this.target.buffer.end/this.target.time.total*100+"%"),t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||AR)(a.yc(a.q),a.yc(GR))},AR.\u0275cmp=a.sc({type:AR,selectors:[["vg-scrub-bar-buffering-time"]],inputs:{vgFor:"vgFor"},decls:1,vars:2,consts:[[1,"background"]],template:function(t,e){1&t&&a.zc(0,"div",0),2&t&&a.pd("width",e.getBufferTime())},styles:["\n vg-scrub-bar-buffering-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-buffering-time .background {\n background-color: rgba(255, 255, 255, 0.3);\n }\n vg-controls vg-scrub-bar-buffering-time {\n position: absolute;\n top: calc(50% - 3px);\n }\n vg-controls vg-scrub-bar-buffering-time .background {\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n "],encapsulation:2}),AR),oP=((ER=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.onLoadedMetadataCalled=!1,this.cuePoints=[],this.subscriptions=[],this.totalCues=0,this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor),this.subscriptions.push(this.target.subscriptions.loadedMetadata.subscribe(this.onLoadedMetadata.bind(this))),this.onLoadedMetadataCalled&&this.onLoadedMetadata()}},{key:"onLoadedMetadata",value:function(){if(this.vgCuePoints){this.cuePoints=[];for(var t=0,e=this.vgCuePoints.length;t=0?this.vgCuePoints[t].endTime:this.vgCuePoints[t].startTime+1)-this.vgCuePoints[t].startTime),i="0",a="0";"number"==typeof n&&this.target.time.total&&(a=100*n/this.target.time.total+"%",i=100*this.vgCuePoints[t].startTime/Math.round(this.target.time.total/1e3)+"%"),this.vgCuePoints[t].$$style={width:a,left:i},this.cuePoints.push(this.vgCuePoints[t])}}}},{key:"updateCuePoints",value:function(){this.target?this.onLoadedMetadata():this.onLoadedMetadataCalled=!0}},{key:"ngOnChanges",value:function(t){t.vgCuePoints.currentValue&&this.updateCuePoints()}},{key:"ngDoCheck",value:function(){this.vgCuePoints&&this.totalCues!==this.vgCuePoints.length&&(this.totalCues=this.vgCuePoints.length,this.updateCuePoints())}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||ER)(a.yc(a.q),a.yc(GR))},ER.\u0275cmp=a.sc({type:ER,selectors:[["vg-scrub-bar-cue-points"]],inputs:{vgCuePoints:"vgCuePoints",vgFor:"vgFor"},features:[a.ic],decls:2,vars:1,consts:[[1,"cue-point-container"],["class","cue-point",3,"width","left",4,"ngFor","ngForOf"],[1,"cue-point"]],template:function(t,e){1&t&&(a.Dc(0,"div",0),a.qd(1,cR,1,4,"span",1),a.Cc()),2&t&&(a.kc(1),a.Xc("ngForOf",e.cuePoints))},directives:[_e.s],styles:["\n vg-scrub-bar-cue-points {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-cue-points .cue-point-container .cue-point {\n position: absolute;\n height: 5px;\n background-color: rgba(255, 204, 0, 0.7);\n }\n vg-controls vg-scrub-bar-cue-points {\n position: absolute;\n top: calc(50% - 3px);\n }\n "],encapsulation:2}),ER),sP=((DR=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.vgSlider=!1,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getPercentage",value:function(){return this.target?100*this.target.time.current/this.target.time.total+"%":"0%"}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||DR)(a.yc(a.q),a.yc(GR))},DR.\u0275cmp=a.sc({type:DR,selectors:[["vg-scrub-bar-current-time"]],inputs:{vgSlider:"vgSlider",vgFor:"vgFor"},decls:2,vars:3,consts:[[1,"background"],["class","slider",4,"ngIf"],[1,"slider"]],template:function(t,e){1&t&&(a.zc(0,"div",0),a.qd(1,uR,1,0,"span",1)),2&t&&(a.pd("width",e.getPercentage()),a.kc(1),a.Xc("ngIf",e.vgSlider))},directives:[_e.t],styles:["\n vg-scrub-bar-current-time {\n display: flex;\n width: 100%;\n height: 5px;\n pointer-events: none;\n position: absolute;\n }\n vg-scrub-bar-current-time .background {\n background-color: white;\n }\n vg-controls vg-scrub-bar-current-time {\n position: absolute;\n top: calc(50% - 3px);\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n vg-controls vg-scrub-bar-current-time .background {\n border: 1px solid white;\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n border-radius: 2px;\n }\n\n vg-scrub-bar-current-time .slider{\n background: white;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n box-shadow: 0px 0px 10px black;\n margin-top: -5px;\n margin-left: -10px;\n }\n "],encapsulation:2}),DR),lP=((SR=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"transform",value:function(t,e){var n=new Date(t),i=e,a=n.getUTCSeconds(),r=n.getUTCMinutes(),o=n.getUTCHours();return a<10&&(a="0"+a),r<10&&(r="0"+r),o<10&&(o="0"+o),i=(i=(i=i.replace(/ss/g,a)).replace(/mm/g,r)).replace(/hh/g,o)}}]),t}()).\u0275fac=function(t){return new(t||SR)},SR.\u0275pipe=a.xc({name:"vgUtc",type:SR,pure:!0}),SR),cP=((OR=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.vgProperty="current",this.vgFormat="mm:ss",this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor)}},{key:"getTime",value:function(){var t=0;return this.target&&(t=Math.round(this.target.time[this.vgProperty]),t=isNaN(t)||this.target.isLive?0:t),t}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||OR)(a.yc(a.q),a.yc(GR))},OR.\u0275cmp=a.sc({type:OR,selectors:[["vg-time-display"]],inputs:{vgProperty:"vgProperty",vgFormat:"vgFormat",vgFor:"vgFor"},ngContentSelectors:oR,decls:3,vars:2,consts:[[4,"ngIf"]],template:function(t,e){1&t&&(a.Wc(),a.qd(0,hR,2,0,"span",0),a.qd(1,dR,3,4,"span",0),a.Vc(2)),2&t&&(a.Xc("ngIf",null==e.target?null:e.target.isLive),a.kc(1),a.Xc("ngIf",!(null!=e.target&&e.target.isLive)))},directives:[_e.t],pipes:[lP],styles:["\n vg-time-display {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n height: 50px;\n width: 60px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n pointer-events: none;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n }\n "],encapsulation:2}),OR),uP=((xR=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.API.isPlayerReady?this.onPlayerReady():this.subscriptions.push(this.API.playerReadyEvent.subscribe((function(){return t.onPlayerReady()})))}},{key:"onPlayerReady",value:function(){this.target=this.API.getMediaById(this.vgFor);var t=Array.from(this.API.getMasterMedia().elem.children).filter((function(t){return"TRACK"===t.tagName})).filter((function(t){return"subtitles"===t.kind})).map((function(t){return{label:t.label,selected:!0===t.default,id:t.srclang}}));this.tracks=[].concat(_toConsumableArray(t),[{id:null,label:"Off",selected:t.every((function(t){return!1===t.selected}))}]);var e=this.tracks.filter((function(t){return!0===t.selected}))[0];this.trackSelected=e.id,this.ariaValue=e.label}},{key:"selectTrack",value:function(t){var e=this;this.trackSelected="null"===t?null:t,this.ariaValue="No track selected",Array.from(this.API.getMasterMedia().elem.textTracks).forEach((function(n){n.language===t?(e.ariaValue=n.label,n.mode="showing"):n.mode="hidden"}))}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||xR)(a.yc(a.q),a.yc(GR))},xR.\u0275cmp=a.sc({type:xR,selectors:[["vg-track-selector"]],inputs:{vgFor:"vgFor"},decls:5,vars:5,consts:[[1,"container"],[1,"track-selected"],["tabindex","0","aria-label","track selector",1,"trackSelector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(a.Dc(0,"div",0),a.Dc(1,"div",1),a.sd(2),a.Cc(),a.Dc(3,"select",2),a.Nc("change",(function(t){return e.selectTrack(t.target.value)})),a.qd(4,fR,2,3,"option",3),a.Cc(),a.Cc()),2&t&&(a.kc(1),a.oc("vg-icon-closed_caption",!e.trackSelected),a.kc(1),a.ud(" ",e.trackSelected||""," "),a.kc(1),a.lc("aria-valuetext",e.ariaValue),a.kc(1),a.Xc("ngForOf",e.tracks))},directives:[_e.s],styles:["\n vg-track-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-track-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-track-selector select.trackSelector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-track-selector select.trackSelector::-ms-expand {\n display: none;\n }\n vg-track-selector select.trackSelector option {\n color: #000;\n }\n vg-track-selector .track-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-track-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),xR),hP=((wR=function(){function t(e,n){_classCallCheck(this,t),this.API=n,this.onBitrateChange=new a.s,this.subscriptions=[],this.elem=e.nativeElement}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(t){t.bitrates.currentValue&&t.bitrates.currentValue.length&&this.bitrates.forEach((function(t){return t.label=(t.label||Math.round(t.bitrate/1e3)).toString()}))}},{key:"selectBitrate",value:function(t){this.bitrateSelected=this.bitrates[t],this.onBitrateChange.emit(this.bitrates[t])}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach((function(t){return t.unsubscribe()}))}}]),t}()).\u0275fac=function(t){return new(t||wR)(a.yc(a.q),a.yc(GR))},wR.\u0275cmp=a.sc({type:wR,selectors:[["vg-quality-selector"]],inputs:{bitrates:"bitrates"},outputs:{onBitrateChange:"onBitrateChange"},features:[a.ic],decls:5,vars:5,consts:[[1,"container"],[1,"quality-selected"],["tabindex","0","aria-label","quality selector",1,"quality-selector",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]],template:function(t,e){1&t&&(a.Dc(0,"div",0),a.Dc(1,"div",1),a.sd(2),a.Cc(),a.Dc(3,"select",2),a.Nc("change",(function(t){return e.selectBitrate(t.target.value)})),a.qd(4,mR,2,3,"option",3),a.Cc(),a.Cc()),2&t&&(a.kc(1),a.oc("vg-icon-hd",!e.bitrateSelected),a.kc(1),a.ud(" ",null==e.bitrateSelected?null:e.bitrateSelected.label," "),a.kc(1),a.lc("aria-valuetext",e.ariaValue),a.kc(1),a.Xc("ngForOf",e.bitrates))},directives:[_e.s],styles:["\n vg-quality-selector {\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: flex;\n justify-content: center;\n width: 50px;\n height: 50px;\n cursor: pointer;\n color: white;\n line-height: 50px;\n }\n vg-quality-selector .container {\n position: relative;\n display: flex;\n flex-grow: 1;\n align-items: center;\n\n padding: 0;\n margin: 5px;\n }\n vg-quality-selector select.quality-selector {\n width: 50px;\n padding: 5px 8px;\n border: none;\n background: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n color: transparent;\n font-size: 16px;\n }\n vg-quality-selector select.quality-selector::-ms-expand {\n display: none;\n }\n vg-quality-selector select.quality-selector option {\n color: #000;\n }\n vg-quality-selector .quality-selected {\n position: absolute;\n width: 100%;\n height: 50px;\n top: -6px;\n text-align: center;\n text-transform: uppercase;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n padding-top: 2px;\n pointer-events: none;\n }\n vg-quality-selector .vg-icon-closed_caption:before {\n width: 100%;\n }\n "],encapsulation:2}),wR),dP=((CR=function t(){_classCallCheck(this,t)}).\u0275mod=a.wc({type:CR}),CR.\u0275inj=a.vc({factory:function(t){return new(t||CR)},providers:[YR],imports:[[_e.c]]}),CR),fP=((kR=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||kR)},kR.\u0275prov=a.uc({token:kR,factory:kR.\u0275fac}),kR.VG_ABORT="abort",kR.VG_CAN_PLAY="canplay",kR.VG_CAN_PLAY_THROUGH="canplaythrough",kR.VG_DURATION_CHANGE="durationchange",kR.VG_EMPTIED="emptied",kR.VG_ENCRYPTED="encrypted",kR.VG_ENDED="ended",kR.VG_ERROR="error",kR.VG_LOADED_DATA="loadeddata",kR.VG_LOADED_METADATA="loadedmetadata",kR.VG_LOAD_START="loadstart",kR.VG_PAUSE="pause",kR.VG_PLAY="play",kR.VG_PLAYING="playing",kR.VG_PROGRESS="progress",kR.VG_RATE_CHANGE="ratechange",kR.VG_SEEK="seek",kR.VG_SEEKED="seeked",kR.VG_SEEKING="seeking",kR.VG_STALLED="stalled",kR.VG_SUSPEND="suspend",kR.VG_TIME_UPDATE="timeupdate",kR.VG_VOLUME_CHANGE="volumechange",kR.VG_WAITING="waiting",kR.VG_LOAD="load",kR.VG_ENTER="enter",kR.VG_EXIT="exit",kR.VG_START_ADS="startads",kR.VG_END_ADS="endads",kR),mP=((bR=function(){function t(e,n){_classCallCheck(this,t),this.api=e,this.ref=n,this.state=XR.VG_PAUSED,this.time={current:0,total:0,left:0},this.buffer={end:0},this.canPlay=!1,this.canPlayThrough=!1,this.isMetadataLoaded=!1,this.isWaiting=!1,this.isCompleted=!1,this.isLive=!1,this.isBufferDetected=!1,this.checkInterval=200,this.currentPlayPos=0,this.lastPlayPos=0,this.playAtferSync=!1,this.bufferDetected=new Me.a}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.elem=this.vgMedia.nodeName?this.vgMedia:this.vgMedia.elem,this.api.registerMedia(this),this.subscriptions={abort:Kl(this.elem,fP.VG_ABORT),canPlay:Kl(this.elem,fP.VG_CAN_PLAY),canPlayThrough:Kl(this.elem,fP.VG_CAN_PLAY_THROUGH),durationChange:Kl(this.elem,fP.VG_DURATION_CHANGE),emptied:Kl(this.elem,fP.VG_EMPTIED),encrypted:Kl(this.elem,fP.VG_ENCRYPTED),ended:Kl(this.elem,fP.VG_ENDED),error:Kl(this.elem,fP.VG_ERROR),loadedData:Kl(this.elem,fP.VG_LOADED_DATA),loadedMetadata:Kl(this.elem,fP.VG_LOADED_METADATA),loadStart:Kl(this.elem,fP.VG_LOAD_START),pause:Kl(this.elem,fP.VG_PAUSE),play:Kl(this.elem,fP.VG_PLAY),playing:Kl(this.elem,fP.VG_PLAYING),progress:Kl(this.elem,fP.VG_PROGRESS),rateChange:Kl(this.elem,fP.VG_RATE_CHANGE),seeked:Kl(this.elem,fP.VG_SEEKED),seeking:Kl(this.elem,fP.VG_SEEKING),stalled:Kl(this.elem,fP.VG_STALLED),suspend:Kl(this.elem,fP.VG_SUSPEND),timeUpdate:Kl(this.elem,fP.VG_TIME_UPDATE),volumeChange:Kl(this.elem,fP.VG_VOLUME_CHANGE),waiting:Kl(this.elem,fP.VG_WAITING),startAds:Kl(this.elem,fP.VG_START_ADS),endAds:Kl(this.elem,fP.VG_END_ADS),mutation:new sn.a((function(e){var n=new MutationObserver((function(t){e.next(t)}));return n.observe(t.elem,{childList:!0,attributes:!0}),function(){n.disconnect()}})),bufferDetected:this.bufferDetected},this.mutationObs=this.subscriptions.mutation.subscribe(this.onMutation.bind(this)),this.canPlayObs=this.subscriptions.canPlay.subscribe(this.onCanPlay.bind(this)),this.canPlayThroughObs=this.subscriptions.canPlayThrough.subscribe(this.onCanPlayThrough.bind(this)),this.loadedMetadataObs=this.subscriptions.loadedMetadata.subscribe(this.onLoadMetadata.bind(this)),this.waitingObs=this.subscriptions.waiting.subscribe(this.onWait.bind(this)),this.progressObs=this.subscriptions.progress.subscribe(this.onProgress.bind(this)),this.endedObs=this.subscriptions.ended.subscribe(this.onComplete.bind(this)),this.playingObs=this.subscriptions.playing.subscribe(this.onStartPlaying.bind(this)),this.playObs=this.subscriptions.play.subscribe(this.onPlay.bind(this)),this.pauseObs=this.subscriptions.pause.subscribe(this.onPause.bind(this)),this.timeUpdateObs=this.subscriptions.timeUpdate.subscribe(this.onTimeUpdate.bind(this)),this.volumeChangeObs=this.subscriptions.volumeChange.subscribe(this.onVolumeChange.bind(this)),this.errorObs=this.subscriptions.error.subscribe(this.onError.bind(this)),this.vgMaster&&this.api.playerReadyEvent.subscribe((function(){t.prepareSync()}))}},{key:"prepareSync",value:function(){var t=this,e=[];for(var n in this.api.medias)this.api.medias[n]&&e.push(this.api.medias[n].subscriptions.canPlay);this.canPlayAllSubscription=Sg(e).pipe(Object(rn.a)((function(){for(var e=arguments.length,n=new Array(e),i=0;i.3?(t.playAtferSync=t.state===XR.VG_PLAYING,t.pause(),t.api.medias[e].pause(),t.api.medias[e].currentTime=t.currentTime):t.playAtferSync&&(t.play(),t.api.medias[e].play(),t.playAtferSync=!1)}}))}},{key:"onMutation",value:function(t){for(var e=0,n=t.length;e0&&i.target.src.indexOf("blob:")<0){this.loadMedia();break}}else if("childList"===i.type&&i.removedNodes.length&&"source"===i.removedNodes[0].nodeName.toLowerCase()){this.loadMedia();break}}}},{key:"loadMedia",value:function(){var t=this;this.vgMedia.pause(),this.vgMedia.currentTime=0,this.stopBufferCheck(),this.isBufferDetected=!0,this.bufferDetected.next(this.isBufferDetected),setTimeout((function(){return t.vgMedia.load()}),10)}},{key:"play",value:function(){var t=this;if(!(this.playPromise||this.state!==XR.VG_PAUSED&&this.state!==XR.VG_ENDED))return this.playPromise=this.vgMedia.play(),this.playPromise&&this.playPromise.then&&this.playPromise.catch&&this.playPromise.then((function(){t.playPromise=null})).catch((function(){t.playPromise=null})),this.playPromise}},{key:"pause",value:function(){var t=this;this.playPromise?this.playPromise.then((function(){t.vgMedia.pause()})):this.vgMedia.pause()}},{key:"onCanPlay",value:function(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlay=!0,this.ref.detectChanges()}},{key:"onCanPlayThrough",value:function(t){this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected),this.canPlayThrough=!0,this.ref.detectChanges()}},{key:"onLoadMetadata",value:function(t){this.isMetadataLoaded=!0,this.time={current:0,left:0,total:1e3*this.duration},this.state=XR.VG_PAUSED;var e=Math.round(this.time.total);this.isLive=e===1/0,this.ref.detectChanges()}},{key:"onWait",value:function(t){this.isWaiting=!0,this.ref.detectChanges()}},{key:"onComplete",value:function(t){this.isCompleted=!0,this.state=XR.VG_ENDED,this.ref.detectChanges()}},{key:"onStartPlaying",value:function(t){this.state=XR.VG_PLAYING,this.ref.detectChanges()}},{key:"onPlay",value:function(t){this.state=XR.VG_PLAYING,this.vgMaster&&(this.syncSubscription&&!this.syncSubscription.closed||this.startSync()),this.startBufferCheck(),this.ref.detectChanges()}},{key:"onPause",value:function(t){this.state=XR.VG_PAUSED,this.vgMaster&&(this.playAtferSync||this.syncSubscription.unsubscribe()),this.stopBufferCheck(),this.ref.detectChanges()}},{key:"onTimeUpdate",value:function(t){var e=this.buffered.length-1;this.time={current:1e3*this.currentTime,total:this.time.total,left:1e3*(this.duration-this.currentTime)},e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}},{key:"onProgress",value:function(t){var e=this.buffered.length-1;e>=0&&(this.buffer={end:1e3*this.buffered.end(e)}),this.ref.detectChanges()}},{key:"onVolumeChange",value:function(t){this.ref.detectChanges()}},{key:"onError",value:function(t){this.ref.detectChanges()}},{key:"bufferCheck",value:function(){var t=1/this.checkInterval;this.currentPlayPos=this.currentTime,!this.isBufferDetected&&this.currentPlayPosthis.lastPlayPos+t&&(this.isBufferDetected=!1),this.bufferDetected.closed||this.bufferDetected.next(this.isBufferDetected),this.lastPlayPos=this.currentPlayPos}},{key:"startBufferCheck",value:function(){var t=this;this.checkBufferSubscription=fc(0,this.checkInterval).subscribe((function(){t.bufferCheck()}))}},{key:"stopBufferCheck",value:function(){this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.isBufferDetected=!1,this.bufferDetected.next(this.isBufferDetected)}},{key:"seekTime",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=n?t*this.duration/100:t,this.currentTime=e}},{key:"addTextTrack",value:function(t,e,n,i){var a=this.vgMedia.addTextTrack(t,e,n);return i&&(a.mode=i),a}},{key:"ngOnDestroy",value:function(){this.vgMedia.src="",this.mutationObs.unsubscribe(),this.canPlayObs.unsubscribe(),this.canPlayThroughObs.unsubscribe(),this.loadedMetadataObs.unsubscribe(),this.waitingObs.unsubscribe(),this.progressObs.unsubscribe(),this.endedObs.unsubscribe(),this.playingObs.unsubscribe(),this.playObs.unsubscribe(),this.pauseObs.unsubscribe(),this.timeUpdateObs.unsubscribe(),this.volumeChangeObs.unsubscribe(),this.errorObs.unsubscribe(),this.checkBufferSubscription&&this.checkBufferSubscription.unsubscribe(),this.syncSubscription&&this.syncSubscription.unsubscribe(),this.bufferDetected.complete(),this.bufferDetected.unsubscribe(),this.api.unregisterMedia(this)}},{key:"id",get:function(){var t=void 0;return this.vgMedia&&(t=this.vgMedia.id),t}},{key:"duration",get:function(){return this.vgMedia.duration}},{key:"currentTime",set:function(t){this.vgMedia.currentTime=t},get:function(){return this.vgMedia.currentTime}},{key:"volume",set:function(t){this.vgMedia.volume=t},get:function(){return this.vgMedia.volume}},{key:"playbackRate",set:function(t){this.vgMedia.playbackRate=t},get:function(){return this.vgMedia.playbackRate}},{key:"buffered",get:function(){return this.vgMedia.buffered}},{key:"textTracks",get:function(){return this.vgMedia.textTracks}}]),t}()).\u0275fac=function(t){return new(t||bR)(a.yc(GR),a.yc(a.j))},bR.\u0275dir=a.tc({type:bR,selectors:[["","vgMedia",""]],inputs:{vgMedia:"vgMedia",vgMaster:"vgMaster"}}),bR),pP=((_R=function(){function t(e){_classCallCheck(this,t),this.ref=e,this.onEnterCuePoint=new a.s,this.onUpdateCuePoint=new a.s,this.onExitCuePoint=new a.s,this.onCompleteCuePoint=new a.s,this.subscriptions=[],this.cuesSubscriptions=[],this.totalCues=0}return _createClass(t,[{key:"ngOnInit",value:function(){this.onLoad$=Kl(this.ref.nativeElement,fP.VG_LOAD),this.subscriptions.push(this.onLoad$.subscribe(this.onLoad.bind(this)))}},{key:"onLoad",value:function(t){if(t.target&&t.target.track){var e=t.target.track.cues;this.ref.nativeElement.cues=e,this.updateCuePoints(e)}else if(t.target&&t.target.textTracks&&t.target.textTracks.length){var n=t.target.textTracks[0].cues;this.ref.nativeElement.cues=n,this.updateCuePoints(n)}}},{key:"updateCuePoints",value:function(t){this.cuesSubscriptions.forEach((function(t){return t.unsubscribe()}));for(var e=0,n=t.length;e1),a.kc(1),a.Xc("ngIf",1===r.playlist.length)}}HR=$localize(_templateObject126());var AP,RP,PP=((AP=function(){function t(e,n,i,a,r){_classCallCheck(this,t),this.postsService=e,this.route=n,this.dialog=i,this.router=a,this.snackBar=r,this.playlist=[],this.original_playlist=null,this.playlist_updating=!1,this.currentIndex=0,this.currentItem=null,this.id=null,this.subscriptionName=null,this.subPlaylist=null,this.baseStreamPath=null,this.audioFolderPath=null,this.videoFolderPath=null,this.subscriptionFolderPath=null,this.downloading=!1}return _createClass(t,[{key:"onResize",value:function(t){this.innerWidth=window.innerWidth}},{key:"ngOnInit",value:function(){var t=this;this.innerWidth=window.innerWidth,this.fileNames=this.route.snapshot.paramMap.get("fileNames").split("|nvr|"),this.type=this.route.snapshot.paramMap.get("type"),this.id=this.route.snapshot.paramMap.get("id"),this.subscriptionName=this.route.snapshot.paramMap.get("subscriptionName"),this.subPlaylist=this.route.snapshot.paramMap.get("subPlaylist"),this.postsService.loadNavItems().subscribe((function(e){var n=t.postsService.debugMode?e:e.config_file;t.baseStreamPath=t.postsService.path,t.audioFolderPath=n.YoutubeDLMaterial.Downloader["path-audio"],t.videoFolderPath=n.YoutubeDLMaterial.Downloader["path-video"],t.subscriptionFolderPath=n.YoutubeDLMaterial.Subscriptions.subscriptions_base_path;var i=null;"audio"===t.type?i="audio/mp3":"video"===t.type?i="video/mp4":"subscription"===t.type?i="video/mp4":console.error("Must have valid file type! Use 'audio', 'video', or 'subscription'.");for(var a=0;a0)},directives:[_e.t,_e.q,gP,mP,ll,vb,_e.s,ul,ub,Xa,np,bv],styles:[".video-player[_ngcontent-%COMP%]{margin:0 auto;min-width:300px}.video-player[_ngcontent-%COMP%]:focus{outline:none}.audio-styles[_ngcontent-%COMP%]{height:50px;background-color:transparent;width:100%}.video-styles[_ngcontent-%COMP%]{width:80%} .mat-button-toggle-label-content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.container-video[_ngcontent-%COMP%]{max-width:100%;padding-left:0;padding-right:0}.progress-bar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:-1px}.spinner[_ngcontent-%COMP%]{width:50px;height:50px;bottom:3px;left:3px;position:absolute}.save-button[_ngcontent-%COMP%]{right:25px;position:absolute;bottom:25px}.favorite-button[_ngcontent-%COMP%]{left:25px;position:absolute;bottom:25px}.video-col[_ngcontent-%COMP%]{padding-right:0;padding-left:.01px}.save-icon[_ngcontent-%COMP%]{bottom:1px;position:relative}.update-playlist-button-div[_ngcontent-%COMP%]{float:right;margin-right:30px;margin-top:25px;margin-bottom:15px}.spinner-div[_ngcontent-%COMP%]{position:relative;display:inline-block;margin-right:12px;top:8px}"]}),AP);RP=$localize(_templateObject127());var TP,IP=["placeholder",$localize(_templateObject128())];TP=$localize(_templateObject129());var MP,jP,LP,NP,FP=["placeholder",$localize(_templateObject130())];function zP(t,e){if(1&t&&(a.Dc(0,"mat-option",17),a.sd(1),a.Cc()),2&t){var n=e.$implicit,i=a.Rc(2);a.Xc("value",n+(1===i.timerange_amount?"":"s")),a.kc(1),a.ud(" ",n+(1===i.timerange_amount?"":"s")," ")}}function BP(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",3),a.Bc(1),a.Hc(2,NP),a.Ac(),a.Dc(3,"mat-form-field",13),a.Dc(4,"input",14),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().timerange_amount=t})),a.Cc(),a.Cc(),a.Dc(5,"mat-select",15),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().timerange_unit=t})),a.qd(6,zP,2,2,"mat-option",16),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.kc(4),a.Xc("ngModel",i.timerange_amount),a.kc(1),a.Xc("ngModel",i.timerange_unit),a.kc(1),a.Xc("ngForOf",i.time_units)}}function VP(t,e){1&t&&(a.Dc(0,"div",18),a.zc(1,"mat-spinner",19),a.Cc()),2&t&&(a.kc(1),a.Xc("diameter",25))}MP=$localize(_templateObject131()),jP=$localize(_templateObject132()),LP=$localize(_templateObject133()),NP=$localize(_templateObject134());var qP,UP,HP,XP,GP,WP,$P,YP,KP=((qP=function(){function t(e,n,i){_classCallCheck(this,t),this.postsService=e,this.snackBar=n,this.dialogRef=i,this.timerange_unit="days",this.download_all=!0,this.url=null,this.name=null,this.subscribing=!1,this.time_units=["day","week","month","year"]}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"subscribeClicked",value:function(){var t=this;if(this.url&&""!==this.url){if(!this.download_all&&!this.timerange_amount)return void this.openSnackBar("You must specify an amount of time");this.subscribing=!0;var e=null;this.download_all||(e="now-"+this.timerange_amount.toString()+this.timerange_unit),this.postsService.createSubscription(this.url,this.name,e).subscribe((function(e){t.subscribing=!1,e.new_sub?t.dialogRef.close(e.new_sub):(e.error&&t.openSnackBar("ERROR: "+e.error),t.dialogRef.close())}))}}},{key:"openSnackBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||qP)(a.yc(zw),a.yc(m_),a.yc(cd))},qP.\u0275cmp=a.sc({type:qP,selectors:[["app-subscribe-dialog"]],decls:31,vars:6,consts:[["mat-dialog-title",""],[1,"container-fluid"],[1,"row"],[1,"col-12"],["color","accent"],["matInput","","required","","aria-required","true",3,"ngModel","ngModelChange",6,"placeholder"],["matInput","",3,"ngModel","ngModelChange",6,"placeholder"],[1,"col-12","mt-3"],[3,"ngModel","ngModelChange"],["class","col-12",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-button","","type","submit",3,"disabled","click"],["class","mat-spinner",4,"ngIf"],["color","accent",2,"width","50px","text-align","center"],["type","number","matInput","",3,"ngModel","ngModelChange"],["color","accent",1,"unit-select",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-spinner"],[3,"diameter"]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.Hc(1,RP),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"div",1),a.Dc(4,"div",2),a.Dc(5,"div",3),a.Dc(6,"mat-form-field",4),a.Dc(7,"input",5),a.Ic(8,IP),a.Nc("ngModelChange",(function(t){return e.url=t})),a.Cc(),a.Dc(9,"mat-hint"),a.Bc(10),a.Hc(11,TP),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(12,"div",3),a.Dc(13,"mat-form-field",4),a.Dc(14,"input",6),a.Ic(15,FP),a.Nc("ngModelChange",(function(t){return e.name=t})),a.Cc(),a.Dc(16,"mat-hint"),a.Bc(17),a.Hc(18,MP),a.Ac(),a.Cc(),a.Cc(),a.Cc(),a.Dc(19,"div",7),a.Dc(20,"mat-checkbox",8),a.Nc("ngModelChange",(function(t){return e.download_all=t})),a.Bc(21),a.Hc(22,jP),a.Ac(),a.Cc(),a.Cc(),a.qd(23,BP,7,3,"div",9),a.Cc(),a.Cc(),a.Cc(),a.Dc(24,"mat-dialog-actions"),a.Dc(25,"button",10),a.Bc(26),a.Hc(27,LP),a.Ac(),a.Cc(),a.Dc(28,"button",11),a.Nc("click",(function(){return e.subscribeClicked()})),a.sd(29,"Subscribe"),a.Cc(),a.qd(30,VP,2,1,"div",12),a.Cc()),2&t&&(a.kc(7),a.Xc("ngModel",e.url),a.kc(7),a.Xc("ngModel",e.name),a.kc(6),a.Xc("ngModel",e.download_all),a.kc(3),a.Xc("ngIf",!e.download_all),a.kc(5),a.Xc("disabled",!e.url),a.kc(2),a.Xc("ngIf",e.subscribing))},directives:[vd,yd,Ph,pp,ur,Bs,_r,Xo,wh,ql,_e.t,_d,Xa,gd,Lr,Zv,_e.s,Pa,bv],styles:[".unit-select[_ngcontent-%COMP%]{width:75px;margin-left:20px}.mat-spinner[_ngcontent-%COMP%]{margin-left:5%}"]}),qP);function JP(t,e){if(1&t&&(a.Dc(0,"div",1),a.Dc(1,"strong"),a.Bc(2),a.Hc(3,YP),a.Ac(),a.sd(4,"\xa0"),a.Cc(),a.Dc(5,"span",2),a.sd(6),a.Cc(),a.Cc()),2&t){var n=a.Rc();a.kc(6),a.td(n.sub.archive)}}UP=$localize(_templateObject135()),HP=$localize(_templateObject136()),XP=$localize(_templateObject137()),GP=$localize(_templateObject138()),WP=$localize(_templateObject139()),$P=$localize(_templateObject140()),YP=$localize(_templateObject141());var QP,ZP,tT,eT,nT,iT,aT,rT,oT=((QP=function(){function t(e,n,i){_classCallCheck(this,t),this.dialogRef=e,this.data=n,this.postsService=i,this.sub=null,this.unsubbedEmitter=null}return _createClass(t,[{key:"ngOnInit",value:function(){this.data&&(this.sub=this.data.sub,this.unsubbedEmitter=this.data.unsubbedEmitter)}},{key:"unsubscribe",value:function(){var t=this;this.postsService.unsubscribe(this.sub,!0).subscribe((function(e){t.unsubbedEmitter.emit(!0),t.dialogRef.close()}))}},{key:"downloadArchive",value:function(){this.postsService.downloadArchive(this.sub).subscribe((function(t){saveAs(t,"archive.txt")}))}}]),t}()).\u0275fac=function(t){return new(t||QP)(a.yc(cd),a.yc(ud),a.yc(zw))},QP.\u0275cmp=a.sc({type:QP,selectors:[["app-subscription-info-dialog"]],decls:36,vars:5,consts:[["mat-dialog-title",""],[1,"info-item"],[1,"info-item-value"],["class","info-item",4,"ngIf"],["mat-button","","mat-dialog-close",""],["mat-stroked-button","","color","accent",3,"click"],[1,"spacer"],["mat-button","","color","warn",3,"click"]],template:function(t,e){1&t&&(a.Dc(0,"h4",0),a.sd(1),a.Cc(),a.Dc(2,"mat-dialog-content"),a.Dc(3,"div",1),a.Dc(4,"strong"),a.Bc(5),a.Hc(6,UP),a.Ac(),a.sd(7,"\xa0"),a.Cc(),a.Dc(8,"span",2),a.sd(9),a.Cc(),a.Cc(),a.Dc(10,"div",1),a.Dc(11,"strong"),a.Bc(12),a.Hc(13,HP),a.Ac(),a.sd(14,"\xa0"),a.Cc(),a.Dc(15,"span",2),a.sd(16),a.Cc(),a.Cc(),a.Dc(17,"div",1),a.Dc(18,"strong"),a.Bc(19),a.Hc(20,XP),a.Ac(),a.sd(21,"\xa0"),a.Cc(),a.Dc(22,"span",2),a.sd(23),a.Cc(),a.Cc(),a.qd(24,JP,7,1,"div",3),a.Cc(),a.Dc(25,"mat-dialog-actions"),a.Dc(26,"button",4),a.Bc(27),a.Hc(28,GP),a.Ac(),a.Cc(),a.Dc(29,"button",5),a.Nc("click",(function(){return e.downloadArchive()})),a.Bc(30),a.Hc(31,WP),a.Ac(),a.Cc(),a.zc(32,"span",6),a.Dc(33,"button",7),a.Nc("click",(function(){return e.unsubscribe()})),a.Bc(34),a.Hc(35,$P),a.Ac(),a.Cc(),a.Cc()),2&t&&(a.kc(1),a.td(e.sub.name),a.kc(8),a.td(e.sub.isPlaylist?"Playlist":"Channel"),a.kc(7),a.td(e.sub.url),a.kc(7),a.td(e.sub.id),a.kc(1),a.Xc("ngIf",e.sub.archive))},directives:[vd,yd,_e.t,_d,Xa,gd],styles:[".info-item[_ngcontent-%COMP%]{margin-bottom:12px}.info-item-value[_ngcontent-%COMP%]{font-size:13px}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),QP);function sT(t,e){if(1&t&&(a.Dc(0,"strong"),a.sd(1),a.Cc()),2&t){var n=a.Rc().$implicit;a.kc(1),a.td(n.name)}}function lT(t,e){1&t&&(a.Dc(0,"div"),a.Bc(1),a.Hc(2,nT),a.Ac(),a.Cc())}function cT(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-list-item"),a.Dc(1,"a",9),a.Nc("click",(function(){a.id(n);var t=e.$implicit;return a.Rc().goToSubscription(t)})),a.qd(2,sT,2,1,"strong",10),a.qd(3,lT,3,0,"div",10),a.Cc(),a.Dc(4,"button",11),a.Nc("click",(function(){a.id(n);var t=e.$implicit;return a.Rc().showSubInfo(t)})),a.Dc(5,"mat-icon"),a.sd(6,"info"),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=e.$implicit;a.kc(2),a.Xc("ngIf",i.name),a.kc(1),a.Xc("ngIf",!i.name)}}function uT(t,e){1&t&&(a.Dc(0,"div",12),a.Dc(1,"p"),a.Hc(2,iT),a.Cc(),a.Cc())}function hT(t,e){1&t&&(a.Dc(0,"div",14),a.Bc(1),a.Hc(2,aT),a.Ac(),a.Cc())}function dT(t,e){if(1&t){var n=a.Ec();a.Dc(0,"mat-list-item"),a.Dc(1,"a",9),a.Nc("click",(function(){a.id(n);var t=e.$implicit;return a.Rc().goToSubscription(t)})),a.Dc(2,"strong"),a.sd(3),a.Cc(),a.qd(4,hT,3,0,"div",13),a.Cc(),a.Dc(5,"button",11),a.Nc("click",(function(){a.id(n);var t=e.$implicit;return a.Rc().showSubInfo(t)})),a.Dc(6,"mat-icon"),a.sd(7,"info"),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=e.$implicit;a.kc(3),a.td(i.name),a.kc(1),a.Xc("ngIf",!i.name)}}function fT(t,e){1&t&&(a.Dc(0,"div",12),a.Dc(1,"p"),a.Hc(2,rT),a.Cc(),a.Cc())}function mT(t,e){1&t&&(a.Dc(0,"div",15),a.zc(1,"mat-progress-bar",16),a.Cc())}ZP=$localize(_templateObject142()),tT=$localize(_templateObject143()),eT=$localize(_templateObject144()),nT=$localize(_templateObject145()),iT=$localize(_templateObject146()),aT=$localize(_templateObject147()),rT=$localize(_templateObject148());var pT,gT,vT,yT,_T,bT=((pT=function(){function t(e,n,i,a){_classCallCheck(this,t),this.dialog=e,this.postsService=n,this.router=i,this.snackBar=a,this.playlist_subscriptions=[],this.channel_subscriptions=[],this.subscriptions=null,this.subscriptions_loading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.getSubscriptions()}},{key:"getSubscriptions",value:function(){var t=this;this.subscriptions_loading=!0,this.subscriptions=null,this.channel_subscriptions=[],this.playlist_subscriptions=[],this.postsService.getAllSubscriptions().subscribe((function(e){if(t.subscriptions_loading=!1,t.subscriptions=e.subscriptions,t.subscriptions)for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"";this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||pT)(a.yc(md),a.yc(zw),a.yc(ow),a.yc(m_))},pT.\u0275cmp=a.sc({type:pT,selectors:[["app-subscriptions"]],decls:19,vars:5,consts:[[2,"text-align","center","margin-bottom","15px"],[2,"width","80%","margin","0 auto"],[2,"text-align","center"],[1,"sub-nav-list"],[4,"ngFor","ngForOf"],["style","width: 80%; margin: 0 auto; padding-left: 15px;",4,"ngIf"],[2,"text-align","center","margin-top","10px"],["style","margin: 0 auto; width: 80%",4,"ngIf"],["mat-fab","",1,"add-subscription-button",3,"click"],["matLine","","href","javascript:void(0)",1,"a-list-item",3,"click"],[4,"ngIf"],["mat-icon-button","",3,"click"],[2,"width","80%","margin","0 auto","padding-left","15px"],["class","content-loading-div",4,"ngIf"],[1,"content-loading-div"],[2,"margin","0 auto","width","80%"],["mode","indeterminate"]],template:function(t,e){1&t&&(a.zc(0,"br"),a.Dc(1,"h2",0),a.Hc(2,ZP),a.Cc(),a.zc(3,"mat-divider",1),a.zc(4,"br"),a.Dc(5,"h4",2),a.Hc(6,tT),a.Cc(),a.Dc(7,"mat-nav-list",3),a.qd(8,cT,7,2,"mat-list-item",4),a.Cc(),a.qd(9,uT,3,0,"div",5),a.Dc(10,"h4",6),a.Hc(11,eT),a.Cc(),a.Dc(12,"mat-nav-list",3),a.qd(13,dT,8,2,"mat-list-item",4),a.Cc(),a.qd(14,fT,3,0,"div",5),a.qd(15,mT,2,0,"div",7),a.Dc(16,"button",8),a.Nc("click",(function(){return e.openSubscribeDialog()})),a.Dc(17,"mat-icon"),a.sd(18,"add"),a.Cc(),a.Cc()),2&t&&(a.kc(8),a.Xc("ngForOf",e.channel_subscriptions),a.kc(1),a.Xc("ngIf",0===e.channel_subscriptions.length&&e.subscriptions),a.kc(4),a.Xc("ngForOf",e.playlist_subscriptions),a.kc(1),a.Xc("ngIf",0===e.playlist_subscriptions.length&&e.subscriptions),a.kc(1),a.Xc("ngIf",e.subscriptions_loading))},directives:[vp,Np,_e.s,_e.t,Xa,np,Up,aa,iv],styles:[".add-subscription-button[_ngcontent-%COMP%]{position:fixed;bottom:30px;right:30px}.subscription-card[_ngcontent-%COMP%]{height:200px;width:300px}.content-loading-div[_ngcontent-%COMP%]{position:absolute;width:200px;height:50px;bottom:-18px}.a-list-item[_ngcontent-%COMP%]{height:48px;padding-top:12px!important}.sub-nav-list[_ngcontent-%COMP%]{margin:0 auto;width:80%}"]}),pT);function kT(t,e){if(1&t){var n=a.Ec();a.Dc(0,"button",4),a.Nc("click",(function(){return a.id(n),a.Rc().deleteForever()})),a.Dc(1,"mat-icon"),a.sd(2,"delete_forever"),a.Cc(),a.Bc(3),a.Hc(4,_T),a.Ac(),a.Cc()}}function CT(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",10),a.Dc(1,"img",11),a.Nc("error",(function(t){return a.id(n),a.Rc().onImgError(t)})),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.kc(1),a.Xc("src",i.file.thumbnailURL,a.kd)}}gT=$localize(_templateObject149()),vT=$localize(_templateObject150()),yT=$localize(_templateObject151()),_T=$localize(_templateObject152());var wT,xT,OT=((wT=function(){function t(e,n,i){_classCallCheck(this,t),this.snackBar=e,this.postsService=n,this.dialog=i,this.image_errored=!1,this.image_loaded=!1,this.formattedDuration=null,this.use_youtubedl_archive=!1,this.goToFileEmit=new a.s,this.reloadSubscription=new a.s,this.scrollSubject=new Me.a,this.scrollAndLoad=sn.a.merge(sn.a.fromEvent(window,"scroll"),this.scrollSubject)}return _createClass(t,[{key:"ngOnInit",value:function(){var t,e,n,i,a;this.file.duration&&(this.formattedDuration=(t=this.file.duration,n=~~(t%3600/60),a="",(e=~~(t/3600))>0&&(a+=e+":"+(n<10?"0":"")),a+=n+":"+((i=~~t%60)<10?"0":""),a+=""+i))}},{key:"onImgError",value:function(t){this.image_errored=!0}},{key:"onHoverResponse",value:function(){this.scrollSubject.next()}},{key:"imageLoaded",value:function(t){this.image_loaded=!0}},{key:"goToFile",value:function(){this.goToFileEmit.emit(this.file.id)}},{key:"openSubscriptionInfoDialog",value:function(){this.dialog.open(FE,{data:{file:this.file},minWidth:"50vw"})}},{key:"deleteAndRedownload",value:function(){var t=this;this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!1).subscribe((function(e){t.reloadSubscription.emit(!0),t.openSnackBar("Successfully deleted file: '".concat(t.file.id,"'"),"Dismiss.")}))}},{key:"deleteForever",value:function(){var t=this;this.postsService.deleteSubscriptionFile(this.sub,this.file.id,!0).subscribe((function(e){t.reloadSubscription.emit(!0),t.openSnackBar("Successfully deleted file: '".concat(t.file.id,"'"),"Dismiss.")}))}},{key:"openSnackBar",value:function(t,e){this.snackBar.open(t,e,{duration:2e3})}}]),t}()).\u0275fac=function(t){return new(t||wT)(a.yc(m_),a.yc(zw),a.yc(md))},wT.\u0275cmp=a.sc({type:wT,selectors:[["app-subscription-file-card"]],inputs:{file:"file",sub:"sub",use_youtubedl_archive:"use_youtubedl_archive"},outputs:{goToFileEmit:"goToFileEmit",reloadSubscription:"reloadSubscription"},decls:27,vars:5,consts:[[2,"position","relative","width","fit-content"],[1,"duration-time"],["mat-icon-button","",1,"menuButton",3,"matMenuTriggerFor"],["action_menu","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["matRipple","",1,"example-card","mat-elevation-z6",3,"click"],[2,"padding","5px"],["class","img-div",4,"ngIf"],[1,"max-two-lines"],[1,"img-div"],["alt","Thumbnail",1,"image",3,"src","error"]],template:function(t,e){if(1&t&&(a.Dc(0,"div",0),a.Dc(1,"div",1),a.Bc(2),a.Hc(3,gT),a.Ac(),a.sd(4),a.Cc(),a.Dc(5,"button",2),a.Dc(6,"mat-icon"),a.sd(7,"more_vert"),a.Cc(),a.Cc(),a.Dc(8,"mat-menu",null,3),a.Dc(10,"button",4),a.Nc("click",(function(){return e.openSubscriptionInfoDialog()})),a.Dc(11,"mat-icon"),a.sd(12,"info"),a.Cc(),a.Bc(13),a.Hc(14,vT),a.Ac(),a.Cc(),a.Dc(15,"button",4),a.Nc("click",(function(){return e.deleteAndRedownload()})),a.Dc(16,"mat-icon"),a.sd(17,"restore"),a.Cc(),a.Bc(18),a.Hc(19,yT),a.Ac(),a.Cc(),a.qd(20,kT,5,0,"button",5),a.Cc(),a.Dc(21,"mat-card",6),a.Nc("click",(function(){return e.goToFile()})),a.Dc(22,"div",7),a.qd(23,CT,2,1,"div",8),a.Dc(24,"span",9),a.Dc(25,"strong"),a.sd(26),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Cc()),2&t){var n=a.ed(9);a.kc(4),a.ud("\xa0",e.formattedDuration," "),a.kc(1),a.Xc("matMenuTriggerFor",n),a.kc(15),a.Xc("ngIf",e.sub.archive&&e.use_youtubedl_archive),a.kc(3),a.Xc("ngIf",!e.image_errored&&e.file.thumbnailURL),a.kc(3),a.td(e.file.title)}},directives:[Xa,Cg,np,yg,dg,_e.t,Al,ba],styles:[".example-card[_ngcontent-%COMP%]{width:200px;height:200px;padding:0;cursor:pointer}.menuButton[_ngcontent-%COMP%]{right:0;top:-1px;position:absolute;z-index:999}.mat-icon-button[_ngcontent-%COMP%] .mat-button-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center}.image[_ngcontent-%COMP%]{width:200px;height:112.5px;-o-object-fit:cover;object-fit:cover}.example-full-width-height[_ngcontent-%COMP%]{width:100%;height:100%}.centered[_ngcontent-%COMP%]{margin:0 auto;top:50%;left:50%}.img-div[_ngcontent-%COMP%]{max-height:80px;padding:0;margin:32px 0 0 -5px;width:calc(100% + 10px)}.max-two-lines[_ngcontent-%COMP%]{display:-webkit-box;display:-moz-box;max-height:2.4em;line-height:1.2em;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2;bottom:5px;position:absolute}.duration-time[_ngcontent-%COMP%]{position:absolute;left:5px;top:5px;z-index:99999}@media (max-width:576px){.example-card[_ngcontent-%COMP%]{width:175px!important}.image[_ngcontent-%COMP%]{width:175px}}"]}),wT);function ST(t,e){if(1&t&&(a.Dc(0,"h2",9),a.sd(1),a.Cc()),2&t){var n=a.Rc();a.kc(1),a.ud(" ",n.subscription.name," ")}}xT=$localize(_templateObject153());var DT=["placeholder",$localize(_templateObject154())];function ET(t,e){if(1&t&&(a.Dc(0,"mat-option",25),a.sd(1),a.Cc()),2&t){var n=e.$implicit;a.Xc("value",n.value),a.kc(1),a.ud(" ",n.value.label," ")}}function AT(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div",26),a.Dc(1,"app-subscription-file-card",27),a.Nc("reloadSubscription",(function(){return a.id(n),a.Rc(2).getSubscription()}))("goToFileEmit",(function(t){return a.id(n),a.Rc(2).goToFile(t)})),a.Cc(),a.Cc()}if(2&t){var i=e.$implicit,r=a.Rc(2);a.kc(1),a.Xc("file",i)("sub",r.subscription)("use_youtubedl_archive",r.use_youtubedl_archive)}}function RT(t,e){if(1&t){var n=a.Ec();a.Dc(0,"div"),a.Dc(1,"div",10),a.Dc(2,"div",11),a.Dc(3,"div",12),a.Dc(4,"mat-select",13),a.Nc("ngModelChange",(function(t){return a.id(n),a.Rc().filterProperty=t}))("selectionChange",(function(t){return a.id(n),a.Rc().filterOptionChanged(t.value)})),a.qd(5,ET,2,2,"mat-option",14),a.Sc(6,"keyvalue"),a.Cc(),a.Cc(),a.Dc(7,"div",12),a.Dc(8,"button",15),a.Nc("click",(function(){return a.id(n),a.Rc().toggleModeChange()})),a.Dc(9,"mat-icon"),a.sd(10),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.zc(11,"div",16),a.Dc(12,"div",16),a.Dc(13,"h4",17),a.Hc(14,xT),a.Cc(),a.Cc(),a.Dc(15,"div",18),a.Dc(16,"mat-form-field",19),a.Dc(17,"input",20),a.Ic(18,DT),a.Nc("focus",(function(){return a.id(n),a.Rc().searchIsFocused=!0}))("blur",(function(){return a.id(n),a.Rc().searchIsFocused=!1}))("ngModelChange",(function(t){return a.id(n),a.Rc().search_text=t}))("ngModelChange",(function(t){return a.id(n),a.Rc().onSearchInputChanged(t)})),a.Cc(),a.Dc(19,"mat-icon",21),a.sd(20,"search"),a.Cc(),a.Cc(),a.Cc(),a.Cc(),a.Dc(21,"div",22),a.Dc(22,"div",23),a.qd(23,AT,2,3,"div",24),a.Cc(),a.Cc(),a.Cc()}if(2&t){var i=a.Rc();a.kc(4),a.Xc("ngModel",i.filterProperty),a.kc(1),a.Xc("ngForOf",a.Tc(6,6,i.filterProperties)),a.kc(5),a.td(i.descendingMode?"arrow_downward":"arrow_upward"),a.kc(6),a.Xc("ngClass",i.searchIsFocused?"search-bar-focused":"search-bar-unfocused"),a.kc(1),a.Xc("ngModel",i.search_text),a.kc(6),a.Xc("ngForOf",i.filtered_files)}}function PT(t,e){1&t&&a.zc(0,"mat-spinner",28),2&t&&a.Xc("diameter",50)}var TT,IT,MT,jT=((TT=function(){function t(e,n,i){_classCallCheck(this,t),this.postsService=e,this.route=n,this.router=i,this.id=null,this.subscription=null,this.files=null,this.filtered_files=null,this.use_youtubedl_archive=!1,this.search_mode=!1,this.search_text="",this.searchIsFocused=!1,this.descendingMode=!0,this.filterProperties={upload_date:{key:"upload_date",label:"Upload Date",property:"upload_date"},name:{key:"name",label:"Name",property:"title"},file_size:{key:"file_size",label:"File Size",property:"size"},duration:{key:"duration",label:"Duration",property:"duration"}},this.filterProperty=this.filterProperties.upload_date,this.downloading=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.route.snapshot.paramMap.get("id")&&(this.id=this.route.snapshot.paramMap.get("id"),this.getSubscription(),this.getConfig());var t=localStorage.getItem("filter_property");t&&this.filterProperties[t]&&(this.filterProperty=this.filterProperties[t])}},{key:"goBack",value:function(){this.router.navigate(["/subscriptions"])}},{key:"getSubscription",value:function(){var t=this;this.postsService.getSubscription(this.id).subscribe((function(e){t.subscription=e.subscription,t.files=e.files,t.search_mode?t.filterFiles(t.search_text):t.filtered_files=t.files,t.filterByProperty(t.filterProperty.property)}))}},{key:"getConfig",value:function(){var t=this;this.postsService.loadNavItems().subscribe((function(e){t.use_youtubedl_archive=(t.postsService.debugMode?e:e.config_file).YoutubeDLMaterial.Subscriptions.subscriptions_use_youtubedl_archive}))}},{key:"goToFile",value:function(t){localStorage.setItem("player_navigator",this.router.url),this.router.navigate(["/player",{fileNames:t,type:"subscription",subscriptionName:this.subscription.name,subPlaylist:this.subscription.isPlaylist}])}},{key:"onSearchInputChanged",value:function(t){t.length>0?(this.search_mode=!0,this.filterFiles(t)):this.search_mode=!1}},{key:"filterFiles",value:function(t){var e=t.toLowerCase();this.filtered_files=this.files.filter((function(t){return t.id.toLowerCase().includes(e)}))}},{key:"filterByProperty",value:function(t){this.filtered_files=this.filtered_files.sort(this.descendingMode?function(e,n){return e[t]>n[t]?-1:1}:function(e,n){return e[t]>n[t]?1:-1})}},{key:"filterOptionChanged",value:function(t){this.filterByProperty(t.property),localStorage.setItem("filter_property",t.key)}},{key:"toggleModeChange",value:function(){this.descendingMode=!this.descendingMode,this.filterByProperty(this.filterProperty.property)}},{key:"downloadContent",value:function(){for(var t=this,e=[],n=0;ns)&&void 0===t.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=m,l=p,a=d;var v=(1e4*(268435455&(m+=122192928e5))+p)%4294967296;u[c++]=v>>>24&255,u[c++]=v>>>16&255,u[c++]=v>>>8&255,u[c++]=255&v;var y=m/4294967296*1e4&268435455;u[c++]=y>>>8&255,u[c++]=255&y,u[c++]=y>>>24&15|16,u[c++]=y>>>16&255,u[c++]=d>>>8|128,u[c++]=255&d;for(var _=0;_<6;++_)u[c+_]=h[_];return e||o(u)}},xk4V:function(t,e,n){var i=n("4fRq"),a=n("I2ZF");t.exports=function(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||i)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var s=0;s<16;++s)e[r+s]=o[s];return e||a(o)}},zuWl:function(t,e,n){"use strict";!function(e){var n=/^(b|B)$/,i={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},a={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function r(t){var e,r,o,s,l,c,u,h,d,f,m,p,g,v,y,_=1 + + + + YoutubeDLMaterial + + + + + + + + + + + + + diff --git a/backend/public/main-es2015.f0acd462fc05c537ace2.js b/backend/public/main-es2015.f0acd462fc05c537ace2.js new file mode 100644 index 0000000..3f0f6b3 --- /dev/null +++ b/backend/public/main-es2015.f0acd462fc05c537ace2.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{0:function(e,t,n){e.exports=n("zUnb")},"2QA8":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2fFW":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));let r=!1;const o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("ZUHj"),o=n("l7GE"),s=n("51Dv"),i=n("lJxs"),u=n("Cfvw");function c(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(c((n,r)=>Object(u.a)(e(n,r)).pipe(Object(i.a)((e,o)=>t(n,e,r,o))),n)):("number"==typeof t&&(n=t),t=>t.lift(new a(e,n)))}class a{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}class l extends o.a{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7o/Q");class o extends r.a{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("n6bG"),o=n("gRHU"),s=n("quSY"),i=n("2QA8"),u=n("2fFW"),c=n("NJ4a");class a extends s.a{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=o.a;break;case 1:if(!e){this.destination=o.a;break}if("object"==typeof e){e instanceof a?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new l(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new l(this,e,t,n)}}[i.a](){return this}static create(e,t,n){const r=new a(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class l extends a{constructor(e,t,n,s){let i;super(),this._parentSubscriber=e;let u=this;Object(r.a)(t)?i=t:t&&(i=t.next,n=t.error,s=t.complete,t!==o.a&&(u=Object.create(t),Object(r.a)(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=i,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;u.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=u.a;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(c.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(c.a)(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(e,t,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return u.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(c.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"9ppp":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})()},Cfvw:function(e,t,n){"use strict";var r=n("HDdC"),o=n("SeVD"),s=n("quSY"),i=n("kJWO"),u=n("jZKg"),c=n("Lhse"),a=n("c2HN"),l=n("I55L");function d(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[i.a]}(e))return function(e,t){return new r.a(n=>{const r=new s.a;return r.add(t.schedule(()=>{const o=e[i.a]();r.add(o.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(Object(a.a)(e))return function(e,t){return new r.a(n=>{const r=new s.a;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(Object(l.a)(e))return Object(u.a)(e,t);if(function(e){return e&&"function"==typeof e[c.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new s.a;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(t.schedule(()=>{o=e[c.a](),r.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=o.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())})))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(o.a)(e))}n.d(t,"a",(function(){return d}))},DH7j:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))()},HDdC:function(e,t,n){"use strict";var r=n("7o/Q"),o=n("2QA8"),s=n("gRHU"),i=n("kJWO"),u=n("mCNh"),c=n("2fFW");n.d(t,"a",(function(){return a}));let a=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:i}=this,u=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[o.a])return e[o.a]()}return e||t||n?new r.a(e,t,n):new r.a(s.a)}(e,t,n);if(u.add(i?i.call(u,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),c.a.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u}_trySubscribe(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:o}=e;if(t||o)return!1;e=n&&n instanceof r.a?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=l(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(o){n(o),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[i.a](){return this}pipe(...e){return 0===e.length?this:Object(u.b)(e)(this)}toPromise(e){return new(e=l(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function l(e){if(e||(e=c.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},I55L:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>e&&"number"==typeof e.length&&"function"!=typeof e},KqfI:function(e,t,n){"use strict";function r(){}n.d(t,"a",(function(){return r}))},Lhse:function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",(function(){return o}));const o=r()},"N/DB":function(e,t){const n="undefined"!=typeof globalThis&&globalThis,r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,s="undefined"!=typeof global&&global,i=function(e,...t){if(i.translate){const n=i.translate(e,t);e=n[0],t=n[1]}let n=u(e[0],e.raw[0]);for(let r=1;r{throw e},0)}n.d(t,"a",(function(){return r}))},SeVD:function(e,t,n){"use strict";var r=n("ngJS"),o=n("NJ4a"),s=n("Lhse"),i=n("kJWO"),u=n("I55L"),c=n("c2HN"),a=n("XoHu");n.d(t,"a",(function(){return l}));const l=e=>{if(e&&"function"==typeof e[i.a])return l=e,e=>{const t=l[i.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(u.a)(e))return Object(r.a)(e);if(Object(c.a)(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o.a),e);if(e&&"function"==typeof e[s.a])return t=e,e=>{const n=t[s.a]();for(;;){const t=n.next();if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=Object(a.a)(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}var t,n,l}},SpAZ:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",(function(){return r}))},VRyK:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("HDdC"),o=n("z+Ro"),s=n("bHdf"),i=n("yCtX");function u(...e){let t=Number.POSITIVE_INFINITY,n=null,u=e[e.length-1];return Object(o.a)(u)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof u&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof r.a?e[0]:Object(s.a)(t)(Object(i.a)(e,n))}},XNiG:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var r=n("HDdC"),o=n("7o/Q"),s=n("quSY"),i=n("9ppp"),u=n("Ylt2"),c=n("2QA8");class a extends o.a{constructor(e){super(e),this.destination=e}}let l=(()=>{class e extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new a(this)}lift(e){const t=new d(this,this);return t.operator=e,t}next(e){if(this.closed)throw new i.a;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let o=0;onew d(e,t),e})();class d extends l{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):s.a.EMPTY}}},XoHu:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",(function(){return r}))},Ylt2:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("quSY");class o extends r.a{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},ZUHj:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("51Dv"),o=n("SeVD"),s=n("HDdC");function i(e,t,n,i,u=new r.a(e,n,i)){if(!u.closed)return t instanceof s.a?t.subscribe(u):Object(o.a)(t)(u)}},bHdf:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("5+tZ"),o=n("SpAZ");function s(e=Number.POSITIVE_INFINITY){return Object(r.a)(o.a,e)}},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",(function(){return r}))},crnd:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},fXoL:function(e,t,n){"use strict";n.d(t,"a",(function(){return Gs})),n.d(t,"b",(function(){return Bd})),n.d(t,"c",(function(){return Rd})),n.d(t,"d",(function(){return Td})),n.d(t,"e",(function(){return Od})),n.d(t,"f",(function(){return Yf})),n.d(t,"g",(function(){return Ff})),n.d(t,"h",(function(){return tf})),n.d(t,"i",(function(){return ye})),n.d(t,"j",(function(){return Cs})),n.d(t,"k",(function(){return ef})),n.d(t,"l",(function(){return nf})),n.d(t,"m",(function(){return Pu})),n.d(t,"n",(function(){return Lu})),n.d(t,"o",(function(){return Vu})),n.d(t,"p",(function(){return Ud})),n.d(t,"q",(function(){return Uu})),n.d(t,"r",(function(){return dn})),n.d(t,"s",(function(){return cd})),n.d(t,"t",(function(){return Q})),n.d(t,"u",(function(){return d})),n.d(t,"v",(function(){return Z})),n.d(t,"w",(function(){return Qs})),n.d(t,"x",(function(){return cc})),n.d(t,"y",(function(){return ac})),n.d(t,"z",(function(){return $d})),n.d(t,"A",(function(){return Zd})),n.d(t,"B",(function(){return ce})),n.d(t,"C",(function(){return If})),n.d(t,"D",(function(){return ue})),n.d(t,"E",(function(){return Cf})),n.d(t,"F",(function(){return sf})),n.d(t,"G",(function(){return f})),n.d(t,"H",(function(){return Ld})),n.d(t,"I",(function(){return jd})),n.d(t,"J",(function(){return Md})),n.d(t,"K",(function(){return ld})),n.d(t,"L",(function(){return Qu})),n.d(t,"M",(function(){return qu})),n.d(t,"N",(function(){return Zu})),n.d(t,"O",(function(){return Wu})),n.d(t,"P",(function(){return Xn})),n.d(t,"Q",(function(){return p})),n.d(t,"R",(function(){return Tf})),n.d(t,"S",(function(){return zd})),n.d(t,"T",(function(){return qd})),n.d(t,"U",(function(){return hc})),n.d(t,"V",(function(){return pf})),n.d(t,"W",(function(){return Ju})),n.d(t,"X",(function(){return gc})),n.d(t,"Y",(function(){return we})),n.d(t,"Z",(function(){return ri})),n.d(t,"ab",(function(){return Df})),n.d(t,"bb",(function(){return In})),n.d(t,"cb",(function(){return N})),n.d(t,"db",(function(){return re})),n.d(t,"eb",(function(){return kn})),n.d(t,"fb",(function(){return Jf})),n.d(t,"gb",(function(){return yf})),n.d(t,"hb",(function(){return Hu})),n.d(t,"ib",(function(){return Hd})),n.d(t,"jb",(function(){return ca})),n.d(t,"kb",(function(){return aa})),n.d(t,"lb",(function(){return Os})),n.d(t,"mb",(function(){return vl})),n.d(t,"nb",(function(){return Ss})),n.d(t,"ob",(function(){return Kn})),n.d(t,"pb",(function(){return nr})),n.d(t,"qb",(function(){return On})),n.d(t,"rb",(function(){return vn})),n.d(t,"sb",(function(){return Xf})),n.d(t,"tb",(function(){return _n})),n.d(t,"ub",(function(){return xn})),n.d(t,"vb",(function(){return Dn})),n.d(t,"wb",(function(){return Cn})),n.d(t,"xb",(function(){return En})),n.d(t,"yb",(function(){return Ca})),n.d(t,"zb",(function(){return Ep})),n.d(t,"Ab",(function(){return Tc})),n.d(t,"Bb",(function(){return Ua})),n.d(t,"Cb",(function(){return eh})),n.d(t,"Db",(function(){return gl})),n.d(t,"Eb",(function(){return Gf})),n.d(t,"Fb",(function(){return ml})),n.d(t,"Gb",(function(){return yl})),n.d(t,"Hb",(function(){return bn})),n.d(t,"Ib",(function(){return j})),n.d(t,"Jb",(function(){return ia})),n.d(t,"Kb",(function(){return sa})),n.d(t,"Lb",(function(){return oi})),n.d(t,"Mb",(function(){return Ai})),n.d(t,"Nb",(function(){return xi})),n.d(t,"Ob",(function(){return ti})),n.d(t,"Pb",(function(){return ga})),n.d(t,"Qb",(function(){return pa})),n.d(t,"Rb",(function(){return lh})),n.d(t,"Sb",(function(){return Oa})),n.d(t,"Tb",(function(){return hh})),n.d(t,"Ub",(function(){return za})),n.d(t,"Vb",(function(){return ph})),n.d(t,"Wb",(function(){return fh})),n.d(t,"Xb",(function(){return qa})),n.d(t,"Yb",(function(){return sh})),n.d(t,"Zb",(function(){return pl})),n.d(t,"ac",(function(){return Ql})),n.d(t,"bc",(function(){return Et})),n.d(t,"cc",(function(){return k})),n.d(t,"dc",(function(){return mh})),n.d(t,"ec",(function(){return Nc})),n.d(t,"fc",(function(){return wn})),n.d(t,"gc",(function(){return vh})),n.d(t,"hc",(function(){return wu})),n.d(t,"ic",(function(){return Eu})),n.d(t,"jc",(function(){return Ru})),n.d(t,"kc",(function(){return Hr})),n.d(t,"lc",(function(){return li})),n.d(t,"mc",(function(){return Wi})),n.d(t,"nc",(function(){return lu})),n.d(t,"oc",(function(){return Gi})),n.d(t,"pc",(function(){return ki})),n.d(t,"qc",(function(){return Dd})),n.d(t,"rc",(function(){return ir})),n.d(t,"sc",(function(){return Ce})),n.d(t,"tc",(function(){return Se})),n.d(t,"uc",(function(){return w})),n.d(t,"vc",(function(){return v})),n.d(t,"wc",(function(){return Fe})),n.d(t,"xc",(function(){return Ne})),n.d(t,"yc",(function(){return pi})),n.d(t,"zc",(function(){return _i})),n.d(t,"Ac",(function(){return Di})),n.d(t,"Bc",(function(){return Ci})),n.d(t,"Cc",(function(){return bi})),n.d(t,"Dc",(function(){return vi})),n.d(t,"Ec",(function(){return Ei})),n.d(t,"Fc",(function(){return un})),n.d(t,"Gc",(function(){return du})),n.d(t,"Hc",(function(){return jl})),n.d(t,"Ic",(function(){return Bl})),n.d(t,"Jc",(function(){return ne})),n.d(t,"Kc",(function(){return gi})),n.d(t,"Lc",(function(){return Nd})),n.d(t,"Mc",(function(){return mi})),n.d(t,"Nc",(function(){return Fi})),n.d(t,"Oc",(function(){return Ad})),n.d(t,"Pc",(function(){return gt})),n.d(t,"Qc",(function(){return pt})),n.d(t,"Rc",(function(){return Ti})),n.d(t,"Sc",(function(){return rd})),n.d(t,"Tc",(function(){return od})),n.d(t,"Uc",(function(){return sd})),n.d(t,"Vc",(function(){return Mi})),n.d(t,"Wc",(function(){return Ri})),n.d(t,"Xc",(function(){return yi})),n.d(t,"Yc",(function(){return ji})),n.d(t,"Zc",(function(){return Kl})),n.d(t,"ad",(function(){return Yl})),n.d(t,"bd",(function(){return Xl})),n.d(t,"cd",(function(){return ed})),n.d(t,"dd",(function(){return vd})),n.d(t,"ed",(function(){return hi})),n.d(t,"fd",(function(){return $t})),n.d(t,"gd",(function(){return Ht})),n.d(t,"hd",(function(){return Lt})),n.d(t,"id",(function(){return Ze})),n.d(t,"jd",(function(){return rr})),n.d(t,"kd",(function(){return sr})),n.d(t,"ld",(function(){return De})),n.d(t,"md",(function(){return ke})),n.d(t,"nd",(function(){return Ed})),n.d(t,"od",(function(){return bd})),n.d(t,"pd",(function(){return Qi})),n.d(t,"qd",(function(){return fi})),n.d(t,"rd",(function(){return Sd})),n.d(t,"sd",(function(){return uu})),n.d(t,"td",(function(){return cu})),n.d(t,"ud",(function(){return au})),n.d(t,"vd",(function(){return fu})),n.d(t,"wd",(function(){return _d}));var r=n("XNiG"),o=n("quSY"),s=n("HDdC"),i=n("VRyK"),u=n("w1tV");function c(e){return{toString:e}.toString()}const a="__parameters__";function l(e,t,n){return c(()=>{const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function o(...e){if(this instanceof o)return r.apply(this,e),this;const t=new o(...e);return n.annotation=t,n;function n(e,n,r){const o=e.hasOwnProperty(a)?e[a]:Object.defineProperty(e,a,{value:[]})[a];for(;o.length<=r;)o.push(null);return(o[r]=o[r]||[]).push(t),e}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const d=l("Inject",e=>({token:e})),f=l("Optional"),h=l("Self"),p=l("SkipSelf");var g=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function m(e){for(let t in e)if(e[t]===m)return t;throw Error("Could not find renamed property on target object.")}function y(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function v(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function b(e){return _(e,e[D])||_(e,e[A])}function _(e,t){return t&&t.token===e?t:null}function C(e){return e&&(e.hasOwnProperty(E)||e.hasOwnProperty(F))?e[E]:null}const D=m({"\u0275prov":m}),E=m({"\u0275inj":m}),x=m({"\u0275provFallback":m}),A=m({ngInjectableDef:m}),F=m({ngInjectorDef:m});function k(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(k).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function I(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const S=m({__forward_ref__:m});function N(e){return e.__forward_ref__=N,e.toString=function(){return k(this())},e}function T(e){return O(e)?e():e}function O(e){return"function"==typeof e&&e.hasOwnProperty(S)&&e.__forward_ref__===N}const R="undefined"!=typeof globalThis&&globalThis,V="undefined"!=typeof window&&window,P="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,M="undefined"!=typeof global&&global,j=R||M||V||P,B=m({"\u0275cmp":m}),L=m({"\u0275dir":m}),H=m({"\u0275pipe":m}),$=m({"\u0275mod":m}),U=m({"\u0275loc":m}),z=m({"\u0275fac":m}),q=m({__NG_ELEMENT_ID__:m});class Z{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=w({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Q=new Z("INJECTOR",-1),G={},W=/\n/gm,J=m({provide:String,useValue:m});let K,Y=void 0;function X(e){const t=Y;return Y=e,t}function ee(e){const t=K;return K=e,t}function te(e,t=g.Default){if(void 0===Y)throw new Error("inject() must be called from an injection context");return null===Y?oe(e,void 0,t):Y.get(e,t&g.Optional?null:void 0,t)}function ne(e,t=g.Default){return(K||te)(T(e),t)}const re=ne;function oe(e,t,n){const r=b(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&g.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${k(e)}]`)}function se(e){const t=[];for(let n=0;nArray.isArray(e)?le(e,t):t(e))}function de(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function fe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function he(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function ge(e,t){const n=me(e,t);if(n>=0)return e[1|n]}function me(e,t){return function(e,t,n){let r=0,o=e.length>>1;for(;o!==r;){const n=r+(o-r>>1),s=e[n<<1];if(t===s)return n<<1;s>t?o=n:r=n+1}return~(o<<1)}(e,t)}const ye=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),we=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),ve={},be=[];let _e=0;function Ce(e){return c(()=>{const t=e.type,n=t.prototype,r={},o={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.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:e.changeDetection===ye.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||be,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||we.Emulated,id:"c",styles:e.styles||be,_:null,setInput:null,schemas:e.schemas||null,tView:null},s=e.directives,i=e.features,u=e.pipes;return o.id+=_e++,o.inputs=Ie(e.inputs,r),o.outputs=Ie(e.outputs),i&&i.forEach(e=>e(o)),o.directiveDefs=s?()=>("function"==typeof s?s():s).map(Ee):null,o.pipeDefs=u?()=>("function"==typeof u?u():u).map(xe):null,o})}function De(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(Ee),r.pipeDefs=()=>n.map(xe)}function Ee(e){return Te(e)||function(e){return e[L]||null}(e)}function xe(e){return function(e){return e[H]||null}(e)}const Ae={};function Fe(e){const t={type:e.type,bootstrap:e.bootstrap||be,declarations:e.declarations||be,imports:e.imports||be,exports:e.exports||be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&c(()=>{Ae[e.id]=e.type}),t}function ke(e,t){return c(()=>{const n=Re(e,!0);n.declarations=t.declarations||be,n.imports=t.imports||be,n.exports=t.exports||be})}function Ie(e,t){if(null==e)return ve;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),n[o]=r,t&&(t[o]=s)}return n}const Se=Ce;function Ne(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Te(e){return e[B]||null}function Oe(e,t){return e.hasOwnProperty(z)?e[z]:null}function Re(e,t){const n=e[$]||null;if(!n&&!0===t)throw new Error(`Type ${k(e)} does not have '\u0275mod' property.`);return n}function Ve(e){return Array.isArray(e)&&"object"==typeof e[1]}function Pe(e){return Array.isArray(e)&&!0===e[1]}function Me(e){return 0!=(8&e.flags)}function je(e){return 2==(2&e.flags)}function Be(e){return 1==(1&e.flags)}function Le(e){return null!==e.template}function He(e){return 0!=(512&e[2])}const $e={lFrame:ct(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Ue(){return $e.bindingsEnabled}function ze(){return $e.lFrame.lView}function qe(){return $e.lFrame.tView}function Ze(e){$e.lFrame.contextLView=e}function Qe(){return $e.lFrame.previousOrParentTNode}function Ge(e,t){$e.lFrame.previousOrParentTNode=e,$e.lFrame.isParent=t}function We(){return $e.lFrame.isParent}function Je(){$e.lFrame.isParent=!1}function Ke(){return $e.checkNoChangesMode}function Ye(e){$e.checkNoChangesMode=e}function Xe(){const e=$e.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function et(){return $e.lFrame.bindingIndex++}function tt(e){const t=$e.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function nt(e,t){const n=$e.lFrame;n.bindingIndex=n.bindingRootIndex=e,n.currentDirectiveIndex=t}function rt(){return $e.lFrame.currentQueryIndex}function ot(e){$e.lFrame.currentQueryIndex=e}function st(e,t){const n=ut();$e.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function it(e,t){const n=ut(),r=e[1];$e.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function ut(){const e=$e.lFrame,t=null===e?null:e.child;return null===t?ct(e):t}function ct(e){const t={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:e,child:null};return null!==e&&(e.child=t),t}function at(){const e=$e.lFrame;return $e.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}const lt=at;function dt(){const e=at();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ft(){return $e.lFrame.selectedIndex}function ht(e){$e.lFrame.selectedIndex=e}function pt(){$e.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function gt(){$e.lFrame.currentNamespace=null}function mt(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[i]<0&&(e[18]+=65536),(s>10>16&&(3&e[2])===t&&(e[2]+=1024,s.call(i)):s.call(i)}class Ct{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}let Dt=void 0;function Et(e){Dt=e}function xt(){return void 0!==Dt?Dt:"undefined"!=typeof document?document:void 0}function At(e){return!!e.listen}const Ft={createRenderer:(e,t)=>xt()};function kt(e,t,n){const r=At(e);let o=0;for(;ot){i=s-1;break}}}for(;s>16}function Pt(e,t){let n=Vt(e),r=t;for(;n>0;)r=r[15],n--;return r}function Mt(e){return"string"==typeof e?e:null==e?"":""+e}function jt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Mt(e)}const Bt=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(j))();function Lt(e){return{name:"window",target:e.ownerDocument.defaultView}}function Ht(e){return{name:"document",target:e.ownerDocument}}function $t(e){return{name:"body",target:e.ownerDocument.body}}function Ut(e){return e instanceof Function?e():e}let zt=!0;function qt(e){const t=zt;return zt=e,t}let Zt=0;function Qt(e,t){const n=Wt(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Gt(r.data,e),Gt(t,null),Gt(r.blueprint,null));const o=Jt(e,t),s=e.injectorIndex;if(Ot(o)){const e=Rt(o),n=Pt(o,t),r=n[1].data;for(let o=0;o<8;o++)t[s+o]=n[e+o]|r[e+o]}return t[s+8]=o,s}function Gt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Wt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Jt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[6],r=1;for(;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Kt(e,t,n){!function(e,t,n){let r="string"!=typeof n?n[q]:n.charCodeAt(0)||0;null==r&&(r=n[q]=Zt++);const o=255&r,s=1<0?255&t:t}(n);if("function"==typeof o){st(t,e);try{const e=o();if(null!=e||r&g.Optional)return e;throw new Error(`No provider for ${jt(n)}!`)}finally{lt()}}else if("number"==typeof o){if(-1===o)return new sn(e,t);let s=null,i=Wt(e,t),u=-1,c=r&g.Host?t[16][6]:null;for((-1===i||r&g.SkipSelf)&&(u=-1===i?Jt(e,t):t[i+8],on(r,!1)?(s=t[1],i=Rt(u),t=Pt(u,t)):i=-1);-1!==i;){u=t[i+8];const e=t[1];if(rn(o,i,e.data)){const e=en(i,t,n,s,r,c);if(e!==Xt)return e}on(r,t[1].data[i+8]===c)&&rn(o,i,t)?(s=e,i=Rt(u),t=Pt(u,t)):i=-1}}}if(r&g.Optional&&void 0===o&&(o=null),0==(r&(g.Self|g.Host))){const e=t[9],s=ee(void 0);try{return e?e.get(n,o,r&g.Optional):oe(n,o,r&g.Optional)}finally{ee(s)}}if(r&g.Optional)return o;throw new Error(`NodeInjector: NOT_FOUND [${jt(n)}]`)}const Xt={};function en(e,t,n,r,o,s){const i=t[1],u=i.data[e+8],c=tn(u,i,n,null==r?je(u)&&zt:r!=i&&3===u.type,o&g.Host&&s===u);return null!==c?nn(t,i,c,u):Xt}function tn(e,t,n,r,o){const s=e.providerIndexes,i=t.data,u=65535&s,c=e.directiveStart,a=s>>16,l=o?u+a:e.directiveEnd;for(let d=r?u:u+a;d=c&&e.type===n)return d}if(o){const e=i[c];if(e&&Le(e)&&e.type===n)return c}return null}function nn(e,t,n,r){let o=e[n];const s=t.data;if(o instanceof Ct){const i=o;if(i.resolving)throw new Error(`Circular dep for ${jt(s[n])}`);const u=qt(i.canSeeViewProviders);let c;i.resolving=!0,i.injectImpl&&(c=ee(i.injectImpl)),st(e,r);try{o=e[n]=i.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{onChanges:r,onInit:o,doCheck:s}=t;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,o),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{i.injectImpl&&ee(c),qt(u),i.resolving=!1,lt()}}return o}function rn(e,t,n){const r=64&e,o=32&e;let s;return s=128&e?r?o?n[t+7]:n[t+6]:o?n[t+5]:n[t+4]:r?o?n[t+3]:n[t+2]:o?n[t+1]:n[t],!!(s&1<{const t=Object.getPrototypeOf(e.prototype).constructor,n=t[z]||function e(t){const n=t;if(O(t))return()=>{const t=e(T(n));return t?t():null};let r=Oe(n);if(null===r){const e=C(n);r=e&&e.factory}return r||null}(t);return null!==n?n:e=>new e})}function cn(e){return e.ngDebugContext}function an(e){return e.ngOriginalError}function ln(e,...t){e.error(...t)}class dn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||ln}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?cn(e)?cn(e):this._findContext(an(e)):null}_findOriginalError(e){let t=an(e);for(;t&&an(t);)t=an(t);return t}}class fn{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class hn extends fn{getTypeName(){return"HTML"}}class pn extends fn{getTypeName(){return"Style"}}class gn extends fn{getTypeName(){return"Script"}}class mn extends fn{getTypeName(){return"URL"}}class yn extends fn{getTypeName(){return"ResourceURL"}}function wn(e){return e instanceof fn?e.changingThisBreaksApplicationSecurity:e}function vn(e,t){const n=bn(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===t}function bn(e){return e instanceof fn&&e.getTypeName()||null}function _n(e){return new hn(e)}function Cn(e){return new pn(e)}function Dn(e){return new gn(e)}function En(e){return new mn(e)}function xn(e){return new yn(e)}let An=!0,Fn=!1;function kn(){return Fn=!0,An}function In(){if(Fn)throw new Error("Cannot enable prod mode after platform setup.");An=!1}class Sn{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let t=this.inertDocument.body;if(null==t){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),t=this.inertDocument.createElement("body"),e.appendChild(t)}t.innerHTML='',!t.querySelector||t.querySelector("svg")?(t.innerHTML='

',this.getInertBodyElement=t.querySelector&&t.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e=""+e+"";try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;const n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0On(e.trim())).join(", ")}function Vn(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Pn(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const Mn=Vn("area,br,col,hr,img,wbr"),jn=Vn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Bn=Vn("rp,rt"),Ln=Pn(Bn,jn),Hn=Pn(Mn,Pn(jn,Vn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Pn(Bn,Vn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ln),$n=Vn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Un=Vn("srcset"),zn=Pn($n,Un,Vn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Vn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),qn=Vn("script,style,template");class Zn{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Hn.hasOwnProperty(t))return this.sanitizedSomething=!0,!qn.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let r=0;r"),!0}endElement(e){const t=e.nodeName.toLowerCase();Hn.hasOwnProperty(t)&&!Mn.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(Wn(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const Qn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gn=/([^\#-~ |!])/g;function Wn(e){return e.replace(/&/g,"&").replace(Qn,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(Gn,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}let Jn;function Kn(e,t){let n=null;try{Jn=Jn||new Sn(e);let r=t?String(t):"";n=Jn.getInertBodyElement(r);let o=5,s=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=s,s=n.innerHTML,n=Jn.getInertBodyElement(r)}while(r!==s);const i=new Zn,u=i.sanitizeChildren(Yn(n)||n);return kn()&&i.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),u}finally{if(n){const e=Yn(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function Yn(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const Xn=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),er=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"),tr=/^url\(([^)]+)\)$/;function nr(e){if(!(e=String(e).trim()))return"";const t=e.match(tr);return t&&On(t[1])===t[1]||e.match(er)&&function(e){let t=!0,n=!0;for(let r=0;rs?"":o[l+1].toLowerCase();const t=8&r?e:null;if(t&&-1!==Ir(t,a,0)||2&r&&a!==e){if(Or(r))return!1;i=!0}}}}else{if(!i&&!Or(r)&&!Or(c))return!1;if(i&&Or(c))continue;i=!1,r=c|1&r}}return Or(r)||i}function Or(e){return 0==(1&e)}function Rr(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let n=!1;for(;o-1)for(n++;n0?'="'+t+'"':"")+"]"}else 8&r?o+="."+i:4&r&&(o+=" "+i);else""===o||Or(i)||(t+=Mr(s,o),o=""),r=i,s=s||!Or(r);n++}return""!==o&&(t+=Mr(s,o)),t}const Br={};function Lr(e){const t=e[3];return Pe(t)?t[3]:t}function Hr(e){$r(qe(),ze(),ft()+e,Ke())}function $r(e,t,n,r){if(!r)if(3==(3&t[2])){const r=e.preOrderCheckHooks;null!==r&&yt(t,r,n)}else{const r=e.preOrderHooks;null!==r&&wt(t,r,0,n)}ht(n)}const Ur={marker:"element"},zr={marker:"comment"};function qr(e,t){return e<<17|t<<2}function Zr(e){return e>>17&32767}function Qr(e){return 2|e}function Gr(e){return(131068&e)>>2}function Wr(e,t){return-131069&e|t<<2}function Jr(e){return 1|e}function Kr(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r>1==-1){for(let e=9;e19&&$r(e,t,0,Ke()),n(r,o)}finally{ht(s)}}function so(e,t,n){if(Me(t)){const r=t.directiveEnd;for(let o=t.directiveStart;oPromise.resolve(null))();function Mo(e){return e[7]||(e[7]=[])}function jo(e){return e.cleanup||(e.cleanup=[])}function Bo(e,t){return function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(t[e.index])[11]}function Lo(e,t){const n=e[9],r=n?n.get(dn,null):null;r&&r.handleError(t)}function Ho(e,t,n,r,o){for(let s=0;s0&&(e[n-1][4]=r[4]);const s=fe(e,9+t);Zo(r[1],r,!1,null);const i=s[5];null!==i&&i.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Wo(e,t){if(!(256&t[2])){const n=t[11];At(n)&&n.destroyNode&&cs(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Ko(e[1],e);for(;t;){let n=null;if(Ve(t))n=t[13];else{const e=t[9];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)Ve(t)&&Ko(t[1],t),t=Jo(t,e);null===t&&(t=e),Ve(t)&&Ko(t[1],t),n=t&&t[4]}t=n}}(t)}}function Jo(e,t){let n;return Ve(e)&&(n=e[6])&&2===n.type?$o(n,e):e[3]===t?null:e[3]}function Ko(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?e[u]():e[-u].unsubscribe(),r+=2}else n[r].call(e[n[r+1]]);t[7]=null}}(e,t);const n=t[6];n&&3===n.type&&At(t[11])&&t[11].destroy();const r=t[17];if(null!==r&&Pe(t[3])){r!==t[3]&&Qo(r,t);const n=t[5];null!==n&&n.detachView(e)}}}function Yo(e,t,n){let r=t.parent;for(;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){const e=n[6];return 2===e.type?Uo(e,n):n[0]}if(t&&5===t.type&&4&t.flags)return fr(t,n).parentNode;if(2&r.flags){const t=e.data,n=t[t[r.index].directiveStart].encapsulation;if(n!==we.ShadowDom&&n!==we.Native)return null}return fr(r,n)}function Xo(e,t,n,r){At(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function es(e,t,n){At(e)?e.appendChild(t,n):t.appendChild(n)}function ts(e,t,n,r){null!==r?Xo(e,t,n,r):es(e,t,n)}function ns(e,t){return At(e)?e.parentNode(t):t.parentNode}function rs(e,t){if(2===e.type){const n=$o(e,t);return null===n?null:ss(n.indexOf(t,9)-9,n)}return 4===e.type||5===e.type?fr(e,t):null}function os(e,t,n,r){const o=Yo(e,r,t);if(null!=o){const e=t[11],s=rs(r.parent||t[6],t);if(Array.isArray(n))for(let t=0;t-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Wo(this._lView[1],this._lView)}onDestroy(e){var t,n,r;t=this._lView[1],r=e,Mo(n=this._lView).push(r),t.firstCreatePass&&jo(t).push(n[7].length-1,null)}markForCheck(){To(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Oo(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Ye(!0);try{Oo(e,t,n)}finally{Ye(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,cs(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class ps extends hs{constructor(e){super(e),this._view=e}detectChanges(){Ro(this._view)}checkNoChanges(){!function(e){Ye(!0);try{Ro(e)}finally{Ye(!1)}}(this._view)}get context(){return null}}let gs,ms,ys;function ws(e,t,n){return gs||(gs=class extends e{}),new gs(fr(t,n))}function vs(e,t,n,r){return ms||(ms=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=Xr(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[5];null!==r&&(n[5]=r.createEmbeddedView(t)),to(t,n,e);const o=new hs(n);return o._tViewNode=n[6],o}}),0===n.type?new ms(r,n,ws(t,n,r)):null}function bs(e,t,n,r){let o;ys||(ys=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return ws(t,this._hostTNode,this._hostView)}get injector(){return new sn(this._hostTNode,this._hostView)}get parentInjector(){const e=Jt(this._hostTNode,this._hostView),t=Pt(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){const e=n.parent.injectorIndex;let t=n.parent;for(;null!=t.parent&&e==t.parent.injectorIndex;)t=t.parent;return t}let r=Vt(e),o=t,s=t[6];for(;r>1;)o=o[15],s=o[6],r--;return s}(e,this._hostView,this._hostTNode);return Ot(e)&&null!=n?new sn(n,t):new sn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-9}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,o){const s=n||this.parentInjector;if(!o&&null==e.ngModule&&s){const e=s.get(ue,null);e&&(o=e)}const i=e.create(s,r,void 0,o);return this.insert(i.hostView,t),i}insert(e,t){const n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Pe(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],r=new ys(t,t[6],t[3]);r.detach(r.indexOf(e))}}const o=this._adjustIndex(t);return function(e,t,n,r){const o=9+r,s=n.length;r>0&&(n[o-1][4]=t),r{class e{}return e.__NG_ELEMENT_ID__=()=>Ds(),e})();const Ds=_s,Es=Function;function xs(e){return"function"==typeof e}const As=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Fs=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,ks=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Is=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s+super\(\.\.\.arguments\)/;class Ss{constructor(e){this._reflect=e||j.Reflect}isReflectionEnabled(){return!0}factory(e){return(...t)=>new e(...t)}_zipTypesAndAnnotations(e,t){let n;n=he(void 0===e?t.length:e.length);for(let r=0;re&&e.type),n=e.map(e=>e&&Ns(e.decorators));return this._zipTypesAndAnnotations(t,n)}const o=e.hasOwnProperty(a)&&e[a],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return s||o?this._zipTypesAndAnnotations(s,o):he(e.length)}parameters(e){if(!xs(e))return[];const t=Ts(e);let n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]}_ownAnnotations(e,t){if(e.annotations&&e.annotations!==t.annotations){let t=e.annotations;return"function"==typeof t&&t.annotations&&(t=t.annotations),t}return e.decorators&&e.decorators!==t.decorators?Ns(e.decorators):e.hasOwnProperty("__annotations__")?e.__annotations__:null}annotations(e){if(!xs(e))return[];const t=Ts(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}_ownPropMetadata(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){let t=e.propMetadata;return"function"==typeof t&&t.propMetadata&&(t=t.propMetadata),t}if(e.propDecorators&&e.propDecorators!==t.propDecorators){const t=e.propDecorators,n={};return Object.keys(t).forEach(e=>{n[e]=Ns(t[e])}),n}return e.hasOwnProperty("__prop__metadata__")?e.__prop__metadata__:null}propMetadata(e){if(!xs(e))return{};const t=Ts(e),n={};if(t!==Object){const e=this.propMetadata(t);Object.keys(e).forEach(t=>{n[t]=e[t]})}const r=this._ownPropMetadata(e,t);return r&&Object.keys(r).forEach(e=>{const t=[];n.hasOwnProperty(e)&&t.push(...n[e]),t.push(...r[e]),n[e]=t}),n}ownPropMetadata(e){return xs(e)&&this._ownPropMetadata(e,Ts(e))||{}}hasLifecycleHook(e,t){return e instanceof Es&&t in e.prototype}guards(e){return{}}getter(e){return new Function("o","return o."+e+";")}setter(e){return new Function("o","v","return o."+e+" = v;")}method(e){return new Function("o","args",`if (!o.${e}) throw new Error('"${e}" is undefined');\n return o.${e}.apply(o, args);`)}importUri(e){return"object"==typeof e&&e.filePath?e.filePath:`./${k(e)}`}resourceUri(e){return`./${k(e)}`}resolveIdentifier(e,t,n,r){return r}resolveEnum(e,t){return e[t]}}function Ns(e){return e?e.map(e=>new(0,e.type.annotationCls)(...e.args?e.args:[])):[]}function Ts(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const Os=new Z("Set Injector scope."),Rs={},Vs={},Ps=[];let Ms=void 0;function js(){return void 0===Ms&&(Ms=new ie),Ms}function Bs(e,t=null,n=null,r){return new Ls(e,n,t||js(),r)}class Ls{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];t&&le(t,n=>this.processProvider(n,e,t)),le([e],e=>this.processInjectorType(e,[],o)),this.records.set(Q,Us(void 0,this));const s=this.records.get(Os);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof e?null:k(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=G,n=g.Default){this.assertNotDestroyed();const r=X(this);try{if(!(n&g.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(o=e)||"object"==typeof o&&o instanceof Z)&&b(e);t=n&&this.injectableDefInScope(n)?Us(Hs(e),Rs):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&g.Self?js():this.parent).get(e,t=n&g.Optional&&t===G?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(k(e)),r)throw s;return function(e,t,n,r){const o=e.ngTempTokenPath;throw t.__source&&o.unshift(t.__source),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=k(t);if(Array.isArray(t))o=t.map(k).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):k(r)))}o=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(W,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{X(r)}var o}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(k(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=T(e)))return!1;let r=C(e);const o=null==r&&e.ngModule||void 0,s=void 0===o?e:o,i=-1!==n.indexOf(s);if(void 0!==o&&(r=C(o)),null==r)return!1;if(null!=r.imports&&!i){let e;n.push(s);try{le(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;tthis.processProvider(e,n,r||Ps))}}this.injectorDefTypes.add(s),this.records.set(s,Us(r.factory,Rs));const u=r.providers;if(null!=u&&!i){const t=e;le(u,e=>this.processProvider(e,t,u))}return void 0!==o&&void 0!==e.providers}processProvider(e,t,n){let r=qs(e=T(e))?e:T(e&&e.provide);const o=function(e,t,n){return zs(e)?Us(void 0,e.useValue):Us($s(e,t,n),Rs)}(e,t,n);if(qs(e)||!0!==e.multi){const e=this.records.get(r);e&&void 0!==e.multi&&kr()}else{let t=this.records.get(r);t?void 0===t.multi&&kr():(t=Us(void 0,Rs,!0),t.factory=()=>se(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,o)}hydrate(e,t){var n;return t.value===Vs?function(e){throw new Error(`Cannot instantiate cyclic dependency! ${e}`)}(k(e)):t.value===Rs&&(t.value=Vs,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function Hs(e){const t=b(e),n=null!==t?t.factory:Oe(e);if(null!==n)return n;const r=C(e);if(null!==r)return r.factory;if(e instanceof Z)throw new Error(`Token ${k(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=he(t,"?");throw new Error(`Can't resolve all parameters for ${k(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[D]||e[A]||e[x]&&e[x]());if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\n`+`This will become an error in v10. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function $s(e,t,n){let r=void 0;if(qs(e)){const t=T(e);return Oe(t)||Hs(t)}if(zs(e))r=()=>T(e.useValue);else if((o=e)&&o.useFactory)r=()=>e.useFactory(...se(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>ne(T(e.useExisting));else{const o=T(e&&(e.useClass||e.provide));if(o||function(e,t,n){let r="";throw e&&t&&(r=` - only instances of Provider and Type are allowed, got: [${t.map(e=>e==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${k(e)}'`+r)}(t,n,e),!function(e){return!!e.deps}(e))return Oe(o)||Hs(o);r=()=>new o(...se(e.deps))}var o;return r}function Us(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function zs(e){return null!==e&&"object"==typeof e&&J in e}function qs(e){return"function"==typeof e}const Zs=function(e,t,n){return function(e,t=null,n=null,r){const o=Bs(e,t,n,r);return o._resolveInjectorDefTypes(),o}({name:n},t,e,n)};let Qs=(()=>{class e{static create(e,t){return Array.isArray(e)?Zs(e,t,""):Zs(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=G,e.NULL=new ie,e.\u0275prov=w({token:e,providedIn:"any",factory:()=>ne(Q)}),e.__NG_ELEMENT_ID__=-1,e})();const Gs=new Z("AnalyzeForEntryComponents");let Ws=new Map;const Js=new Set;function Ks(e){return"string"==typeof e?e:e.text()}function Ys(e,t){let n=e.styles,r=e.classes,o=0;for(let s=0;su(lr(e[r.index])).target:r.index;if(At(n)){let i=null;if(!u&&c&&(i=function(e,t,n,r){const o=e.cleanup;if(null!=o)for(let s=0;sn?e[n]:null}"string"==typeof e&&(s+=2)}return null}(e,t,o,r.index)),null!==i)(i.__ngLastListenerFn__||i).__ngNextListenerFn__=s,i.__ngLastListenerFn__=s,d=!1;else{s=Ni(r,t,s,!1);const e=n.listen(h.name||p,o,s);l.push(s,e),a&&a.push(o,m,g,g+1)}}else s=Ni(r,t,s,!0),p.addEventListener(o,s,i),l.push(s),a&&a.push(o,m,g,i)}const f=r.outputs;let h;if(d&&null!==f&&(h=f[o])){const e=h.length;if(e)for(let n=0;n0;)t=t[15],e--;return t}(e,$e.lFrame.contextLView))[8]}(e)}function Oi(e,t){let n=null;const r=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(e);for(let o=0;o=0}const Ui={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function zi(e){return e.substring(Ui.key,Ui.keyEnd)}function qi(e,t){const n=Ui.textEnd;return n===t?-1:(t=Ui.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Ui.key=t,n),Zi(e,t,n))}function Zi(e,t,n){for(;t=0;n=qi(t,n))pe(e,zi(t),!0)}function Ki(e,t,n,r){const o=ze(),s=qe(),i=tt(2);if(s.firstUpdatePass&&eu(s,e,i,r),t!==Br&&ci(o,i,t)){let u;null==n&&(u=function(){const e=$e.lFrame;return null===e?null:e.currentSanitizer}())&&(n=u),ru(s,s.data[ft()+19],o,o[11],e,o[i+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=k(wn(e)))),e}(t,n),r,i)}}function Yi(e,t,n,r){const o=qe(),s=tt(2);o.firstUpdatePass&&eu(o,null,s,r);const i=ze();if(n!==Br&&ci(i,s,n)){const u=o.data[ft()+19];if(iu(u,r)&&!Xi(o,s)){let e=r?u.classes:u.styles;null!==e&&(n=I(e,n||"")),wi(o,u,i,n,r)}else!function(e,t,n,r,o,s,i,u){o===Br&&(o=Li);let c=0,a=0,l=0=e.expandoStartIndex}function eu(e,t,n,r){const o=e.data;if(null===o[n+1]){const s=o[ft()+19],i=Xi(e,n);iu(s,r)&&null===t&&!i&&(t=!1),t=function(e,t,n,r){const o=function(e){const t=$e.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let s=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=nu(n=tu(null,e,t,n,r),t.attrs,r),s=null);else{const i=t.directiveStylingLast;if(-1===i||e[i]!==o)if(n=tu(o,e,t,n,r),null===s){let n=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Gr(r))return e[Zr(r)]}(e,t,r);void 0!==n&&Array.isArray(n)&&(n=tu(null,e,t,n[1],r),n=nu(n,t.attrs,r),function(e,t,n,r){e[Zr(n?t.classBindings:t.styleBindings)]=r}(e,t,r,n))}else s=function(e,t,n){let r=void 0;const o=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(l=!0)}else a=n;if(o)if(0!==c){const t=Zr(e[u+1]);e[r+1]=qr(t,u),0!==t&&(e[t+1]=Wr(e[t+1],r)),e[u+1]=131071&e[u+1]|r<<17}else e[r+1]=qr(u,0),0!==u&&(e[u+1]=Wr(e[u+1],r)),u=r;else e[r+1]=qr(c,0),0===u?u=r:e[c+1]=Wr(e[c+1],r),c=r;l&&(e[r+1]=Qr(e[r+1])),Hi(e,a,r,!0),Hi(e,a,r,!1),function(e,t,n,r,o){const s=o?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&me(s,t)>=0&&(n[r+1]=Jr(n[r+1]))}(t,a,e,r,s),i=qr(u,c),s?t.classBindings=i:t.styleBindings=i}(o,s,t,n,i,r)}}function tu(e,t,n,r,o){let s=null;const i=n.directiveEnd;let u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u0;){const t=e[o],s=Array.isArray(t),c=s?t[1]:t,a=null===c;let l=n[o+1];l===Br&&(l=a?Li:void 0);let d=a?ge(l,r):c===r?l:void 0;if(s&&!su(d)&&(d=ge(t,r)),su(d)&&(u=d,i))return u;const f=e[o+1];o=i?Zr(f):Gr(f)}if(null!==t){let e=s?t.residualClasses:t.residualStyles;null!=e&&(u=ge(e,r))}return u}function su(e){return void 0!==e}function iu(e,t){return 0!=(e.flags&(t?16:32))}function uu(e,t=""){const n=ze(),r=qe(),o=e+19,s=r.firstCreatePass?eo(r,n[6],e,3,null,null):r.data[o],i=n[o]=qo(t,n[11]);os(r,n,i,s),Ge(s,!1)}function cu(e){return au("",e,""),cu}function au(e,t,n){const r=ze(),o=di(r,e,t,n);return o!==Br&&function(e,t,n){const r=dr(t,e),o=e[11];At(o)?o.setValue(r,n):r.textContent=n}(r,ft(),o),au}function lu(e,t,n){Yi(pe,Ji,di(ze(),e,t,n),!0)}function du(e,t,n){const r=ze();if(ci(r,et(),t)){const o=ft();ho(qe(),r,o,e,t,n,!0)}return du}function fu(e,t,n){const r=ze();if(ci(r,et(),t)){const o=ft();ho(qe(),r,o,e,t,n,!0,Bo)}return fu}function hu(e){mu(e);const t=pu(e,!1);return null===t?null:(void 0===t.component&&(t.component=function(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function pu(e,t=!0){const n=function(e){let t=yr(e);if(t){if(Array.isArray(t)){const r=t;let o,s=void 0,i=void 0;if((n=e)&&n.constructor&&n.constructor.\u0275cmp){if(o=function(e,t){const n=e[1].components;if(n)for(let r=0;r=0){const e=lr(r[o]),n=Dr(r,o,e);Er(e,n),t=n;break}}}}var n;return t||null}(e);if(!n&&t)throw new Error("Invalid ng target");return n}function gu(e,t){return e.name==t.name?0:e.name=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Nt(o.hostAttrs,n=Nt(n,o.hostAttrs))}}(r)}function vu(e){return e===ve?{}:e===be?[]:e}function bu(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function _u(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,o)=>{t(e,r,o),n(e,r,o)}:t}function Cu(e,t){const n=e.hostBindings;e.hostBindings=n?(e,r)=>{t(e,r),n(e,r)}:t}class Du{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function Eu(e){e.type.prototype.ngOnChanges&&(e.setInput=xu,e.onChanges=function(){const e=Au(this),t=e&&e.current;if(t){const n=e.previous;if(n===ve)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}})}function xu(e,t,n,r){const o=Au(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:ve,current:null}),s=o.current||(o.current={}),i=o.previous,u=this.declaredInputs[n],c=i[u];s[u]=new Du(c&&c.currentValue,t,i===ve),e[r]=t}function Au(e){return e.__ngSimpleChanges__||null}function Fu(e,t,n,r,o){if(e=T(e),Array.isArray(e))for(let s=0;s>16;if(qs(e)||!e.multi){const r=new Ct(c,o,pi),h=Su(u,t,o?l:l+f,d);-1===h?(Kt(Qt(a,i),s,u),ku(s,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=65536),n.push(r),i.push(r)):(n[h]=r,i[h]=r)}else{const h=Su(u,t,l+f,d),p=Su(u,t,l,l+f),g=h>=0&&n[h],m=p>=0&&n[p];if(o&&!m||!o&&!g){Kt(Qt(a,i),s,u);const l=function(e,t,n,r,o){const s=new Ct(e,n,pi);return s.multi=[],s.index=t,s.componentProviders=0,Iu(s,o,r&&!n),s}(o?Tu:Nu,n.length,o,r,c);!o&&m&&(n[p].providerFactory=l),ku(s,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=65536),n.push(l),i.push(l)}else ku(s,e,h>-1?h:p),Iu(n[o?p:h],c,!o&&r);!o&&r&&m&&n[p].componentProviders++}}}function ku(e,t,n){if(qs(t)||t.useClass){const r=(t.useClass||t).prototype.ngOnDestroy;r&&(e.destroyHooks||(e.destroyHooks=[])).push(n,r)}}function Iu(e,t,n){e.multi.push(t),n&&e.componentProviders++}function Su(e,t,n,r){for(let o=n;o{n.providersResolver=(n,r)=>function(e,t,n){const r=qe();if(r.firstCreatePass){const o=Le(e);Fu(n,r.data,r.blueprint,o,!0),Fu(t,r.data,r.blueprint,o,!1)}}(n,r?r(e):e,t)}}Eu.ngInherit=!0;class Vu{}class Pu{}function Mu(e){const t=Error(`No component factory found for ${k(e)}. Did you add it to @NgModule.entryComponents?`);return t[ju]=e,t}const ju="ngComponent";class Bu{resolveComponentFactory(e){throw Mu(e)}}let Lu=(()=>{class e{}return e.NULL=new Bu,e})();class Hu{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>zu(e),e})();const zu=function(e){return ws(e,Qe(),ze())};class qu{}const Zu=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let Qu=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Gu(),e})();const Gu=function(){const e=ze(),t=mr(Qe().index,e);return function(e){const t=e[11];if(At(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ve(t)?t:e)};let Wu=(()=>{class e{}return e.\u0275prov=w({token:e,providedIn:"root",factory:()=>null}),e})();class Ju{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Ku=new Ju("9.0.6");class Yu{constructor(){}supports(e){return oi(e)}create(e){return new ec(e)}}const Xu=(e,t)=>t;class ec{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Xu}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,o=null;for(;t||n;){const s=!n||t&&t.currentIndex{r=this._trackByFn(t,e),null!==o&&ti(o.trackById,r)?(s&&(o=this._verifyReinsertion(o,e,r,t)),ti(o.item,e)||this._addIdentityChange(o,e)):(o=this._mismatch(o,e,r,t),s=!0),o=o._next,t++}),this.length=t;return this._truncate(o),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(ti(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(ti(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):e=this._addAfter(new tc(t,n),o,r),e}_verifyReinsertion(e,t,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new rc),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new rc),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class tc{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class nc{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&ti(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class rc{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new nc,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function oc(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}const n=new uc(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){ti(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class uc{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let cc=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new p,new f]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e([new Yu])}),e})(),ac=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new p,new f]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=w({token:e,providedIn:"root",factory:()=>new e([new sc])}),e})();const lc=[new sc],dc=new cc([new Yu]),fc=new ac(lc);let hc=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>pc(e,Uu),e})();const pc=function(e,t){return vs(e,t,Qe(),ze())};let gc=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>mc(e,Uu),e})();const mc=function(e,t){return bs(e,t,Qe(),ze())};function yc(e,t,n,r){let o=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return wc(n,t),n}(o,e)}function wc(e,t){e.ngDebugContext=t,e.ngErrorLogger=t.logError.bind(t)}function vc(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function bc(e,t,n){const r=e.state,o=1792&r;return o===t?(e.state=-1793&r|n,e.initIndex=-1,!0):o===n}function _c(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Cc(e,t){return e.nodes[t]}function Dc(e,t){return e.nodes[t]}function Ec(e,t){return e.nodes[t]}function xc(e,t){return e.nodes[t]}function Ac(e,t){return e.nodes[t]}const Fc={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},kc=()=>{},Ic=new Map;function Sc(e){let t=Ic.get(e);return t||(t=k(e)+"_"+Ic.size,Ic.set(e,t)),t}function Nc(e,t,n,r){if(ri.isWrapped(r)){r=ri.unwrap(r);const o=e.def.nodes[t].bindingIndex+n,s=ri.unwrap(e.oldValues[o]);e.oldValues[o]=new ri(s)}return r}function Tc(e){return{id:"$$undefined",styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let Oc=0;function Rc(e,t,n,r){return!(!(2&e.state)&&ti(e.oldValues[t.bindingIndex+n],r))}function Vc(e,t,n,r){return!!Rc(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Pc(e,t,n,r){const o=e.oldValues[t.bindingIndex+n];if(1&e.state||!ni(o,r)){const s=t.bindings[n].name;throw yc(Fc.createDebugContext(e,t.nodeIndex),`${s}: ${o}`,`${s}: ${r}`,0!=(1&e.state))}}function Mc(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function jc(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Bc(e,t,n,r){try{return Mc(33554432&e.def.nodes[t].flags?Dc(e,t).componentView:e),Fc.handleEvent(e,t,n,r)}catch(o){e.root.errorHandler.handleError(o)}}function Lc(e){return e.parent?Dc(e.parent,e.parentNodeDef.nodeIndex):null}function Hc(e){return e.parent?e.parentNodeDef.parent:null}function $c(e,t){switch(201347067&t.flags){case 1:return Dc(e,t.nodeIndex).renderElement;case 2:return Cc(e,t.nodeIndex).renderText}}function Uc(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function zc(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function qc(e){return 1<{"number"==typeof e?(t[e]=o,n|=qc(e)):r[e]=o}),{matchedQueries:t,references:r,matchedQueryIds:n}}function Qc(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,"__source",{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Sc(n)}})}function Gc(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===we.Native?Dc(e,n.renderParent.nodeIndex).renderElement:void 0:t}const Wc=new WeakMap;function Jc(e){let t=Wc.get(e);return t||(t=e(()=>kc),t.factory=e,Wc.set(e,t)),t}function Kc(e,t,n,r,o){3===t&&(n=e.renderer.parentNode($c(e,e.def.lastRenderRootNode))),Yc(e,t,0,e.def.nodes.length-1,n,r,o)}function Yc(e,t,n,r,o,s,i){for(let u=n;u<=r;u++){const n=e.def.nodes[u];11&n.flags&&ea(e,n,t,o,s,i),u+=n.childCount}}function Xc(e,t,n,r,o,s){let i=e;for(;i&&!Uc(i);)i=i.parent;const u=i.parent,c=Hc(i),a=c.nodeIndex+c.childCount;for(let l=c.nodeIndex+1;l<=a;l++){const e=u.def.nodes[l];e.ngContentIndex===t&&ea(u,e,n,r,o,s),l+=e.childCount}if(!u.parent){const i=e.root.projectableNodes[t];if(i)for(let t=0;t-1}(e,n))}(e,i)){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:i.factory,deps:[],index:n,token:t.token},e._providers[n]=la,e._providers[n]=ya(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{X(r)}}function ya(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(ma(e,n[0]));case 2:return new t(ma(e,n[0]),ma(e,n[1]));case 3:return new t(ma(e,n[0]),ma(e,n[1]),ma(e,n[2]));default:const o=[];for(let t=0;t=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,fe(n,t),Fc.dirtyParentQueries(r),ba(r),r}function va(e,t,n){const r=t?$c(t,t.def.lastRenderRootNode):e.renderElement,o=n.renderer.parentNode(r),s=n.renderer.nextSibling(r);Kc(n,2,o,s,void 0)}function ba(e){Kc(e,3,null,null,void 0)}const _a={};function Ca(e,t,n,r,o,s){return new Da(e,t,n,r,o,s)}class Da extends Pu{constructor(e,t,n,r,o,s){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=o,this.ngContentSelectors=s,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const o=Jc(this.viewDefFactory),s=o.nodes[0].element.componentProvider.nodeIndex,i=Fc.createRootView(e,t||[],n,o,r,_a),u=Ec(i,s).instance;return n&&i.renderer.setAttribute(Dc(i,0).renderElement,"ng-version",Ku.full),new Ea(i,new ka(i),u)}}class Ea extends Vu{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new Uu(Dc(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Ta(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function xa(e,t,n){return new Aa(e,t,n)}class Aa{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new Uu(this._data.renderElement)}get injector(){return new Ta(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=Hc(e),e=e.parent;return e?new Ta(e,t):new Ta(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=wa(this._data,e);Fc.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new ka(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,o){const s=n||this.parentInjector;o||e instanceof $u||(o=s.get(ue));const i=e.create(s,r,void 0,o);return this.insert(i.hostView,t),i}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let o=t.viewContainer._embeddedViews;null==n&&(n=o.length),r.viewContainerParent=e,de(o,n,r),function(e,t){const n=Lc(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),Fc.dirtyParentQueries(r),va(t,n>0?o[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const r=e.viewContainer._embeddedViews,o=r[t];fe(r,t),null==n&&(n=r.length),de(r,n,o),Fc.dirtyParentQueries(o),ba(o),va(e,n>0?r[n-1]:null,o)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=wa(this._data,e);t&&Fc.destroyView(t)}detach(e){const t=wa(this._data,e);return t?new ka(t):null}}function Fa(e){return new ka(e)}class ka{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return Kc(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){Mc(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{Fc.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){Fc.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Fc.destroyView(this._view)}detachFromAppRef(){this._appRef=null,ba(this._view),Fc.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function Ia(e,t){return new Sa(e,t)}class Sa extends hc{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new ka(Fc.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new Uu(Dc(this._parentView,this._def.nodeIndex).renderElement)}}function Na(e,t){return new Ta(e,t)}class Ta{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Qs.THROW_IF_NOT_FOUND){return Fc.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Sc(e)},t)}}function Oa(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=Dc(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return Cc(e,n.nodeIndex).renderText;if(20240&n.flags)return Ec(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function Ra(e,t,n,r){return new Va(e,t,n,r)}class Va{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=he(t.providers.length);for(let r=0;re())}onDestroy(e){this._destroyListeners.push(e)}}const Pa=Sc(Qu),Ma=Sc(Uu),ja=Sc(gc),Ba=Sc(hc),La=Sc(Cs),Ha=Sc(Qs),$a=Sc(Q);function Ua(e,t,n,r,o,s,i,u){const c=[];if(i)for(let l in i){const[e,t]=i[l];c[e]={flags:8,name:l,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const a=[];if(u)for(let l in u)a.push({type:1,propName:l,target:null,eventName:u[l]});return Za(e,t|=16384,n,r,o,o,s,c,a)}function za(e,t,n){return Za(-1,e|=16,null,0,t,t,n)}function qa(e,t,n,r,o){return Za(-1,e,t,0,n,r,o)}function Za(e,t,n,r,o,s,i,u,c){const{matchedQueries:a,references:l,matchedQueryIds:d}=Zc(n);c||(c=[]),u||(u=[]),s=T(s);const f=Qc(i,k(o));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:d,references:l,ngContentIndex:-1,childCount:r,bindings:u,bindingFlags:oa(u),outputs:c,element:null,provider:{token:o,value:s,deps:f},text:null,query:null,ngContent:null}}function Qa(e,t){return Ka(e,t)}function Ga(e,t){let n=e;for(;n.parent&&!Uc(n);)n=n.parent;return Ya(n.parent,Hc(n),!0,t.provider.value,t.provider.deps)}function Wa(e,t){const n=Ya(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;rBc(e,t,n,r)}function Ka(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return Ya(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){const s=o.length;switch(s){case 0:return r();case 1:return r(el(e,t,n,o[0]));case 2:return r(el(e,t,n,o[0]),el(e,t,n,o[1]));case 3:return r(el(e,t,n,o[0]),el(e,t,n,o[1]),el(e,t,n,o[2]));default:const i=[];for(let r=0;rBt});class al extends Pu{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(jr).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return ul(this.componentDef.inputs)}get outputs(){return ul(this.componentDef.outputs)}create(e,t,n,r){const o=(r=r||this.ngModule)?function(e,t){return{get:(n,r,o)=>{const s=e.get(n,Xa,o);return s!==Xa||r===Xa?s:t.get(n,r,o)}}}(e,r.injector):e,s=o.get(qu,Ft),i=o.get(Wu,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",a=n?function(e,t,n){if(At(e))return e.selectRootElement(t,n===we.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(u,n,this.componentDef.encapsulation):Yr(c,s.createRenderer(null,this.componentDef),function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),l=this.componentDef.onPush?576:528,d="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),f={components:[],scheduler:Bt,clean:Po,playerHandler:null,flags:0},h=ao(0,-1,null,1,0,null,null,null,null,null),p=Xr(null,h,f,l,null,null,s,u,i,o);let g,m;it(p,null);try{const e=function(e,t,n,r,o,s){const i=n[1];n[19]=e;const u=eo(i,null,0,3,null,null),c=u.mergedAttrs=t.hostAttrs;null!==c&&(Ys(u,c),null!==e&&(kt(o,e,c),null!==u.classes&&fs(o,e,u.classes),null!==u.styles&&ds(o,e,u.styles)));const a=r.createRenderer(e,t),l=Xr(n,co(t),null,t.onPush?64:16,n[19],u,r,a,void 0);return i.firstCreatePass&&(Kt(Qt(u,n),i,t.type),vo(i,u),_o(u,n.length,1)),No(n,l),n[19]=l}(a,this.componentDef,p,s,u);if(a)if(n)kt(u,a,["ng-version",Ku.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let r=1,o=2;for(;r0&&fs(u,a,t.join(" "))}m=pr(p[1],0),t&&(m.projection=t.map(e=>Array.from(e))),g=function(e,t,n,r,o){const s=n[1],i=function(e,t,n){const r=Qe();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),wo(e,r,1),Co(e,t,n));const o=nn(t,e,t.length-1,r);Er(o,t);const s=fr(r,t);return s&&Er(s,t),o}(s,n,t);r.components.push(i),e[8]=i,o&&o.forEach(e=>e(i,t)),t.contentQueries&&t.contentQueries(1,i,n.length-1);const u=Qe();if(s.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){ht(u.index-19);const e=n[1];go(e,t),mo(e,n,t.hostVars),yo(t,i)}return i}(e,this.componentDef,p,f,[yu]),to(h,p,null)}finally{dt()}const y=new ll(this.componentType,g,ws(Uu,m,p),p,m);return n&&!d||(y.hostView._tViewNode.child=m),y}}class ll extends Vu{constructor(e,t,n,r,o){super(),this.location=n,this._rootLView=r,this._tNode=o,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new ps(r),this.hostView._tViewNode=function(e,t,n,r){let o=e.node;return null==o&&(e.node=o=lo(0,null,2,-1,null,null)),r[6]=o}(r[1],0,0,r),this.componentType=e}get injector(){return new sn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const dl=void 0;var fl=["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(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let hl={};function pl(e,t,n){"string"!=typeof t&&(n=t,t=e[vl.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),hl[t]=e,n&&(hl[t][vl.ExtraData]=n)}function gl(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=wl(t);if(n)return n;const r=t.split("-")[0];if(n=wl(r),n)return n;if("en"===r)return fl;throw new Error(`Missing locale data for the locale "${e}".`)}function ml(e){return gl(e)[vl.CurrencyCode]||null}function yl(e){return gl(e)[vl.PluralCase]}function wl(e){return e in hl||(hl[e]=j.ng&&j.ng.common&&j.ng.common.locales&&j.ng.common.locales[e]),hl[e]}const vl=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,PluralCase:19,ExtraData:20};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),bl=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,_l=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Cl=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,Dl=/\ufffd(\d+):?\d*\ufffd/gi,El=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi;function xl(e){if(!e)return[];let t=0;const n=[],r=[],o=/[{}]/g;let s;for(o.lastIndex=0;s=o.exec(e);){const o=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const n=e.substring(t,o);bl.test(n)?r.push(Al(n)):r.push(n),t=o+1}}else{if(0==n.length){const n=e.substring(t,o);r.push(n),t=o+1}n.push("{")}}const i=e.substring(t);return r.push(i),r}function Al(e){const t=[],n=[];let r=1,o=0;const s=xl(e=e.replace(bl,(function(e,t,n){return r="select"===n?0:1,o=parseInt(t.substr(1),10),""})));for(let i=0;in.length&&n.push(o)}return{type:r,mainBinding:o,cases:t,values:n}}function Fl(e){let t,n,r="",o=0,s=!1;for(;null!==(t=_l.exec(e));)s?t[0]===`\ufffd/*${n}\ufffd`&&(o=t.index,s=!1):(r+=e.substring(o,t.index+t[0].length),n=t[1],s=!0);return r+=e.substr(o),r}function kl(e,t,n,r=null){const o=[null,null],s=e.split(Dl);let i=0;for(let u=0;u0&&i!==u){let e=i.index-19;We()||(e=~e),l.push(e<<3|0)}const d=[],f=[],h=(p=function(e,t){if("number"!=typeof t)return Fl(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Fl(e.substring(n,r))}}(r,o),p.replace(Ul," ")).split(Cl);var p;for(let g=0;g0&&function(e,t,n){if(n>0&&e.firstCreatePass){for(let r=0;r>>17;let l;l=o===e?r[6]:pr(n,o),i=Vl(n,s,l,i,r);break;case 0:const d=a>=0,f=(d?a:~a)>>>3;u.push(f),i=s,s=pr(n,f),s&&Ge(s,d);break;case 5:i=s=pr(n,a>>>3),Ge(s,!1);break;case 4:Eo(a>>>3,t[++c],t[++c],n,r);break;default:throw new Error(`Unable to determine the type of mutate operation for "${a}"`)}else switch(a){case zr:const e=t[++c],l=t[++c],d=o.createComment(e);i=s,s=Pl(n,r,l,5,d,null),u.push(l),Er(d,r),s.activeCaseIndex=null,Je();break;case Ur:const f=t[++c],h=t[++c];i=s,s=Pl(n,r,h,3,o.createElement(f),f),u.push(h);break;default:throw new Error(`Unable to determine the type of mutate operation for "${a}"`)}}return Je(),u}(n,r.create,e,t);let i=n+1;for(;i<=o.index-19;){-1===s.indexOf(i)&&Ml(e,t,i,!0);const n=pr(e,i);!n||0!==n.type&&3!==n.type&&4!==n.type||null===n.localNames||(i+=n.localNames.length>>1),i++}}(qe(),e),Pi(!1)}()}function Bl(e,t){!function(e,t,n,r){const o=Qe().index-19,s=[];for(let i=0;i null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(zl=e.toLowerCase().replace(/_/g,"-"))}const Zl=new Map;function Ql(e,t){const n=Zl.get(e);Gl(e,n&&n.moduleType,t.moduleType),Zl.set(e,t)}function Gl(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${k(t)} vs ${k(t.name)}`)}class Wl extends ue{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new il(this);const n=Re(e),r=e[U]||null;r&&ql(r),this._bootstrapComponents=Ut(n.bootstrap),this._r3Injector=Bs(e,t,[{provide:ue,useValue:this},{provide:Lu,useValue:this.componentFactoryResolver}],k(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Qs.THROW_IF_NOT_FOUND,n=g.Default){return e===Qs||e===ue||e===Q?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Jl extends ce{constructor(e){super(),this.moduleType=e,null!==Re(e)&&function e(t){if(null!==t.\u0275mod.id){const e=t.\u0275mod.id;Gl(e,Zl.get(e),t),Zl.set(e,t)}let n=t.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(t=>e(t))}(e)}create(e){return new Wl(this.moduleType,e)}}function Kl(e,t,n){const r=Xe()+e,o=ze();return o[r]===Br?ii(o,r,n?t.call(n):t()):ui(o,r)}function Yl(e,t,n,r){return td(ze(),Xe(),e,t,n,r)}function Xl(e,t,n,r,o){return nd(ze(),Xe(),e,t,n,r,o)}function ed(e,t,n,r,o,s){return function(e,t,n,r,o,s,i,u){const c=t+n;return function(e,t,n,r,o){const s=ai(e,t,n,r);return ci(e,t+2,o)||s}(e,c,o,s,i)?ii(e,c+3,u?r.call(u,o,s,i):r(o,s,i)):ui(e,c+3)}(ze(),Xe(),e,t,n,r,o,s)}function td(e,t,n,r,o,s){const i=t+n;return ci(e,i,o)?ii(e,i+1,s?r.call(s,o):r(o)):ui(e,i+1)}function nd(e,t,n,r,o,s,i){const u=t+n;return ai(e,u,o,s)?ii(e,u+2,i?r.call(i,o,s):r(o,s)):ui(e,u+2)}function rd(e,t){const n=qe();let r;const o=e+19;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}throw new Error(`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const s=r.factory||(r.factory=Oe(r.type)),i=ee(pi),u=s();return ee(i),function(e,t,n,r){const o=n+19;o>=e.data.length&&(e.data[o]=null,e.blueprint[o]=null),t[o]=r}(n,ze(),e,u),u}function od(e,t,n){const r=ze(),o=gr(r,e);return ud(r,id(r,e)?td(r,Xe(),t,o.transform,n,o):o.transform(n))}function sd(e,t,n,r){const o=ze(),s=gr(o,e);return ud(o,id(o,e)?nd(o,Xe(),t,s.transform,n,r,s):s.transform(n,r))}function id(e,t){return e[1].data[t+19].pure}function ud(e,t){return ri.isWrapped(t)&&(t=ri.unwrap(t),e[$e.lFrame.bindingIndex]=Br),t}class cd extends r.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,i=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(i=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const u=super.subscribe(r,s,i);return e instanceof o.a&&e.add(u),u}}function ad(){return this._results[ei()]()}class ld{constructor(){this.dirty=!0,this._results=[],this.changes=new cd,this.length=0;const e=ei(),t=ld.prototype;t[e]||(t[e]=ad)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r0)o.push(u[t/2]);else{const s=i[t+1],u=n[-r];for(let t=9;t{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(ne(Td,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();const Rd=new Z("AppId"),Vd={provide:Rd,useFactory:function(){return`${Pd()}${Pd()}${Pd()}`},deps:[]};function Pd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Md=new Z("Platform Initializer"),jd=new Z("Platform ID"),Bd=new Z("appBootstrapListener"),Ld=new Z("Application Packages Root URL");let Hd=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();const $d=new Z("LocaleId"),Ud=new Z("DefaultCurrencyCode"),zd=new Z("Translations"),qd=new Z("TranslationsFormat"),Zd=function(){var e={Error:0,Warning:1,Ignore:2};return e[e.Error]="Error",e[e.Warning]="Warning",e[e.Ignore]="Ignore",e}();class Qd{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const Gd=function(e){return new Jl(e)},Wd=Gd,Jd=function(e){return Promise.resolve(Gd(e))},Kd=function(e){const t=Gd(e),n=Ut(Re(e).declarations).reduce((e,t)=>{const n=Te(t);return n&&e.push(new al(n)),e},[]);return new Qd(t,n)},Yd=Kd,Xd=function(e){return Promise.resolve(Kd(e))};let ef=(()=>{class e{constructor(){this.compileModuleSync=Wd,this.compileModuleAsync=Jd,this.compileModuleAndAllComponentsSync=Yd,this.compileModuleAndAllComponentsAsync=Xd}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();const tf=new Z("compilerOptions");class nf{}const rf=(()=>Promise.resolve(0))();function of(e){"undefined"==typeof Zone?rf.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class sf{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new cd(!1),this.onMicrotaskEmpty=new cd(!1),this.onStable=new cd(!1),this.onError=new cd(!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)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=t,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let e=j.requestAnimationFrame,t=j.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(j,()=>{e.lastRequestAnimationFrameId=-1,lf(e),af(e)}),lf(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,r,o,s,i,u)=>{try{return df(e),n.invokeTask(o,s,i,u)}finally{t&&"eventTask"===s.type&&t(),ff(e)}},onInvoke:(t,n,r,o,s,i,u)=>{try{return df(e),t.invoke(r,o,s,i,u)}finally{ff(e)}},onHasTask:(t,n,r,o)=>{t.hasTask(r,o),n===r&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,lf(e),af(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,n,r,o)=>(t.handleError(r,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!sf.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(sf.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,cf,uf,uf);try{return o.runTask(s,t,n)}finally{o.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function uf(){}const cf={};function af(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function lf(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function df(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ff(e){e._nesting--,af(e)}class hf{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new cd,this.onMicrotaskEmpty=new cd,this.onStable=new cd,this.onError=new cd}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}}let pf=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{sf.assertNotInAngularZone(),of(()=>{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())of(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(ne(sf))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})(),gf=(()=>{class e{constructor(){this._applications=new Map,vf.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return vf.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();class mf{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function yf(e){vf=e}let wf,vf=new mf,bf=function(e,t,n){const r=new Jl(n);if(0===Ws.size)return Promise.resolve(r);const o=function(e){const t=[];return e.forEach(e=>e&&t.push(...e)),t}(e.get(tf,[]).concat(t).map(e=>e.providers));if(0===o.length)return Promise.resolve(r);const s=function(){const e=j.ng;if(!e||!e.\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 e.\u0275compilerFacade}(),i=Qs.create({providers:o}).get(s.ResourceLoader);return function(e){const t=[],n=new Map;function r(e){let t=n.get(e);if(!t){const r=(e=>Promise.resolve(i.get(e)))(e);n.set(e,t=r.then(Ks))}return t}return Ws.forEach((e,n)=>{const o=[];e.templateUrl&&o.push(r(e.templateUrl).then(t=>{e.template=t}));const s=e.styleUrls,i=e.styles||(e.styles=[]),u=e.styles.length;s&&s.forEach((t,n)=>{i.push(""),o.push(r(t).then(r=>{i[u+n]=r,s.splice(s.indexOf(t),1),0==s.length&&(e.styleUrls=void 0)}))});const c=Promise.all(o).then(()=>function(e){Js.delete(e)}(n));t.push(c)}),Ws=new Map,Promise.all(t).then(()=>{})}().then(()=>r)};const _f=new Z("AllowMultipleToken");class Cf{constructor(e,t){this.name=e,this.token=t}}function Df(e,t,n=[]){const r=`Platform: ${t}`,o=new Z(r);return(t=[])=>{let s=Ef();if(!s||s.injector.get(_f,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{const e=n.concat(t).concat({provide:o,useValue:!0},{provide:Os,useValue:"platform"});!function(e){if(wf&&!wf.destroyed&&!wf.injector.get(_f,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");wf=e.get(xf);const t=e.get(Md,null);t&&t.forEach(e=>e())}(Qs.create({providers:e,name:r}))}return function(e){const t=Ef();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function Ef(){return wf&&!wf.destroyed?wf:null}let xf=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new hf:("zone.js"===e?void 0:e)||new sf({enableLongStackTrace:kn(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),r=[{provide:sf,useValue:n}];return n.run(()=>{const t=Qs.create({providers:r,parent:this.injector,name:e.moduleType.name}),o=e.create(t),s=o.injector.get(dn,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(()=>kf(this._modules,o)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{s.handleError(e)}})),function(e,t,n){try{const r=n();return xi(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,n,()=>{const e=o.injector.get(Od);return e.runInitializers(),e.donePromise.then(()=>(ql(o.injector.get($d,"en-US")||"en-US"),this._moduleDoBootstrap(o),o))})})}bootstrapModule(e,t=[]){const n=Af({},t);return bf(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Ff);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${k(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(ne(Qs))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();function Af(e,t){return Array.isArray(t)?t.reduce(Af,e):Object.assign(Object.assign({},e),t)}let Ff=(()=>{class e{constructor(e,t,n,r,o,c){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=kn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new s.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),l=new s.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{sf.assertNotInAngularZone(),of(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{sf.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(i.a)(a,l.pipe(Object(u.a)()))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof Pu?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(ue),o=n.create(Qs.NULL,[],t||n.selector,r);o.onDestroy(()=>{this._unloadComponent(o)});const s=o.injector.get(pf,null);return s&&o.injector.get(gf).registerApplication(o.location.nativeElement,s),this._loadComponent(o),kn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;kf(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Bd,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),kf(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(ne(sf),ne(Hd),ne(Qs),ne(dn),ne(Lu),ne(Od))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();function kf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class If{}class Sf{}const Nf={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Tf=(()=>{class e{constructor(e,t){this._compiler=e,this._config=t||Nf}load(e){return this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("crnd")(t).then(e=>e[r]).then(e=>Of(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),o="NgFactory";return void 0===r&&(r="default",o=""),n("crnd")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+o]).then(e=>Of(e,t,r))}}return e.\u0275fac=function(t){return new(t||e)(ne(ef),ne(Sf,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e})();function Of(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Rf{constructor(e,t){this.name=e,this.callback=t}}class Vf{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Pf&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Pf extends Vf{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,r){t.childNodes.forEach(t=>{t instanceof Pf&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof Pf&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof Pf&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Pf)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}class Mf{constructor(e){this.nativeNode=e}get parent(){const e=this.nativeNode.parentNode;return e?new jf(e):null}get injector(){return function(e){const t=pu(e,!1);return null===t?Qs.NULL:new sn(t.lView[1].data[t.nodeIndex],t.lView)}(this.nativeNode)}get componentInstance(){const e=this.nativeNode;return e&&(hu(e)||function(e){const t=pu(e,!1);if(null===t)return null;let n,r=t.lView;for(;null===r[0]&&(n=Lr(r));)r=n;return 512&r[2]?null:r[8]}(e))}get context(){return hu(this.nativeNode)||function(e){mu(e);const t=pu(e,!1);return null===t?null:t.lView[8]}(this.nativeNode)}get listeners(){return function(e){mu(e);const t=pu(e,!1);if(null===t)return[];const n=t.lView,r=n[7],o=n[1].cleanup,s=[];if(o&&r)for(let i=0;i=0?"dom":"output",h="boolean"==typeof d&&d;e==a&&s.push({element:e,name:c,callback:l,useCapture:h,type:f})}}return s.sort(gu),s}(this.nativeNode).filter(e=>"dom"===e.type)}get references(){return function(e){const t=pu(e,!1);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){const n=e[1].data[t];if(n&&n.localNames){const t={};let r=n.index+1;for(let o=0;o1){let r=i[1];for(let e=1;ee[t]=!0),e}get childNodes(){const e=this.nativeNode.childNodes,t=[];for(let n=0;n{if(o.name===e){const e=o.callback;e.call(n,t),r.push(e)}}),"function"==typeof n.eventListeners&&n.eventListeners(e).forEach(e=>{if(-1!==e.toString().indexOf("__ngUnwrap__")){const o=e("__ngUnwrap__");return-1===r.indexOf(o)&&o.call(n,t)}})}}function Bf(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function Lf(e,t,n,r){const o=pu(e.nativeNode,!1);null!==o?Hf(o.lView[1].data[o.nodeIndex],o.lView,t,n,r,e.nativeNode):zf(e.nativeNode,t,n,r)}function Hf(e,t,n,r,o,s){const i=hr(e,t);if(3===e.type||4===e.type){if(Uf(i,n,r,o,s),je(e)){const i=mr(e.index,t);i&&i[1].firstChild&&Hf(i[1].firstChild,i,n,r,o,s)}else e.child&&Hf(e.child,t,n,r,o,s),i&&zf(i,n,r,o);const u=t[e.index];Pe(u)&&$f(u,n,r,o,s)}else if(0===e.type){const i=t[e.index];Uf(i[7],n,r,o,s),$f(i,n,r,o,s)}else if(1===e.type){const i=t[16],u=i[6].projection[e.projection];if(Array.isArray(u))for(let e of u)Uf(e,n,r,o,s);else if(u){const e=i[3];Hf(e[1].data[u.index],e,n,r,o,s)}}else e.child&&Hf(e.child,t,n,r,o,s);if(s!==i){const i=4&e.flags?e.projectionNext:e.next;i&&Hf(i,t,n,r,o,s)}}function $f(e,t,n,r,o){for(let s=9;s{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Od,useClass:Od,deps:[[new f,Td]]},{provide:ef,useClass:ef,deps:[]},Vd,{provide:cc,useFactory:function(){return dc},deps:[]},{provide:ac,useFactory:function(){return fc},deps:[]},{provide:$d,useFactory:function(e){return ql(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new d($d),new f,new p]]},{provide:Ud,useValue:"USD"}];let Yf=(()=>{class e{constructor(e){}}return e.\u0275mod=Fe({type:e}),e.\u0275inj=v({factory:function(t){return new(t||e)(ne(Ff))},providers:Kf}),e})();function Xf(e,t,n,r,o,s){e|=1;const{matchedQueries:i,references:u,matchedQueryIds:c}=Zc(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:i,matchedQueryIds:c,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:s?Jc(s):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||kc},provider:null,text:null,query:null,ngContent:null}}function eh(e,t,n,r,o,s,i=[],u,c,a,l,d){a||(a=kc);const{matchedQueries:f,references:h,matchedQueryIds:p}=Zc(n);let g=null,m=null;s&&([g,m]=ra(s)),u=u||[];const y=[];for(let b=0;b{const[n,r]=ra(e);return[n,r,t]});return d=function(e){if(e&&"$$undefined"===e.id){const t=null!=e.encapsulation&&e.encapsulation!==we.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${Oc++}`:"$$empty"}return e&&"$$empty"===e.id&&(e=null),e||null}(d),l&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:f,matchedQueryIds:p,references:h,ngContentIndex:r,childCount:o,bindings:y,bindingFlags:oa(y),outputs:w,element:{ns:g,name:m,attrs:v,template:null,componentProvider:null,componentView:l||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:a||kc},provider:null,text:null,query:null,ngContent:null}}function th(e,t,n){const r=n.element,o=e.root.selectorOrNode,s=e.renderer;let i;if(e.parent||!o){i=r.name?s.createElement(r.name,r.ns):s.createComment("");const o=Gc(e,t,n);o&&s.appendChild(o,i)}else i=s.selectRootElement(o,!!r.componentRendererType&&r.componentRendererType.encapsulation===we.ShadowDom);if(r.attrs)for(let u=0;uBc(e,t,n,r)}function oh(e,t,n,r){if(!Vc(e,t,n,r))return!1;const o=t.bindings[n],s=Dc(e,t.nodeIndex),i=s.renderElement,u=o.name;switch(15&o.flags){case 1:!function(e,t,n,r,o,s){const i=t.securityContext;let u=i?e.root.sanitizer.sanitize(i,s):s;u=null!=u?u.toString():null;const c=e.renderer;null!=s?c.setAttribute(n,o,u,r):c.removeAttribute(n,o,r)}(e,o,i,o.ns,u,r);break;case 2:!function(e,t,n,r){const o=e.renderer;r?o.addClass(t,n):o.removeClass(t,n)}(e,i,u,r);break;case 4:!function(e,t,n,r,o){let s=e.root.sanitizer.sanitize(Xn.STYLE,o);if(null!=s){s=s.toString();const e=t.suffix;null!=e&&(s+=e)}else s=null;const i=e.renderer;null!=s?i.setStyle(n,r,s):i.removeStyle(n,r)}(e,o,i,u,r);break;case 8:!function(e,t,n,r,o){const s=t.securityContext;let i=s?e.root.sanitizer.sanitize(s,o):o;e.renderer.setProperty(n,r,i)}(33554432&t.flags&&32&o.flags?s.componentView:e,o,i,u,r)}return!0}function sh(e,t,n){let r=[];for(let o in n)r.push({propName:o,bindingType:n[o]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:qc(t),bindings:r},ngContent:null}}function ih(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&zc(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let o=0;o<=r;o++){const r=e.def.nodes[o];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&Ac(e,o).setDirty(),!(1&r.flags&&o+r.childCount0)a=e,bh(e)||(l=e);else for(;a&&p===a.nodeIndex+a.childCount;){const e=a.parent;e&&(e.childFlags|=a.childFlags,e.childMatchedQueries|=a.childMatchedQueries),a=e,l=a&&bh(a)?a.renderParent:a}}return{factory:null,nodeFlags:i,rootNodeFlags:u,nodeMatchedQueries:c,flags:e,nodes:t,updateDirectives:n||kc,updateRenderer:r||kc,handleEvent:(e,n,r,o)=>t[n].element.handleEvent(e,r,o),bindingCount:o,outputCount:s,lastRenderRootNode:h}}function bh(e){return 0!=(1&e.flags)&&null===e.element.name}function _h(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function Ch(e,t,n,r){const o=xh(e.root,e.renderer,e,t,n);return Ah(o,e.component,r),Fh(o),o}function Dh(e,t,n){const r=xh(e,e.renderer,null,null,t);return Ah(r,n,n),Fh(r),r}function Eh(e,t,n,r){const o=t.element.componentRendererType;let s;return s=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,xh(e.root,s,e,t.element.componentProvider,n)}function xh(e,t,n,r,o){const s=new Array(o.nodes.length),i=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:s,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:i,initIndex:-1}}function Ah(e,t,n){e.component=t,e.context=n}function Fh(e){let t;Uc(e)&&(t=Dc(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let o=0;o0&&oh(e,t,0,n)&&(h=!0),f>1&&oh(e,t,1,r)&&(h=!0),f>2&&oh(e,t,2,o)&&(h=!0),f>3&&oh(e,t,3,s)&&(h=!0),f>4&&oh(e,t,4,i)&&(h=!0),f>5&&oh(e,t,5,u)&&(h=!0),f>6&&oh(e,t,6,c)&&(h=!0),f>7&&oh(e,t,7,a)&&(h=!0),f>8&&oh(e,t,8,l)&&(h=!0),f>9&&oh(e,t,9,d)&&(h=!0),h}(e,t,n,r,o,s,i,u,c,a,l,d);case 2:return function(e,t,n,r,o,s,i,u,c,a,l,d){let f=!1;const h=t.bindings,p=h.length;if(p>0&&Vc(e,t,0,n)&&(f=!0),p>1&&Vc(e,t,1,r)&&(f=!0),p>2&&Vc(e,t,2,o)&&(f=!0),p>3&&Vc(e,t,3,s)&&(f=!0),p>4&&Vc(e,t,4,i)&&(f=!0),p>5&&Vc(e,t,5,u)&&(f=!0),p>6&&Vc(e,t,6,c)&&(f=!0),p>7&&Vc(e,t,7,a)&&(f=!0),p>8&&Vc(e,t,8,l)&&(f=!0),p>9&&Vc(e,t,9,d)&&(f=!0),f){let f=t.text.prefix;p>0&&(f+=wh(n,h[0])),p>1&&(f+=wh(r,h[1])),p>2&&(f+=wh(o,h[2])),p>3&&(f+=wh(s,h[3])),p>4&&(f+=wh(i,h[4])),p>5&&(f+=wh(u,h[5])),p>6&&(f+=wh(c,h[6])),p>7&&(f+=wh(a,h[7])),p>8&&(f+=wh(l,h[8])),p>9&&(f+=wh(d,h[9]));const g=Cc(e,t.nodeIndex).renderText;e.renderer.setValue(g,f)}return f}(e,t,n,r,o,s,i,u,c,a,l,d);case 16384:return function(e,t,n,r,o,s,i,u,c,a,l,d){const f=Ec(e,t.nodeIndex),h=f.instance;let p=!1,g=void 0;const m=t.bindings.length;return m>0&&Rc(e,t,0,n)&&(p=!0,g=nl(e,f,t,0,n,g)),m>1&&Rc(e,t,1,r)&&(p=!0,g=nl(e,f,t,1,r,g)),m>2&&Rc(e,t,2,o)&&(p=!0,g=nl(e,f,t,2,o,g)),m>3&&Rc(e,t,3,s)&&(p=!0,g=nl(e,f,t,3,s,g)),m>4&&Rc(e,t,4,i)&&(p=!0,g=nl(e,f,t,4,i,g)),m>5&&Rc(e,t,5,u)&&(p=!0,g=nl(e,f,t,5,u,g)),m>6&&Rc(e,t,6,c)&&(p=!0,g=nl(e,f,t,6,c,g)),m>7&&Rc(e,t,7,a)&&(p=!0,g=nl(e,f,t,7,a,g)),m>8&&Rc(e,t,8,l)&&(p=!0,g=nl(e,f,t,8,l,g)),m>9&&Rc(e,t,9,d)&&(p=!0,g=nl(e,f,t,9,d,g)),g&&h.ngOnChanges(g),65536&t.flags&&_c(e,256,t.nodeIndex)&&h.ngOnInit(),262144&t.flags&&h.ngDoCheck(),p}(e,t,n,r,o,s,i,u,c,a,l,d);case 32:case 64:case 128:return function(e,t,n,r,o,s,i,u,c,a,l,d){const f=t.bindings;let h=!1;const p=f.length;if(p>0&&Vc(e,t,0,n)&&(h=!0),p>1&&Vc(e,t,1,r)&&(h=!0),p>2&&Vc(e,t,2,o)&&(h=!0),p>3&&Vc(e,t,3,s)&&(h=!0),p>4&&Vc(e,t,4,i)&&(h=!0),p>5&&Vc(e,t,5,u)&&(h=!0),p>6&&Vc(e,t,6,c)&&(h=!0),p>7&&Vc(e,t,7,a)&&(h=!0),p>8&&Vc(e,t,8,l)&&(h=!0),p>9&&Vc(e,t,9,d)&&(h=!0),h){const h=xc(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=[],p>0&&g.push(n),p>1&&g.push(r),p>2&&g.push(o),p>3&&g.push(s),p>4&&g.push(i),p>5&&g.push(u),p>6&&g.push(c),p>7&&g.push(a),p>8&&g.push(l),p>9&&g.push(d);break;case 64:g={},p>0&&(g[f[0].name]=n),p>1&&(g[f[1].name]=r),p>2&&(g[f[2].name]=o),p>3&&(g[f[3].name]=s),p>4&&(g[f[4].name]=i),p>5&&(g[f[5].name]=u),p>6&&(g[f[6].name]=c),p>7&&(g[f[7].name]=a),p>8&&(g[f[8].name]=l),p>9&&(g[f[9].name]=d);break;case 128:const e=n;switch(p){case 1:g=e.transform(n);break;case 2:g=e.transform(r);break;case 3:g=e.transform(r,o);break;case 4:g=e.transform(r,o,s);break;case 5:g=e.transform(r,o,s,i);break;case 6:g=e.transform(r,o,s,i,u);break;case 7:g=e.transform(r,o,s,i,u,c);break;case 8:g=e.transform(r,o,s,i,u,c,a);break;case 9:g=e.transform(r,o,s,i,u,c,a,l);break;case 10:g=e.transform(r,o,s,i,u,c,a,l,d)}}h.value=g}return h}(e,t,n,r,o,s,i,u,c,a,l,d);default:throw"unreachable"}}(e,t,r,o,s,i,u,c,a,l,d,f):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let o=0;o0&&Pc(e,t,0,n),f>1&&Pc(e,t,1,r),f>2&&Pc(e,t,2,o),f>3&&Pc(e,t,3,s),f>4&&Pc(e,t,4,i),f>5&&Pc(e,t,5,u),f>6&&Pc(e,t,6,c),f>7&&Pc(e,t,7,a),f>8&&Pc(e,t,8,l),f>9&&Pc(e,t,9,d)}(e,t,r,o,s,i,u,c,a,l,d,f):function(e,t,n){for(let r=0;r{const r=Gh.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{Wh.forEach((r,o)=>{b(o).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t0){let t=new Set(e.modules);Wh.forEach((r,o)=>{if(t.has(b(o).providedIn)){let t={token:o,flags:r.flags|(n?4096:0),deps:Qc(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Sc(o)]=t}})}}(e=e.factory(()=>kc)),e):e}(r))}const Gh=new Map,Wh=new Map,Jh=new Map;function Kh(e){let t;Gh.set(e.token,e),"function"==typeof e.token&&(t=b(e.token))&&"function"==typeof t.providedIn&&Wh.set(e.token,e)}function Yh(e,t){const n=Jc(t.viewDefFactory),r=Jc(n.nodes[0].element.componentView);Jh.set(e,r)}function Xh(){Gh.clear(),Wh.clear(),Jh.clear()}function ep(e){if(0===Gh.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;rkc);for(let r=0;r"-"+e[1].toLowerCase())}`)]=ar(u))}const r=t.parent,u=Dc(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(u,t,r):e.renderer.removeAttribute(u,t)}else e.renderer.setValue(u,`bindings=${JSON.stringify(n,null,2)}`)}}var o,s}function gp(e,t,n,r){Th(e,t,n,...r)}function mp(e,t){for(let n=t;n(s++,s===o?e.error.bind(e,...t):kc)),snew wp(e,t),handleEvent:dp,updateDirectives:fp,updateRenderer:hp}:{setCurrentNode:()=>{},createRootView:$h,createEmbeddedView:Ch,createComponentView:Eh,createNgModuleRef:Ra,overrideProvider:kc,overrideComponentView:kc,clearOverrides:kc,checkAndUpdateView:Ih,checkNoChangesView:kh,destroyView:Rh,createDebugContext:(e,t)=>new wp(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?tp:np,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?tp:np,e)};Fc.setCurrentNode=e.setCurrentNode,Fc.createRootView=e.createRootView,Fc.createEmbeddedView=e.createEmbeddedView,Fc.createComponentView=e.createComponentView,Fc.createNgModuleRef=e.createNgModuleRef,Fc.overrideProvider=e.overrideProvider,Fc.overrideComponentView=e.overrideComponentView,Fc.clearOverrides=e.clearOverrides,Fc.checkAndUpdateView=e.checkAndUpdateView,Fc.checkNoChangesView=e.checkNoChangesView,Fc.destroyView=e.destroyView,Fc.resolveDep=el,Fc.createDebugContext=e.createDebugContext,Fc.handleEvent=e.handleEvent,Fc.updateDirectives=e.updateDirectives,Fc.updateRenderer=e.updateRenderer,Fc.dirtyParentQueries=ih}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const o in e.providersByKey)r[o]=e.providersByKey[o];return{factory:e.factory,scope:e.scope,providers:t,modules:n,providersByKey:r}}(Jc(this._ngModuleDefFactory));return Fc.createNgModuleRef(this.moduleType,e||Qs.NULL,this._bootstrapComponents,t)}}},gRHU:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("2fFW"),o=n("NJ4a");const s={closed:!0,next(e){},error(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(o.a)(e)},complete(){}}},jZKg:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("HDdC"),o=n("quSY");function s(e,t){return new r.a(n=>{const r=new o.a;let s=0;return r.add(t.schedule((function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}},jhN1:function(e,t,n){"use strict";n.d(t,"a",(function(){return M})),n.d(t,"b",(function(){return T})),n.d(t,"c",(function(){return A})),n.d(t,"d",(function(){return _})),n.d(t,"e",(function(){return V}));var r=n("ofXK"),o=n("fXoL");class s extends r.L{constructor(){super()}supportsDOMEvents(){return!0}}class i extends s{static makeCurrent(){Object(r.P)(new i)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==t?null:(n=t,u||(u=document.createElement("a")),u.setAttribute("href",n),"/"===u.pathname.charAt(0)?u.pathname:"/"+u.pathname);var n}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Object(r.O)(document.cookie,e)}}let u,c=null;const a=new o.v("TRANSITION_ID"),l=[{provide:o.d,useFactory:function(e,t,n){return()=>{n.get(o.e).donePromise.then(()=>{const n=Object(r.N)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[a,r.e,o.w],multi:!0}];class d{static init(){Object(o.gb)(new d)}addToWindow(e){o.Ib.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},o.Ib.getAllAngularTestabilities=()=>e.getAllTestabilities(),o.Ib.getAllAngularRootElements=()=>e.getAllRootElements(),o.Ib.frameworkStabilizers||(o.Ib.frameworkStabilizers=[]),o.Ib.frameworkStabilizers.push(e=>{const t=o.Ib.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,n--,0==n&&e(r)};t.forEach((function(e){e.whenStable(s)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const o=e.getTestability(t);return null!=o?o:n?Object(r.N)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const f=new o.v("EventManagerPlugins");let h=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=o.uc({token:e,factory:e.\u0275fac}),e})(),m=(()=>{class e extends g{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Object(r.N)().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(o.Jc(r.e))},e.\u0275prov=o.uc({token:e,factory:e.\u0275fac}),e})();const y={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/"},w=/%COMP%/g;function v(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let _=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new C(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case o.Y.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new D(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case o.Y.Native:case o.Y.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=v(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(o.Jc(h),o.Jc(m),o.Jc(o.c))},e.\u0275prov=o.uc({token:e,factory:e.\u0275fac}),e})();class C{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(y[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const o=y[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=y[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&o.N.DashCase?e.style.setProperty(t,n,r&o.N.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&o.N.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,b(n)):this.eventManager.addEventListener(e,t,b(n))}}class D extends C{constructor(e,t,n,r){super(e),this.component=n;const o=v(r+"-"+n.id,n.styles,[]);t.addStyles(o),this.contentAttr="_ngcontent-%COMP%".replace(w,r+"-"+n.id),this.hostAttr=function(e){return"_nghost-%COMP%".replace(w,e)}(r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class E extends C{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===o.Y.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=v(r.id,r.styles,[]);for(let o=0;o{class e extends p{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(o.Jc(r.e))},e.\u0275prov=o.uc({token:e,factory:e.\u0275fac}),e})(),A=(()=>{class e{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=o.uc({token:e,factory:e.\u0275fac}),e})();const F=["alt","control","meta","shift"],k={"\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"},I={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"},S={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let N=(()=>{class e extends p{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,o){const s=e.parseEventName(n),i=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(r.N)().onAndCancel(t,s.domEventName,i))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const o=e._normalizeKey(n.pop());let s="";if(F.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),s+=e+".")}),s+=o,0!=n.length||0===o.length)return null;const i={};return i.domEventName=r,i.fullKey=s,i}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&I.hasOwnProperty(t)&&(t=I[t]))}return k[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),F.forEach(r=>{r!=n&&(0,S[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(t,n,r){return o=>{e.getEventFullKey(o)===t&&r.runGuarded(()=>n(o))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(o.Jc(r.e))},e.\u0275prov=o.uc({token:e,factory:e.\u0275fac}),e})(),T=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(o.uc)({factory:function(){return Object(o.Jc)(R)},token:e,providedIn:"root"}),e})();function O(e){return new R(e.get(r.e))}let R=(()=>{class e extends T{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case o.P.NONE:return t;case o.P.HTML:return Object(o.rb)(t,"HTML")?Object(o.fc)(t):Object(o.ob)(this._doc,String(t));case o.P.STYLE:return Object(o.rb)(t,"Style")?Object(o.fc)(t):Object(o.pb)(t);case o.P.SCRIPT:if(Object(o.rb)(t,"Script"))return Object(o.fc)(t);throw new Error("unsafe value used in a script context");case o.P.URL:return Object(o.Hb)(t),Object(o.rb)(t,"URL")?Object(o.fc)(t):Object(o.qb)(String(t));case o.P.RESOURCE_URL:if(Object(o.rb)(t,"ResourceURL"))return Object(o.fc)(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return Object(o.tb)(e)}bypassSecurityTrustStyle(e){return Object(o.wb)(e)}bypassSecurityTrustScript(e){return Object(o.vb)(e)}bypassSecurityTrustUrl(e){return Object(o.xb)(e)}bypassSecurityTrustResourceUrl(e){return Object(o.ub)(e)}}return e.\u0275fac=function(t){return new(t||e)(o.Jc(r.e))},e.\u0275prov=Object(o.uc)({factory:function(){return O(Object(o.Jc)(o.t))},token:e,providedIn:"root"}),e})();const V=[{provide:o.I,useValue:r.M},{provide:o.J,useValue:function(){i.makeCurrent(),d.init()},multi:!0},{provide:r.e,useFactory:function(){return Object(o.bc)(document),document},deps:[]}],P=[[],{provide:o.lb,useValue:"root"},{provide:o.r,useFactory:function(){return new o.r},deps:[]},{provide:f,useClass:x,multi:!0,deps:[r.e,o.F,o.I]},{provide:f,useClass:N,multi:!0,deps:[r.e]},[],{provide:_,useClass:_,deps:[h,m,o.c]},{provide:o.M,useExisting:_},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[r.e]},{provide:o.V,useClass:o.V,deps:[o.F]},{provide:h,useClass:h,deps:[f,o.F]},[]];let M=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:o.c,useValue:t.appId},{provide:a,useExisting:o.c},l]}}}return e.\u0275mod=o.wc({type:e}),e.\u0275inj=o.vc({factory:function(t){return new(t||e)(o.Jc(e,12))},providers:P,imports:[r.c,o.f]}),e})();"undefined"!=typeof window&&window},kJWO:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},l7GE:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7o/Q");class o extends r.a{notifyNext(e,t,n,r,o){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}},lJxs:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7o/Q");function o(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(e,t))}}class s{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new i(e,this.project,this.thisArg))}}class i extends r.a{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},mCNh:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var r=n("KqfI");function o(...e){return s(e)}function s(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:r.a}},n6bG:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",(function(){return r}))},ngJS:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>t=>{for(let n=0,r=e.length;n{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.uc)({factory:l,token:e,providedIn:"platform"}),e})();function l(){return Object(r.Jc)(f)}const d=new r.v("Location Initialized");let f=(()=>{class e extends a{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=s().getLocation(),this._history=s().getHistory()}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,t,n){h()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){h()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(r.Jc(c))},e.\u0275prov=Object(r.uc)({factory:p,token:e,providedIn:"platform"}),e})();function h(){return!!window.history.pushState}function p(){return new f(Object(r.Jc)(c))}function g(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function y(e){return e&&"?"!==e[0]?"?"+e:e}let w=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r.uc)({factory:v,token:e,providedIn:"root"}),e})();function v(e){const t=Object(r.Jc)(c).location;return new _(Object(r.Jc)(a),t&&t.origin||"")}const b=new r.v("appBaseHref");let _=(()=>{class e extends w{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return g(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+y(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const o=this.prepareExternalUrl(n+y(r));this._platformLocation.pushState(e,t,o)}replaceState(e,t,n,r){const o=this.prepareExternalUrl(n+y(r));this._platformLocation.replaceState(e,t,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(r.Jc(a),r.Jc(b,8))},e.\u0275prov=r.uc({token:e,factory:e.\u0275fac}),e})(),C=(()=>{class e extends w{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=g(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let o=this.prepareExternalUrl(n+y(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,t,o)}replaceState(e,t,n,r){let o=this.prepareExternalUrl(n+y(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return e.\u0275fac=function(t){return new(t||e)(r.Jc(a),r.Jc(b,8))},e.\u0275prov=r.uc({token:e,factory:e.\u0275fac}),e})(),D=(()=>{class e{constructor(e,t){this._subject=new r.s,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=m(x(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+y(t))}normalize(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,x(t)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+y(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+y(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}return e.\u0275fac=function(t){return new(t||e)(r.Jc(w),r.Jc(a))},e.normalizeQueryParams=y,e.joinWithSlash=g,e.stripTrailingSlash=m,e.\u0275prov=Object(r.uc)({factory:E,token:e,providedIn:"root"}),e})();function E(){return new D(Object(r.Jc)(w),Object(r.Jc)(a))}function x(e){return e.replace(/\/index.html$/,"")}const A={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},F=function(){var e={Decimal:0,Percent:1,Currency:2,Scientific:3};return e[e.Decimal]="Decimal",e[e.Percent]="Percent",e[e.Currency]="Currency",e[e.Scientific]="Scientific",e}(),k=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),I=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),S=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),N=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),T=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function O(e,t){return L(Object(r.Db)(e)[r.mb.DateFormat],t)}function R(e,t){return L(Object(r.Db)(e)[r.mb.TimeFormat],t)}function V(e,t){return L(Object(r.Db)(e)[r.mb.DateTimeFormat],t)}function P(e,t){const n=Object(r.Db)(e),o=n[r.mb.NumberSymbols][t];if(void 0===o){if(t===T.CurrencyDecimal)return n[r.mb.NumberSymbols][T.Decimal];if(t===T.CurrencyGroup)return n[r.mb.NumberSymbols][T.Group]}return o}function M(e,t){return Object(r.Db)(e)[r.mb.NumberFormats][t]}const j=r.Gb;function B(e){if(!e[r.mb.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[r.mb.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function L(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function H(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const $=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,U={},z=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,q=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),Z=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),Q=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function G(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function W(e,t,n="-",r,o){let s="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,s=n));let i=String(e);for(;i.length0||u>-n)&&(u+=n),e===Z.Hours)0===u&&-12===n&&(u=12);else if(e===Z.FractionalSeconds)return c=t,W(u,3).substr(0,c);var c;const a=P(i,T.MinusSign);return W(u,t,a,r,o)}}function K(e,t,n=I.Format,o=!1){return function(s,i){return function(e,t,n,o,s,i){switch(n){case Q.Months:return function(e,t,n){const o=Object(r.Db)(e),s=L([o[r.mb.MonthsFormat],o[r.mb.MonthsStandalone]],t);return L(s,n)}(t,s,o)[e.getMonth()];case Q.Days:return function(e,t,n){const o=Object(r.Db)(e),s=L([o[r.mb.DaysFormat],o[r.mb.DaysStandalone]],t);return L(s,n)}(t,s,o)[e.getDay()];case Q.DayPeriods:const u=e.getHours(),c=e.getMinutes();if(i){const e=function(e){const t=Object(r.Db)(e);return B(t),(t[r.mb.ExtraData][2]||[]).map(e=>"string"==typeof e?H(e):[H(e[0]),H(e[1])])}(t),n=function(e,t,n){const o=Object(r.Db)(e);B(o);const s=L([o[r.mb.ExtraData][0],o[r.mb.ExtraData][1]],t)||[];return L(s,n)||[]}(t,s,o);let i;if(e.forEach((e,t)=>{if(Array.isArray(e)){const{hours:r,minutes:o}=e[0],{hours:s,minutes:a}=e[1];u>=r&&c>=o&&(u0?Math.floor(o/60):Math.ceil(o/60);switch(e){case q.Short:return(o>=0?"+":"")+W(i,2,s)+W(Math.abs(o%60),2,s);case q.ShortGMT:return"GMT"+(o>=0?"+":"")+W(i,1,s);case q.Long:return"GMT"+(o>=0?"+":"")+W(i,2,s)+":"+W(Math.abs(o%60),2,s);case q.Extended:return 0===r?"Z":(o>=0?"+":"")+W(i,2,s)+":"+W(Math.abs(o%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}function X(e,t=!1){return function(n,r){let o;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();o=1+Math.floor((t+e)/7)}else{const e=function(e){const t=new Date(e,0,1).getDay();return new Date(e,0,1+(t<=4?4:11)-t)}(n.getFullYear()),t=(s=n,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))).getTime()-e.getTime();o=1+Math.round(t/6048e5)}var s;return W(o,e,P(r,T.MinusSign))}}const ee={};function te(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function ne(e){return e instanceof Date&&!isNaN(e.valueOf())}const re=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function oe(e,t,n,r,o,s,i=!1){let u="",c=!1;if(isFinite(e)){let a=function(e){let t,n,r,o,s,i=Math.abs(e)+"",u=0;for((n=i.indexOf("."))>-1&&(i=i.replace(".","")),(r=i.search(/e/i))>0?(n<0&&(n=r),n+=+i.slice(r+1),i=i.substring(0,r)):n<0&&(n=i.length),r=0;"0"===i.charAt(r);r++);if(r===(s=i.length))t=[0],n=1;else{for(s--;"0"===i.charAt(s);)s--;for(n-=r,t=[],o=0;r<=s;r++,o++)t[o]=Number(i.charAt(r))}return n>22&&(t=t.splice(0,21),u=n-1,n=1),{digits:t,exponent:u,integerLen:n}}(e);i&&(a=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(a));let l=t.minInt,d=t.minFrac,f=t.maxFrac;if(s){const e=s.match(re);if(null===e)throw new Error(`${s} is not a valid digit info`);const t=e[1],n=e[3],r=e[5];null!=t&&(l=ie(t)),null!=n&&(d=ie(n)),null!=r?f=ie(r):null!=n&&d>f&&(f=d)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,o=r.length-e.integerLen;const s=Math.min(Math.max(t,o),n);let i=s+e.integerLen,u=r[i];if(i>0){r.splice(Math.max(e.integerLen,i));for(let e=i;e=5)if(i-1<0){for(let t=0;t>i;t--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[i-1]++;for(;o=a?r.pop():c=!1),t>=10?1:0}),0);l&&(r.unshift(l),e.integerLen++)}(a,d,f);let h=a.digits,p=a.integerLen;const g=a.exponent;let m=[];for(c=h.every(e=>!e);p0?m=h.splice(p,h.length):(m=h,h=[0]);const y=[];for(h.length>=t.lgSize&&y.unshift(h.splice(-t.lgSize,h.length).join(""));h.length>t.gSize;)y.unshift(h.splice(-t.gSize,h.length).join(""));h.length&&y.unshift(h.join("")),u=y.join(P(n,r)),m.length&&(u+=P(n,o)+m.join("")),g&&(u+=P(n,T.Exponential)+"+"+g)}else u=P(n,T.Infinity);return u=e<0&&!c?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf,u}function se(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),o=r[0],s=r[1],i=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],u=i[0],c=i[1]||"";n.posPre=u.substr(0,u.indexOf("#"));for(let l=0;l-1)return o;if(o=n.getPluralCategory(e,r),t.indexOf(o)>-1)return o;if(t.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${e}"`)}let ae=(()=>{class e extends ue{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(j(t||this.locale)(e)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(r.Jc(r.z))},e.\u0275prov=r.uc({token:e,factory:e.\u0275fac}),e})();function le(e,t,n){return Object(r.Zb)(e,t,n)}function de(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,o]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let fe=(()=>{class e{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.Lb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(r.cc)(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.x),r.yc(r.y),r.yc(r.q),r.yc(r.L))},e.\u0275dir=r.tc({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})(),he=(()=>{class e{constructor(e){this._viewContainerRef=e,this._componentRef=null,this._moduleRef=null}ngOnChanges(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const e=t.get(r.D);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(e.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(r.n)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,t,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.X))},e.\u0275dir=r.tc({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[r.ic]}),e})();class pe{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let ge=(()=>{class e{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Object(r.eb)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new pe(null,this._ngForOf,-1,-1),null===r?void 0:r),o=new me(e,n);t.push(o)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const o=this._viewContainer.get(n);this._viewContainer.move(o,r);const s=new me(e,o);t.push(s)}});for(let n=0;n{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.X),r.yc(r.U),r.yc(r.x))},e.\u0275dir=r.tc({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class me{constructor(e,t){this.record=e,this.view=t}}let ye=(()=>{class e{constructor(e,t){this._viewContainer=e,this._context=new we,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){ve("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){ve("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.X),r.yc(r.U))},e.\u0275dir=r.tc({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class we{constructor(){this.$implicit=null,this.ngIf=null}}function ve(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(r.cc)(t)}'.`)}class be{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let _e=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let t=0;t{class e{constructor(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new be(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.X),r.yc(r.U),r.yc(_e,1))},e.\u0275dir=r.tc({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e})(),De=(()=>{class e{constructor(e,t,n){n._addDefault(new be(e,t))}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.X),r.yc(r.U),r.yc(_e,1))},e.\u0275dir=r.tc({type:e,selectors:[["","ngSwitchDefault",""]]}),e})(),Ee=(()=>{class e{constructor(e){this._localization=e,this._caseViews={}}set ngPlural(e){this._switchValue=e,this._updateView()}addCase(e,t){this._caseViews[e]=t}_updateView(){this._clearViews();const e=Object.keys(this._caseViews),t=ce(this._switchValue,e,this._localization);this._activateView(this._caseViews[t])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(e){e&&(this._activeView=e,this._activeView.create())}}return e.\u0275fac=function(t){return new(t||e)(r.yc(ue))},e.\u0275dir=r.tc({type:e,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),e})(),xe=(()=>{class e{constructor(e,t,n,r){this.value=e;const o=!isNaN(Number(e));r.addCase(o?`=${e}`:e,new be(n,t))}}return e.\u0275fac=function(t){return new(t||e)(r.Kc("ngPluralCase"),r.yc(r.U),r.yc(r.X),r.yc(Ee,1))},e.\u0275dir=r.tc({type:e,selectors:[["","ngPluralCase",""]]}),e})(),Ae=(()=>{class e{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,r]=e.split(".");null!=(t=null!=t&&r?`${t}${r}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.q),r.yc(r.y),r.yc(r.L))},e.\u0275dir=r.tc({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e})(),Fe=(()=>{class e{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.X))},e.\u0275dir=r.tc({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r.ic]}),e})();function ke(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Object(r.cc)(e)}'`)}class Ie{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class Se{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const Ne=new Se,Te=new Ie;let Oe=(()=>{class e{constructor(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):Object(r.Ob)(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.Z.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(t){if(Object(r.Nb)(t))return Ne;if(Object(r.Mb)(t))return Te;throw ke(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(r.Lc())},e.\u0275pipe=r.xc({name:"async",type:e,pure:!1}),e})(),Re=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw ke(e,t);return t.toLowerCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"lowercase",type:e,pure:!0}),e})();const Ve=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let Pe=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw ke(e,t);return t.replace(Ve,e=>e[0].toUpperCase()+e.substr(1).toLowerCase())}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"titlecase",type:e,pure:!0}),e})(),Me=(()=>{class e{transform(t){if(!t)return t;if("string"!=typeof t)throw ke(e,t);return t.toUpperCase()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"uppercase",type:e,pure:!0}),e})(),je=(()=>{class e{constructor(e){this.locale=e}transform(t,n="mediumDate",o,s){if(null==t||""===t||t!=t)return null;try{return function(e,t,n,o){let s=function(e){if(ne(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){const[t,n,r]=e.split("-").map(e=>+e);return new Date(t,n-1,r)}let n;if(n=e.match($))return function(e){const t=new Date(0);let n=0,r=0;const o=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const i=Number(e[4]||0)-n,u=Number(e[5]||0)-r,c=Number(e[6]||0),a=Math.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(t,i,u,c,a),t}(n)}const t=new Date(e);if(!ne(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=function e(t,n){const o=function(e){return Object(r.Db)(e)[r.mb.LocaleId]}(t);if(U[o]=U[o]||{},U[o][n])return U[o][n];let s="";switch(n){case"shortDate":s=O(t,N.Short);break;case"mediumDate":s=O(t,N.Medium);break;case"longDate":s=O(t,N.Long);break;case"fullDate":s=O(t,N.Full);break;case"shortTime":s=R(t,N.Short);break;case"mediumTime":s=R(t,N.Medium);break;case"longTime":s=R(t,N.Long);break;case"fullTime":s=R(t,N.Full);break;case"short":const n=e(t,"shortTime"),r=e(t,"shortDate");s=G(V(t,N.Short),[n,r]);break;case"medium":const o=e(t,"mediumTime"),i=e(t,"mediumDate");s=G(V(t,N.Medium),[o,i]);break;case"long":const u=e(t,"longTime"),c=e(t,"longDate");s=G(V(t,N.Long),[u,c]);break;case"full":const a=e(t,"fullTime"),l=e(t,"fullDate");s=G(V(t,N.Full),[a,l])}return s&&(U[o][n]=s),s}(n,t)||t;let i,u=[];for(;t;){if(i=z.exec(t),!i){u.push(t);break}{u=u.concat(i.slice(1));const e=u.pop();if(!e)break;t=e}}let c=s.getTimezoneOffset();o&&(c=te(o,c),s=function(e,t,n){const r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(te(t,r)-r))}(s,o));let a="";return u.forEach(e=>{const t=function(e){if(ee[e])return ee[e];let t;switch(e){case"G":case"GG":case"GGG":t=K(Q.Eras,S.Abbreviated);break;case"GGGG":t=K(Q.Eras,S.Wide);break;case"GGGGG":t=K(Q.Eras,S.Narrow);break;case"y":t=J(Z.FullYear,1,0,!1,!0);break;case"yy":t=J(Z.FullYear,2,0,!0,!0);break;case"yyy":t=J(Z.FullYear,3,0,!1,!0);break;case"yyyy":t=J(Z.FullYear,4,0,!1,!0);break;case"M":case"L":t=J(Z.Month,1,1);break;case"MM":case"LL":t=J(Z.Month,2,1);break;case"MMM":t=K(Q.Months,S.Abbreviated);break;case"MMMM":t=K(Q.Months,S.Wide);break;case"MMMMM":t=K(Q.Months,S.Narrow);break;case"LLL":t=K(Q.Months,S.Abbreviated,I.Standalone);break;case"LLLL":t=K(Q.Months,S.Wide,I.Standalone);break;case"LLLLL":t=K(Q.Months,S.Narrow,I.Standalone);break;case"w":t=X(1);break;case"ww":t=X(2);break;case"W":t=X(1,!0);break;case"d":t=J(Z.Date,1);break;case"dd":t=J(Z.Date,2);break;case"E":case"EE":case"EEE":t=K(Q.Days,S.Abbreviated);break;case"EEEE":t=K(Q.Days,S.Wide);break;case"EEEEE":t=K(Q.Days,S.Narrow);break;case"EEEEEE":t=K(Q.Days,S.Short);break;case"a":case"aa":case"aaa":t=K(Q.DayPeriods,S.Abbreviated);break;case"aaaa":t=K(Q.DayPeriods,S.Wide);break;case"aaaaa":t=K(Q.DayPeriods,S.Narrow);break;case"b":case"bb":case"bbb":t=K(Q.DayPeriods,S.Abbreviated,I.Standalone,!0);break;case"bbbb":t=K(Q.DayPeriods,S.Wide,I.Standalone,!0);break;case"bbbbb":t=K(Q.DayPeriods,S.Narrow,I.Standalone,!0);break;case"B":case"BB":case"BBB":t=K(Q.DayPeriods,S.Abbreviated,I.Format,!0);break;case"BBBB":t=K(Q.DayPeriods,S.Wide,I.Format,!0);break;case"BBBBB":t=K(Q.DayPeriods,S.Narrow,I.Format,!0);break;case"h":t=J(Z.Hours,1,-12);break;case"hh":t=J(Z.Hours,2,-12);break;case"H":t=J(Z.Hours,1);break;case"HH":t=J(Z.Hours,2);break;case"m":t=J(Z.Minutes,1);break;case"mm":t=J(Z.Minutes,2);break;case"s":t=J(Z.Seconds,1);break;case"ss":t=J(Z.Seconds,2);break;case"S":t=J(Z.FractionalSeconds,1);break;case"SS":t=J(Z.FractionalSeconds,2);break;case"SSS":t=J(Z.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Y(q.Short);break;case"ZZZZZ":t=Y(q.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Y(q.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Y(q.Long);break;default:return null}return ee[e]=t,t}(e);a+=t?t(s,n,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),a}(t,n,s||this.locale,o)}catch(i){throw ke(e,i.message)}}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.z))},e.\u0275pipe=r.xc({name:"date",type:e,pure:!0}),e})();const Be=/#/g;let Le=(()=>{class e{constructor(e){this._localization=e}transform(t,n,r){if(null==t)return"";if("object"!=typeof n||null===n)throw ke(e,n);return n[ce(t,Object.keys(n),this._localization,r)].replace(Be,t.toString())}}return e.\u0275fac=function(t){return new(t||e)(r.yc(ue))},e.\u0275pipe=r.xc({name:"i18nPlural",type:e,pure:!0}),e})(),He=(()=>{class e{transform(t,n){if(null==t)return"";if("object"!=typeof n||"string"!=typeof t)throw ke(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"i18nSelect",type:e,pure:!0}),e})(),$e=(()=>{class e{transform(e){return JSON.stringify(e,null,2)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"json",type:e,pure:!1}),e})(),Ue=(()=>{class e{constructor(e){this.differs=e,this.keyValues=[]}transform(e,t=ze){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const n=this.differ.diff(e);return n&&(this.keyValues=[],n.forEachItem(e=>{this.keyValues.push({key:e.key,value:e.currentValue})}),this.keyValues.sort(t)),this.keyValues}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.y))},e.\u0275pipe=r.xc({name:"keyvalue",type:e,pure:!1}),e})();function ze(e,t){const n=e.key,r=t.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n{class e{constructor(e){this._locale=e}transform(t,n,r){if(Ge(t))return null;r=r||this._locale;try{return function(e,t,n){return oe(e,se(M(t,F.Decimal),P(t,T.MinusSign)),t,T.Group,T.Decimal,n)}(We(t),r,n)}catch(o){throw ke(e,o.message)}}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.z))},e.\u0275pipe=r.xc({name:"number",type:e,pure:!0}),e})(),Ze=(()=>{class e{constructor(e){this._locale=e}transform(t,n,r){if(Ge(t))return null;r=r||this._locale;try{return function(e,t,n){return oe(e,se(M(t,F.Percent),P(t,T.MinusSign)),t,T.Group,T.Decimal,n,!0).replace(new RegExp("%","g"),P(t,T.PercentSign))}(We(t),r,n)}catch(o){throw ke(e,o.message)}}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.z))},e.\u0275pipe=r.xc({name:"percent",type:e,pure:!0}),e})(),Qe=(()=>{class e{constructor(e,t="USD"){this._locale=e,this._defaultCurrencyCode=t}transform(t,n,o="symbol",s,i){if(Ge(t))return null;i=i||this._locale,"boolean"==typeof o&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),o=o?"symbol":"code");let u=n||this._defaultCurrencyCode;"code"!==o&&(u="symbol"===o||"symbol-narrow"===o?function(e,t,n="en"){const o=function(e){return Object(r.Db)(e)[r.mb.Currencies]}(n)[e]||A[e]||[],s=o[1];return"narrow"===t&&"string"==typeof s?s:o[0]||e}(u,"symbol"===o?"wide":"narrow",i):o);try{return function(e,t,n,r,o){const s=se(M(t,F.Currency),P(t,T.MinusSign));return s.minFrac=function(e){let t;const n=A[e];return n&&(t=n[2]),"number"==typeof t?t:2}(r),s.maxFrac=s.minFrac,oe(e,s,t,T.CurrencyGroup,T.CurrencyDecimal,o).replace("\xa4",n).replace("\xa4","").trim()}(We(t),i,u,n,s)}catch(c){throw ke(e,c.message)}}}return e.\u0275fac=function(t){return new(t||e)(r.yc(r.z),r.yc(r.p))},e.\u0275pipe=r.xc({name:"currency",type:e,pure:!0}),e})();function Ge(e){return null==e||""===e||e!=e}function We(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e}let Je=(()=>{class e{transform(t,n,r){if(null==t)return t;if(!this.supports(t))throw ke(e,t);return t.slice(n,r)}supports(e){return"string"==typeof e||Array.isArray(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"slice",type:e,pure:!1}),e})(),Ke=(()=>{class e{}return e.\u0275mod=r.wc({type:e}),e.\u0275inj=r.vc({factory:function(t){return new(t||e)},providers:[{provide:ue,useClass:ae}]}),e})();const Ye="browser";function Xe(e){return e===Ye}function et(e){return"server"===e}let tt=(()=>{class e{}return e.\u0275prov=Object(r.uc)({token:e,providedIn:"root",factory:()=>new nt(Object(r.Jc)(c),window,Object(r.Jc)(r.r))}),e})();class nt{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const t=this.document.querySelector(`#${e}`);if(t)return void this.scrollToElement(t);const n=this.document.querySelector(`[name='${e}']`);if(n)return void this.scrollToElement(n)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}},quSY:function(e,t,n){"use strict";var r=n("DH7j"),o=n("XoHu"),s=n("n6bG");const i=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();n.d(t,"a",(function(){return u}));let u=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:u,_subscriptions:a}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;ee.concat(t instanceof i?t.errors:t),[])}},w1tV:function(e,t,n){"use strict";var r=n("XNiG"),o=n("HDdC"),s=n("7o/Q"),i=n("quSY");function u(){return function(e){return e.lift(new c(e))}}class c{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new a(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o}}class a extends s.a{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class l extends o.a{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new i.a,e.add(this.source.subscribe(new f(this.getSubject(),this))),e.closed&&(this._connection=null,e=i.a.EMPTY)),e}refCount(){return u()(this)}}const d=(()=>{const e=l.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class f extends r.b{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function h(){return new r.a}function p(){return e=>{return u()((t=h,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,d);return r.source=e,r.subjectFactory=n,r})(e));var t}}n.d(t,"a",(function(){return p}))},yCtX:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("HDdC"),o=n("ngJS"),s=n("jZKg");function i(e,t){return t?Object(s.a)(e,t):new r.a(Object(o.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",(function(){return r}))},zUnb:function(e,t,n){"use strict";n.r(t),n("N/DB");var r=n("fXoL"),o=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});function s(e){const t=function(e){let t="";for(let n=0;n=55296&&r<=56319&&e.length>n+1){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(n++,r=(r-55296<<10)+t-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}(e);let n=i(t,0),r=i(t,102072);return 0!=n||0!=r&&1!=r||(n^=319790063,r^=-1801410264),[n,r]}function i(e,t){let n,r=2654435769,o=2654435769;const s=e.length;for(n=0;n+12<=s;n+=12){r=a(r,h(e,n,c.Little)),o=a(o,h(e,n+4,c.Little));const s=u(r,o,t=a(t,h(e,n+8,c.Little)));r=s[0],o=s[1],t=s[2]}return r=a(r,h(e,n,c.Little)),o=a(o,h(e,n+4,c.Little)),t=a(t,s),u(r,o,t=a(t,h(e,n+8,c.Little)<<8))[2]}function u(e,t,n){return e=d(e,t),e=d(e,n),e^=n>>>13,t=d(t,n),t=d(t,e),t^=e<<8,n=d(n,e),n=d(n,t),n^=t>>>13,e=d(e,t),e=d(e,n),e^=n>>>12,t=d(t,n),t=d(t,e),t^=e<<16,n=d(n,e),n=d(n,t),n^=t>>>5,e=d(e,t),e=d(e,n),e^=n>>>3,t=d(t,n),t=d(t,e),t^=e<<10,n=d(n,e),n=d(n,t),[e,t,n^=t>>>15]}"undefined"!=typeof window&&window,"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,"undefined"!=typeof global&&global;var c=function(e){return e[e.Little=0]="Little",e[e.Big=1]="Big",e}({});function a(e,t){return l(e,t)[1]}function l(e,t){const n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function d(e,t){const n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function f(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function h(e,t,n){let r=0;if(n===c.Big)for(let o=0;o<4;o++)r+=f(e,t+o)<<24-8*o;else for(let o=0;o<4;o++)r+=f(e,t+o)<<8*o;return r}function p(e,t){let n="";const r=Math.max(e.length,t.length);for(let o=0,s=0;o=10?(s=1,n+=r-10):(s=0,n+=r)}return n}function g(e,t){let n="",r=t;for(;0!==e;e>>>=1)1&e&&(n=p(n,r)),r=p(r,r);return n}class m{get(e){return""}}class y{constructor({defaultEncapsulation:e=o.Emulated,useJit:t=!0,jitDevMode:n=!1,missingTranslation:r=null,preserveWhitespaces:s,strictInjectionParameters:i}={}){var u;this.defaultEncapsulation=e,this.useJit=!!t,this.jitDevMode=!!n,this.missingTranslation=r,this.preserveWhitespaces=function(e,t=!1){return null===e?t:e}(void 0===(u=s)?null:u),this.strictInjectionParameters=!0===i}}var w=n("ofXK"),v=n("jhN1");const b=[{provide:r.k,useFactory:()=>new r.k}];function _(e){for(let t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}function C(e){const t=[];return e.forEach(e=>e&&t.push(...e)),t}const D=Object(r.ab)(r.fb,"coreDynamic",[{provide:r.h,useValue:{},multi:!0},{provide:r.l,useClass:class{constructor(e){this._defaultOptions=[{useJit:!0,defaultEncapsulation:r.Y.Emulated,missingTranslation:r.A.Warning},...e]}createCompiler(e=[]){const t={useJit:_((n=this._defaultOptions.concat(e)).map(e=>e.useJit)),defaultEncapsulation:_(n.map(e=>e.defaultEncapsulation)),providers:C(n.map(e=>e.providers)),missingTranslation:_(n.map(e=>e.missingTranslation)),preserveWhitespaces:_(n.map(e=>e.preserveWhitespaces))};var n;return r.w.create([b,{provide:y,useFactory:()=>new y({useJit:t.useJit,jitDevMode:Object(r.eb)(),defaultEncapsulation:t.defaultEncapsulation,missingTranslation:t.missingTranslation,preserveWhitespaces:t.preserveWhitespaces}),deps:[]},t.providers]).get(r.k)}},deps:[r.h]}]);let E=(()=>{class e extends m{get(e){let t,n;const r=new Promise((e,r)=>{t=e,n=r}),o=new XMLHttpRequest;return o.open("GET",e,!0),o.responseType="text",o.onload=function(){const r=o.response||o.responseText;let s=1223===o.status?204:o.status;0===s&&(s=r?200:0),200<=s&&s<=300?t(r):n(`Failed to load ${e}`)},o.onerror=function(){n(`Failed to load ${e}`)},o.send(),r}}return e.\u0275fac=function(t){return x(t||e)},e.\u0275prov=r.uc({token:e,factory:e.\u0275fac}),e})();const x=r.Fc(E),A=[v.e,{provide:r.h,useValue:{providers:[{provide:m,useClass:E,deps:[]}]},multi:!0},{provide:r.I,useValue:w.M}],F=Object(r.ab)(D,"browserDynamic",A);function k(e,t){if(":"!==t.charAt(0))return{text:e};{const n=function(e,t){for(let n=1,r=1;n>>31,r<<1|n>>>31]}(n),e)}return function(e){let t="",n="1";for(let r=e.length-1;r>=0;r--)t=p(t,g(f(e,r),n)),n=g(256,n);return t.split("").reverse().join("")}([2147483647&n[0],n[1]].reduce((e,t)=>e+function(e){let t="";for(let n=0;n<4;n++)t+=String.fromCharCode(e>>>8*(3-n)&255);return t}(t),""))}(u,r.meaning||""),d=r.legacyIds.filter(e=>e!==c);return{messageId:c,legacyIds:d,substitutions:n,messageString:u,meaning:r.meaning||"",description:r.description||"",messageParts:o,placeholderNames:i}}(t,n);let o=e[r.messageId];for(let s=0;s{if(r.substitutions.hasOwnProperty(e))return r.substitutions[e];throw new Error(`There is a placeholder name mismatch with the translation provided for the message ${N(r)}.\n`+`The translation contains a placeholder with name ${e}, which does not exist in the message.`)})]}($localize.TRANSLATIONS,e,t)}catch(n){return console.warn(n.message),[e,t]}}Object(r.bb)();const O=localStorage.getItem("locale");O||localStorage.setItem("locale","en"),O&&"en"!==O?function(e,t="GET",n={},r=!0){return new Promise((o,s)=>{const i=new XMLHttpRequest;i.onload=function(){try{o(function(e){let t;if(!/^[\],:{}\s]*$/.test(e.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))throw new Error("Only JSON translation files are supported at the moment");return t=JSON.parse(e),t}(i.responseText))}catch(e){s(e)}},i.onerror=function(){s(new Error("Network request failed"))},i.ontimeout=function(){s(new Error("Network request timeout"))},i.onabort=function(){s(new Error("Network request aborted"))},Object.keys(n).forEach(e=>i.setRequestHeader(e,n[e])),i.open(t,e,r),i.send()})}(`./assets/i18n/messages.${O}.json`).then(e=>{var t;t=e,$localize.translate||($localize.translate=T),$localize.TRANSLATIONS||($localize.TRANSLATIONS={}),Object.keys(t).forEach(e=>{$localize.TRANSLATIONS[e]=function(e){const t=e.split(/{\$([^}]*)}/),n=[t[0]],r=[];for(let u=1;u":"===e.charAt(0)?"\\"+e:e);return{messageParts:(s=n,i=o,Object.defineProperty(s,"raw",{value:i}),s),placeholderNames:r};var s,i}(t[e])}),n.e(1).then(n.bind(null,"ZAI4")).then(e=>{F().bootstrapModule(e.AppModule).catch(e=>console.error(e))})}).catch(e=>{n.e(1).then(n.bind(null,"ZAI4")).then(e=>{F().bootstrapModule(e.AppModule).catch(e=>console.error(e))})}):n.e(1).then(n.bind(null,"ZAI4")).then(e=>{F().bootstrapModule(e.AppModule).catch(e=>console.error(e))})}},[[0,0]]]); \ No newline at end of file diff --git a/backend/public/main-es5.f0acd462fc05c537ace2.js b/backend/public/main-es5.f0acd462fc05c537ace2.js new file mode 100644 index 0000000..90b8103 --- /dev/null +++ b/backend/public/main-es5.f0acd462fc05c537ace2.js @@ -0,0 +1 @@ +function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_nonIterableRest()}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=e[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(s((function(n,r){return Object(a.a)(e(n,r)).pipe(Object(u.a)((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new l(e,n))})}var l=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.project,this.concurrent))}}]),e}(),c=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).project=n,r.concurrent=i,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _inherits(t,e),_createClass(t,[{key:"_next",value:function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),t}(i.a)},"51Dv":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return _inherits(t,e),_createClass(t,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),t}(n("7o/Q").a)},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("n6bG"),i=n("gRHU"),o=n("quSY"),u=n("2QA8"),a=n("2fFW"),s=n("NJ4a"),l=function(e){function t(e,n,r){var o;switch(_classCallCheck(this,t),(o=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=i.a;break;case 1:if(!e){o.destination=i.a;break}if("object"==typeof e){e instanceof t?(o.syncErrorThrowable=e.syncErrorThrowable,o.destination=e,e.add(_assertThisInitialized(o))):(o.syncErrorThrowable=!0,o.destination=new c(_assertThisInitialized(o),e));break}default:o.syncErrorThrowable=!0,o.destination=new c(_assertThisInitialized(o),e,n,r)}return o}return _inherits(t,e),_createClass(t,[{key:u.a,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,_get(_getPrototypeOf(t.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i}}]),t}(o.a),c=function(e){function t(e,n,o,u){var a,s;_classCallCheck(this,t),(a=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._parentSubscriber=e;var l=_assertThisInitialized(a);return Object(r.a)(n)?s=n:n&&(s=n.next,o=n.error,u=n.complete,n!==i.a&&(l=Object.create(n),Object(r.a)(l.unsubscribe)&&a.add(l.unsubscribe.bind(l)),l.unsubscribe=a.unsubscribe.bind(_assertThisInitialized(a)))),a._context=l,a._next=s,a._error=o,a._complete=u,a}return _inherits(t,e),_createClass(t,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=a.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(s.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(s.a)(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(s.a)(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(s.a)(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),t}(l)},"9ppp":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},Cfvw:function(e,t,n){"use strict";var r=n("HDdC"),i=n("SeVD"),o=n("quSY"),u=n("kJWO"),a=n("jZKg"),s=n("Lhse"),l=n("c2HN"),c=n("I55L");function f(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[u.a]}(e))return function(e,t){return new r.a((function(n){var r=new o.a;return r.add(t.schedule((function(){var i=e[u.a]();r.add(i.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(Object(l.a)(e))return function(e,t){return new r.a((function(n){var r=new o.a;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}))}(e,t);if(Object(c.a)(e))return Object(a.a)(e,t);if(function(e){return e&&"function"==typeof e[s.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,i=new o.a;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(t.schedule((function(){r=e[s.a](),i.add(t.schedule((function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}})))}))),i}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(i.a)(e))}n.d(t,"a",(function(){return f}))},DH7j:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},HDdC:function(e,t,n){"use strict";var r=n("7o/Q"),i=n("2QA8"),o=n("gRHU"),u=n("kJWO"),a=n("mCNh"),s=n("2fFW");n.d(t,"a",(function(){return c}));var l,c=((l=function(){function e(t){_classCallCheck(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return _createClass(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var u=this.operator,a=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[i.a])return e[i.a]()}return e||t||n?new r.a(e,t,n):new r.a(o.a)}(e,t,n);if(a.add(u?u.call(a,this.source):this.source||s.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),s.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){s.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,o=t.isStopped;if(n||o)return!1;e=i&&i instanceof r.a?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=f(t))((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}}),r,t)}))}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:u.a,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),i=1;i1&&"number"==typeof t[t.length-1]&&(a=t.pop())):"number"==typeof l&&(a=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(a)(Object(u.a)(t,s))}},XNiG:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var r=n("HDdC"),i=n("7o/Q"),o=n("quSY"),u=n("9ppp"),a=n("Ylt2"),s=n("2QA8"),l=function(e){function t(e){var n;return _classCallCheck(this,t),(n=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).destination=e,n}return _inherits(t,e),t}(i.a),c=function(){var e=function(e){function t(){var e;return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return _inherits(t,e),_createClass(t,[{key:s.a,value:function(){return new l(this)}},{key:"lift",value:function(e){var t=new f(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new u.a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i4&&void 0!==arguments[4]?arguments[4]:new r.a(e,n,u);if(!a.closed)return t instanceof o.a?t.subscribe(a):Object(i.a)(t)(a)}},bHdf:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("5+tZ"),i=n("SpAZ");function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(r.a)(i.a,e)}},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",(function(){return r}))},crnd:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},fXoL:function(e,t,n){"use strict";n.d(t,"a",(function(){return Go})),n.d(t,"b",(function(){return Bf})),n.d(t,"c",(function(){return Pf})),n.d(t,"d",(function(){return Tf})),n.d(t,"e",(function(){return Nf})),n.d(t,"f",(function(){return Jd})),n.d(t,"g",(function(){return Ed})),n.d(t,"h",(function(){return td})),n.d(t,"i",(function(){return ge})),n.d(t,"j",(function(){return wo})),n.d(t,"k",(function(){return ed})),n.d(t,"l",(function(){return nd})),n.d(t,"m",(function(){return Va})),n.d(t,"n",(function(){return La})),n.d(t,"o",(function(){return Ra})),n.d(t,"p",(function(){return zf})),n.d(t,"q",(function(){return za})),n.d(t,"r",(function(){return fn})),n.d(t,"s",(function(){return sf})),n.d(t,"t",(function(){return G})),n.d(t,"u",(function(){return f})),n.d(t,"v",(function(){return W})),n.d(t,"w",(function(){return Wo})),n.d(t,"x",(function(){return ss})),n.d(t,"y",(function(){return ls})),n.d(t,"z",(function(){return Uf})),n.d(t,"A",(function(){return Qf})),n.d(t,"B",(function(){return se})),n.d(t,"C",(function(){return Ad})),n.d(t,"D",(function(){return ae})),n.d(t,"E",(function(){return Cd})),n.d(t,"F",(function(){return od})),n.d(t,"G",(function(){return d})),n.d(t,"H",(function(){return Lf})),n.d(t,"I",(function(){return Mf})),n.d(t,"J",(function(){return jf})),n.d(t,"K",(function(){return cf})),n.d(t,"L",(function(){return Wa})),n.d(t,"M",(function(){return Za})),n.d(t,"N",(function(){return Qa})),n.d(t,"O",(function(){return $a})),n.d(t,"P",(function(){return Xn})),n.d(t,"Q",(function(){return v})),n.d(t,"R",(function(){return Sd})),n.d(t,"S",(function(){return qf})),n.d(t,"T",(function(){return Zf})),n.d(t,"U",(function(){return hs})),n.d(t,"V",(function(){return hd})),n.d(t,"W",(function(){return Ja})),n.d(t,"X",(function(){return ps})),n.d(t,"Y",(function(){return _e})),n.d(t,"Z",(function(){return ru})),n.d(t,"ab",(function(){return bd})),n.d(t,"bb",(function(){return In})),n.d(t,"cb",(function(){return O})),n.d(t,"db",(function(){return re})),n.d(t,"eb",(function(){return Fn})),n.d(t,"fb",(function(){return Gd})),n.d(t,"gb",(function(){return pd})),n.d(t,"hb",(function(){return Ha})),n.d(t,"ib",(function(){return Hf})),n.d(t,"jb",(function(){return sl})),n.d(t,"kb",(function(){return ll})),n.d(t,"lb",(function(){return No})),n.d(t,"mb",(function(){return mc})),n.d(t,"nb",(function(){return So})),n.d(t,"ob",(function(){return Kn})),n.d(t,"pb",(function(){return nr})),n.d(t,"qb",(function(){return Nn})),n.d(t,"rb",(function(){return mn})),n.d(t,"sb",(function(){return Kd})),n.d(t,"tb",(function(){return bn})),n.d(t,"ub",(function(){return En})),n.d(t,"vb",(function(){return kn})),n.d(t,"wb",(function(){return wn})),n.d(t,"xb",(function(){return Dn})),n.d(t,"yb",(function(){return wl})),n.d(t,"zb",(function(){return wv})),n.d(t,"Ab",(function(){return Ts})),n.d(t,"Bb",(function(){return zl})),n.d(t,"Cb",(function(){return Yd})),n.d(t,"Db",(function(){return pc})),n.d(t,"Eb",(function(){return Qd})),n.d(t,"Fb",(function(){return yc})),n.d(t,"Gb",(function(){return gc})),n.d(t,"Hb",(function(){return Cn})),n.d(t,"Ib",(function(){return B})),n.d(t,"Jb",(function(){return ul})),n.d(t,"Kb",(function(){return ol})),n.d(t,"Lb",(function(){return iu})),n.d(t,"Mb",(function(){return xu})),n.d(t,"Nb",(function(){return Eu})),n.d(t,"Ob",(function(){return tu})),n.d(t,"Pb",(function(){return pl})),n.d(t,"Qb",(function(){return vl})),n.d(t,"Rb",(function(){return sh})),n.d(t,"Sb",(function(){return Nl})),n.d(t,"Tb",(function(){return fh})),n.d(t,"Ub",(function(){return ql})),n.d(t,"Vb",(function(){return dh})),n.d(t,"Wb",(function(){return ch})),n.d(t,"Xb",(function(){return Zl})),n.d(t,"Yb",(function(){return rh})),n.d(t,"Zb",(function(){return vc})),n.d(t,"ac",(function(){return Qc})),n.d(t,"bc",(function(){return Dt})),n.d(t,"cc",(function(){return F})),n.d(t,"dc",(function(){return vh})),n.d(t,"ec",(function(){return Os})),n.d(t,"fc",(function(){return _n})),n.d(t,"gc",(function(){return gh})),n.d(t,"hc",(function(){return _a})),n.d(t,"ic",(function(){return Da})),n.d(t,"jc",(function(){return Pa})),n.d(t,"kc",(function(){return Hr})),n.d(t,"lc",(function(){return cu})),n.d(t,"mc",(function(){return $u})),n.d(t,"nc",(function(){return ca})),n.d(t,"oc",(function(){return Gu})),n.d(t,"pc",(function(){return Fu})),n.d(t,"qc",(function(){return kf})),n.d(t,"rc",(function(){return ur})),n.d(t,"sc",(function(){return we})),n.d(t,"tc",(function(){return Se})),n.d(t,"uc",(function(){return _})),n.d(t,"vc",(function(){return m})),n.d(t,"wc",(function(){return Ae})),n.d(t,"xc",(function(){return Oe})),n.d(t,"yc",(function(){return vu})),n.d(t,"zc",(function(){return bu})),n.d(t,"Ac",(function(){return ku})),n.d(t,"Bc",(function(){return wu})),n.d(t,"Cc",(function(){return Cu})),n.d(t,"Dc",(function(){return mu})),n.d(t,"Ec",(function(){return Du})),n.d(t,"Fc",(function(){return an})),n.d(t,"Gc",(function(){return fa})),n.d(t,"Hc",(function(){return Mc})),n.d(t,"Ic",(function(){return Bc})),n.d(t,"Jc",(function(){return ne})),n.d(t,"Kc",(function(){return pu})),n.d(t,"Lc",(function(){return Of})),n.d(t,"Mc",(function(){return yu})),n.d(t,"Nc",(function(){return Au})),n.d(t,"Oc",(function(){return xf})),n.d(t,"Pc",(function(){return pt})),n.d(t,"Qc",(function(){return vt})),n.d(t,"Rc",(function(){return Tu})),n.d(t,"Sc",(function(){return nf})),n.d(t,"Tc",(function(){return rf})),n.d(t,"Uc",(function(){return of})),n.d(t,"Vc",(function(){return ju})),n.d(t,"Wc",(function(){return Pu})),n.d(t,"Xc",(function(){return gu})),n.d(t,"Yc",(function(){return Mu})),n.d(t,"Zc",(function(){return Jc})),n.d(t,"ad",(function(){return Kc})),n.d(t,"bd",(function(){return Yc})),n.d(t,"cd",(function(){return Xc})),n.d(t,"dd",(function(){return mf})),n.d(t,"ed",(function(){return hu})),n.d(t,"fd",(function(){return Ut})),n.d(t,"gd",(function(){return Ht})),n.d(t,"hd",(function(){return Lt})),n.d(t,"id",(function(){return Qe})),n.d(t,"jd",(function(){return rr})),n.d(t,"kd",(function(){return or})),n.d(t,"ld",(function(){return ke})),n.d(t,"md",(function(){return Fe})),n.d(t,"nd",(function(){return Df})),n.d(t,"od",(function(){return Cf})),n.d(t,"pd",(function(){return Wu})),n.d(t,"qd",(function(){return du})),n.d(t,"rd",(function(){return Sf})),n.d(t,"sd",(function(){return aa})),n.d(t,"td",(function(){return sa})),n.d(t,"ud",(function(){return la})),n.d(t,"vd",(function(){return da})),n.d(t,"wd",(function(){return bf}));var r=n("XNiG"),i=n("quSY"),o=n("HDdC"),u=n("VRyK"),a=n("w1tV");function s(e){return{toString:e}.toString()}var l="__parameters__";function c(e,t,n){return s((function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:p.Default;if(void 0===Y)throw new Error("inject() must be called from an injection context");return null===Y?ie(e,void 0,t):Y.get(e,t&p.Optional?null:void 0,t)}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.Default;return(P||te)(T(e),t)}var re=ne;function ie(e,t,n){var r=C(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&p.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(F(e),"]"))}function oe(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:$;if(t===$){var n=new Error("NullInjectorError: No provider for ".concat(F(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),ae=function e(){_classCallCheck(this,e)},se=function e(){_classCallCheck(this,e)};function le(e,t){for(var n=0;n=e.length?e.push(n):e.splice(t,0,n)}function de(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function he(e,t){for(var n=[],r=0;r=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function pe(e,t){var n=ye(e,t);if(n>=0)return e[1|n]}function ye(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),u=e[o<<1];if(t===u)return o<<1;u>t?i=o:r=o+1}return~(i<<1)}(e,t)}var ge=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),_e=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),me={},Ce=[],be=0;function we(e){return s((function(){var t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.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:e.changeDetection===ge.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Ce,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||_e.Emulated,id:"c",styles:e.styles||Ce,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,u=e.features,a=e.pipes;return i.id+=be++,i.inputs=Ie(e.inputs,r),i.outputs=Ie(e.outputs),u&&u.forEach((function(e){return e(i)})),i.directiveDefs=o?function(){return("function"==typeof o?o():o).map(De)}:null,i.pipeDefs=a?function(){return("function"==typeof a?a():a).map(Ee)}:null,i}))}function ke(e,t,n){var r=e.\u0275cmp;r.directiveDefs=function(){return t.map(De)},r.pipeDefs=function(){return n.map(Ee)}}function De(e){return Te(e)||function(e){return e[H]||null}(e)}function Ee(e){return function(e){return e[U]||null}(e)}var xe={};function Ae(e){var t={type:e.type,bootstrap:e.bootstrap||Ce,declarations:e.declarations||Ce,imports:e.imports||Ce,exports:e.exports||Ce,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&s((function(){xe[e.id]=e.type})),t}function Fe(e,t){return s((function(){var n=Pe(e,!0);n.declarations=t.declarations||Ce,n.imports=t.imports||Ce,n.exports=t.exports||Ce}))}function Ie(e,t){if(null==e)return me;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var Se=we;function Oe(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Te(e){return e[L]||null}function Ne(e,t){return e.hasOwnProperty(Z)?e[Z]:null}function Pe(e,t){var n=e[z]||null;if(!n&&!0===t)throw new Error("Type ".concat(F(e)," does not have '\u0275mod' property."));return n}function Re(e){return Array.isArray(e)&&"object"==typeof e[1]}function Ve(e){return Array.isArray(e)&&!0===e[1]}function je(e){return 0!=(8&e.flags)}function Me(e){return 2==(2&e.flags)}function Be(e){return 1==(1&e.flags)}function Le(e){return null!==e.template}function He(e){return 0!=(512&e[2])}var Ue={lFrame:st(null),bindingsEnabled:!0,checkNoChangesMode:!1};function ze(){return Ue.bindingsEnabled}function qe(){return Ue.lFrame.lView}function Ze(){return Ue.lFrame.tView}function Qe(e){Ue.lFrame.contextLView=e}function We(){return Ue.lFrame.previousOrParentTNode}function Ge(e,t){Ue.lFrame.previousOrParentTNode=e,Ue.lFrame.isParent=t}function $e(){return Ue.lFrame.isParent}function Je(){Ue.lFrame.isParent=!1}function Ke(){return Ue.checkNoChangesMode}function Ye(e){Ue.checkNoChangesMode=e}function Xe(){var e=Ue.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function et(){return Ue.lFrame.bindingIndex++}function tt(e){var t=Ue.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function nt(e,t){var n=Ue.lFrame;n.bindingIndex=n.bindingRootIndex=e,n.currentDirectiveIndex=t}function rt(){return Ue.lFrame.currentQueryIndex}function it(e){Ue.lFrame.currentQueryIndex=e}function ot(e,t){var n=at();Ue.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function ut(e,t){var n=at(),r=e[1];Ue.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function at(){var e=Ue.lFrame,t=null===e?null:e.child;return null===t?st(e):t}function st(e){var t={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:e,child:null};return null!==e&&(e.child=t),t}function lt(){var e=Ue.lFrame;return Ue.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var ct=lt;function ft(){var e=lt();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function dt(){return Ue.lFrame.selectedIndex}function ht(e){Ue.lFrame.selectedIndex=e}function vt(){Ue.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function pt(){Ue.lFrame.currentNamespace=null}function yt(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[18]+=65536),(o>10>16&&(3&e[2])===t&&(e[2]+=1024,o.call(u)):o.call(u)}var wt=function e(t,n,r){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r},kt=void 0;function Dt(e){kt=e}function Et(){return void 0!==kt?kt:"undefined"!=typeof document?document:void 0}function xt(e){return!!e.listen}var At={createRenderer:function(e,t){return Et()}};function Ft(e,t,n){for(var r=xt(e),i=0;it){u=o-1;break}}}for(;o>16}function Vt(e,t){for(var n=Rt(e),r=t;n>0;)r=r[15],n--;return r}function jt(e){return"string"==typeof e?e:null==e?"":""+e}function Mt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():jt(e)}var Bt=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B);function Lt(e){return{name:"window",target:e.ownerDocument.defaultView}}function Ht(e){return{name:"document",target:e.ownerDocument}}function Ut(e){return{name:"body",target:e.ownerDocument.body}}function zt(e){return e instanceof Function?e():e}var qt=!0;function Zt(e){var t=qt;return qt=e,t}var Qt=0;function Wt(e,t){var n=$t(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Gt(r.data,e),Gt(t,null),Gt(r.blueprint,null));var i=Jt(e,t),o=e.injectorIndex;if(Nt(i))for(var u=Pt(i),a=Vt(i,t),s=a[1].data,l=0;l<8;l++)t[o+l]=a[u+l]|s[u+l];return t[o+8]=i,o}function Gt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function $t(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Jt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],r=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Kt(e,t,n){!function(e,t,n){var r="string"!=typeof n?n[Q]:n.charCodeAt(0)||0;null==r&&(r=n[Q]=Qt++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:p.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e[Q];return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof o){ot(t,e);try{var u=o();if(null!=u||r&p.Optional)return u;throw new Error("No provider for ".concat(Mt(n),"!"))}finally{ct()}}else if("number"==typeof o){if(-1===o)return new un(e,t);var a=null,s=$t(e,t),l=-1,c=r&p.Host?t[16][6]:null;for((-1===s||r&p.SkipSelf)&&(l=-1===s?Jt(e,t):t[s+8],on(r,!1)?(a=t[1],s=Pt(l),t=Vt(l,t)):s=-1);-1!==s;){l=t[s+8];var f=t[1];if(rn(o,s,f.data)){var d=en(s,t,n,a,r,c);if(d!==Xt)return d}on(r,t[1].data[s+8]===c)&&rn(o,s,t)?(a=f,s=Pt(l),t=Vt(l,t)):s=-1}}}if(r&p.Optional&&void 0===i&&(i=null),0==(r&(p.Self|p.Host))){var h=t[9],v=ee(void 0);try{return h?h.get(n,i,r&p.Optional):ie(n,i,r&p.Optional)}finally{ee(v)}}if(r&p.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(Mt(n),"]"))}var Xt={};function en(e,t,n,r,i,o){var u=t[1],a=u.data[e+8],s=tn(a,u,n,null==r?Me(a)&&qt:r!=u&&3===a.type,i&p.Host&&o===a);return null!==s?nn(t,u,s,a):Xt}function tn(e,t,n,r,i){for(var o=e.providerIndexes,u=t.data,a=65535&o,s=e.directiveStart,l=o>>16,c=i?a+l:e.directiveEnd,f=r?a:a+l;f=s&&d.type===n)return f}if(i){var h=u[s];if(h&&Le(h)&&h.type===n)return s}return null}function nn(e,t,n,r){var i=e[n],o=t.data;if(i instanceof wt){var u=i;if(u.resolving)throw new Error("Circular dep for ".concat(Mt(o[n])));var a,s=Zt(u.canSeeViewProviders);u.resolving=!0,u.injectImpl&&(a=ee(u.injectImpl)),ot(e,r);try{i=e[n]=u.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.onChanges,i=t.onInit,o=t.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{u.injectImpl&&ee(a),Zt(s),u.resolving=!1,ct()}}return i}function rn(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1?t-1:0),r=1;r',!n.querySelector||n.querySelector("svg")?(n.innerHTML='

',this.getInertBodyElement=n.querySelector&&n.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return _createClass(e,[{key:"getInertBodyElement_XHR",value:function(e){e=""+e+"";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n}},{key:"getInertBodyElement_DOMParser",value:function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}}},{key:"getInertBodyElement_InertDocument",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;var n=this.inertDocument.createElement("body");return n.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();Un.hasOwnProperty(t)&&!Mn.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(Jn(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),Gn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$n=/([^\#-~ |!])/g;function Jn(e){return e.replace(/&/g,"&").replace(Gn,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace($n,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}function Kn(e,t){var n=null;try{jn=jn||new Sn(e);var r=t?String(t):"";n=jn.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=jn.getInertBodyElement(r)}while(r!==o);var u=new Wn,a=u.sanitizeChildren(Yn(n)||n);return Fn()&&u.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n)for(var s=Yn(n)||n;s.firstChild;)s.removeChild(s.firstChild)}}function Yn(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Xn=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),er=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"),tr=/^url\(([^)]+)\)$/;function nr(e){if(!(e=String(e).trim()))return"";var t=e.match(tr);return t&&Nn(t[1])===t[1]||e.match(er)&&function(e){for(var t=!0,n=!0,r=0;ro?"":i[c+1].toLowerCase();var d=8&r?f:null;if(d&&-1!==Ir(d,l,0)||2&r&&l!==f){if(Nr(r))return!1;u=!0}}}}else{if(!u&&!Nr(r)&&!Nr(s))return!1;if(u&&Nr(s))continue;u=!1,r=s|1&r}}return Nr(r)||u}function Nr(e){return 0==(1&e)}function Pr(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+a+'"':"")+"]"}else 8&r?i+="."+u:4&r&&(i+=" "+u);else""===i||Nr(u)||(t+=jr(o,i),i=""),r=u,o=o||!Nr(r);n++}return""!==i&&(t+=jr(o,i)),t}var Br={};function Lr(e){var t=e[3];return Ve(t)?t[3]:t}function Hr(e){Ur(Ze(),qe(),dt()+e,Ke())}function Ur(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&>(t,i,n)}else{var o=e.preOrderHooks;null!==o&&_t(t,o,0,n)}ht(n)}var zr={marker:"element"},qr={marker:"comment"};function Zr(e,t){return e<<17|t<<2}function Qr(e){return e>>17&32767}function Wr(e){return 2|e}function Gr(e){return(131068&e)>>2}function $r(e,t){return-131069&e|t<<2}function Jr(e){return 1|e}function Kr(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r>1==-1){for(var r=9;r19&&Ur(e,t,0,Ke()),n(r,i)}finally{ht(o)}}function oi(e,t,n){if(je(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:dr,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0&&(e[n-1][4]=r[4]);var o=de(e,9+t);Zi(r[1],r,!1,null);var u=o[5];null!==u&&u.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Gi(e,t){if(!(256&t[2])){var n=t[11];xt(n)&&n.destroyNode&&ao(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Ji(e[1],e);for(;t;){var n=null;if(Re(t))n=t[13];else{var r=t[9];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Re(t)&&Ji(t[1],t),t=$i(t,e);null===t&&(t=e),Re(t)&&Ji(t[1],t),n=t&&t[4]}t=n}}(t)}}function $i(e,t){var n;return Re(e)&&(n=e[6])&&2===n.type?Hi(n,e):e[3]===t?null:e[3]}function Ji(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&xt(t[11])&&t[11].destroy();var r=t[17];if(null!==r&&Ve(t[3])){r!==t[3]&&Qi(r,t);var i=t[5];null!==i&&i.detachView(e)}}}function Ki(e,t,n){for(var r=t.parent;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){var i=n[6];return 2===i.type?Ui(i,n):n[0]}if(t&&5===t.type&&4&t.flags)return dr(t,n).parentNode;if(2&r.flags){var o=e.data,u=o[o[r.index].directiveStart].encapsulation;if(u!==_e.ShadowDom&&u!==_e.Native)return null}return dr(r,n)}function Yi(e,t,n,r){xt(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function Xi(e,t,n){xt(e)?e.appendChild(t,n):t.appendChild(n)}function eo(e,t,n,r){null!==r?Yi(e,t,n,r):Xi(e,t,n)}function to(e,t){return xt(e)?e.parentNode(t):t.parentNode}function no(e,t){if(2===e.type){var n=Hi(e,t);return null===n?null:io(n.indexOf(t,9)-9,n)}return 4===e.type||5===e.type?dr(e,t):null}function ro(e,t,n,r){var i=Ki(e,r,t);if(null!=i){var o=t[11],u=no(r.parent||t[6],t);if(Array.isArray(n))for(var a=0;a-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Gi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){var t,n,r;t=this._lView[1],r=e,Vi(n=this._lView).push(r),t.firstCreatePass&&ji(t).push(n[7].length-1,null)}},{key:"markForCheck",value:function(){Oi(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Ti(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){Ye(!0);try{Ti(e,t,n)}finally{Ye(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,ao(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var u=n[r.index];if(null!==u&&i.push(cr(u)),Ve(u))for(var a=9;a0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var u=o.get(ae,null);u&&(i=u)}var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ve(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],u=new po(o,o[6],o[3]);u.detach(u.indexOf(e))}}var a=this._adjustIndex(t);return function(e,t,n,r){var i=9+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return _o(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new un(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=Jt(this._hostTNode,this._hostView),t=Vt(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var o=Rt(e),u=t,a=t[6];o>1;)a=(u=u[15])[6],o--;return a}(e,this._hostView,this._hostTNode);return Nt(e)&&null!=n?new un(n,t):new un(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-9}}]),n}(e));var o=r[n.index];if(Ve(o))(function(e,t){e[2]=-2})(i=o);else{var u;if(4===n.type)u=cr(o);else if(u=r[11].createComment(""),He(r)){var a=r[11],s=dr(n,r);Yi(a,to(a,s),u,function(e,t){return xt(e)?e.nextSibling(t):t.nextSibling}(a,s))}else ro(r[1],r,u,n);r[n.index]=i=xi(o,r,u,n),Si(r,i)}return new po(i,n,r)}function bo(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Me(e)){var r=yr(e.index,t);return new yo(r,r)}return 3===e.type||0===e.type||4===e.type||5===e.type?new yo(t[16],t):null}(We(),qe(),e)}var wo=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return ko()},e}(),ko=bo,Do=Function;function Eo(e){return"function"==typeof e}var xo=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Ao=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Fo=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Io=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s+super\(\.\.\.arguments\)/,So=function(){function e(t){_classCallCheck(this,e),this._reflect=t||B.Reflect}return _createClass(e,[{key:"isReflectionEnabled",value:function(){return!0}},{key:"factory",value:function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new Lo(e,n,t||Mo(),r)}var Lo=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var u=[];n&&ce(n,(function(e){return i.processProvider(e,t,n)})),ce([t],(function(e){return i.processInjectorType(e,[],u)})),this.records.set(G,zo(void 0,this));var a=this.records.get(No);this.scope=null!=a?a.value:null,this.source=o||("object"==typeof t?null:F(t))}return _createClass(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Default;this.assertNotDestroyed();var r,i=X(this);try{if(!(n&p.SkipSelf)){var o=this.records.get(e);if(void 0===o){var u=("function"==typeof(r=e)||"object"==typeof r&&r instanceof W)&&C(e);o=u&&this.injectableDefInScope(u)?zo(Ho(e),Po):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&p.Self?Mo():this.parent).get(e,t=n&p.Optional&&t===$?null:t)}catch(a){if("NullInjectorError"===a.name){if((a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(F(e)),i)throw a;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=F(t);if(Array.isArray(t))i=t.map(F).join(" -> ");else if("object"==typeof t){var o=[];for(var u in t)if(t.hasOwnProperty(u)){var a=t[u];o.push(u+":"+("string"==typeof a?JSON.stringify(a):F(a)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(J,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(a,e,0,this.source)}throw a}finally{X(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(F(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=T(e)))return!1;var i=w(e),o=null==i&&e.ngModule||void 0,u=void 0===o?e:o,a=-1!==n.indexOf(u);if(void 0!==o&&(i=w(o)),null==i)return!1;if(null!=i.imports&&!a){var s;n.push(u);try{ce(i.imports,(function(e){r.processInjectorType(e,t,n)&&(void 0===s&&(s=[]),s.push(e))}))}finally{}if(void 0!==s)for(var l=function(e){var t=s[e],n=t.ngModule,i=t.providers;ce(i,(function(e){return r.processProvider(e,n,i||Vo)}))},c=0;c0){var n=he(t,"?");throw new Error("Can't resolve all parameters for ".concat(F(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[k]||e[x]||e[E]&&e[E]());if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(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 "'.concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Uo(e,t,n){var r,i=void 0;if(Zo(e)){var o=T(e);return Ne(o)||Ho(o)}if(qo(e))i=function(){return T(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,_toConsumableArray(oe(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return ne(T(e.useExisting))};else{var u=T(e&&(e.useClass||e.provide));if(u||function(e,t,n){var r="";throw e&&t&&(r=" - only instances of Provider and Type are allowed, got: [".concat(t.map((function(e){return e==n?"?"+n+"?":"..."})).join(", "),"]")),new Error("Invalid provider for the NgModule '".concat(F(e),"'")+r)}(t,n,e),!function(e){return!!e.deps}(e))return Ne(u)||Ho(u);i=function(){return _construct(u,_toConsumableArray(oe(e.deps)))}}return i}function zo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function qo(e){return null!==e&&"object"==typeof e&&K in e}function Zo(e){return"function"==typeof e}var Qo=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=Bo(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},Wo=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Qo(e,t,""):Qo(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=$,e.NULL=new ue,e.\u0275prov=_({token:e,providedIn:"any",factory:function(){return ne(G)}}),e.__NG_ELEMENT_ID__=-1,e}(),Go=new W("AnalyzeForEntryComponents"),$o=new Map,Jo=new Set;function Ko(e){return"string"==typeof e?e:e.text()}function Yo(e,t){for(var n=e.styles,r=e.classes,i=0,o=0;o1&&void 0!==arguments[1]?arguments[1]:p.Default,n=qe();return null==n?ne(e,t):Yt(We(),n,T(e),t)}function pu(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var r=n.length,i=0;i2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=qe(),o=Ze(),u=We();return Iu(o,i,i[11],u,e,t,n,r),Au}function Fu(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=We(),o=qe(),u=Mi(i,o);return Iu(Ze(),o,u,i,e,t,n,r),Fu}function Iu(e,t,n,r,i,o){var u=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=arguments.length>7?arguments[7]:void 0,s=Be(r),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=Vi(t),f=!0;if(3===r.type){var d=dr(r,t),h=a?a(d):me,v=h.target||d,p=c.length,y=a?function(e){return a(cr(e[r.index])).target}:r.index;if(xt(n)){var g=null;if(!a&&s&&(g=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;os?a[s]:null}"string"==typeof u&&(o+=2)}return null}(e,t,i,r.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=o,g.__ngLastListenerFn__=o,f=!1;else{o=Ou(r,t,o,!1);var _=n.listen(h.name||v,i,o);c.push(o,_),l&&l.push(i,y,p,p+1)}}else o=Ou(r,t,o,!0),v.addEventListener(i,o,u),c.push(o),l&&l.push(i,y,p,u)}var m,C=r.outputs;if(f&&null!==C&&(m=C[i])){var b=m.length;if(b)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Ue.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ue.lFrame.contextLView))[8]}(e)}function Nu(e,t){for(var n=null,r=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=qe(),i=Ze(),o=ei(i,r[6],e,1,null,n||null);null===o.projection&&(o.projection=t),Je(),Ru||so(i,r,o)}function Mu(e,t,n){return Bu(e,"",t,"",n),Mu}function Bu(e,t,n,r,i){var o=qe(),u=fu(o,t,n,r);if(u!==Br){var a=dt();di(Ze(),o,a,e,u,i)}return Bu}var Lu=[];function Hu(e,t,n,r,i){for(var o=e[n+1],u=null===t,a=r?Qr(o):Gr(o),s=!1;0!==a&&(!1===s||u);){var l=e[a+1];Uu(e[a],t)&&(s=!0,e[a+1]=r?Jr(l):Wr(l)),a=r?Qr(l):Gr(l)}s&&(e[n+1]=r?Wr(o):Jr(o))}function Uu(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ye(e,t)>=0}var zu={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function qu(e){return e.substring(zu.key,zu.keyEnd)}function Zu(e,t){var n=zu.textEnd;return n===t?-1:(t=zu.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,zu.key=t,n),Qu(e,t,n))}function Qu(e,t,n){for(;t=0;n=Zu(t,n))ve(e,qu(t),!0)}function Ku(e,t,n,r){var i,o,u=qe(),a=Ze(),s=tt(2);(a.firstUpdatePass&&ea(a,e,s,r),t!==Br&&su(u,s,t))&&(null==n&&(i=null===(o=Ue.lFrame)?null:o.currentSanitizer)&&(n=i),ra(a,a.data[dt()+19],u,u[11],e,u[s+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=F(_n(e)))),e}(t,n),r,s))}function Yu(e,t,n,r){var i=Ze(),o=tt(2);i.firstUpdatePass&&ea(i,null,o,r);var u=qe();if(n!==Br&&su(u,o,n)){var a=i.data[dt()+19];if(ua(a,r)&&!Xu(i,o)){var s=r?a.classes:a.styles;null!==s&&(n=I(s,n||"")),_u(i,a,u,n,r)}else!function(e,t,n,r,i,o,u,a){i===Br&&(i=Lu);for(var s=0,l=0,c=0=e.expandoStartIndex}function ea(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[dt()+19],u=Xu(e,n);ua(o,r)&&null===t&&!u&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=Ue.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=na(n=ta(null,e,t,n,r),t.attrs,r),o=null);else{var u=t.directiveStylingLast;if(-1===u||e[u]!==i)if(n=ta(i,e,t,n,r),null===o){var a=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==Gr(r))return e[Qr(r)]}(e,t,r);void 0!==a&&Array.isArray(a)&&function(e,t,n,r){e[Qr(n?t.classBindings:t.styleBindings)]=r}(e,t,r,a=na(a=ta(null,e,t,a[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(i)if(0!==s){var d=Qr(e[a+1]);e[r+1]=Zr(d,a),0!==d&&(e[d+1]=$r(e[d+1],r)),e[a+1]=131071&e[a+1]|r<<17}else e[r+1]=Zr(a,0),0!==a&&(e[a+1]=$r(e[a+1],r)),a=r;else e[r+1]=Zr(s,0),0===a?a=r:e[s+1]=$r(e[s+1],r),s=r;c&&(e[r+1]=Wr(e[r+1])),Hu(e,l,r,!0),Hu(e,l,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&ye(o,t)>=0&&(n[r+1]=Jr(n[r+1]))}(t,l,e,r,o),u=Zr(a,s),o?t.classBindings=u:t.styleBindings=u}(i,o,t,n,u,r)}}function ta(e,t,n,r,i){var o=null,u=n.directiveEnd,a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){var s=e[i],l=Array.isArray(s),c=l?s[1]:s,f=null===c,d=n[i+1];d===Br&&(d=f?Lu:void 0);var h=f?pe(d,r):c===r?d:void 0;if(l&&!oa(h)&&(h=pe(s,r)),oa(h)&&(a=h,u))return a;var v=e[i+1];i=u?Qr(v):Gr(v)}if(null!==t){var p=o?t.residualClasses:t.residualStyles;null!=p&&(a=pe(p,r))}return a}function oa(e){return void 0!==e}function ua(e,t){return 0!=(e.flags&(t?16:32))}function aa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=qe(),r=Ze(),i=e+19,o=r.firstCreatePass?ei(r,n[6],e,3,null,null):r.data[i],u=n[i]=qi(t,n[11]);ro(r,n,u,o),Ge(o,!1)}function sa(e){return la("",e,""),sa}function la(e,t,n){var r=qe(),i=fu(r,e,t,n);return i!==Br&&function(e,t,n){var r=fr(t,e),i=e[11];xt(i)?i.setValue(r,n):r.textContent=n}(r,dt(),i),la}function ca(e,t,n){Yu(ve,Ju,fu(qe(),e,t,n),!0)}function fa(e,t,n){var r=qe();if(su(r,et(),t)){var i=dt();di(Ze(),r,i,e,t,n,!0)}return fa}function da(e,t,n){var r=qe();if(su(r,et(),t)){var i=dt();di(Ze(),r,i,e,t,n,!0,Mi)}return da}function ha(e){ya(e);var t,n,r,i=va(e,!1);return null===i?null:(void 0===i.component&&(i.component=(t=i.nodeIndex,n=i.lView,2&(r=n[1].data[t]).flags?n[r.directiveStart]:null)),i.component)}function va(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function(e){var t,n=gr(e);if(n){if(Array.isArray(n)){var r,i=n,o=void 0,u=void 0;if((t=e)&&t.constructor&&t.constructor.\u0275cmp){if(-1==(r=function(e,t){var n=e[1].components;if(n)for(var r=0;r=0){var y=cr(v[p]),g=kr(v,p,y);Dr(y,g),n=g;break}}}return n||null}(e);if(!n&&t)throw new Error("Invalid ng target");return n}function pa(e,t){return e.name==t.name?0:e.name=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Ot(i.hostAttrs,n=Ot(n,i.hostAttrs))}}(r)}function ma(e){return e===me?{}:e===Ce?[]:e}function Ca(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function ba(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function wa(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var ka=function(){function e(t,n,r){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Da(e){e.type.prototype.ngOnChanges&&(e.setInput=Ea,e.onChanges=function(){var e=xa(this),t=e&&e.current;if(t){var n=e.previous;if(n===me)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}})}function Ea(e,t,n,r){var i=xa(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:me,current:null}),o=i.current||(i.current={}),u=i.previous,a=this.declaredInputs[n],s=u[a];o[a]=new ka(s&&s.currentValue,t,u===me),e[r]=t}function xa(e){return e.__ngSimpleChanges__||null}function Aa(e,t,n,r,i){if(e=T(e),Array.isArray(e))for(var o=0;o>16;if(Zo(e)||!e.multi){var v=new wt(l,i,vu),p=Sa(s,t,i?f:f+h,d);-1===p?(Kt(Wt(c,a),u,s),Fa(u,e,t.length),t.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(v),a.push(v)):(n[p]=v,a[p]=v)}else{var y=Sa(s,t,f+h,d),g=Sa(s,t,f,f+h),_=y>=0&&n[y],m=g>=0&&n[g];if(i&&!m||!i&&!_){Kt(Wt(c,a),u,s);var C=function(e,t,n,r,i){var o=new wt(e,n,vu);return o.multi=[],o.index=t,o.componentProviders=0,Ia(o,i,r&&!n),o}(i?Ta:Oa,n.length,i,r,l);!i&&m&&(n[g].providerFactory=C),Fa(u,e,t.length),t.push(s),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(C),a.push(C)}else Fa(u,e,y>-1?y:g),Ia(n[i?g:y],l,!i&&r);!i&&r&&m&&n[g].componentProviders++}}}function Fa(e,t,n){if(Zo(t)||t.useClass){var r=(t.useClass||t).prototype.ngOnDestroy;r&&(e.destroyHooks||(e.destroyHooks=[])).push(n,r)}}function Ia(e,t,n){e.multi.push(t),n&&e.componentProviders++}function Sa(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=Ze();if(r.firstCreatePass){var i=Le(e);Aa(n,r.data,r.blueprint,i,!0),Aa(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}Da.ngInherit=!0;var Ra=function e(){_classCallCheck(this,e)},Va=function e(){_classCallCheck(this,e)};function ja(e){var t=Error("No component factory found for ".concat(F(e),". Did you add it to @NgModule.entryComponents?"));return t[Ma]=e,t}var Ma="ngComponent",Ba=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw ja(e)}}]),e}(),La=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new Ba,e}(),Ha=function(){function e(t,n,r){_classCallCheck(this,e),this._parent=n,this._ngModule=r,this._factories=new Map;for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:Wo.THROW_IF_NOT_FOUND,o=X(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(i=null),1&t.flags)return e._parent.get(t.token,i);var u=t.tokenKey;switch(u){case fl:case dl:case hl:return e}var a,s=e._def.providersByKey[u];if(s){var l=e._providers[s.index];return void 0===l&&(l=e._providers[s.index]=gl(e,s)),l===cl?void 0:l}if((a=C(t.token))&&(n=e,null!=(r=a.providedIn)&&("any"===r||r===n._def.scope||function(e,t){return e._def.modules.indexOf(t)>-1}(n,r)))){var c=e._providers.length;return e._def.providers[c]=e._def.providersByKey[t.tokenKey]={flags:5120,value:a.factory,deps:[],index:c,token:t.token},e._providers[c]=cl,e._providers[c]=gl(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?i:e._parent.get(t.token,i)}finally{X(o)}}function gl(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(yl(e,n[0]));case 2:return new t(yl(e,n[0]),yl(e,n[1]));case 3:return new t(yl(e,n[0]),yl(e,n[1]),yl(e,n[2]));default:for(var i=[],o=0;o=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,de(n,t),As.dirtyParentQueries(r),Cl(r),r}function ml(e,t,n){var r=t?Us(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);Ks(n,2,i,o,void 0)}function Cl(e){Ks(e,3,null,null,void 0)}var bl={};function wl(e,t,n,r,i,o){return new kl(e,t,n,r,i,o)}var kl=function(e){function t(e,n,r,i,o,u){var a;return _classCallCheck(this,t),(a=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).selector=e,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=u,a.viewDefFactory=r,a}return _inherits(t,e),_createClass(t,[{key:"create",value:function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=Js(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,u=As.createRootView(e,t||[],n,i,r,bl),a=Ds(u,o).instance;return n&&u.renderer.setAttribute(ks(u,0).renderElement,"ng-version",Ka.full),new Dl(u,new Fl(u),a)}},{key:"inputs",get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e}},{key:"outputs",get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}}]),t}(Va),Dl=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return _inherits(t,e),_createClass(t,[{key:"destroy",value:function(){this._viewRef.destroy()}},{key:"onDestroy",value:function(e){this._viewRef.onDestroy(e)}},{key:"location",get:function(){return new za(ks(this._view,this._elDef.nodeIndex).renderElement)}},{key:"injector",get:function(){return new Tl(this._view,this._elDef)}},{key:"componentType",get:function(){return this._component.constructor}}]),t}(Ra);function El(e,t,n){return new xl(e,t,n)}var xl=function(){function e(t,n,r){_classCallCheck(this,e),this._view=t,this._elDef=n,this._data=r,this._embeddedViews=[]}return _createClass(e,[{key:"clear",value:function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=_l(this._data,e);As.destroyView(t)}}},{key:"get",value:function(e){var t=this._embeddedViews[e];if(t){var n=new Fl(t);return n.attachToViewContainerRef(this),n}return null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof Ua||(i=o.get(ae));var u=e.create(o,r,void 0,i);return this.insert(u.hostView,t),u}},{key:"insert",value:function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,u,a=e;return n=this._view,r=this._data,i=t,o=a._view,u=r.viewContainer._embeddedViews,null==i&&(i=u.length),o.viewContainerParent=n,fe(u,i,o),function(e,t){var n=Ls(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(!(4&t.flags)){e.nodeFlags|=4,t.flags|=4;for(var n=t.parent;n;)n.childFlags|=4,n=n.parent}}(t.parent.def,t.parentNodeDef)}}(r,o),As.dirtyParentQueries(o),ml(r,i>0?u[i-1]:null,o),a.attachToViewContainerRef(this),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,u,a=this._embeddedViews.indexOf(e._view);return n=this._data,r=a,i=t,o=n.viewContainer._embeddedViews,u=o[r],de(o,r),null==i&&(i=o.length),fe(o,i,u),As.dirtyParentQueries(u),Cl(u),ml(n,i>0?o[i-1]:null,u),e}},{key:"indexOf",value:function(e){return this._embeddedViews.indexOf(e._view)}},{key:"remove",value:function(e){var t=_l(this._data,e);t&&As.destroyView(t)}},{key:"detach",value:function(e){var t=_l(this._data,e);return t?new Fl(t):null}},{key:"element",get:function(){return new za(this._data.renderElement)}},{key:"injector",get:function(){return new Tl(this._view,this._elDef)}},{key:"parentInjector",get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Hs(e),e=e.parent;return e?new Tl(e,t):new Tl(this._view,null)}},{key:"length",get:function(){return this._embeddedViews.length}}]),e}();function Al(e){return new Fl(e)}var Fl=function(){function e(t){_classCallCheck(this,e),this._view=t,this._viewContainerRef=null,this._appRef=null}return _createClass(e,[{key:"markForCheck",value:function(){js(this._view)}},{key:"detach",value:function(){this._view.state&=-5}},{key:"detectChanges",value:function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{As.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}},{key:"checkNoChanges",value:function(){As.checkNoChangesView(this._view)}},{key:"reattach",value:function(){this._view.state|=4}},{key:"onDestroy",value:function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}},{key:"destroy",value:function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),As.destroyView(this._view)}},{key:"detachFromAppRef",value:function(){this._appRef=null,Cl(this._view),As.dirtyParentQueries(this._view)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"rootNodes",get:function(){return Ks(this._view,0,void 0,void 0,e=[]),e;var e}},{key:"context",get:function(){return this._view.context}},{key:"destroyed",get:function(){return 0!=(128&this._view.state)}}]),e}();function Il(e,t){return new Sl(e,t)}var Sl=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._parentView=e,r._def=n,r}return _inherits(t,e),_createClass(t,[{key:"createEmbeddedView",value:function(e){return new Fl(As.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}},{key:"elementRef",get:function(){return new za(ks(this._parentView,this._def.nodeIndex).renderElement)}}]),t}(hs);function Ol(e,t){return new Tl(e,t)}var Tl=function(){function e(t,n){_classCallCheck(this,e),this.view=t,this.elDef=n}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wo.THROW_IF_NOT_FOUND;return As.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Ss(e)},t)}}]),e}();function Nl(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=ks(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return ws(e,n.nodeIndex).renderText;if(20240&n.flags)return Ds(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index ".concat(t))}function Pl(e,t,n,r){return new Rl(e,t,n,r)}var Rl=function(){function e(t,n,r,i){_classCallCheck(this,e),this._moduleType=t,this._parent=n,this._bootstrapComponents=r,this._def=i,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=he(t.providers.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:Wo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Default,r=0;return n&p.SkipSelf?r|=1:n&p.Self&&(r|=4),yl(this,{token:e,tokenKey:Ss(e),flags:r},t)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The ng module ".concat(F(this.instance.constructor)," has already been destroyed."));this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,i=0;i0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r0,r=t.provider;switch(201347067&t.flags){case 512:return Yl(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(ec(e,t,n,i[0]));case 2:return r(ec(e,t,n,i[0]),ec(e,t,n,i[1]));case 3:return r(ec(e,t,n,i[0]),ec(e,t,n,i[1]),ec(e,t,n,i[2]));default:for(var u=[],a=0;a4&&void 0!==arguments[4]?arguments[4]:Wo.THROW_IF_NOT_FOUND;if(8&r.flags)return r.token;var o=e;2&r.flags&&(i=null);var u=r.tokenKey;u===Ll&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var a=e;a;){if(t)switch(u){case Vl:return tc(a,t,n).renderer;case jl:return new za(ks(a,t.nodeIndex).renderElement);case Ml:return ks(a,t.nodeIndex).viewContainer;case Bl:if(t.element.template)return ks(a,t.nodeIndex).template;break;case Ll:return Al(tc(a,t,n));case Hl:case Ul:return Ol(a,t);default:var s=(n?t.element.allProviders:t.element.publicProviders)[u];if(s){var l=Ds(a,s.nodeIndex);return l||(l={instance:Kl(a,s)},a.nodes[s.nodeIndex]=l),l.instance}}n=zs(a),t=Hs(a),a=a.parent,4&r.flags&&(a=null)}var c=o.root.injector.get(r.token,Xl);return c!==Xl||i===Xl?c:o.root.ngModule.injector.get(r.token,i)}function tc(e,t,n){var r;if(n)r=ks(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!zs(r);)r=r.parent;return r}function nc(e,t,n,r,i,o){if(32768&n.flags){var u=ks(e,n.parent.nodeIndex).componentView;2&u.def.flags&&(u.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var a=ru.unwrap(e.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new ka(a,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,o}function rc(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,i=0;i0&&fo(l,f,C.join(" "))}o=vr(y[1],0),t&&(o.projection=t.map((function(e){return Array.from(e)}))),i=function(e,t,n,r,i){var o=n[1],u=function(e,t,n){var r=We();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),gi(e,r,1),bi(e,t,n));var i=nn(t,e,t.length-1,r);Dr(i,t);var o=dr(r,t);return o&&Dr(o,t),i}(o,n,t);r.components.push(u),e[8]=u,i&&i.forEach((function(e){return e(u,t)})),t.contentQueries&&t.contentQueries(1,u,n.length-1);var a=We();if(o.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){ht(a.index-19);var s=n[1];vi(s,t),pi(s,n,t.hostVars),yi(t,u)}return u}(g,this.componentDef,y,v,[ga]),ti(p,y,null)}finally{ft()}var b=new cc(this.componentType,i,_o(za,o,y),y,o);return n&&!h||(b.hostView._tViewNode.child=o),b}},{key:"inputs",get:function(){return ac(this.componentDef.inputs)}},{key:"outputs",get:function(){return ac(this.componentDef.outputs)}}]),t}(Va),cc=function(e){function t(e,n,r,i,o){var u,a,s,l;return _classCallCheck(this,t),(u=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).location=r,u._rootLView=i,u._tNode=o,u.destroyCbs=[],u.instance=n,u.hostView=u.changeDetectorRef=new go(i),u.hostView._tViewNode=(a=i[1],s=i,null==(l=a.node)&&(a.node=l=ci(0,null,2,-1,null,null)),s[6]=l),u.componentType=e,u}return _inherits(t,e),_createClass(t,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}},{key:"injector",get:function(){return new un(this._tNode,this._rootLView)}}]),t}(Ra),fc=void 0,dc=["en",[["a","p"],["AM","PM"],fc],[["AM","PM"],fc,fc],[["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"]],fc,[["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"]],fc,[["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}",fc,"{1} 'at' {0}",fc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],hc={};function vc(e,t,n){"string"!=typeof t&&(n=t,t=e[mc.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),hc[t]=e,n&&(hc[t][mc.ExtraData]=n)}function pc(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=_c(t);if(n)return n;var r=t.split("-")[0];if(n=_c(r))return n;if("en"===r)return dc;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function yc(e){return pc(e)[mc.CurrencyCode]||null}function gc(e){return pc(e)[mc.PluralCase]}function _c(e){return e in hc||(hc[e]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[e]),hc[e]}var mc=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,PluralCase:19,ExtraData:20};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),Cc=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,bc=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,wc=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,kc=/\ufffd(\d+):?\d*\ufffd/gi,Dc=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi;function Ec(e){if(!e)return[];var t,n=0,r=[],i=[],o=/[{}]/g;for(o.lastIndex=0;t=o.exec(e);){var u=t.index;if("}"==t[0]){if(r.pop(),0==r.length){var a=e.substring(n,u);Cc.test(a)?i.push(xc(a)):i.push(a),n=u+1}}else{if(0==r.length){var s=e.substring(n,u);i.push(s),n=u+1}r.push("{")}}var l=e.substring(n);return i.push(l),i}function xc(e){for(var t=[],n=[],r=1,i=0,o=Ec(e=e.replace(Cc,(function(e,t,n){return r="select"===n?0:1,i=parseInt(t.substr(1),10),""}))),u=0;un.length&&n.push(s)}return{type:r,mainBinding:i,cases:t,values:n}}function Ac(e){for(var t,n,r="",i=0,o=!1;null!==(t=bc.exec(e));)o?t[0]==="\ufffd/*".concat(n,"\ufffd")&&(i=t.index,o=!1):(r+=e.substring(i,t.index+t[0].length),n=t[1],o=!0);return r+=e.substr(i)}function Fc(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[null,null],o=e.split(kc),u=0,a=0;a1&&void 0!==arguments[1]?arguments[1]:0;n|=Tc(e.mainBinding);for(var r=0;r0&&u!==a){var f=u.index-19;$e()||(f=~f),c.push(f<<3|0)}for(var d,h=[],v=[],p=(d=function(e,t){if("number"!=typeof t)return Ac(e);var n=e.indexOf(":".concat(t,"\ufffd"))+2+t.toString().length,r=e.search(new RegExp("\ufffd\\/\\*\\d+:".concat(t,"\ufffd")));return Ac(e.substring(n,r))}(r,i),d.replace(zc," ")).split(wc),y=0;y0&&function(e,t,n){if(n>0&&e.firstCreatePass){for(var r=0;r>>17;u=Rc(n,o,d===e?r[6]:vr(n,d),u,r);break;case 0:var h=l>=0,v=(h?l:~l)>>>3;a.push(v),u=o,(o=vr(n,v))&&Ge(o,h);break;case 5:u=o=vr(n,l>>>3),Ge(o,!1);break;case 4:ki(l>>>3,t[++s],t[++s],n,r);break;default:throw new Error('Unable to determine the type of mutate operation for "'.concat(l,'"'))}else switch(l){case qr:var p=t[++s],y=t[++s],g=i.createComment(p);u=o,o=Vc(n,r,y,5,g,null),a.push(y),Dr(g,r),o.activeCaseIndex=null,Je();break;case zr:var _=t[++s],m=t[++s];u=o,o=Vc(n,r,m,3,i.createElement(_),_),a.push(m);break;default:throw new Error('Unable to determine the type of mutate operation for "'.concat(l,'"'))}}return Je(),a}(n,r.create,e,t),u=n+1;u<=i.index-19;){-1===o.indexOf(u)&&jc(e,t,u,!0);var a=vr(e,u);!a||0!==a.type&&3!==a.type&&4!==a.type||null===a.localNames||(u+=a.localNames.length>>1),u++}}(Ze(),r),Vu(!1)}function Bc(e,t){!function(e,t,n,r){for(var i=We().index-19,o=[],u=0;u null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var Zc=new Map;function Qc(e,t){var n=Zc.get(e);Wc(e,n&&n.moduleType,t.moduleType),Zc.set(e,t)}function Wc(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(F(t)," vs ").concat(F(t.name)))}var Gc=function(e){function t(e,n){var r;_classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._parent=n,r._bootstrapComponents=[],r.injector=_assertThisInitialized(r),r.destroyCbs=[],r.componentFactoryResolver=new uc(_assertThisInitialized(r));var i=Pe(e),o=e[q]||null;return o&&qc(o),r._bootstrapComponents=zt(i.bootstrap),r._r3Injector=Bo(e,n,[{provide:ae,useValue:_assertThisInitialized(r)},{provide:La,useValue:r.componentFactoryResolver}],F(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return _inherits(t,e),_createClass(t,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Default;return e===Wo||e===ae||e===G?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),t}(ae),$c=function(e){function t(e){var n;return _classCallCheck(this,t),(n=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).moduleType=e,null!==Pe(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;Wc(n,Zc.get(n),t),Zc.set(n,t)}var r=t.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(t){return e(t)}))}(e),n}return _inherits(t,e),_createClass(t,[{key:"create",value:function(e){return new Gc(this.moduleType,e)}}]),t}(se);function Jc(e,t,n){var r=Xe()+e,i=qe();return i[r]===Br?uu(i,r,n?t.call(n):t()):au(i,r)}function Kc(e,t,n,r){return ef(qe(),Xe(),e,t,n,r)}function Yc(e,t,n,r,i){return tf(qe(),Xe(),e,t,n,r,i)}function Xc(e,t,n,r,i,o){return function(e,t,n,r,i,o,u,a){var s=t+n;return function(e,t,n,r,i){var o=lu(e,t,n,r);return su(e,t+2,i)||o}(e,s,i,o,u)?uu(e,s+3,a?r.call(a,i,o,u):r(i,o,u)):au(e,s+3)}(qe(),Xe(),e,t,n,r,i,o)}function ef(e,t,n,r,i,o){var u=t+n;return su(e,u,i)?uu(e,u+1,o?r.call(o,i):r(i)):au(e,u+1)}function tf(e,t,n,r,i,o,u){var a=t+n;return lu(e,a,i,o)?uu(e,a+2,u?r.call(u,i,o):r(i,o)):au(e,a+2)}function nf(e,t){var n,r=Ze(),i=e+19;r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if(e===r.name)return r}throw new Error("The pipe '".concat(e,"' could not be found!"))}(t,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=Ne(n.type)),u=ee(vu),a=o();return ee(u),function(e,t,n,r){var i=n+19;i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=r}(r,qe(),e,a),a}function rf(e,t,n){var r=qe(),i=pr(r,e);return af(r,uf(r,e)?ef(r,Xe(),t,i.transform,n,i):i.transform(n))}function of(e,t,n,r){var i=qe(),o=pr(i,e);return af(i,uf(i,e)?tf(i,Xe(),t,o.transform,n,r,o):o.transform(n,r))}function uf(e,t){return e[1].data[t+19].pure}function af(e,t){return ru.isWrapped(t)&&(t=ru.unwrap(t),e[Ue.lFrame.bindingIndex]=Br),t}var sf=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,t),(e=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).__isAsync=n,e}return _inherits(t,e),_createClass(t,[{key:"emit",value:function(e){_get(_getPrototypeOf(t.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,n,r){var o,u=function(e){return null},a=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(u=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},n&&(u=this.__isAsync?function(e){setTimeout((function(){return n(e)}))}:function(e){n(e)}),r&&(a=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var s=_get(_getPrototypeOf(t.prototype),"subscribe",this).call(this,o,u,a);return e instanceof i.a&&e.add(s),s}}]),t}(r.a);function lf(){return this._results[eu()]()}var cf=function(){function e(){_classCallCheck(this,e),this.dirty=!0,this._results=[],this.changes=new sf,this.length=0;var t=eu(),n=e.prototype;n[t]||(n[t]=lf)}return _createClass(e,[{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e){this._results=function e(t,n){void 0===n&&(n=t);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.predicate=t,this.descendants=n,this.isStatic=r,this.read=i},vf=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,r=0;r0)i.push(a[s/2]);else{for(var c=u[s+1],f=n[-l],d=9;d0&&void 0!==arguments[0]?arguments[0]:p.Default,t=bo(!0);if(null!=t||e&p.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}var Tf=new W("Application Initializer"),Nf=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,t){n.resolve=e,n.reject=t}))}return _createClass(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ne(od))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e}(),vd=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,gd.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return gd.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e}();function pd(e){gd=e}var yd,gd=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),_d=function(e,t,n){var r=new $c(n);if(0===$o.size)return Promise.resolve(r);var i,o,u=(i=e.get(td,[]).concat(t).map((function(e){return e.providers})),o=[],i.forEach((function(e){return e&&o.push.apply(o,_toConsumableArray(e))})),o);if(0===u.length)return Promise.resolve(r);var a=function(){var e=B.ng;if(!e||!e.\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 e.\u0275compilerFacade}(),s=Wo.create({providers:u}).get(a.ResourceLoader);return function(e){var t=[],n=new Map;function r(e){var t=n.get(e);if(!t){var r=function(e){return Promise.resolve(s.get(e))}(e);n.set(e,t=r.then(Ko))}return t}return $o.forEach((function(e,n){var i=[];e.templateUrl&&i.push(r(e.templateUrl).then((function(t){e.template=t})));var o=e.styleUrls,u=e.styles||(e.styles=[]),a=e.styles.length;o&&o.forEach((function(t,n){u.push(""),i.push(r(t).then((function(r){u[a+n]=r,o.splice(o.indexOf(t),1),0==o.length&&(e.styleUrls=void 0)})))}));var s=Promise.all(i).then((function(){return function(e){Jo.delete(e)}(n)}));t.push(s)})),$o=new Map,Promise.all(t).then((function(){}))}().then((function(){return r}))},md=new W("AllowMultipleToken"),Cd=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function bd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new W(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=wd();if(!o||o.injector.get(md,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var u=n.concat(t).concat({provide:i,useValue:!0},{provide:No,useValue:"platform"});!function(e){if(yd&&!yd.destroyed&&!yd.injector.get(md,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");yd=e.get(kd);var t=e.get(jf,null);t&&t.forEach((function(e){return e()}))}(Wo.create({providers:u,name:r}))}return function(e){var t=wd();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function wd(){return yd&&!yd.destroyed?yd:null}var kd=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new dd:("zone.js"===n?void 0:n)||new od({enableLongStackTrace:Fn(),shouldCoalesceEventChangeDetection:r})),u=[{provide:od,useValue:o}];return o.run((function(){var t=Wo.create({providers:u,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(fn,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return xd(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var o=((u=n.injector.get(Nf)).runInitializers(),u.donePromise.then((function(){return qc(n.injector.get(Uf,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return Eu(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(a){throw t.runOutsideAngular((function(){return e.handleError(a)})),a}var u}(r,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Dd({},n);return _d(this.injector,r,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Ed);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(F(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ne(Wo))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e}();function Dd(e,t){return Array.isArray(t)?t.reduce(Dd,e):Object.assign(Object.assign({},e),t)}var Ed=function(){var e=function(){function e(t,n,r,i,s,l){var c=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Fn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run((function(){c.tick()}))}});var f=new o.a((function(e){c._stable=c._zone.isStable&&!c._zone.hasPendingMacrotasks&&!c._zone.hasPendingMicrotasks,c._zone.runOutsideAngular((function(){e.next(c._stable),e.complete()}))})),d=new o.a((function(e){var t;c._zone.runOutsideAngular((function(){t=c._zone.onStable.subscribe((function(){od.assertNotInAngularZone(),id((function(){c._stable||c._zone.hasPendingMacrotasks||c._zone.hasPendingMicrotasks||(c._stable=!0,e.next(!0))}))}))}));var n=c._zone.onUnstable.subscribe((function(){od.assertInAngularZone(),c._stable&&(c._stable=!1,c._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=Object(u.a)(f,d.pipe(Object(a.a)()))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,r=this;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.");n=e instanceof Va?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(ae),o=n.create(Wo.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var u=o.injector.get(hd,null);return u&&o.injector.get(vd).registerApplication(o.location.nativeElement,u),this._loadComponent(o),Fn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t=!0,n=!1,r=void 0;try{for(var i,o=this._views[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){i.value.detectChanges()}}catch(f){n=!0,r=f}finally{try{t||null==o.return||o.return()}finally{if(n)throw r}}if(this._enforceNoNewChanges){var u=!0,a=!1,s=void 0;try{for(var l,c=this._views[Symbol.iterator]();!(u=(l=c.next()).done);u=!0){l.value.checkNoChanges()}}catch(f){a=!0,s=f}finally{try{u||null==c.return||c.return()}finally{if(a)throw s}}}}catch(d){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(d)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;xd(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Bf,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),xd(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ne(od),ne(Hf),ne(Wo),ne(fn),ne(La),ne(Nf))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e}();function xd(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ad=function e(){_classCallCheck(this,e)},Fd=function e(){_classCallCheck(this,e)},Id={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Sd=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||Id}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,r=_slicedToArray(e.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("crnd")(i).then((function(e){return e[o]})).then((function(e){return Od(e,i,o)})).then((function(e){return t._compiler.compileModuleAsync(e)}))}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),r=t[0],i=t[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(e){return e[i+o]})).then((function(e){return Od(e,r,i)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ne(ed),ne(Fd,8))},e.\u0275prov=_({token:e,factory:e.\u0275fac}),e}();function Od(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Td=function e(t,n){_classCallCheck(this,e),this.name=t,this.callback=n},Nd=function(){function e(t,n,r){_classCallCheck(this,e),this.listeners=[],this.parent=null,this._debugContext=r,this.nativeNode=t,n&&n instanceof Pd&&n.addChild(this)}return _createClass(e,[{key:"injector",get:function(){return this._debugContext.injector}},{key:"componentInstance",get:function(){return this._debugContext.component}},{key:"context",get:function(){return this._debugContext.context}},{key:"references",get:function(){return this._debugContext.references}},{key:"providerTokens",get:function(){return this._debugContext.providerTokens}}]),e}(),Pd=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e,n,r))).properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return _inherits(t,e),_createClass(t,[{key:"addChild",value:function(e){e&&(this.childNodes.push(e),e.parent=this)}},{key:"removeChild",value:function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}},{key:"insertChildrenAfter",value:function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(_toConsumableArray(t))),t.forEach((function(t){t.parent&&t.parent.removeChild(t),e.parent=r})))}},{key:"insertBefore",value:function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}},{key:"query",value:function(e){return this.queryAll(e)[0]||null}},{key:"queryAll",value:function(e){var n=[];return function e(n,r,i){n.childNodes.forEach((function(n){n instanceof t&&(r(n)&&i.push(n),e(n,r,i))}))}(this,e,n),n}},{key:"queryAllNodes",value:function(e){var n=[];return function e(n,r,i){n instanceof t&&n.childNodes.forEach((function(n){r(n)&&i.push(n),n instanceof t&&e(n,r,i)}))}(this,e,n),n}},{key:"triggerEventHandler",value:function(e,t){this.listeners.forEach((function(n){n.name==e&&n.callback(t)}))}},{key:"children",get:function(){return this.childNodes.filter((function(e){return e instanceof t}))}}]),t}(Nd),Rd=function(){function e(t){_classCallCheck(this,e),this.nativeNode=t}return _createClass(e,[{key:"parent",get:function(){var e=this.nativeNode.parentNode;return e?new Vd(e):null}},{key:"injector",get:function(){return e=this.nativeNode,null===(t=va(e,!1))?Wo.NULL:new un(t.lView[1].data[t.nodeIndex],t.lView);var e,t}},{key:"componentInstance",get:function(){var e=this.nativeNode;return e&&(ha(e)||function(e){var t=va(e,!1);if(null===t)return null;for(var n,r=t.lView;null===r[0]&&(n=Lr(r));)r=n;return 512&r[2]?null:r[8]}(e))}},{key:"context",get:function(){return ha(this.nativeNode)||function(e){ya(e);var t=va(e,!1);return null===t?null:t.lView[8]}(this.nativeNode)}},{key:"listeners",get:function(){return function(e){ya(e);var t=va(e,!1);if(null===t)return[];var n=t.lView,r=n[7],i=n[1].cleanup,o=[];if(i&&r)for(var u=0;u=0?"dom":"output",v="boolean"==typeof d&&d;e==c&&o.push({element:e,name:l,callback:f,useCapture:v,type:h})}}return o.sort(pa),o}(this.nativeNode).filter((function(e){return"dom"===e.type}))}},{key:"references",get:function(){return e=this.nativeNode,null===(t=va(e,!1))?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){var n=e[1].data[t];if(n&&n.localNames){for(var r={},i=n.index+1,o=0;o1){for(var l=a[1],c=1;c6&&void 0!==arguments[6]?arguments[6]:[],s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,f=arguments.length>10?arguments[10]:void 0,d=arguments.length>11?arguments[11]:void 0;c||(c=Fs);var h=Qs(n),v=h.matchedQueries,p=h.references,y=h.matchedQueryIds,g=null,_=null;o&&(g=(u=_slicedToArray(rl(o),2))[0],_=u[1]),s=s||[];for(var m=[],C=0;C0)l=p,_h(p)||(c=p);else for(;l&&v===l.nodeIndex+l.childCount;){var _=l.parent;_&&(_.childFlags|=l.childFlags,_.childMatchedQueries|=l.childMatchedQueries),c=(l=_)&&_h(l)?l.renderParent:l}}return{factory:null,nodeFlags:u,rootNodeFlags:a,nodeMatchedQueries:s,flags:e,nodes:t,updateDirectives:n||Fs,updateRenderer:r||Fs,handleEvent:function(e,n,r,i){return t[n].element.handleEvent(e,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:h}}function _h(e){return 0!=(1&e.flags)&&null===e.element.name}function mh(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index ".concat(t.nodeIndex,"!"))}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ".concat(t.nodeIndex,"!"));if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index ".concat(t.nodeIndex,"!"));if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index ".concat(t.nodeIndex,"!"))}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index ".concat(t.nodeIndex,"!"))}}function Ch(e,t,n,r){var i=kh(e.root,e.renderer,e,t,n);return Dh(i,e.component,r),Eh(i),i}function bh(e,t,n){var r=kh(e,e.renderer,null,null,t);return Dh(r,n,n),Eh(r),r}function wh(e,t,n,r){var i,o=t.element.componentRendererType;return i=o?e.root.rendererFactory.createRenderer(r,o):e.root.renderer,kh(e.root,i,e,t.element.componentProvider,n)}function kh(e,t,n,r,i){var o=new Array(i.nodes.length),u=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:u,initIndex:-1}}function Dh(e,t,n){e.component=t,e.context=n}function Eh(e){var t;zs(e)&&(t=ks(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,i=0;i0&&nh(e,t,0,n)&&(h=!0),d>1&&nh(e,t,1,r)&&(h=!0),d>2&&nh(e,t,2,i)&&(h=!0),d>3&&nh(e,t,3,o)&&(h=!0),d>4&&nh(e,t,4,u)&&(h=!0),d>5&&nh(e,t,5,a)&&(h=!0),d>6&&nh(e,t,6,s)&&(h=!0),d>7&&nh(e,t,7,l)&&(h=!0),d>8&&nh(e,t,8,c)&&(h=!0),d>9&&nh(e,t,9,f)&&(h=!0),h}(e,t,n,r,i,o,u,a,s,l,c,f);case 2:return function(e,t,n,r,i,o,u,a,s,l,c,f){var d=!1,h=t.bindings,v=h.length;if(v>0&&Rs(e,t,0,n)&&(d=!0),v>1&&Rs(e,t,1,r)&&(d=!0),v>2&&Rs(e,t,2,i)&&(d=!0),v>3&&Rs(e,t,3,o)&&(d=!0),v>4&&Rs(e,t,4,u)&&(d=!0),v>5&&Rs(e,t,5,a)&&(d=!0),v>6&&Rs(e,t,6,s)&&(d=!0),v>7&&Rs(e,t,7,l)&&(d=!0),v>8&&Rs(e,t,8,c)&&(d=!0),v>9&&Rs(e,t,9,f)&&(d=!0),d){var p=t.text.prefix;v>0&&(p+=yh(n,h[0])),v>1&&(p+=yh(r,h[1])),v>2&&(p+=yh(i,h[2])),v>3&&(p+=yh(o,h[3])),v>4&&(p+=yh(u,h[4])),v>5&&(p+=yh(a,h[5])),v>6&&(p+=yh(s,h[6])),v>7&&(p+=yh(l,h[7])),v>8&&(p+=yh(c,h[8])),v>9&&(p+=yh(f,h[9]));var y=ws(e,t.nodeIndex).renderText;e.renderer.setValue(y,p)}return d}(e,t,n,r,i,o,u,a,s,l,c,f);case 16384:return function(e,t,n,r,i,o,u,a,s,l,c,f){var d=Ds(e,t.nodeIndex),h=d.instance,v=!1,p=void 0,y=t.bindings.length;return y>0&&Ps(e,t,0,n)&&(v=!0,p=nc(e,d,t,0,n,p)),y>1&&Ps(e,t,1,r)&&(v=!0,p=nc(e,d,t,1,r,p)),y>2&&Ps(e,t,2,i)&&(v=!0,p=nc(e,d,t,2,i,p)),y>3&&Ps(e,t,3,o)&&(v=!0,p=nc(e,d,t,3,o,p)),y>4&&Ps(e,t,4,u)&&(v=!0,p=nc(e,d,t,4,u,p)),y>5&&Ps(e,t,5,a)&&(v=!0,p=nc(e,d,t,5,a,p)),y>6&&Ps(e,t,6,s)&&(v=!0,p=nc(e,d,t,6,s,p)),y>7&&Ps(e,t,7,l)&&(v=!0,p=nc(e,d,t,7,l,p)),y>8&&Ps(e,t,8,c)&&(v=!0,p=nc(e,d,t,8,c,p)),y>9&&Ps(e,t,9,f)&&(v=!0,p=nc(e,d,t,9,f,p)),p&&h.ngOnChanges(p),65536&t.flags&&bs(e,256,t.nodeIndex)&&h.ngOnInit(),262144&t.flags&&h.ngDoCheck(),v}(e,t,n,r,i,o,u,a,s,l,c,f);case 32:case 64:case 128:return function(e,t,n,r,i,o,u,a,s,l,c,f){var d=t.bindings,h=!1,v=d.length;if(v>0&&Rs(e,t,0,n)&&(h=!0),v>1&&Rs(e,t,1,r)&&(h=!0),v>2&&Rs(e,t,2,i)&&(h=!0),v>3&&Rs(e,t,3,o)&&(h=!0),v>4&&Rs(e,t,4,u)&&(h=!0),v>5&&Rs(e,t,5,a)&&(h=!0),v>6&&Rs(e,t,6,s)&&(h=!0),v>7&&Rs(e,t,7,l)&&(h=!0),v>8&&Rs(e,t,8,c)&&(h=!0),v>9&&Rs(e,t,9,f)&&(h=!0),h){var p,y=Es(e,t.nodeIndex);switch(201347067&t.flags){case 32:p=[],v>0&&p.push(n),v>1&&p.push(r),v>2&&p.push(i),v>3&&p.push(o),v>4&&p.push(u),v>5&&p.push(a),v>6&&p.push(s),v>7&&p.push(l),v>8&&p.push(c),v>9&&p.push(f);break;case 64:p={},v>0&&(p[d[0].name]=n),v>1&&(p[d[1].name]=r),v>2&&(p[d[2].name]=i),v>3&&(p[d[3].name]=o),v>4&&(p[d[4].name]=u),v>5&&(p[d[5].name]=a),v>6&&(p[d[6].name]=s),v>7&&(p[d[7].name]=l),v>8&&(p[d[8].name]=c),v>9&&(p[d[9].name]=f);break;case 128:var g=n;switch(v){case 1:p=g.transform(n);break;case 2:p=g.transform(r);break;case 3:p=g.transform(r,i);break;case 4:p=g.transform(r,i,o);break;case 5:p=g.transform(r,i,o,u);break;case 6:p=g.transform(r,i,o,u,a);break;case 7:p=g.transform(r,i,o,u,a,s);break;case 8:p=g.transform(r,i,o,u,a,s,l);break;case 9:p=g.transform(r,i,o,u,a,s,l,c);break;case 10:p=g.transform(r,i,o,u,a,s,l,c,f)}}y.value=p}return h}(e,t,n,r,i,o,u,a,s,l,c,f);default:throw"unreachable"}}(e,t,r,i,o,u,a,s,l,c,f,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,i=0;i0&&Vs(e,t,0,n),d>1&&Vs(e,t,1,r),d>2&&Vs(e,t,2,i),d>3&&Vs(e,t,3,o),d>4&&Vs(e,t,4,u),d>5&&Vs(e,t,5,a),d>6&&Vs(e,t,6,s),d>7&&Vs(e,t,7,l),d>8&&Vs(e,t,8,c),d>9&&Vs(e,t,9,f)}(e,t,r,i,o,u,a,s,l,c,f,d):function(e,t,n){for(var r=0;r0){var o=new Set(e.modules);Wh.forEach((function(t,n){if(o.has(C(n).providedIn)){var i={token:n,flags:t.flags|(r?4096:0),deps:Ws(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[Ss(n)]=i}}))}}(e=e.factory((function(){return Fs}))),e):e}(r))}var Qh=new Map,Wh=new Map,Gh=new Map;function $h(e){var t;Qh.set(e.token,e),"function"==typeof e.token&&(t=C(e.token))&&"function"==typeof t.providedIn&&Wh.set(e.token,e)}function Jh(e,t){var n=Js(t.viewDefFactory),r=Js(n.nodes[0].element.componentView);Gh.set(e,r)}function Kh(){Qh.clear(),Wh.clear(),Gh.clear()}function Yh(e){if(0===Qh.size)return e;var t=function(e){for(var t=[],n=null,r=0;r3?o-3:0),a=3;a3?o-3:0),a=3;a1?t-1:0),r=1;r1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},o.Ib.getAllAngularTestabilities=function(){return e.getAllTestabilities()},o.Ib.getAllAngularRootElements=function(){return e.getAllRootElements()},o.Ib.frameworkStabilizers||(o.Ib.frameworkStabilizers=[]),o.Ib.frameworkStabilizers.push((function(e){var t=o.Ib.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Object(i.N)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){Object(o.gb)(new e)}}]),e}(),f=new o.v("EventManagerPlugins"),d=function(){var e=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(n.splice(t,1),o+=e+".")})),o+=i,0!=n.length||0===i.length)return null;var u={};return u.domEventName=r,u.fullKey=o,u}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&F.hasOwnProperty(t)&&(t=F[t]))}return A[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),x.forEach((function(r){r!=n&&(0,I[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,n,r){return function(i){t.getEventFullKey(i)===e&&r.runGuarded((function(){return n(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),t}(h);return e.\u0275fac=function(t){return new(t||e)(o.Jc(i.e))},e.\u0275prov=o.uc({token:e,factory:e.\u0275fac}),e}(),O=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(o.uc)({factory:function(){return Object(o.Jc)(N)},token:e,providedIn:"root"}),e}();function T(e){return new N(e.get(i.e))}var N=function(){var e=function(e){function t(e){var n;return _classCallCheck(this,t),(n=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._doc=e,n}return _inherits(t,e),_createClass(t,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case o.P.NONE:return t;case o.P.HTML:return Object(o.rb)(t,"HTML")?Object(o.fc)(t):Object(o.ob)(this._doc,String(t));case o.P.STYLE:return Object(o.rb)(t,"Style")?Object(o.fc)(t):Object(o.pb)(t);case o.P.SCRIPT:if(Object(o.rb)(t,"Script"))return Object(o.fc)(t);throw new Error("unsafe value used in a script context");case o.P.URL:return Object(o.Hb)(t),Object(o.rb)(t,"URL")?Object(o.fc)(t):Object(o.qb)(String(t));case o.P.RESOURCE_URL:if(Object(o.rb)(t,"ResourceURL"))return Object(o.fc)(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return Object(o.tb)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return Object(o.wb)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return Object(o.vb)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return Object(o.xb)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return Object(o.ub)(e)}}]),t}(O);return e.\u0275fac=function(t){return new(t||e)(o.Jc(i.e))},e.\u0275prov=Object(o.uc)({factory:function(){return T(Object(o.Jc)(o.t))},token:e,providedIn:"root"}),e}(),P=[{provide:o.I,useValue:i.M},{provide:o.J,useValue:function(){u.makeCurrent(),c.init()},multi:!0},{provide:i.e,useFactory:function(){return Object(o.bc)(document),document},deps:[]}],R=[[],{provide:o.lb,useValue:"root"},{provide:o.r,useFactory:function(){return new o.r},deps:[]},{provide:f,useClass:D,multi:!0,deps:[i.e,o.F,o.I]},{provide:f,useClass:S,multi:!0,deps:[i.e]},[],{provide:C,useClass:C,deps:[d,p,o.c]},{provide:o.M,useExisting:C},{provide:v,useExisting:p},{provide:p,useClass:p,deps:[i.e]},{provide:o.V,useClass:o.V,deps:[o.F]},{provide:d,useClass:d,deps:[f,o.F]},[]],V=function(){var e=function(){function e(t){if(_classCallCheck(this,e),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.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:o.c,useValue:t.appId},{provide:s,useExisting:o.c},l]}}}]),e}();return e.\u0275mod=o.wc({type:e}),e.\u0275inj=o.vc({factory:function(t){return new(t||e)(o.Jc(e,12))},providers:R,imports:[i.c,o.f]}),e}();"undefined"!=typeof window&&window},kJWO:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},l7GE:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),t}(n("7o/Q").a)},lJxs:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new u(e,this.project,this.thisArg))}}]),e}(),u=function(e){function t(e,n,r){var i;return _classCallCheck(this,t),(i=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).project=n,i.count=0,i.thisArg=r||_assertThisInitialized(i),i}return _inherits(t,e),_createClass(t,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),t}(r.a)},mCNh:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n("KqfI");function i(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+g(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+g(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),t}(_);return e.\u0275fac=function(t){return new(t||e)(r.Jc(l),r.Jc(C,8))},e.\u0275prov=r.uc({token:e,factory:e.\u0275fac}),e}(),w=function(){var e=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this)))._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return _inherits(t,e),_createClass(t,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=p(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+g(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+g(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),t}(_);return e.\u0275fac=function(t){return new(t||e)(r.Jc(l),r.Jc(C,8))},e.\u0275prov=r.uc({token:e,factory:e.\u0275fac}),e}(),k=function(){var e=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._subject=new r.s,this._urlChangeListeners=[],this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=y(E(o)),this._platformStrategy.onPopState((function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})}))}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+g(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,E(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+g(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this.subscribe((function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(e,t)}))}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Jc(_),r.Jc(l))},e.normalizeQueryParams=g,e.joinWithSlash=p,e.stripTrailingSlash=y,e.\u0275prov=Object(r.uc)({factory:D,token:e,providedIn:"root"}),e}();function D(){return new k(Object(r.Jc)(_),Object(r.Jc)(l))}function E(e){return e.replace(/\/index.html$/,"")}var x={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},A=function(){var e={Decimal:0,Percent:1,Currency:2,Scientific:3};return e[e.Decimal]="Decimal",e[e.Percent]="Percent",e[e.Currency]="Currency",e[e.Scientific]="Scientific",e}(),F=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),I=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),S=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),O=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),T=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function N(e,t){return L(Object(r.Db)(e)[r.mb.DateFormat],t)}function P(e,t){return L(Object(r.Db)(e)[r.mb.TimeFormat],t)}function R(e,t){return L(Object(r.Db)(e)[r.mb.DateTimeFormat],t)}function V(e,t){var n=Object(r.Db)(e),i=n[r.mb.NumberSymbols][t];if(void 0===i){if(t===T.CurrencyDecimal)return n[r.mb.NumberSymbols][T.Decimal];if(t===T.CurrencyGroup)return n[r.mb.NumberSymbols][T.Group]}return i}function j(e,t){return Object(r.Db)(e)[r.mb.NumberFormats][t]}var M=r.Gb;function B(e){if(!e[r.mb.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[r.mb.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function L(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function H(e){var t=_slicedToArray(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var U=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,z={},q=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Z=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),Q=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),W=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function G(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function $(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,o=n));for(var u=String(e);u.length2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,u){var a,s=function(e,t){switch(e){case Q.FullYear:return t.getFullYear();case Q.Month:return t.getMonth();case Q.Date:return t.getDate();case Q.Hours:return t.getHours();case Q.Minutes:return t.getMinutes();case Q.Seconds:return t.getSeconds();case Q.FractionalSeconds:return t.getMilliseconds();case Q.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,o);if((n>0||s>-n)&&(s+=n),e===Q.Hours)0===s&&-12===n&&(s=12);else if(e===Q.FractionalSeconds)return a=t,$(s,3).substr(0,a);var l=V(u,T.MinusSign);return $(s,t,l,r,i)}}function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,u){return function(e,t,n,i,o,u){switch(n){case W.Months:return function(e,t,n){var i=Object(r.Db)(e),o=L([i[r.mb.MonthsFormat],i[r.mb.MonthsStandalone]],t);return L(o,n)}(t,o,i)[e.getMonth()];case W.Days:return function(e,t,n){var i=Object(r.Db)(e),o=L([i[r.mb.DaysFormat],i[r.mb.DaysStandalone]],t);return L(o,n)}(t,o,i)[e.getDay()];case W.DayPeriods:var a=e.getHours(),s=e.getMinutes();if(u){var l,c=function(e){var t=Object(r.Db)(e);return B(t),(t[r.mb.ExtraData][2]||[]).map((function(e){return"string"==typeof e?H(e):[H(e[0]),H(e[1])]}))}(t),f=function(e,t,n){var i=Object(r.Db)(e);B(i);var o=L([i[r.mb.ExtraData][0],i[r.mb.ExtraData][1]],t)||[];return L(o,n)||[]}(t,o,i);if(c.forEach((function(e,t){if(Array.isArray(e)){var n=e[0],r=n.hours,i=n.minutes,o=e[1],u=o.hours,c=o.minutes;a>=r&&s>=i&&(a0?Math.floor(i/60):Math.ceil(i/60);switch(e){case Z.Short:return(i>=0?"+":"")+$(u,2,o)+$(Math.abs(i%60),2,o);case Z.ShortGMT:return"GMT"+(i>=0?"+":"")+$(u,1,o);case Z.Long:return"GMT"+(i>=0?"+":"")+$(u,2,o)+":"+$(Math.abs(i%60),2,o);case Z.Extended:return 0===r?"Z":(i>=0?"+":"")+$(u,2,o)+":"+$(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function X(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){var i,o,u,a;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();i=1+Math.floor((l+s)/7)}else{var c=(o=n.getFullYear(),u=new Date(o,0,1).getDay(),new Date(o,0,1+(u<=4?4:11)-u)),f=(a=n,new Date(a.getFullYear(),a.getMonth(),a.getDate()+(4-a.getDay()))).getTime()-c.getTime();i=1+Math.round(f/6048e5)}return $(i,e,V(r,T.MinusSign))}}var ee={};function te(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function ne(e){return e instanceof Date&&!isNaN(e.valueOf())}var re=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ie(e,t,n,r,i,o){var u=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a="",s=!1;if(isFinite(e)){var l=function(e){var t,n,r,i,o,u=Math.abs(e)+"",a=0;for((n=u.indexOf("."))>-1&&(u=u.replace(".","")),(r=u.search(/e/i))>0?(n<0&&(n=r),n+=+u.slice(r+1),u=u.substring(0,r)):n<0&&(n=u.length),r=0;"0"===u.charAt(r);r++);if(r===(o=u.length))t=[0],n=1;else{for(o--;"0"===u.charAt(o);)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=Number(u.charAt(r))}return n>22&&(t=t.splice(0,21),a=n-1,n=1),{digits:t,exponent:a,integerLen:n}}(e);u&&(l=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(l));var c=t.minInt,f=t.minFrac,d=t.maxFrac;if(o){var h=o.match(re);if(null===h)throw new Error("".concat(o," is not a valid digit info"));var v=h[1],p=h[3],y=h[5];null!=v&&(c=ue(v)),null!=p&&(f=ue(p)),null!=y?d=ue(y):null!=p&&f>d&&(d=f)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction (".concat(t,") is higher than the maximum (").concat(n,")."));var r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(t,i),n),u=o+e.integerLen,a=r[u];if(u>0){r.splice(Math.max(e.integerLen,u));for(var s=u;s=5)if(u-1<0){for(var c=0;c>u;c--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[u-1]++;for(;i=d?r.pop():f=!1),t>=10?1:0}),0);h&&(r.unshift(h),e.integerLen++)}(l,f,d);var g=l.digits,_=l.integerLen,m=l.exponent,C=[];for(s=g.every((function(e){return!e}));_0?C=g.splice(_,g.length):(C=g,g=[0]);var b=[];for(g.length>=t.lgSize&&b.unshift(g.splice(-t.lgSize,g.length).join(""));g.length>t.gSize;)b.unshift(g.splice(-t.gSize,g.length).join(""));g.length&&b.unshift(g.join("")),a=b.join(V(n,r)),C.length&&(a+=V(n,i)+C.join("")),m&&(a+=V(n,T.Exponential)+"+"+m)}else a=V(n,T.Infinity);return a=e<0&&!s?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf}function oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(";"),i=r[0],o=r[1],u=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],a=u[0],s=u[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(var l=0;l-1)return i;if(i=n.getPluralCategory(e,r),t.indexOf(i)>-1)return i;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'.concat(e,'"'))}var le=function(){var e=function(e){function t(e){var n;return _classCallCheck(this,t),(n=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).locale=e,n}return _inherits(t,e),_createClass(t,[{key:"getPluralCategory",value:function(e,t){switch(M(t||this.locale)(e)){case F.Zero:return"zero";case F.One:return"one";case F.Two:return"two";case F.Few:return"few";case F.Many:return"many";default:return"other"}}}]),t}(ae);return e.\u0275fac=function(t){return new(t||e)(r.Jc(r.z))},e.\u0275prov=r.uc({token:e,factory:e.\u0275fac}),e}();function ce(e,t,n){return Object(r.Zb)(e,t,n)}function fe(e,t){t=encodeURIComponent(t);var n=!0,r=!1,i=void 0;try{for(var o,u=e.split(";")[Symbol.iterator]();!(n=(o=u.next()).done);n=!0){var a=o.value,s=a.indexOf("="),l=_slicedToArray(-1==s?[a,""]:[a.slice(0,s),a.slice(s+1)],2),c=l[0],f=l[1];if(c.trim()===t)return decodeURIComponent(f)}}catch(d){r=!0,i=d}finally{try{n||null==u.return||u.return()}finally{if(r)throw i}}return null}var de=function(){var e=function(){function e(t,n,r,i){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Object(r.cc)(e.item)));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.Lb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.yc(r.x),r.yc(r.y),r.yc(r.q),r.yc(r.L))},e.\u0275dir=r.tc({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),he=function(){var e=function(){function e(t){_classCallCheck(this,e),this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return _createClass(e,[{key:"ngOnChanges",value:function(e){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(e.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=t.get(r.D);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:t.get(r.n)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,t,this.ngComponentOutletContent)}}},{key:"ngOnDestroy",value:function(){this._moduleRef&&this._moduleRef.destroy()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.yc(r.X))},e.\u0275dir=r.tc({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[r.ic]}),e}(),ve=function(){function e(t,n,r,i){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),pe=function(){var e=function(){function e(t,n,r){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new ve(null,t._ngForOf,-1,-1),null===i?void 0:i),u=new ye(e,o);n.push(u)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var a=t._viewContainer.get(r);t._viewContainer.move(a,i);var s=new ye(e,a);n.push(s)}}));for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return function(e,t,n,i){var o=function(e){if(ne(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();var t,n=parseFloat(e);if(!isNaN(e-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var r=_slicedToArray(e.split("-").map((function(e){return+e})),3),i=r[0],o=r[1],u=r[2];return new Date(i,o-1,u)}if(t=e.match(U))return function(e){var t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var u=Number(e[4]||0)-n,a=Number(e[5]||0)-r,s=Number(e[6]||0),l=Math.round(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,u,a,s,l),t}(t)}var a=new Date(e);if(!ne(a))throw new Error('Unable to convert "'.concat(e,'" into a date'));return a}(e);t=function e(t,n){var i=function(e){return Object(r.Db)(e)[r.mb.LocaleId]}(t);if(z[i]=z[i]||{},z[i][n])return z[i][n];var o="";switch(n){case"shortDate":o=N(t,O.Short);break;case"mediumDate":o=N(t,O.Medium);break;case"longDate":o=N(t,O.Long);break;case"fullDate":o=N(t,O.Full);break;case"shortTime":o=P(t,O.Short);break;case"mediumTime":o=P(t,O.Medium);break;case"longTime":o=P(t,O.Long);break;case"fullTime":o=P(t,O.Full);break;case"short":var u=e(t,"shortTime"),a=e(t,"shortDate");o=G(R(t,O.Short),[u,a]);break;case"medium":var s=e(t,"mediumTime"),l=e(t,"mediumDate");o=G(R(t,O.Medium),[s,l]);break;case"long":var c=e(t,"longTime"),f=e(t,"longDate");o=G(R(t,O.Long),[c,f]);break;case"full":var d=e(t,"fullTime"),h=e(t,"fullDate");o=G(R(t,O.Full),[d,h])}return o&&(z[i][n]=o),o}(n,t)||t;for(var u,a=[];t;){if(!(u=q.exec(t))){a.push(t);break}var s=(a=a.concat(u.slice(1))).pop();if(!s)break;t=s}var l=o.getTimezoneOffset();i&&(l=te(i,l),o=function(e,t,n){var r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(te(t,r)-r))}(o,i));var c="";return a.forEach((function(e){var t=function(e){if(ee[e])return ee[e];var t;switch(e){case"G":case"GG":case"GGG":t=K(W.Eras,S.Abbreviated);break;case"GGGG":t=K(W.Eras,S.Wide);break;case"GGGGG":t=K(W.Eras,S.Narrow);break;case"y":t=J(Q.FullYear,1,0,!1,!0);break;case"yy":t=J(Q.FullYear,2,0,!0,!0);break;case"yyy":t=J(Q.FullYear,3,0,!1,!0);break;case"yyyy":t=J(Q.FullYear,4,0,!1,!0);break;case"M":case"L":t=J(Q.Month,1,1);break;case"MM":case"LL":t=J(Q.Month,2,1);break;case"MMM":t=K(W.Months,S.Abbreviated);break;case"MMMM":t=K(W.Months,S.Wide);break;case"MMMMM":t=K(W.Months,S.Narrow);break;case"LLL":t=K(W.Months,S.Abbreviated,I.Standalone);break;case"LLLL":t=K(W.Months,S.Wide,I.Standalone);break;case"LLLLL":t=K(W.Months,S.Narrow,I.Standalone);break;case"w":t=X(1);break;case"ww":t=X(2);break;case"W":t=X(1,!0);break;case"d":t=J(Q.Date,1);break;case"dd":t=J(Q.Date,2);break;case"E":case"EE":case"EEE":t=K(W.Days,S.Abbreviated);break;case"EEEE":t=K(W.Days,S.Wide);break;case"EEEEE":t=K(W.Days,S.Narrow);break;case"EEEEEE":t=K(W.Days,S.Short);break;case"a":case"aa":case"aaa":t=K(W.DayPeriods,S.Abbreviated);break;case"aaaa":t=K(W.DayPeriods,S.Wide);break;case"aaaaa":t=K(W.DayPeriods,S.Narrow);break;case"b":case"bb":case"bbb":t=K(W.DayPeriods,S.Abbreviated,I.Standalone,!0);break;case"bbbb":t=K(W.DayPeriods,S.Wide,I.Standalone,!0);break;case"bbbbb":t=K(W.DayPeriods,S.Narrow,I.Standalone,!0);break;case"B":case"BB":case"BBB":t=K(W.DayPeriods,S.Abbreviated,I.Format,!0);break;case"BBBB":t=K(W.DayPeriods,S.Wide,I.Format,!0);break;case"BBBBB":t=K(W.DayPeriods,S.Narrow,I.Format,!0);break;case"h":t=J(Q.Hours,1,-12);break;case"hh":t=J(Q.Hours,2,-12);break;case"H":t=J(Q.Hours,1);break;case"HH":t=J(Q.Hours,2);break;case"m":t=J(Q.Minutes,1);break;case"mm":t=J(Q.Minutes,2);break;case"s":t=J(Q.Seconds,1);break;case"ss":t=J(Q.Seconds,2);break;case"S":t=J(Q.FractionalSeconds,1);break;case"SS":t=J(Q.FractionalSeconds,2);break;case"SSS":t=J(Q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Y(Z.Short);break;case"ZZZZZ":t=Y(Z.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Y(Z.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Y(Z.Long);break;default:return null}return ee[e]=t,t}(e);c+=t?t(o,n,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),c}(t,n,o||this.locale,i)}catch(u){throw Fe(e,u.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.yc(r.z))},e.\u0275pipe=r.xc({name:"date",type:e,pure:!0}),e}(),Me=/#/g,Be=function(){var e=function(){function e(t){_classCallCheck(this,e),this._localization=t}return _createClass(e,[{key:"transform",value:function(t,n,r){if(null==t)return"";if("object"!=typeof n||null===n)throw Fe(e,n);return n[se(t,Object.keys(n),this._localization,r)].replace(Me,t.toString())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.yc(ae))},e.\u0275pipe=r.xc({name:"i18nPlural",type:e,pure:!0}),e}(),Le=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(t,n){if(null==t)return"";if("object"!=typeof n||"string"!=typeof t)throw Fe(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"i18nSelect",type:e,pure:!0}),e}(),He=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){return JSON.stringify(e,null,2)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"json",type:e,pure:!1}),e}(),Ue=function(){var e=function(){function e(t){_classCallCheck(this,e),this.differs=t,this.keyValues=[]}return _createClass(e,[{key:"transform",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ze;if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());var r=this.differ.diff(e);return r&&(this.keyValues=[],r.forEachItem((function(e){t.keyValues.push({key:e.key,value:e.currentValue})})),this.keyValues.sort(n)),this.keyValues}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.yc(r.y))},e.\u0275pipe=r.xc({name:"keyvalue",type:e,pure:!1}),e}();function ze(e,t){var n=e.key,r=t.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n1&&void 0!==arguments[1]?arguments[1]:"USD";_classCallCheck(this,e),this._locale=t,this._defaultCurrencyCode=n}return _createClass(e,[{key:"transform",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"symbol",o=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;if(We(t))return null;u=u||this._locale,"boolean"==typeof i&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),i=i?"symbol":"code");var a=n||this._defaultCurrencyCode;"code"!==i&&(a="symbol"===i||"symbol-narrow"===i?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",i=function(e){return Object(r.Db)(e)[r.mb.Currencies]}(n)[e]||x[e]||[],o=i[1];return"narrow"===t&&"string"==typeof o?o:i[0]||e}(a,"symbol"===i?"wide":"narrow",u):i);try{return function(e,t,n,r,i){var o=oe(j(t,A.Currency),V(t,T.MinusSign));return o.minFrac=function(e){var t,n=x[e];return n&&(t=n[2]),"number"==typeof t?t:2}(r),o.maxFrac=o.minFrac,ie(e,o,t,T.CurrencyGroup,T.CurrencyDecimal,i).replace("\xa4",n).replace("\xa4","").trim()}(Ge(t),u,a,n,o)}catch(s){throw Fe(e,s.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.yc(r.z),r.yc(r.p))},e.\u0275pipe=r.xc({name:"currency",type:e,pure:!0}),e}();function We(e){return null==e||""===e||e!=e}function Ge(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error("".concat(e," is not a number"));return e}var $e=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(t,n,r){if(null==t)return t;if(!this.supports(t))throw Fe(e,t);return t.slice(n,r)}},{key:"supports",value:function(e){return"string"==typeof e||Array.isArray(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r.xc({name:"slice",type:e,pure:!1}),e}(),Je=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275mod=r.wc({type:e}),e.\u0275inj=r.vc({factory:function(t){return new(t||e)},providers:[{provide:ae,useClass:le}]}),e}(),Ke="browser";function Ye(e){return e===Ke}function Xe(e){return"server"===e}var et=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=Object(r.uc)({token:e,providedIn:"root",factory:function(){return new tt(Object(r.Jc)(s),window,Object(r.Jc)(r.r))}}),e}(),tt=function(){function e(t,n,r){_classCallCheck(this,e),this.document=t,this.window=n,this.errorHandler=r,this.offset=function(){return[0,0]}}return _createClass(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var t=this.document.querySelector("#".concat(e));if(t)return void this.scrollToElement(t);var n=this.document.querySelector("[name='".concat(e,"']"));if(n)return void this.scrollToElement(n)}catch(r){this.errorHandler.handleError(r)}}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"supportScrollRestoration",value:function(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}]),e}()},quSY:function(e,t,n){"use strict";var r=n("DH7j"),i=n("XoHu"),o=n("n6bG"),u=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map((function(e,t){return"".concat(t+1,") ").concat(e.toString())})).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}();n.d(t,"a",(function(){return l}));var a,s,l=((s=function(){function e(t){_classCallCheck(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return _createClass(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,a=this._unsubscribe,s=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var l=0;l1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),t}(o.a),f=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this))).source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return _inherits(t,e),_createClass(t,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new u.a).add(this.source.subscribe(new h(this.getSubject(),this))),e.closed&&(this._connection=null,e=u.a.EMPTY)),e}},{key:"refCount",value:function(){return a()(this)}}]),t}(i.a),d={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(s=f.prototype)._subscribe},_isComplete:{value:s._isComplete,writable:!0},getSubject:{value:s.getSubject},connect:{value:s.connect},refCount:{value:s.refCount}},h=function(e){function t(e,n){var r;return _classCallCheck(this,t),(r=_possibleConstructorReturn(this,_getPrototypeOf(t).call(this,e))).connectable=n,r}return _inherits(t,e),_createClass(t,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(t.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(t.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),t}(r.b);function v(){return new r.a}function p(){return function(e){return a()((t=v,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,d);return r.source=e,r.subjectFactory=n,r})(e));var t}}n.d(t,"a",(function(){return p}))},yCtX:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("HDdC"),i=n("ngJS"),o=n("jZKg");function u(e,t){return t?Object(o.a)(e,t):new r.a(Object(i.a)(e))}},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",(function(){return r}))},zUnb:function(e,t,n){"use strict";n.r(t),n("N/DB");var r=n("fXoL"),i=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});function o(e){var t=function(e){for(var t="",n=0;n=55296&&r<=56319&&e.length>n+1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}(e),n=u(t,0),r=u(t,102072);return 0!=n||0!=r&&1!=r||(n^=319790063,r^=-1801410264),[n,r]}function u(e,t){var n,r=2654435769,i=2654435769,o=e.length;for(n=0;n+12<=o;n+=12){var u=a(r=l(r,h(e,n,s.Little)),i=l(i,h(e,n+4,s.Little)),t=l(t,h(e,n+8,s.Little)));r=u[0],i=u[1],t=u[2]}return r=l(r,h(e,n,s.Little)),i=l(i,h(e,n+4,s.Little)),t=l(t,o),a(r,i,t=l(t,h(e,n+8,s.Little)<<8))[2]}function a(e,t,n){return e=f(e,t),e=f(e,n),e^=n>>>13,t=f(t,n),t=f(t,e),t^=e<<8,n=f(n,e),n=f(n,t),n^=t>>>13,e=f(e,t),e=f(e,n),e^=n>>>12,t=f(t,n),t=f(t,e),t^=e<<16,n=f(n,e),n=f(n,t),n^=t>>>5,e=f(e,t),e=f(e,n),e^=n>>>3,t=f(t,n),t=f(t,e),t^=e<<10,n=f(n,e),n=f(n,t),[e,t,n^=t>>>15]}"undefined"!=typeof window&&window,"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,"undefined"!=typeof global&&global;var s=function(e){return e[e.Little=0]="Little",e[e.Big=1]="Big",e}({});function l(e,t){return c(e,t)[1]}function c(e,t){var n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function f(e,t){var n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function d(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function h(e,t,n){var r=0;if(n===s.Big)for(var i=0;i<4;i++)r+=d(e,t+i)<<24-8*i;else for(var o=0;o<4;o++)r+=d(e,t+o)<<8*o;return r}function v(e,t){for(var n="",r=Math.max(e.length,t.length),i=0,o=0;i=10?(o=1,n+=u-10):(o=0,n+=u)}return n}function p(e,t){for(var n="",r=t;0!==e;e>>>=1)1&e&&(n=v(n,r)),r=v(r,r);return n}var y=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"get",value:function(e){return""}}]),e}(),g=function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.defaultEncapsulation,o=void 0===r?i.Emulated:r,u=n.useJit,a=void 0===u||u,s=n.jitDevMode,l=void 0!==s&&s,c=n.missingTranslation,f=void 0===c?null:c,d=n.preserveWhitespaces,h=n.strictInjectionParameters;_classCallCheck(this,e),this.defaultEncapsulation=o,this.useJit=!!a,this.jitDevMode=!!l,this.missingTranslation=f,this.preserveWhitespaces=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null===e?t:e}(void 0===(t=d)?null:t),this.strictInjectionParameters=!0===h},_=n("ofXK"),m=n("jhN1"),C=[{provide:r.k,useFactory:function(){return new r.k}}];function b(e){for(var t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}function w(e){var t=[];return e.forEach((function(e){return e&&t.push.apply(t,_toConsumableArray(e))})),t}var k,D=Object(r.ab)(r.fb,"coreDynamic",[{provide:r.h,useValue:{},multi:!0},{provide:r.l,useClass:function(){function e(t){_classCallCheck(this,e),this._defaultOptions=[{useJit:!0,defaultEncapsulation:r.Y.Emulated,missingTranslation:r.A.Warning}].concat(_toConsumableArray(t))}return _createClass(e,[{key:"createCompiler",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n={useJit:b((e=this._defaultOptions.concat(t)).map((function(e){return e.useJit}))),defaultEncapsulation:b(e.map((function(e){return e.defaultEncapsulation}))),providers:w(e.map((function(e){return e.providers}))),missingTranslation:b(e.map((function(e){return e.missingTranslation}))),preserveWhitespaces:b(e.map((function(e){return e.preserveWhitespaces})))};return r.w.create([C,{provide:g,useFactory:function(){return new g({useJit:n.useJit,jitDevMode:Object(r.eb)(),defaultEncapsulation:n.defaultEncapsulation,missingTranslation:n.missingTranslation,preserveWhitespaces:n.preserveWhitespaces})},deps:[]},n.providers]).get(r.k)}}]),e}(),deps:[r.h]}]),E=((k=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,e),_createClass(t,[{key:"get",value:function(e){var t,n,r=new Promise((function(e,r){t=e,n=r})),i=new XMLHttpRequest;return i.open("GET",e,!0),i.responseType="text",i.onload=function(){var r=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),200<=o&&o<=300?t(r):n("Failed to load ".concat(e))},i.onerror=function(){n("Failed to load ".concat(e))},i.send(),r}}]),t}(y)).\u0275fac=function(e){return x(e||k)},k.\u0275prov=r.uc({token:k,factory:k.\u0275fac}),k),x=r.Fc(E),A=[m.e,{provide:r.h,useValue:{providers:[{provide:y,useClass:E,deps:[]}]},multi:!0},{provide:r.I,useValue:_.M}],F=Object(r.ab)(D,"browserDynamic",A);function I(e,t){if(":"!==t.charAt(0))return{text:e};var n=function(e,t){for(var n=1,r=1;n1&&void 0!==arguments[1]?arguments[1]:"",_=o(e);if(g){var m=o(g);h=(f=_)[0],y=f[1],r=(t=[h<<1|y>>>31,y<<1|h>>>31])[0],i=(n=m)[0],u=c(t[1],n[1]),a=u[0],s=u[1],_=[l(l(r,i),a),s]}return function(e){for(var t="",n="1",r=e.length-1;r>=0;r--)t=v(t,p(d(e,r),n)),n=p(256,n);return t.split("").reverse().join("")}([2147483647&_[0],_[1]].reduce((function(e,t){return e+function(e){for(var t="",n=0;n<4;n++)t+=String.fromCharCode(e>>>8*(3-n)&255);return t}(t)}),""))}(s,i.meaning||""),C=i.legacyIds.filter((function(e){return e!==m}));return{messageId:m,legacyIds:C,substitutions:r,messageString:s,meaning:i.meaning||"",description:i.description||"",messageParts:u,placeholderNames:a}}(t,n),i=e[r.messageId],u=0;u1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return new Promise((function(i,o){var u=new XMLHttpRequest;u.onload=function(){try{i(function(e){if(!/^[\],:{}\s]*$/.test(e.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))throw new Error("Only JSON translation files are supported at the moment");return JSON.parse(e)}(u.responseText))}catch(e){o(e)}},u.onerror=function(){o(new Error("Network request failed"))},u.ontimeout=function(){o(new Error("Network request timeout"))},u.onabort=function(){o(new Error("Network request aborted"))},Object.keys(n).forEach((function(e){return u.setRequestHeader(e,n[e])})),u.open(t,e,r),u.send()}))}("./assets/i18n/messages.".concat(N,".json")).then((function(e){var t;t=e,$localize.translate||($localize.translate=T),$localize.TRANSLATIONS||($localize.TRANSLATIONS={}),Object.keys(t).forEach((function(e){$localize.TRANSLATIONS[e]=function(e){for(var t=e.split(/{\$([^}]*)}/),n=[t[0]],r=[],i=1;i1||n<0||n>1?h:function(i){function o(e,t,n){return 3*e*(1-n)*(1-n)*n+3*t*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return e>0?a=t/e:!t&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var c=0,l=1;c=1)return 1;var r=1/e;return(n+=t*r)-n%r}}function s(e){_||(_=document.createElement("div").style),_.animationTimingFunction="",_.animationTimingFunction=e;var t=_.animationTimingFunction;if(""==t&&r())throw new TypeError(e+" is not a valid value for easing");return t}function c(e){if("linear"==e)return h;var t=y.exec(e);if(t)return o.apply(this,t.slice(1).map(Number));var n=b.exec(e);if(n)return a(Number(n[1]),m);var r=k.exec(e);return r?a(Number(r[1]),{start:p,middle:d,end:m}[r[2]]):g[e]||h}function l(e,t,n){if(null==t)return T;var r=n.delay+e+n.endDelay;return t=Math.min(n.delay+e,r)?E:x}var u="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),h=function(e){return e};n.prototype={_setMember:function(t,n){this["_"+t]=n,this._effect&&(this._effect._timingInput[t]=n,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=c(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var p=1,d=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,p),"step-middle":a(1,d),"step-end":a(1,m)},_=null,v="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",y=new RegExp("cubic-bezier\\("+v+","+v+","+v+","+v+"\\)"),b=/steps\(\s*(\d+)\s*\)/,k=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,T=0,w=1,E=2,x=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var n in e)t[n]=e[n];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,n){return i(t=e.numericTimingToObject(t),n)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,n){var r=l(e,t,n),i=function(e,t,n,r,i){switch(r){case w:return"backwards"==t||"both"==t?0:null;case x:return n-i;case E:return"forwards"==t||"both"==t?e:null;case T:return null}}(e,n.fill,t,r,n.delay);if(null===i)return null;var o=function(e,t,n,r,i){var o=i;return 0===e?t!==w&&(o+=n):o+=r/e,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==E||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(e,t,n,r){return e===E&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),c=function(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(c)},e.calculatePhase=l,e.normalizeEasing=s,e.parseEasingFunction=c}(n={}),function(e,t){function n(e,t){return e in c&&c[e][t]||t}function r(e,t,r){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=o[e];if(i)for(var s in a.style[e]=t,i){var c=i[s];r[c]=n(c,a.style[c])}else r[e]=n(e,t)}}function i(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?e.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s=0&&e.offset<=1})),o||function(){var e=n.length;null==n[e-1].offset&&(n[e-1].offset=1),e>1&&null==n[0].offset&&(n[0].offset=0);for(var t=0,r=n[0].offset,i=1;i=e.applyFrom&&nthis._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,n){this._style[t]=n,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(n)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)r.prototype[l]=function(e,t){return function(){var n=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),n}}(l,l in c);for(var u in document.documentElement.style)u in a||u in s||function(e){n(r.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty[e]||(this._style[e]=t)}})}(u);e.apply=function(t,n,r){i(t),t.style._set(e.propertyName(n),r)},e.clear=function(t,n){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(n))}}(r),function(e){window.Element.prototype.animate=function(t,n){var r="";return n&&n.id&&(r=n.id),e.timeline._play(e.KeyframeEffect(this,t,n,r))}}(r),function(e,t){e.Interpolation=function(e,t,n){return function(r){return n(function e(t,n,r){if("number"==typeof t&&"number"==typeof n)return t*(1-r)+n*r;if("boolean"==typeof t&&"boolean"==typeof n)return r<.5?t:n;if(t.length==n.length){for(var i=[],o=0;o0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var n=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var n=this._finishHandlers.indexOf(t);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new r(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,r),function(e,t,n){function r(e){var t=l;l=[],e1e-4?(g=.5/Math.sqrt(v),_=[(h[2][1]-h[1][2])*g,(h[0][2]-h[2][0])*g,(h[1][0]-h[0][1])*g,.25/g]):h[0][0]>h[1][1]&&h[0][0]>h[2][2]?_=[.25*(g=2*Math.sqrt(1+h[0][0]-h[1][1]-h[2][2])),(h[0][1]+h[1][0])/g,(h[0][2]+h[2][0])/g,(h[2][1]-h[1][2])/g]:h[1][1]>h[2][2]?(g=2*Math.sqrt(1+h[1][1]-h[0][0]-h[2][2]),_=[(h[0][1]+h[1][0])/g,.25*g,(h[1][2]+h[2][1])/g,(h[0][2]-h[2][0])/g]):(g=2*Math.sqrt(1+h[2][2]-h[0][0]-h[1][1]),_=[(h[0][2]+h[2][0])/g,(h[1][2]+h[2][1])/g,.25*g,(h[1][0]-h[0][1])/g]),[f,p,d,_,l]}}();e.dot=n,e.makeMatrixDecomposition=function(e){return[s(a(e))]},e.transformListToMatrix=a}(r),function(e){function t(e,t){var n=e.exec(t);if(n)return[n=e.ignoreCase?n[0].toLowerCase():n[0],t.substr(n.length)]}function n(e,t){var n=e(t=t.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(e,t,n,r,i){for(var o=[],a=[],s=[],c=function(e,t){for(var n=e,r=t;n&&r;)n>r?n%=r:r%=n;return e*t/(n+r)}(r.length,i.length),l=0;l=1?t:"visible"}]}),["visibility"])}(r),function(e,t){function n(e){e=e.trim(),o.fillStyle="#000",o.fillStyle=e;var t=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=e,t==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(t,n){return[t,n,function(t){function n(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var r=0;r<3;r++)t[r]=Math.round(n(t[r]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");e.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,n),e.mergeColors=r}(r),function(e,t){function n(e){function t(){var t=a.exec(e);o=t?t[0]:void 0}function n(){if("("!==o)return function(){var e=Number(o);return t(),e}();t();var e=i();return")"!==o?NaN:(t(),e)}function r(){for(var e=n();"*"===o||"/"===o;){var r=o;t();var i=n();"*"===r?e*=i:e/=i}return e}function i(){for(var e=r();"+"===o||"-"===o;){var n=o;t();var i=r();"+"===n?e+=i:e-=i}return e}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function r(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var r={};t=t.replace(e,(function(e){return r[e]=null,"U"+e}));for(var i="U("+e.source+")",o=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),c=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=c,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,c),e.parseAngle=l,e.mergeDimensions=o;var u=e.consumeParenthesised.bind(null,s),f=e.consumeRepeated.bind(void 0,u,/^/),h=e.consumeRepeated.bind(void 0,f,/^,/);e.consumeSizePairList=h;var p=e.mergeNestedRepeated.bind(void 0,i," "),d=e.mergeNestedRepeated.bind(void 0,p,",");e.mergeNonNegativeSizePair=p,e.addPropertiesHandler((function(e){var t=h(e);if(t&&""==t[1])return t[0]}),d,["background-size"]),e.addPropertiesHandler(c,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(c,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(e,t){function n(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function r(t){var r=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,n,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(r&&4==r[0].length)return r[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,n){return"auto"==t||"auto"==n?[!0,!1,function(r){var i=r?t:n;if("auto"==i)return"auto";var o=e.mergeDimensions(i,i);return o[2](o[0])}]:e.mergeDimensions(t,n)}),", ");e.parseBox=r,e.mergeBoxes=i,e.addPropertiesHandler(r,i,["clip"])}(r),function(e,t){function n(e){return function(t){var n=0;return e.map((function(e){return e===l?t[n++]:e}))}}function r(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(t);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=h[a];if(!s)return;var c=n[2].split(","),l=s[0];if(l.length900||t%100!=0))return t}),(function(e,n){return[e,n,t]}),["font-weight"])}(r),function(e){function t(e){var t={};for(var n in e)t[n]=-e[n];return t}function n(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function r(t,r){var i=e.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==t&&(a[2]=a[2]||{px:0}),a.length==t){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(e){return"object"==typeof e?e:o[e]}))}}}function i(r){var i=e.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],c=0,l=!1,u=0;u=0&&this._cancelHandlers.splice(n,1)}else c.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(n=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(t,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),o.call(this,t,n)}}}(n)},"N/DB":function(e,t){const n="undefined"!=typeof globalThis&&globalThis,r="undefined"!=typeof window&&window,i="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o="undefined"!=typeof global&&global,a=function(e,...t){if(a.translate){const n=a.translate(e,t);e=n[0],t=n[1]}let n=s(e[0],e.raw[0]);for(let r=1;r",this._properties=t&&t.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(e.Promise!==N.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=s.current;for(;e.parent;)e=e.parent;return e}static get current(){return O.zone}static get currentTask(){return C}static __load_patch(t,i){if(N.hasOwnProperty(t)){if(a)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const o="Zone:"+t;n(o),N[t]=i(e,s,R),r(o,o)}}get parent(){return this._parent}get name(){return this._name}get(e){const t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}}run(e,t,n,r){O={parent:O,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{O=O.parent}}runGuarded(e,t=null,n,r){O={parent:O,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{O=O.parent}}runTask(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");if(e.state===b&&(e.type===D||e.type===P))return;const r=e.state!=w;r&&e._transitionTo(w,T),e.runCount++;const i=C;C=e,O={parent:O,zone:this};try{e.type==P&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{e.state!==b&&e.state!==x&&(e.type==D||e.data&&e.data.isPeriodic?r&&e._transitionTo(T,w):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(b,w,b))),O=O.parent,C=i}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}}e._transitionTo(k,b);const t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(n){throw e._transitionTo(x,k,b),this._zoneDelegate.handleError(this,n),n}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==k&&e._transitionTo(T,k),e}scheduleMicroTask(e,t,n,r){return this.scheduleTask(new u(S,e,t,n,r,void 0))}scheduleMacroTask(e,t,n,r,i){return this.scheduleTask(new u(P,e,t,n,r,i))}scheduleEventTask(e,t,n,r,i){return this.scheduleTask(new u(D,e,t,n,r,i))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");e._transitionTo(E,T,w);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(x,E),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(b,E),e.runCount=0,e}_updateTaskCount(e,t){const n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let r=0;re.hasTask(n,r),onScheduleTask:(e,t,n,r)=>e.scheduleTask(n,r),onInvokeTask:(e,t,n,r,i,o)=>e.invokeTask(n,r,i,o),onCancelTask:(e,t,n,r)=>e.cancelTask(n,r)};class l{constructor(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const r=n&&n.onHasTask;(r||t&&t._hasTaskZS)&&(this._hasTaskZS=r?n:c,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new s(e,t)}intercept(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}invoke(e,t,n,r,i){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,r,i):t.apply(n,r)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t),n||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=S)throw new Error("Task is missing scheduleFn.");_(t)}return n}invokeTask(e,t,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,r):t.callback.apply(n,r)}cancelTask(e,t){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}_updateTaskCount(e,t){const n=this._taskCounts,r=n[e],i=n[e]=r+t;if(i<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=i||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}class u{constructor(t,n,r,i,o,a){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=n,this.data=i,this.scheduleFn=o,this.cancelFn=a,!r)throw new Error("callback is not defined");this.callback=r;const s=this;this.invoke=t===D&&i&&i.useG?u.invokeTask:function(){return u.invokeTask.call(e,s,this,arguments)}}static invokeTask(e,t,n){e||(e=this),Z++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==Z&&v(),Z--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(b,k)}_transitionTo(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=e,e==b&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const f=o("setTimeout"),h=o("Promise"),p=o("then");let d,m=[],g=!1;function _(t){if(0===Z&&0===m.length)if(d||e[h]&&(d=e[h].resolve(0)),d){let e=d[p];e||(e=d.then),e.call(d,v)}else e[f](v,0);t&&m.push(t)}function v(){if(!g){for(g=!0;m.length;){const t=m;m=[];for(let n=0;nO,onUnhandledError:A,microtaskDrainDone:A,scheduleMicroTask:_,showUncaughtError:()=>!s[o("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:A,patchMethod:()=>A,bindArguments:()=>[],patchThen:()=>A,patchMacroTask:()=>A,setNativePromise:e=>{e&&"function"==typeof e.resolve&&(d=e.resolve(0))},patchEventPrototype:()=>A,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>A,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>A,wrapWithCurrentZone:()=>A,filterProperties:()=>[],attachOriginToPatched:()=>A,_redefineProperty:()=>A,patchCallbacks:()=>A};let O={parent:null,zone:new s(null,null)},C=null,Z=0;function A(){}r("Zone","Zone"),e.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",(e,t,n)=>{const r=Object.getOwnPropertyDescriptor,i=Object.defineProperty,o=n.symbol,a=[],s=o("Promise"),c=o("then");n.onUnhandledError=e=>{if(n.showUncaughtError()){const t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=()=>{for(;a.length;)for(;a.length;){const t=a.shift();try{t.zone.runGuarded(()=>{throw t})}catch(e){u(e)}}};const l=o("unhandledPromiseRejectionHandler");function u(e){n.onUnhandledError(e);try{const n=t[l];n&&"function"==typeof n&&n.call(this,e)}catch(r){}}function f(e){return e&&e.then}function h(e){return e}function p(e){return x.reject(e)}const d=o("state"),m=o("value"),g=o("finally"),_=o("parentPromiseValue"),v=o("parentPromiseState");function y(e,t){return n=>{try{k(e,t,n)}catch(r){k(e,!1,r)}}}const b=o("currentTaskTrace");function k(e,r,o){const s=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}}();if(e===o)throw new TypeError("Promise resolved with itself");if(null===e[d]){let u=null;try{"object"!=typeof o&&"function"!=typeof o||(u=o&&o.then)}catch(l){return s(()=>{k(e,!1,l)})(),e}if(!1!==r&&o instanceof x&&o.hasOwnProperty(d)&&o.hasOwnProperty(m)&&null!==o[d])w(o),k(e,o[d],o[m]);else if(!1!==r&&"function"==typeof u)try{u.call(o,s(y(e,r)),s(y(e,!1)))}catch(l){s(()=>{k(e,!1,l)})()}else{e[d]=r;const s=e[m];if(e[m]=o,e[g]===g&&!0===r&&(e[d]=e[v],e[m]=e[_]),!1===r&&o instanceof Error){const e=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;e&&i(o,b,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let t=0;t{try{const r=e[m],i=!!n&&g===n[g];i&&(n[_]=r,n[v]=o);const s=t.run(a,void 0,i&&a!==p&&a!==h?[]:[r]);k(n,!0,s)}catch(r){k(n,!1,r)}},n)}class x{constructor(e){const t=this;if(!(t instanceof x))throw new Error("Must be an instanceof Promise.");t[d]=null,t[m]=[];try{e&&e(y(t,!0),y(t,!1))}catch(n){k(t,!1,n)}}static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return k(new this(null),!0,e)}static reject(e){return k(new this(null),!1,e)}static race(e){let t,n,r=new this((e,r)=>{t=e,n=r});function i(e){t(e)}function o(e){n(e)}for(let a of e)f(a)||(a=this.resolve(a)),a.then(i,o);return r}static all(e){return x.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof x?this:x).allWithCallback(e,{thenCallback:e=>({status:"fulfilled",value:e}),errorCallback:e=>({status:"rejected",reason:e})})}static allWithCallback(e,t){let n,r,i=new this((e,t)=>{n=e,r=t}),o=2,a=0;const s=[];for(let l of e){f(l)||(l=this.resolve(l));const e=a;try{l.then(r=>{s[e]=t?t.thenCallback(r):r,o--,0===o&&n(s)},i=>{t?(s[e]=t.errorCallback(i),o--,0===o&&n(s)):r(i)})}catch(c){r(c)}o++,a++}return o-=2,0===o&&n(s),i}get[Symbol.toStringTag](){return"Promise"}then(e,n){const r=new this.constructor(null),i=t.current;return null==this[d]?this[m].push(i,r,e,n):E(this,i,r,e,n),r}catch(e){return this.then(null,e)}finally(e){const n=new this.constructor(null);n[g]=g;const r=t.current;return null==this[d]?this[m].push(r,n,e,e):E(this,r,n,e,e),n}}x.resolve=x.resolve,x.reject=x.reject,x.race=x.race,x.all=x.all;const S=e[s]=e.Promise,P=t.__symbol__("ZoneAwarePromise");let D=r(e,"Promise");D&&!D.configurable||(D&&delete D.writable,D&&delete D.value,D||(D={configurable:!0,enumerable:!0}),D.get=function(){return e[P]?e[P]:e[s]},D.set=function(t){t===x?e[P]=t:(e[s]=t,t.prototype[c]||R(t),n.setNativePromise(t))},i(e,"Promise",D)),e.Promise=x;const N=o("thenPatched");function R(e){const t=e.prototype,n=r(t,"then");if(n&&(!1===n.writable||!n.configurable))return;const i=t.then;t[c]=i,e.prototype.then=function(e,t){return new x((e,t)=>{i.call(this,e,t)}).then(e,t)},e[N]=!0}if(n.patchThen=R,S){R(S);const t=e.fetch;"function"==typeof t&&(e[n.symbol("fetch")]=t,e.fetch=(O=t,function(){let e=O.apply(this,arguments);if(e instanceof x)return e;let t=e.constructor;return t[N]||R(t),e}))}var O;return Promise[t.__symbol__("uncaughtPromiseErrors")]=a,x});const e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,i=Array.prototype.slice,o=Zone.__symbol__("addEventListener"),a=Zone.__symbol__("removeEventListener"),s=Zone.__symbol__("");function c(e,t){return Zone.current.wrap(e,t)}function l(e,t,n,r,i){return Zone.current.scheduleMacroTask(e,t,n,r,i)}const u=Zone.__symbol__,f="undefined"!=typeof window,h=f?window:void 0,p=f&&h||"object"==typeof self&&self||global,d=[null];function m(e,t){for(let n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=c(e[n],t+"_"+n));return e}function g(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const _="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,v=!("nw"in p)&&void 0!==p.process&&"[object process]"==={}.toString.call(p.process),y=!v&&!_&&!(!f||!h.HTMLElement),b=void 0!==p.process&&"[object process]"==={}.toString.call(p.process)&&!_&&!(!f||!h.HTMLElement),k={},T=function(e){if(!(e=e||p.event))return;let t=k[e.type];t||(t=k[e.type]=u("ON_PROPERTY"+e.type));const n=this||e.target||p,r=n[t];let i;if(y&&n===h&&"error"===e.type){const t=e;i=r&&r.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===i&&e.preventDefault()}else i=r&&r.apply(this,arguments),null==i||i||e.preventDefault();return i};function w(n,r,i){let o=e(n,r);if(!o&&i&&e(i,r)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const a=u("on"+r+"patched");if(n.hasOwnProperty(a)&&n[a])return;delete o.writable,delete o.value;const s=o.get,c=o.set,l=r.substr(2);let f=k[l];f||(f=k[l]=u("ON_PROPERTY"+l)),o.set=function(e){let t=this;t||n!==p||(t=p),t&&(t[f]&&t.removeEventListener(l,T),c&&c.apply(t,d),"function"==typeof e?(t[f]=e,t.addEventListener(l,T,!1)):t[f]=null)},o.get=function(){let e=this;if(e||n!==p||(e=p),!e)return null;const t=e[f];if(t)return t;if(s){let t=s&&s.call(this);if(t)return o.set.call(this,t),"function"==typeof e.removeAttribute&&e.removeAttribute(r),t}return null},t(n,r,o),n[a]=!0}function E(e,t,n){if(t)for(let r=0;rfunction(t,r){const o=n(t,r);return o.cbIdx>=0&&"function"==typeof r[o.cbIdx]?l(o.name,r[o.cbIdx],o,i):e.apply(t,r)})}function N(e,t){e[u("OriginalDelegate")]=t}let R=!1,O=!1;function C(){try{const e=h.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}function Z(){if(R)return O;R=!0;try{const e=h.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(O=!0)}catch(e){}return O}Zone.__load_patch("toString",e=>{const t=Function.prototype.toString,n=u("OriginalDelegate"),r=u("Promise"),i=u("Error"),o=function(){if("function"==typeof this){const o=this[n];if(o)return"function"==typeof o?t.call(o):Object.prototype.toString.call(o);if(this===Promise){const n=e[r];if(n)return t.call(n)}if(this===Error){const n=e[i];if(n)return t.call(n)}}return t.call(this)};o[n]=t,Function.prototype.toString=o;const a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}});let A=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){A=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(ae){A=!1}const M={useG:!0},z={},L={},I=new RegExp("^"+s+"(\\w+)(true|false)$"),j=u("propagationStopped");function F(e,t,r){const i=r&&r.add||"addEventListener",o=r&&r.rm||"removeEventListener",a=r&&r.listeners||"eventListeners",c=r&&r.rmAll||"removeAllListeners",l=u(i),f="."+i+":",h=function(e,t,n){if(e.isRemoved)return;const r=e.callback;"object"==typeof r&&r.handleEvent&&(e.callback=e=>r.handleEvent(e),e.originalDelegate=r),e.invoke(e,t,[n]);const i=e.options;i&&"object"==typeof i&&i.once&&t[o].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,i)},p=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,r=n[z[t.type].false];if(r)if(1===r.length)h(r[0],n,t);else{const e=r.slice();for(let r=0;rfunction(t,n){t[j]=!0,e&&e.apply(t,n)})}function B(e,t,n,r,i){const o=Zone.__symbol__(r);if(t[o])return;const a=t[o]=t[r];t[r]=function(o,s,c){return s&&s.prototype&&i.forEach((function(t){const i=`${n}.${r}::`+t,o=s.prototype;if(o.hasOwnProperty(t)){const n=e.ObjectGetOwnPropertyDescriptor(o,t);n&&n.value?(n.value=e.wrapWithCurrentZone(n.value,i),e._redefineProperty(s.prototype,t,n)):o[t]&&(o[t]=e.wrapWithCurrentZone(o[t],i))}else o[t]&&(o[t]=e.wrapWithCurrentZone(o[t],i))})),a.call(t,o,s,c)},e.attachOriginToPatched(t[r],a)}const q=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplyconnected","vrdisplaydisconnected","vrdisplaypresentchange"],U=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],G=["load"],$=["blur","error","focus","load","resize","scroll","messageerror"],V=["bounce","finish","start"],K=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],X=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],Y=["close","error","open","message"],J=["error","message"],Q=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],q,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function ee(e,t,n){if(!n||0===n.length)return t;const r=n.filter(t=>t.target===e);if(!r||0===r.length)return t;const i=r[0].ignoreProperties;return t.filter(e=>-1===i.indexOf(e))}function te(e,t,n,r){e&&E(e,ee(e,t,n),r)}function ne(e,t){if(v&&!b)return;if(Zone[e.symbol("patchEvents")])return;const r="undefined"!=typeof WebSocket,i=t.__Zone_ignore_on_properties;if(y){const e=window,t=C?[{target:e,ignoreProperties:["error"]}]:[];te(e,Q.concat(["messageerror"]),i?i.concat(t):i,n(e)),te(Document.prototype,Q,i),void 0!==e.SVGElement&&te(e.SVGElement.prototype,Q,i),te(Element.prototype,Q,i),te(HTMLElement.prototype,Q,i),te(HTMLMediaElement.prototype,U,i),te(HTMLFrameSetElement.prototype,q.concat($),i),te(HTMLBodyElement.prototype,q.concat($),i),te(HTMLFrameElement.prototype,G,i),te(HTMLIFrameElement.prototype,G,i);const r=e.HTMLMarqueeElement;r&&te(r.prototype,V,i);const o=e.Worker;o&&te(o.prototype,J,i)}const o=t.XMLHttpRequest;o&&te(o.prototype,K,i);const a=t.XMLHttpRequestEventTarget;a&&te(a&&a.prototype,K,i),"undefined"!=typeof IDBIndex&&(te(IDBIndex.prototype,X,i),te(IDBRequest.prototype,X,i),te(IDBOpenDBRequest.prototype,X,i),te(IDBDatabase.prototype,X,i),te(IDBTransaction.prototype,X,i),te(IDBCursor.prototype,X,i)),r&&te(WebSocket.prototype,Y,i)}Zone.__load_patch("util",(n,o,a)=>{a.patchOnProperties=E,a.patchMethod=P,a.bindArguments=m,a.patchMacroTask=D;const l=o.__symbol__("BLACK_LISTED_EVENTS"),u=o.__symbol__("UNPATCHED_EVENTS");n[u]&&(n[l]=n[u]),n[l]&&(o[l]=o[u]=n[l]),a.patchEventPrototype=W,a.patchEventTarget=F,a.isIEOrEdge=Z,a.ObjectDefineProperty=t,a.ObjectGetOwnPropertyDescriptor=e,a.ObjectCreate=r,a.ArraySlice=i,a.patchClass=S,a.wrapWithCurrentZone=c,a.filterProperties=ee,a.attachOriginToPatched=N,a._redefineProperty=Object.defineProperty,a.patchCallbacks=B,a.getGlobalObjects=()=>({globalSources:L,zoneSymbolEventNames:z,eventNames:Q,isBrowser:y,isMix:b,isNode:v,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:s,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"})});const re=u("zoneTask");function ie(e,t,n,r){let i=null,o=null;n+=r;const a={};function s(t){const n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[re]=null))}},n.handleId=i.apply(e,n.args),t}function c(e){return o(e.data.handleId)}i=P(e,t+=r,n=>function(i,o){if("function"==typeof o[0]){const e=l(t,o[0],{isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?o[1]||0:void 0,args:o},s,c);if(!e)return e;const n=e.data.handleId;return"number"==typeof n?a[n]=e:n&&(n[re]=e),n&&n.ref&&n.unref&&"function"==typeof n.ref&&"function"==typeof n.unref&&(e.ref=n.ref.bind(n),e.unref=n.unref.bind(n)),"number"==typeof n||n?n:e}return n.apply(e,o)}),o=P(e,n,t=>function(n,r){const i=r[0];let o;"number"==typeof i?o=a[i]:(o=i&&i[re],o||(o=i)),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof i?delete a[i]:i&&(i[re]=null),o.zone.cancelTask(o)):t.apply(e,r)})}function oe(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:r,TRUE_STR:i,FALSE_STR:o,ZONE_SYMBOL_PREFIX:a}=t.getGlobalObjects();for(let c=0;c{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("timers",e=>{ie(e,"set","clear","Timeout"),ie(e,"set","clear","Interval"),ie(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{ie(e,"request","cancel","AnimationFrame"),ie(e,"mozRequest","mozCancel","AnimationFrame"),ie(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,t)=>{const n=["alert","prompt","confirm"];for(let r=0;rfunction(r,o){return t.current.run(n,e,o,i)})}),Zone.__load_patch("EventTarget",(e,t,n)=>{!function(e,t){t.patchEventPrototype(e,t)}(e,n),oe(e,n);const r=e.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(e,[r.prototype]),S("MutationObserver"),S("WebKitMutationObserver"),S("IntersectionObserver"),S("FileReader")}),Zone.__load_patch("on_property",(e,t,n)=>{ne(n,e)}),Zone.__load_patch("customElements",(e,t,n)=>{!function(e,t){const{isBrowser:n,isMix:r}=t.getGlobalObjects();(n||r)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",(e,t)=>{!function(e){const h=e.XMLHttpRequest;if(!h)return;const p=h.prototype;let d=p[o],m=p[a];if(!d){const t=e.XMLHttpRequestEventTarget;if(t){const e=t.prototype;d=e[o],m=e[a]}}function g(e){const r=e.data,c=r.target;c[s]=!1,c[f]=!1;const l=c[i];d||(d=c[o],m=c[a]),l&&m.call(c,"readystatechange",l);const u=c[i]=()=>{if(c.readyState===c.DONE)if(!r.aborted&&c[s]&&"scheduled"===e.state){const n=c[t.__symbol__("loadfalse")];if(n&&n.length>0){const i=e.invoke;e.invoke=function(){const n=c[t.__symbol__("loadfalse")];for(let t=0;tfunction(e,t){return e[r]=0==t[2],e[c]=t[1],y.apply(e,t)}),b=u("fetchTaskAborting"),k=u("fetchTaskScheduling"),T=P(p,"send",()=>function(e,n){if(!0===t.current[k])return T.apply(e,n);if(e[r])return T.apply(e,n);{const t={target:e,url:e[c],isPeriodic:!1,args:n,aborted:!1},r=l("XMLHttpRequest.send",_,t,g,v);e&&!0===e[f]&&!t.aborted&&"scheduled"===r.state&&r.invoke()}}),w=P(p,"abort",()=>function(e,r){const i=e[n];if(i&&"string"==typeof i.type){if(null==i.cancelFn||i.data&&i.data.aborted)return;i.zone.cancelTask(i)}else if(!0===t.current[b])return w.apply(e,r)})}(e);const n=u("xhrTask"),r=u("xhrSync"),i=u("xhrListener"),s=u("xhrScheduled"),c=u("xhrURL"),f=u("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function(t,n){const r=t.constructor.name;for(let i=0;i{const t=function(){return e.apply(this,m(arguments,r+"."+o))};return N(t,e),t})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(t){return function(n){H(e,t).forEach(r=>{const i=e.PromiseRejectionEvent;if(i){const e=new i(t,{promise:n.promise,reason:n.rejection});r.invoke(e)}})}}e.PromiseRejectionEvent&&(t[u("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[u("rejectionHandledHandler")]=n("rejectionhandled"))})})?r.call(t,n,t,e):r)||(e.exports=i)}},[[2,0]]]); \ No newline at end of file diff --git a/backend/public/polyfills-es5.613e2d10a30e7a079e64.js b/backend/public/polyfills-es5.613e2d10a30e7a079e64.js new file mode 100644 index 0000000..628a31c --- /dev/null +++ b/backend/public/polyfills-es5.613e2d10a30e7a079e64.js @@ -0,0 +1 @@ +function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n"+t+"<\/script>"},p=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var t,e;p=r?function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):((e=c("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=o(t),n=new l,l.prototype=null,n[f]=t):n=p(),void 0===e?n:i(n,e)}},"3caY":function(t,e,n){var r=n("wA6s"),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):i(e+a(e*e+1)):e}})},"3vMK":function(t,e,n){"use strict";var r=n("6XUM"),o=n("/Ybd"),i=n("wIVT"),a=n("m41k")("hasInstance"),s=Function.prototype;a in s||o.f(s,a,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},"3xQm":function(t,e,n){var r,o,i,a,s,u,c,f,l=n("ocAm"),h=n("7gGY").f,p=n("ezU2"),d=n("Ox9q").set,v=n("tuHh"),g=l.MutationObserver||l.WebKitMutationObserver,m=l.process,y=l.Promise,b="process"==p(m),_=h(l,"queueMicrotask"),w=_&&_.value;w||(r=function(){var t,e;for(b&&(t=m.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(n){throw o?a():i=void 0,n}}i=void 0,t&&t.enter()},b?a=function(){m.nextTick(r)}:g&&!v?(s=!0,u=document.createTextNode(""),new g(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):y&&y.resolve?(c=y.resolve(void 0),f=c.then,a=function(){f.call(c,r)}):a=function(){d.call(l,r)}),t.exports=w||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},"48xZ":function(t,e,n){var r=n("n/2t"),o=Math.abs,i=Math.pow,a=i(2,-52),s=i(2,-23),u=i(2,127)*(2-s),c=i(2,-126);t.exports=Math.fround||function(t){var e,n,i=o(t),f=r(t);return iu||n!=n?f*(1/0):f*n}},"4GtL":function(t,e,n){"use strict";var r=n("VCQ8"),o=n("7Oj1"),i=n("xpLY"),a=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),s=i(n.length),u=o(t,s),c=o(e,s),f=arguments.length>2?arguments[2]:void 0,l=a((void 0===f?s:o(f,s))-c,s-u),h=1;for(c0;)c in n?n[u]=n[c]:delete n[u],u+=h,c+=h;return n}},"4Kt7":function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("sub")},{sub:function(){return o(this,"sub","","")}})},"4NCC":function(t,e,n){var r=n("ocAm"),o=n("jnLS").trim,i=n("xFZC"),a=r.parseInt,s=/^[+-]?0[Xx]/,u=8!==a(i+"08")||22!==a(i+"0x16");t.exports=u?function(t,e){var n=o(String(t));return a(n,e>>>0||(s.test(n)?16:10))}:a},"4PyY":function(t,e,n){var r={};r[n("m41k")("toStringTag")]="z",t.exports="[object z]"===String(r)},"4axp":function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("blink")},{blink:function(){return o(this,"blink","","")}})},"5MmU":function(t,e,n){var r=n("m41k"),o=n("pz+c"),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},"5eAq":function(t,e,n){var r=n("wA6s"),o=n("vZCr");r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},"5y2d":function(t,e,n){var r=n("T69T"),o=n("/Ybd"),i=n("F26l"),a=n("ZRqE");t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),s=r.length,u=0;s>u;)o.f(t,n=r[u++],e[n]);return t}},"5zDw":function(t,e,n){var r=n("wA6s"),o=n("4NCC");r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},"6CEi":function(t,e,n){"use strict";var r=n("wA6s"),o=n("kk6e").find,i=n("A1Hp"),a=n("w2hq"),s=!0,u=a("find");"find"in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!u},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("find")},"6CJb":function(t,e,n){"use strict";var r=n("rG8t");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},"6XUM":function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},"6dTf":function(t,e){var n,r;r={},function(t,e){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=h}function r(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function o(e,r,o){var i=new n;return r&&(i.fill="both",i.duration="auto"),"number"!=typeof e||isNaN(e)?void 0!==e&&Object.getOwnPropertyNames(e).forEach((function(n){if("auto"!=e[n]){if(("number"==typeof i[n]||"duration"==n)&&("number"!=typeof e[n]||isNaN(e[n])))return;if("fill"==n&&-1==f.indexOf(e[n]))return;if("direction"==n&&-1==l.indexOf(e[n]))return;if("playbackRate"==n&&1!==e[n]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;i[n]=e[n]}})):i.duration=e,i}function i(t,e,n,r){return t<0||t>1||n<0||n>1?h:function(o){function i(t,e,n){return 3*t*(1-n)*(1-n)*n+3*e*(1-n)*n*n+n*n*n}if(o<=0){var a=0;return t>0?a=e/t:!e&&n>0&&(a=r/n),a*o}if(o>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&t<1&&(s=(e-1)/(t-1)),1+s*(o-1)}for(var u=0,c=1;u=1)return 1;var r=1/t;return(n+=e*r)-n%r}}function s(t){m||(m=document.createElement("div").style),m.animationTimingFunction="",m.animationTimingFunction=t;var e=m.animationTimingFunction;if(""==e&&r())throw new TypeError(t+" is not a valid value for easing");return e}function u(t){if("linear"==t)return h;var e=b.exec(t);if(e)return i.apply(this,e.slice(1).map(Number));var n=_.exec(t);if(n)return a(Number(n[1]),v);var r=w.exec(t);return r?a(Number(r[1]),{start:p,middle:d,end:v}[r[2]]):g[t]||h}function c(t,e,n){if(null==e)return k;var r=n.delay+t+n.endDelay;return e=Math.min(n.delay+t,r)?T:E}var f="backwards|forwards|both|none".split("|"),l="reverse|alternate|alternate-reverse".split("|"),h=function(t){return t};n.prototype={_setMember:function(e,n){this["_"+e]=n,this._effect&&(this._effect._timingInput[e]=n,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+t);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=u(s(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&r())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var p=1,d=.5,v=0,g={ease:i(.25,.1,.25,1),"ease-in":i(.42,0,1,1),"ease-out":i(0,0,.58,1),"ease-in-out":i(.42,0,.58,1),"step-start":a(1,p),"step-middle":a(1,d),"step-end":a(1,v)},m=null,y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",b=new RegExp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),_=/steps\(\s*(\d+)\s*\)/,w=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,k=0,x=1,T=2,E=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var n in t)e[n]=t[n];return e},t.makeTiming=o,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,n){return o(e=t.numericTimingToObject(e),n)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,n){var r=c(t,e,n),o=function(t,e,n,r,o){switch(r){case x:return"backwards"==e||"both"==e?0:null;case E:return n-o;case T:return"forwards"==e||"both"==e?t:null;case k:return null}}(t,n.fill,e,r,n.delay);if(null===o)return null;var i=function(t,e,n,r,o){var i=o;return 0===t?e!==x&&(i+=n):i+=r/t,i}(n.duration,r,n.iterations,o,n.iterationStart),a=function(t,e,n,r,o,i){var a=t===1/0?e%1:t%1;return 0!==a||n!==T||0===r||0===o&&0!==i||(a=1),a}(i,n.iterationStart,r,n.iterations,o,n.duration),s=function(t,e,n,r){return t===T&&e===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,i),u=function(t,e,n){var r=t;if("normal"!==t&&"reverse"!==t){var o=e;"alternate-reverse"===t&&(o+=1),r="normal",o!==1/0&&o%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},t.calculatePhase=c,t.normalizeEasing=s,t.parseEasingFunction=u}(n={}),function(t,e){function n(t,e){return t in u&&u[t][e]||e}function r(t,e,r){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var o=i[t];if(o)for(var s in a.style[t]=e,o){var u=o[s];r[u]=n(u,a.style[u])}else r[t]=n(t,e)}}function o(t){var e=[];for(var n in t)if(!(n in["easing","offset","composite"])){var r=t[n];Array.isArray(r)||(r=[r]);for(var o,i=r.length,a=0;a1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==o){if("add"==i||"accumulate"==i)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=i)throw new TypeError("Invalid composite mode "+i+".")}else i="easing"==o?t.normalizeEasing(i):""+i;r(o,i,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),i=!0,a=-1/0,s=0;s=0&&t.offset<=1})),i||function(){var t=n.length;null==n[t-1].offset&&(n[t-1].offset=1),t>1&&null==n[0].offset&&(n[0].offset=0);for(var e=0,r=n[0].offset,o=1;o=t.applyFrom&&nthis._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,n){this._style[e]=n,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(n)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},s)r.prototype[c]=function(t,e){return function(){var n=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),n}}(c,c in u);for(var f in document.documentElement.style)f in a||f in s||function(t){n(r.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(f);t.apply=function(e,n,r){o(e),e.style._set(t.propertyName(n),r)},t.clear=function(e,n){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(n))}}(r),function(t){window.Element.prototype.animate=function(e,n){var r="";return n&&n.id&&(r=n.id),t.timeline._play(t.KeyframeEffect(this,e,n,r))}}(r),function(t,e){t.Interpolation=function(t,e,n){return function(r){return n(function t(e,n,r){if("number"==typeof e&&"number"==typeof n)return e*(1-r)+n*r;if("boolean"==typeof e&&"boolean"==typeof n)return r<.5?e:n;if(e.length==n.length){for(var o=[],i=0;i0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var n=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var n=this._finishHandlers.indexOf(e);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new r(this,this._currentTime,t),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(t){t.call(e.target,e)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(n,r),function(t,e,n){function r(t){var e=c;c=[],t1e-4?(g=.5/Math.sqrt(y),m=[(h[2][1]-h[1][2])*g,(h[0][2]-h[2][0])*g,(h[1][0]-h[0][1])*g,.25/g]):h[0][0]>h[1][1]&&h[0][0]>h[2][2]?m=[.25*(g=2*Math.sqrt(1+h[0][0]-h[1][1]-h[2][2])),(h[0][1]+h[1][0])/g,(h[0][2]+h[2][0])/g,(h[2][1]-h[1][2])/g]:h[1][1]>h[2][2]?(g=2*Math.sqrt(1+h[1][1]-h[0][0]-h[2][2]),m=[(h[0][1]+h[1][0])/g,.25*g,(h[1][2]+h[2][1])/g,(h[0][2]-h[2][0])/g]):(g=2*Math.sqrt(1+h[2][2]-h[0][0]-h[1][1]),m=[(h[0][2]+h[2][0])/g,(h[1][2]+h[2][1])/g,.25*g,(h[1][0]-h[0][1])/g]),[l,p,d,m,c]}}();t.dot=n,t.makeMatrixDecomposition=function(t){return[s(a(t))]},t.transformListToMatrix=a}(r),function(t){function e(t,e){var n=t.exec(e);if(n)return[n=t.ignoreCase?n[0].toLowerCase():n[0],e.substr(n.length)]}function n(t,e){var n=t(e=e.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(t,e,n,r,o){for(var i=[],a=[],s=[],u=function(t,e){for(var n=t,r=e;n&&r;)n>r?n%=r:r%=n;return t*e/(n+r)}(r.length,o.length),c=0;c=1?e:"visible"}]}),["visibility"])}(r),function(t,e){function n(t){t=t.trim(),i.fillStyle="#000",i.fillStyle=t;var e=i.fillStyle;if(i.fillStyle="#fff",i.fillStyle=t,e==i.fillStyle){i.fillRect(0,0,1,1);var n=i.getImageData(0,0,1,1).data;i.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(e,n){return[e,n,function(e){function n(t){return Math.max(0,Math.min(255,t))}if(e[3])for(var r=0;r<3;r++)e[r]=Math.round(n(e[r]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var o=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");o.width=o.height=1;var i=o.getContext("2d");t.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,n),t.mergeColors=r}(r),function(t,e){function n(t){function e(){var e=a.exec(t);i=e?e[0]:void 0}function n(){if("("!==i)return function(){var t=Number(i);return e(),t}();e();var t=o();return")"!==i?NaN:(e(),t)}function r(){for(var t=n();"*"===i||"/"===i;){var r=i;e();var o=n();"*"===r?t*=o:t/=o}return t}function o(){for(var t=r();"+"===i||"-"===i;){var n=i;e();var o=r();"+"===n?t+=o:t-=o}return t}var i,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),o()}function r(t,e){if("0"==(e=e.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(e)){e=e.replace(/calc\(/g,"(");var r={};e=e.replace(t,(function(t){return r[t]=null,"U"+t}));for(var o="U("+t.source+")",i=e.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+o,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),c=r.bind(null,/deg|rad|grad|turn/g);t.parseLength=s,t.parseLengthOrPercent=u,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,u),t.parseAngle=c,t.mergeDimensions=i;var f=t.consumeParenthesised.bind(null,s),l=t.consumeRepeated.bind(void 0,f,/^/),h=t.consumeRepeated.bind(void 0,l,/^,/);t.consumeSizePairList=h;var p=t.mergeNestedRepeated.bind(void 0,o," "),d=t.mergeNestedRepeated.bind(void 0,p,",");t.mergeNonNegativeSizePair=p,t.addPropertiesHandler((function(t){var e=h(t);if(e&&""==e[1])return e[0]}),d,["background-size"]),t.addPropertiesHandler(u,o,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(u,i,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(t,e){function n(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function r(e){var r=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,n,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],e);if(r&&4==r[0].length)return r[0]}var o=t.mergeWrappedNestedRepeated.bind(null,(function(t){return"rect("+t+")"}),(function(e,n){return"auto"==e||"auto"==n?[!0,!1,function(r){var o=r?e:n;if("auto"==o)return"auto";var i=t.mergeDimensions(o,o);return i[2](i[0])}]:t.mergeDimensions(e,n)}),", ");t.parseBox=r,t.mergeBoxes=o,t.addPropertiesHandler(r,o,["clip"])}(r),function(t,e){function n(t){return function(e){var n=0;return t.map((function(t){return t===c?e[n++]:t}))}}function r(t){return t}function o(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,o=[],i=0;n=r.exec(e);){if(n.index!=i)return;i=n.index+n[0].length;var a=n[1],s=h[a];if(!s)return;var u=n[2].split(","),c=s[0];if(c.length900||e%100!=0))return e}),(function(t,n){return[t,n,e]}),["font-weight"])}(r),function(t){function e(t){var e={};for(var n in t)e[n]=-t[n];return e}function n(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function r(e,r){var o=t.consumeRepeated(n,/^/,r);if(o&&""==o[1]){var a=o[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==e&&(a[2]=a[2]||{px:0}),a.length==e){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(t){return"object"==typeof t?t:i[t]}))}}}function o(r){var o=t.consumeRepeated(n,/^/,r);if(o){for(var a=o[0],s=[{"%":50},{"%":50}],u=0,c=!1,f=0;f=0&&this._cancelHandlers.splice(n,1)}else u.call(this,t,e)},i}}}(),function(t){var e=document.documentElement,n=null,r=!1;try{var o="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(n=e.animate({opacity:[o,o]},{duration:1})).currentTime=0,r=getComputedStyle(e).getPropertyValue("opacity")==o}catch(t){}finally{n&&n.cancel()}if(!r){var i=window.Element.prototype.animate;window.Element.prototype.animate=function(e,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),i.call(this,e,n)}}}(n)},"6fhQ":function(t,e,n){"use strict";var r=n("wA6s"),o=n("Neub"),i=n("VCQ8"),a=n("rG8t"),s=n("6CJb"),u=[],c=u.sort,f=a((function(){u.sort(void 0)})),l=a((function(){u.sort(null)})),h=s("sort");r({target:"Array",proto:!0,forced:f||!l||!h},{sort:function(t){return void 0===t?c.call(i(this)):c.call(i(this),o(t))}})},"6lQQ":function(t,e,n){"use strict";var r=n("wA6s"),o=n("OXtp").indexOf,i=n("6CJb"),a=n("w2hq"),s=[].indexOf,u=!!s&&1/[1].indexOf(1,-0)<0,c=i("indexOf"),f=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:u||!c||!f},{indexOf:function(t){return u?s.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void 0)}})},"6oxo":function(t,e,n){var r=n("wA6s"),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return o(t)/i}})},"6q6p":function(t,e,n){"use strict";var r=n("wA6s"),o=n("6XUM"),i=n("erNl"),a=n("7Oj1"),s=n("xpLY"),u=n("EMtK"),c=n("DYg9"),f=n("m41k"),l=n("lRyB"),h=n("w2hq"),p=l("slice"),d=h("slice",{ACCESSORS:!0,0:0,1:2}),v=f("species"),g=[].slice,m=Math.max;r({target:"Array",proto:!0,forced:!p||!d},{slice:function(t,e){var n,r,f,l=u(this),h=s(l.length),p=a(t,h),d=a(void 0===e?h:e,h);if(i(l)&&("function"!=typeof(n=l.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[v])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(l,p,d);for(r=new(void 0===n?Array:n)(m(d-p,0)),f=0;p=0;)h[e]=c((n+=h[e])/t),n=n%t*1e7},m=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==h[t]){var n=String(h[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e};if(l<0||l>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(p="-",u=-u),u>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(u*f(2,69,1))-69)<0?u*f(2,-e,1):u/f(2,e,1),n*=4503599627370496,(e=52-e)>0){for(v(0,n),r=l;r>=7;)v(1e7,0),r-=7;for(v(f(10,r,1),0),r=e-1;r>=23;)g(1<<23),r-=23;g(1<0?p+((s=d.length)<=l?"0."+a.call("0",l-s)+d:d.slice(0,s-l)+"."+d.slice(s-l)):p+d}})},"8ydS":function(t,e,n){n("wA6s")({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},"94Vg":function(t,e,n){var r=n("E7aN"),o=n("OG5q"),i=n("aGCb"),a=n("/Ybd").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},"9kNm":function(t,e,n){n("94Vg")("toPrimitive")},A1Hp:function(t,e,n){var r=n("m41k"),o=n("2RDa"),i=n("/Ybd"),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},A7hN:function(t,e,n){var r=n("wA6s"),o=n("rG8t"),i=n("VCQ8"),a=n("wIVT"),s=n("cwa4");r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(i(t))}})},"Ay+M":function(t,e,n){var r=n("wA6s"),o=n("vZCr");r({global:!0,forced:parseFloat!=o},{parseFloat:o})},BaTD:function(t,e,n){n("wA6s")({target:"String",proto:!0},{repeat:n("EMWV")})},BcWx:function(t,e,n){"use strict";var r=n("wA6s"),o=n("rG8t"),i=n("DYg9");r({target:"Array",stat:!0,forced:o((function(){function t(){}return!(Array.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},BnCb:function(t,e,n){n("wA6s")({target:"Math",stat:!0},{sign:n("n/2t")})},COcp:function(t,e,n){n("wA6s")({target:"Number",stat:!0},{isInteger:n("Nvxz")})},CW9j:function(t,e,n){"use strict";var r=n("F26l"),o=n("LdO1");t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),"number"!==t)}},CwIO:function(t,e,n){var r=n("wA6s"),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,o=0,s=0,u=arguments.length,c=0;s0?(r=n/c)*r:n;return c===1/0?1/0:c*a(o)}})},"D+RQ":function(t,e,n){"use strict";var r=n("T69T"),o=n("ocAm"),i=n("MkZA"),a=n("2MGJ"),s=n("OG5q"),u=n("ezU2"),c=n("K6ZX"),f=n("LdO1"),l=n("rG8t"),h=n("2RDa"),p=n("KkqW").f,d=n("7gGY").f,v=n("/Ybd").f,g=n("jnLS").trim,m=o.Number,y=m.prototype,b="Number"==u(h(y)),_=function(t){var e,n,r,o,i,a,s,u,c=f(t,!1);if("string"==typeof c&&c.length>2)if(43===(e=(c=g(c)).charCodeAt(0))||45===e){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=c.slice(2)).length,s=0;so)return NaN;return parseInt(i,r)}return+c};if(i("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,k=function t(e){var n=arguments.length<1?0:e,r=this;return r instanceof t&&(b?l((function(){y.valueOf.call(r)})):"Number"!=u(r))?c(new m(_(n)),r,t):_(n)},x=r?p(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;x.length>T;T++)s(m,w=x[T])&&!s(k,w)&&v(k,w,d(m,w));k.prototype=y,y.constructor=k,a(o,"Number",k)}},D3bo:function(t,e,n){var r,o,i=n("ocAm"),a=n("T/Kj"),s=i.process,u=s&&s.versions,c=u&&u.v8;c?o=(r=c.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},D94X:function(t,e,n){var r=n("wA6s"),o=n("n/2t"),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){return o(t=+t)*a(i(t),1/3)}})},DAme:function(t,e,n){"use strict";var r=n("8aNu"),o=n("M7Xk").getWeakData,i=n("F26l"),a=n("6XUM"),s=n("SM6+"),u=n("Rn6E"),c=n("kk6e"),f=n("OG5q"),l=n("XH/I"),h=l.set,p=l.getterFor,d=c.find,v=c.findIndex,g=0,m=function(t){return t.frozen||(t.frozen=new y)},y=function(){this.entries=[]},b=function(t,e){return d(t.entries,(function(t){return t[0]===e}))};y.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var n=b(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=v(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,c){var l=t((function(t,r){s(t,l,e),h(t,{type:e,id:g++,frozen:void 0}),null!=r&&u(r,t[c],t,n)})),d=p(e),v=function(t,e,n){var r=d(t),a=o(i(e),!0);return!0===a?m(r).set(e,n):a[r.id]=n,t};return r(l.prototype,{delete:function(t){var e=d(this);if(!a(t))return!1;var n=o(t);return!0===n?m(e).delete(t):n&&f(n,e.id)&&delete n[e.id]},has:function(t){var e=d(this);if(!a(t))return!1;var n=o(t);return!0===n?m(e).has(t):n&&f(n,e.id)}}),r(l.prototype,n?{get:function(t){var e=d(this);if(a(t)){var n=o(t);return!0===n?m(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return v(this,t,e)}}:{add:function(t){return v(this,t,!0)}}),l}}},DGHb:function(t,e,n){"use strict";var r=n("wA6s"),o=n("rG8t"),i=n("VCQ8"),a=n("LdO1");r({target:"Date",proto:!0,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=i(this),n=a(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},DYg9:function(t,e,n){"use strict";var r=n("LdO1"),o=n("/Ybd"),i=n("uSMZ");t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},Djps:function(t,e,n){n("wA6s")({target:"Math",stat:!0},{log1p:n("O3xq")})},DscF:function(t,e,n){var r=n("wA6s"),o=n("w4Hq"),i=n("A1Hp");r({target:"Array",proto:!0},{fill:o}),i("fill")},E7aN:function(t,e,n){var r=n("ocAm");t.exports=r},E8Ab:function(t,e,n){"use strict";var r=n("Neub"),o=n("6XUM"),i=[].slice,a={},s=function(t,e,n){if(!(e in a)){for(var r=[],o=0;o0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},EMtK:function(t,e,n){var r=n("tUdv"),o=n("hmpk");t.exports=function(t){return r(o(t))}},EQZg:function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},ERXZ:function(t,e,n){n("94Vg")("match")},EntM:function(t,e,n){var r=n("wA6s"),o=n("T69T");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n("5y2d")})},"Ew/G":function(t,e,n){var r=n("E7aN"),o=n("ocAm"),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},"F/TS":function(t,e,n){var r=n("mN5b"),o=n("pz+c"),i=n("m41k")("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},F26l:function(t,e,n){var r=n("6XUM");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},F4rZ:function(t,e,n){"use strict";var r=n("wA6s"),o=n("rG8t"),i=n("erNl"),a=n("6XUM"),s=n("VCQ8"),u=n("xpLY"),c=n("DYg9"),f=n("JafA"),l=n("lRyB"),h=n("m41k"),p=n("D3bo"),d=h("isConcatSpreadable"),v=p>=51||!o((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),g=l("concat"),m=function(t){if(!a(t))return!1;var e=t[d];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!v||!g},{concat:function(t){var e,n,r,o,i,a=s(this),l=f(a,0),h=0;for(e=-1,r=arguments.length;e9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(l,h++,i)}return l.length=h,l}})},FU1i:function(t,e,n){"use strict";var r=n("wA6s"),o=n("kk6e").map,i=n("lRyB"),a=n("w2hq"),s=i("map"),u=a("map");r({target:"Array",proto:!0,forced:!s||!u},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"FeI/":function(t,e,n){"use strict";var r=n("wA6s"),o=n("kk6e").every,i=n("6CJb"),a=n("w2hq"),s=i("every"),u=a("every");r({target:"Array",proto:!0,forced:!s||!u},{every:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},Fqhe:function(t,e,n){var r=n("ocAm"),o=n("aJMj");t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},G1Vw:function(t,e,n){"use strict";var r,o,i,a=n("wIVT"),s=n("aJMj"),u=n("OG5q"),c=n("m41k"),f=n("g9hI"),l=c("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):h=!0),null==r&&(r={}),f||u(r,l)||s(r,l,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},G7bs:function(t,e,n){var r=n("vDBE"),o=n("hmpk"),i=function(t){return function(e,n){var i,a,s=String(o(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):i:t?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},HSQg:function(t,e,n){"use strict";n("SC6u");var r=n("2MGJ"),o=n("rG8t"),i=n("m41k"),a=n("qjkP"),s=n("aJMj"),u=i("species"),c=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),f="$0"==="a".replace(/./,"$0"),l=i("replace"),h=!!/./[l]&&""===/./[l]("a","$0"),p=!o((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,l){var d=i(t),v=!o((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),g=v&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return e=!0,null},n[d](""),!e}));if(!v||!g||"replace"===t&&(!c||!f||h)||"split"===t&&!p){var m=/./[d],y=n(d,""[t],(function(t,e,n,r,o){return e.exec===a?v&&!o?{done:!0,value:m.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),b=y[1];r(String.prototype,t,y[0]),r(RegExp.prototype,d,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}l&&s(RegExp.prototype[d],"sham",!0)}},IBH3:function(t,e,n){"use strict";var r=n("tcQx"),o=n("VCQ8"),i=n("ipMl"),a=n("5MmU"),s=n("xpLY"),u=n("DYg9"),c=n("F/TS");t.exports=function(t){var e,n,f,l,h,p,d=o(t),v="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,y=void 0!==m,b=c(d),_=0;if(y&&(m=r(m,g>2?arguments[2]:void 0,2)),null==b||v==Array&&a(b))for(n=new v(e=s(d.length));e>_;_++)p=y?m(d[_],_):d[_],u(n,_,p);else for(h=(l=b.call(d)).next,n=new v;!(f=h.call(l)).done;_++)p=y?i(l,m,[f.value,_],!0):f.value,u(n,_,p);return n.length=_,n}},IPby:function(t,e,n){var r=n("wA6s"),o=n("EMtK"),i=n("xpLY");r({target:"String",stat:!0},{raw:function(t){for(var e=o(t.raw),n=i(e.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s1?arguments[1]:void 0)}})},IXlp:function(t,e,n){var r=n("wA6s"),o=n("O3xq"),i=Math.acosh,a=Math.log,s=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?a(t)+u:o(t-1+s(t-1)*s(t+1))}})},IzYO:function(t,e,n){var r=n("wA6s"),o=n("cZY6"),i=n("rG8t"),a=n("6XUM"),s=n("M7Xk").onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){u(1)})),sham:!o},{freeze:function(t){return u&&a(t)?u(s(t)):t}})},J4zY:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("fixed")},{fixed:function(){return o(this,"tt","","")}})},JHhb:function(t,e,n){"use strict";var r=n("Ew/G"),o=n("/Ybd"),i=n("m41k"),a=n("T69T"),s=i("species");t.exports=function(t){var e=r(t);a&&e&&!e[s]&&(0,o.f)(e,s,{configurable:!0,get:function(){return this}})}},JI1L:function(t,e,n){var r=n("6XUM");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},JafA:function(t,e,n){var r=n("6XUM"),o=n("erNl"),i=n("m41k")("species");t.exports=function(t,e){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},JhPs:function(t,e,n){var r=n("wA6s"),o=n("pn4C");r({target:"Math",stat:!0,forced:o!=Math.expm1},{expm1:o})},JkSk:function(t,e,n){"use strict";var r=n("rG8t");function o(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},"Jt/z":function(t,e,n){"use strict";var r=n("wA6s"),o=n("kk6e").findIndex,i=n("A1Hp"),a=n("w2hq"),s=!0,u=a("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!u},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},K1Z7:function(t,e,n){"use strict";var r=n("HSQg"),o=n("F26l"),i=n("xpLY"),a=n("hmpk"),s=n("dPn5"),u=n("unYP");r("match",1,(function(t,e,n){return[function(e){var n=a(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var a=o(t),c=String(this);if(!a.global)return u(a,c);var f=a.unicode;a.lastIndex=0;for(var l,h=[],p=0;null!==(l=u(a,c));){var d=String(l[0]);h[p]=d,""===d&&(a.lastIndex=s(c,i(a.lastIndex),f)),p++}return 0===p?null:h}]}))},K1dl:function(t,e,n){var r=n("ocAm");t.exports=r.Promise},K6ZX:function(t,e,n){var r=n("6XUM"),o=n("7/lX");t.exports=function(t,e,n){var i,a;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(t,a),t}},KBkW:function(t,e,n){var r=n("ocAm"),o=n("Fqhe"),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},KMug:function(t,e,n){var r=n("wA6s"),o=n("rG8t"),i=n("6XUM"),a=Object.isFrozen;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isFrozen:function(t){return!i(t)||!!a&&a(t)}})},KkqW:function(t,e,n){var r=n("vVmn"),o=n("aAjO").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},KlhL:function(t,e,n){"use strict";var r=n("T69T"),o=n("rG8t"),i=n("ZRqE"),a=n("busr"),s=n("gn9T"),u=n("VCQ8"),c=n("tUdv"),f=Object.assign,l=Object.defineProperty;t.exports=!f||o((function(){if(r&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||"abcdefghijklmnopqrst"!=i(f({},e)).join("")}))?function(t,e){for(var n=u(t),o=arguments.length,f=1,l=a.f,h=s.f;o>f;)for(var p,d=c(arguments[f++]),v=l?i(d).concat(l(d)):i(d),g=v.length,m=0;g>m;)p=v[m++],r&&!h.call(d,p)||(n[p]=d[p]);return n}:f},KsdI:function(t,e,n){n("94Vg")("iterator")},L4l2:function(t,e,n){"use strict";var r=n("wA6s"),o=n("s8qp"),i=n("hmpk");r({target:"String",proto:!0,forced:!n("0Ds2")("includes")},{includes:function(t){return!!~String(i(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},LRWt:function(t,e,n){n("F4rZ"),n("NX+v"),n("SNUk"),n("c/8x"),n("0luR"),n("Pfbg"),n("V+F/"),n("KsdI"),n("ERXZ"),n("YOJ4"),n("S3W2"),n("8+YH"),n("uKyN"),n("Vi1R"),n("9kNm"),n("ZQqA"),n("815a"),n("OVXS"),n("8CeQ");var r=n("E7aN");t.exports=r.Symbol},LdO1:function(t,e,n){var r=n("6XUM");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},M1AK:function(t,e,n){var r=n("wA6s"),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-o(i(t+.5)*a):32}})},M7Xk:function(t,e,n){var r=n("yQMY"),o=n("6XUM"),i=n("OG5q"),a=n("/Ybd").f,s=n("SDMg"),u=n("cZY6"),c=s("meta"),f=0,l=Object.isExtensible||function(){return!0},h=function(t){a(t,c,{value:{objectID:"O"+ ++f,weakData:{}}})},p=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,c)){if(!l(t))return"F";if(!e)return"E";h(t)}return t[c].objectID},getWeakData:function(t,e){if(!i(t,c)){if(!l(t))return!0;if(!e)return!1;h(t)}return t[c].weakData},onFreeze:function(t){return u&&p.REQUIRED&&l(t)&&!i(t,c)&&h(t),t}};r[c]=!0},MjoC:function(t,e,n){var r=n("T69T"),o=n("/Ybd").f,i=Function.prototype,a=i.toString,s=/^\s*function ([^ (]*)/;!r||"name"in i||o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},MkZA:function(t,e,n){var r=n("rG8t"),o=/#|\.prototype\./,i=function(t,e){var n=s[a(t)];return n==c||n!=u&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},"N/DB":function(t,e){var n="undefined"!=typeof globalThis&&globalThis,r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i="undefined"!=typeof global&&global;function a(t,e){return":"===e.charAt(0)?t.substring(function(t,e){for(var n=1,r=1;n1?n-1:0),o=1;o-1e-8&&t<1e-8?t-t*t/2:n(1+t)}},OG5q:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},OVXS:function(t,e,n){n("shqn")(Math,"Math",!0)},OXtp:function(t,e,n){var r=n("EMtK"),o=n("xpLY"),i=n("7Oj1"),a=function(t){return function(e,n,a){var s,u=r(e),c=o(u.length),f=i(a,c);if(t&&n!=n){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},OjQg:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},Ox9q:function(t,e,n){var r,o,i,a=n("ocAm"),s=n("rG8t"),u=n("ezU2"),c=n("tcQx"),f=n("149L"),l=n("qx7X"),h=n("tuHh"),p=a.location,d=a.setImmediate,v=a.clearImmediate,g=a.process,m=a.MessageChannel,y=a.Dispatch,b=0,_={},w=function(t){if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},k=function(t){return function(){w(t)}},x=function(t){w(t.data)},T=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};d&&v||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return _[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(b),b},v=function(t){delete _[t]},"process"==u(g)?r=function(t){g.nextTick(k(t))}:y&&y.now?r=function(t){y.now(k(t))}:m&&!h?(i=(o=new m).port2,o.port1.onmessage=x,r=c(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(T)?r="onreadystatechange"in l("script")?function(t){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),w(t)}}:function(t){setTimeout(k(t),0)}:(r=T,a.addEventListener("message",x,!1))),t.exports={set:d,clear:v}},PbJR:function(t,e,n){var r=n("wA6s"),o=n("4NCC");r({global:!0,forced:parseInt!=o},{parseInt:o})},Pf6x:function(t,e,n){n("wA6s")({target:"Math",stat:!0},{fround:n("48xZ")})},Pfbg:function(t,e,n){n("94Vg")("hasInstance")},PmIt:function(t,e,n){"use strict";var r=n("HSQg"),o=n("1p6F"),i=n("F26l"),a=n("hmpk"),s=n("p82S"),u=n("dPn5"),c=n("xpLY"),f=n("unYP"),l=n("qjkP"),h=n("rG8t"),p=[].push,d=Math.min,v=!h((function(){return!RegExp(4294967295,"y")}));r("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=String(a(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===t)return[r];if(!o(t))return e.call(r,t,i);for(var s,u,c,f=[],h=0,d=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(s=l.call(d,r))&&!((u=d.lastIndex)>h&&(f.push(r.slice(h,s.index)),s.length>1&&s.index=i));)d.lastIndex===s.index&&d.lastIndex++;return h===r.length?!c&&d.test("")||f.push(""):f.push(r.slice(h)),f.length>i?f.slice(0,i):f}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=a(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var a=n(r,t,this,o,r!==e);if(a.done)return a.value;var l=i(t),h=String(this),p=s(l,RegExp),g=l.unicode,m=new p(v?l:"^(?:"+l.source+")",(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(v?"y":"g")),y=void 0===o?4294967295:o>>>0;if(0===y)return[];if(0===h.length)return null===f(m,h)?[h]:[];for(var b=0,_=0,w=[];_1?arguments[1]:void 0)}})},QFgE:function(t,e,n){var r=n("wA6s"),o=n("rG8t"),i=Math.imul;r({target:"Math",stat:!0,forced:o((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},QUoj:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("anchor")},{anchor:function(t){return o(this,"a","name",t)}})},"QVG+":function(t,e,n){var r=n("wA6s"),o=n("rG8t"),i=n("6XUM"),a=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isSealed:function(t){return!i(t)||!!a&&a(t)}})},QcXc:function(t,e,n){var r=n("xpLY"),o=n("EMWV"),i=n("hmpk"),a=Math.ceil,s=function(t){return function(e,n,s){var u,c,f=String(i(e)),l=f.length,h=void 0===s?" ":String(s),p=r(n);return p<=l||""==h?f:((c=o.call(h,a((u=p-l)/h.length))).length>u&&(c=c.slice(0,u)),t?f+c:c+f)}};t.exports={start:s(!1),end:s(!0)}},R0gw:function(t,e,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";var t,e,n,r,o,i;function a(){t=Zone.__symbol__,e=Object[t("defineProperty")]=Object.defineProperty,n=Object[t("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,r=Object.create,o=t("unconfigurables"),Object.defineProperty=function(t,e,n){if(u(t,e))throw new TypeError("Cannot assign to read only property '"+e+"' of "+t);var r=n.configurable;return"prototype"!==e&&(n=c(t,e,n)),f(t,e,n,r)},Object.defineProperties=function(t,e){return Object.keys(e).forEach((function(n){Object.defineProperty(t,n,e[n])})),t},Object.create=function(t,e){return"object"!=typeof e||Object.isFrozen(e)||Object.keys(e).forEach((function(n){e[n]=c(t,n,e[n])})),r(t,e)},Object.getOwnPropertyDescriptor=function(t,e){var r=n(t,e);return r&&u(t,e)&&(r.configurable=!1),r}}function s(t,e,n){var r=n.configurable;return f(t,e,n=c(t,e,n),r)}function u(t,e){return t&&t[o]&&t[o][e]}function c(t,n,r){return Object.isFrozen(r)||(r.configurable=!0),r.configurable||(t[o]||Object.isFrozen(t)||e(t,o,{writable:!0,value:{}}),t[o]&&(t[o][n]=!0)),r}function f(t,n,r,o){try{return e(t,n,r)}catch(a){if(!r.configurable)throw a;void 0===o?delete r.configurable:r.configurable=o;try{return e(t,n,r)}catch(a){var i=null;try{i=JSON.stringify(r)}catch(a){i=r.toString()}console.log("Attempting to configure '"+n+"' with descriptor '"+i+"' on object '"+t+"' and got error, giving up: "+a)}}}function l(t,e){var n=e.getGlobalObjects(),r=n.eventNames,o=n.globalSources,i=n.zoneSymbolEventNames,a=n.TRUE_STR,s=n.FALSE_STR,u=n.ZONE_SYMBOL_PREFIX,c="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),f=[],l=t.wtf,h="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");l?f=h.map((function(t){return"HTML"+t+"Element"})).concat(c):t.EventTarget?f.push("EventTarget"):f=c;for(var p=t.__Zone_disable_IE_check||!1,d=t.__Zone_enable_cross_context_check||!1,v=e.isIEOrEdge(),g="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",m={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},y=0;y1?new i(e,n):new i(e),c=t.ObjectGetOwnPropertyDescriptor(u,"onmessage");return c&&!1===c.configurable?(a=t.ObjectCreate(u),s=u,[r,o,"send","close"].forEach((function(e){a[e]=function(){var n=t.ArraySlice.call(arguments);if(e===r||e===o){var i=n.length>0?n[0]:void 0;if(i){var s=Zone.__symbol__("ON_PROPERTY"+i);u[s]=a[s]}}return u[e].apply(u,n)}}))):a=u,t.patchOnProperties(a,["close","error","message","open"],s),a};var a=e.WebSocket;for(var s in i)a[s]=i[s]}(t,e),Zone[t.symbol("patchEvents")]=!0}}(i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})[(i.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch"]=function(){var t=i.Zone;t.__load_patch("defineProperty",(function(t,e,n){n._redefineProperty=s,a()})),t.__load_patch("registerElement",(function(t,e,n){!function(t,e){var n=e.getGlobalObjects();(n.isBrowser||n.isMix)&&"registerElement"in t.document&&e.patchCallbacks(e,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(t,n)})),t.__load_patch("EventTargetLegacy",(function(t,e,n){l(t,n),h(n,t)}))}})?r.call(e,n,e,t):r)||(t.exports=o)},RCvO:function(t,e,n){n("wA6s")({target:"Object",stat:!0,sham:!n("T69T")},{create:n("2RDa")})},"Rj+b":function(t,e,n){"use strict";var r=n("2MGJ"),o=n("F26l"),i=n("rG8t"),a=n("x0kV"),s=RegExp.prototype,u=s.toString;(i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))||"toString"!=u.name)&&r(RegExp.prototype,"toString",(function(){var t=o(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in s)?a.call(t):n)}),{unsafe:!0})},Rn6E:function(t,e,n){var r=n("F26l"),o=n("5MmU"),i=n("xpLY"),a=n("tcQx"),s=n("F/TS"),u=n("ipMl"),c=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,f,l){var h,p,d,v,g,m,y,b=a(e,n,f?2:1);if(l)h=t;else{if("function"!=typeof(p=s(t)))throw TypeError("Target is not iterable");if(o(p)){for(d=0,v=i(t.length);v>d;d++)if((g=f?b(r(y=t[d])[0],y[1]):b(t[d]))&&g instanceof c)return g;return new c(!1)}h=p.call(t)}for(m=h.next;!(y=m.call(h)).done;)if("object"==typeof(g=u(h,b,y.value,f))&&g&&g instanceof c)return g;return new c(!1)}).stop=function(t){return new c(!0,t)}},S3W2:function(t,e,n){n("94Vg")("replace")},S3Yw:function(t,e,n){"use strict";var r=n("HSQg"),o=n("F26l"),i=n("VCQ8"),a=n("xpLY"),s=n("vDBE"),u=n("hmpk"),c=n("dPn5"),f=n("unYP"),l=Math.max,h=Math.min,p=Math.floor,d=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(t,e,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=r.REPLACE_KEEPS_$0,y=g?"$":"$0";return[function(n,r){var o=u(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!g&&m||"string"==typeof r&&-1===r.indexOf(y)){var i=n(e,t,this,r);if(i.done)return i.value}var u=o(t),p=String(this),d="function"==typeof r;d||(r=String(r));var v=u.global;if(v){var _=u.unicode;u.lastIndex=0}for(var w=[];;){var k=f(u,p);if(null===k)break;if(w.push(k),!v)break;""===String(k[0])&&(u.lastIndex=c(p,a(u.lastIndex),_))}for(var x,T="",E=0,S=0;S=E&&(T+=p.slice(E,A)+C,E=A+O.length)}return T+p.slice(E)}];function b(t,n,r,o,a,s){var u=r+t.length,c=o.length,f=v;return void 0!==a&&(a=i(a),f=d),e.call(s,f,(function(e,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var f=+i;if(0===f)return e;if(f>c){var l=p(f/10);return 0===l?e:l<=c?void 0===o[l-1]?i.charAt(1):o[l-1]+i.charAt(1):e}s=o[f-1]}return void 0===s?"":s}))}}))},S58s:function(t,e,n){var r=n("wA6s"),o=n("pn4C"),i=Math.cosh,a=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!i||i(710)===1/0},{cosh:function(t){var e=o(a(t)-1)+1;return(e+1/(e*s*s))*(s/2)}})},SC6u:function(t,e,n){"use strict";var r=n("wA6s"),o=n("qjkP");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},SDMg:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},"SM6+":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},SNUk:function(t,e,n){"use strict";var r=n("wA6s"),o=n("ocAm"),i=n("Ew/G"),a=n("g9hI"),s=n("T69T"),u=n("U+kB"),c=n("i85Z"),f=n("rG8t"),l=n("OG5q"),h=n("erNl"),p=n("6XUM"),d=n("F26l"),v=n("VCQ8"),g=n("EMtK"),m=n("LdO1"),y=n("uSMZ"),b=n("2RDa"),_=n("ZRqE"),w=n("KkqW"),k=n("TzEA"),x=n("busr"),T=n("7gGY"),E=n("/Ybd"),S=n("gn9T"),O=n("aJMj"),A=n("2MGJ"),M=n("yIiL"),P=n("/AsP"),N=n("yQMY"),j=n("SDMg"),C=n("m41k"),R=n("aGCb"),I=n("94Vg"),D=n("shqn"),L=n("XH/I"),F=n("kk6e").forEach,z=P("hidden"),Z=C("toPrimitive"),G=L.set,q=L.getterFor("Symbol"),H=Object.prototype,W=o.Symbol,U=i("JSON","stringify"),X=T.f,Y=E.f,B=k.f,V=S.f,K=M("symbols"),Q=M("op-symbols"),J=M("string-to-symbol-registry"),$=M("symbol-to-string-registry"),tt=M("wks"),et=o.QObject,nt=!et||!et.prototype||!et.prototype.findChild,rt=s&&f((function(){return 7!=b(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=X(H,e);r&&delete H[e],Y(t,e,n),r&&t!==H&&Y(H,e,r)}:Y,ot=function(t,e){var n=K[t]=b(W.prototype);return G(n,{type:"Symbol",tag:t,description:e}),s||(n.description=e),n},it=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof W},at=function t(e,n,r){e===H&&t(Q,n,r),d(e);var o=m(n,!0);return d(r),l(K,o)?(r.enumerable?(l(e,z)&&e[z][o]&&(e[z][o]=!1),r=b(r,{enumerable:y(0,!1)})):(l(e,z)||Y(e,z,y(1,{})),e[z][o]=!0),rt(e,o,r)):Y(e,o,r)},st=function(t,e){d(t);var n=g(e),r=_(n).concat(lt(n));return F(r,(function(e){s&&!ut.call(n,e)||at(t,e,n[e])})),t},ut=function(t){var e=m(t,!0),n=V.call(this,e);return!(this===H&&l(K,e)&&!l(Q,e))&&(!(n||!l(this,e)||!l(K,e)||l(this,z)&&this[z][e])||n)},ct=function(t,e){var n=g(t),r=m(e,!0);if(n!==H||!l(K,r)||l(Q,r)){var o=X(n,r);return!o||!l(K,r)||l(n,z)&&n[z][r]||(o.enumerable=!0),o}},ft=function(t){var e=B(g(t)),n=[];return F(e,(function(t){l(K,t)||l(N,t)||n.push(t)})),n},lt=function(t){var e=t===H,n=B(e?Q:g(t)),r=[];return F(n,(function(t){!l(K,t)||e&&!l(H,t)||r.push(K[t])})),r};u||(A((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=j(t),n=function t(n){this===H&&t.call(Q,n),l(this,z)&&l(this[z],e)&&(this[z][e]=!1),rt(this,e,y(1,n))};return s&&nt&&rt(H,e,{configurable:!0,set:n}),ot(e,t)}).prototype,"toString",(function(){return q(this).tag})),A(W,"withoutSetter",(function(t){return ot(j(t),t)})),S.f=ut,E.f=at,T.f=ct,w.f=k.f=ft,x.f=lt,R.f=function(t){return ot(C(t),t)},s&&(Y(W.prototype,"description",{configurable:!0,get:function(){return q(this).description}}),a||A(H,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),F(_(tt),(function(t){I(t)})),r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=String(t);if(l(J,e))return J[e];var n=W(e);return J[e]=n,$[n]=e,n},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(l($,t))return $[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(t,e){return void 0===e?b(t):st(b(t),e)},defineProperty:at,defineProperties:st,getOwnPropertyDescriptor:ct}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ft,getOwnPropertySymbols:lt}),r({target:"Object",stat:!0,forced:f((function(){x.f(1)}))},{getOwnPropertySymbols:function(t){return x.f(v(t))}}),U&&r({target:"JSON",stat:!0,forced:!u||f((function(){var t=W();return"[null]"!=U([t])||"{}"!=U({a:t})||"{}"!=U(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(p(e)||void 0!==t)&&!it(t))return h(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!it(e))return e}),o[1]=e,U.apply(null,o)}}),W.prototype[Z]||O(W.prototype,Z,W.prototype.valueOf),D(W,"Symbol"),N[z]=!0},SdaC:function(t,e,n){var r=n("wA6s"),o=Math.ceil,i=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?i:o)(t)}})},"T/Kj":function(t,e,n){var r=n("Ew/G");t.exports=r("navigator","userAgent")||""},T4tC:function(t,e,n){var r=n("T69T"),o=n("ocAm"),i=n("MkZA"),a=n("K6ZX"),s=n("/Ybd").f,u=n("KkqW").f,c=n("1p6F"),f=n("x0kV"),l=n("JkSk"),h=n("2MGJ"),p=n("rG8t"),d=n("XH/I").set,v=n("JHhb"),g=n("m41k")("match"),m=o.RegExp,y=m.prototype,b=/a/g,_=/a/g,w=new m(b)!==b,k=l.UNSUPPORTED_Y;if(r&&i("RegExp",!w||k||p((function(){return _[g]=!1,m(b)!=b||m(_)==_||"/a/i"!=m(b,"i")})))){for(var x=function t(e,n){var r,o=this instanceof t,i=c(e),s=void 0===n;if(!o&&i&&e.constructor===t&&s)return e;w?i&&!s&&(e=e.source):e instanceof t&&(s&&(n=f.call(e)),e=e.source),k&&(r=!!n&&n.indexOf("y")>-1)&&(n=n.replace(/y/g,""));var u=a(w?new m(e,n):m(e,n),o?this:y,t);return k&&r&&d(u,{sticky:r}),u},T=function(t){t in x||s(x,t,{configurable:!0,get:function(){return m[t]},set:function(e){m[t]=e}})},E=u(m),S=0;E.length>S;)T(E[S++]);y.constructor=x,x.prototype=y,h(o,"RegExp",x)}v("RegExp")},T69T:function(t,e,n){var r=n("rG8t");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},TzEA:function(t,e,n){var r=n("EMtK"),o=n("KkqW").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(e){return a.slice()}}(t):o(r(t))}},"U+kB":function(t,e,n){var r=n("rG8t");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"V+F/":function(t,e,n){n("94Vg")("isConcatSpreadable")},VCQ8:function(t,e,n){var r=n("hmpk");t.exports=function(t){return Object(r(t))}},Vi1R:function(t,e,n){n("94Vg")("split")},ViWx:function(t,e,n){"use strict";var r=n("wdMf"),o=n("nIH4");t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},VmbE:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("strike")},{strike:function(){return o(this,"strike","","")}})},W0ke:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("fontsize")},{fontsize:function(t){return o(this,"font","size",t)}})},WEX0:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("link")},{link:function(t){return o(this,"a","href",t)}})},WEpO:function(t,e,n){var r=n("wA6s"),o=Math.log,i=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(t){return o(t)*i}})},WKvG:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("fontcolor")},{fontcolor:function(t){return o(this,"font","color",t)}})},WLa2:function(t,e,n){var r=n("wA6s"),o=n("6XUM"),i=n("M7Xk").onFreeze,a=n("cZY6"),s=n("rG8t"),u=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!a},{preventExtensions:function(t){return u&&o(t)?u(i(t)):t}})},WijE:function(t,e,n){"use strict";var r=n("wA6s"),o=n("ZJLg"),i=n("wIVT"),a=n("7/lX"),s=n("shqn"),u=n("aJMj"),c=n("2MGJ"),f=n("m41k"),l=n("g9hI"),h=n("pz+c"),p=n("G1Vw"),d=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,g=f("iterator"),m=function(){return this};t.exports=function(t,e,n,f,p,y,b){o(n,e,f);var _,w,k,x=function(t){if(t===p&&A)return A;if(!v&&t in S)return S[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},T=e+" Iterator",E=!1,S=t.prototype,O=S[g]||S["@@iterator"]||p&&S[p],A=!v&&O||x(p),M="Array"==e&&S.entries||O;if(M&&(_=i(M.call(new t)),d!==Object.prototype&&_.next&&(l||i(_)===d||(a?a(_,d):"function"!=typeof _[g]&&u(_,g,m)),s(_,T,!0,!0),l&&(h[T]=m))),"values"==p&&O&&"values"!==O.name&&(E=!0,A=function(){return O.call(this)}),l&&!b||S[g]===A||u(S,g,A),h[e]=A,p)if(w={values:x("values"),keys:y?A:x("keys"),entries:x("entries")},b)for(k in w)!v&&!E&&k in S||c(S,k,w[k]);else r({target:e,proto:!0,forced:v||E},w);return w}},WnNu:function(t,e,n){n("wA6s")({target:"Object",stat:!0},{setPrototypeOf:n("7/lX")})},XEin:function(t,e,n){"use strict";var r=n("wA6s"),o=n("kk6e").some,i=n("6CJb"),a=n("w2hq"),s=i("some"),u=a("some");r({target:"Array",proto:!0,forced:!s||!u},{some:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"XH/I":function(t,e,n){var r,o,i,a=n("yaK9"),s=n("ocAm"),u=n("6XUM"),c=n("aJMj"),f=n("OG5q"),l=n("/AsP"),h=n("yQMY");if(a){var p=new(0,s.WeakMap),d=p.get,v=p.has,g=p.set;r=function(t,e){return g.call(p,t,e),e},o=function(t){return d.call(p,t)||{}},i=function(t){return v.call(p,t)}}else{var m=l("state");h[m]=!0,r=function(t,e){return c(t,m,e),e},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},XdSI:function(t,e,n){var r=n("T69T"),o=n("rG8t"),i=n("qx7X");t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},Xm88:function(t,e,n){var r=n("wA6s"),o=n("rCRE");r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},Y5OV:function(t,e,n){var r=n("aJMj"),o=n("CW9j"),i=n("m41k")("toPrimitive"),a=Date.prototype;i in a||r(a,i,o)},YOJ4:function(t,e,n){n("94Vg")("matchAll")},Yg8j:function(t,e,n){var r=n("ocAm").isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},Yu3F:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("bold")},{bold:function(){return o(this,"b","","")}})},ZBUp:function(t,e,n){n("wA6s")({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},ZJLg:function(t,e,n){"use strict";var r=n("G1Vw").IteratorPrototype,o=n("2RDa"),i=n("uSMZ"),a=n("shqn"),s=n("pz+c"),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),a(t,c,!1,!0),s[c]=u,t}},ZQqA:function(t,e,n){n("94Vg")("toStringTag")},ZRqE:function(t,e,n){var r=n("vVmn"),o=n("aAjO");t.exports=Object.keys||function(t){return r(t,o)}},aAjO:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},aGCb:function(t,e,n){var r=n("m41k");e.f=r},aJMj:function(t,e,n){var r=n("T69T"),o=n("/Ybd"),i=n("uSMZ");t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},aTTg:function(t,e,n){var r=n("wA6s"),o=n("pn4C"),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=o(t=+t),n=o(-t);return e==1/0?1:n==1/0?-1:(e-n)/(i(t)+i(-t))}})},ane6:function(t,e,n){"use strict";var r=n("wA6s"),o=n("rG8t"),i=n("hH+7"),a=1..toPrecision;r({target:"Number",proto:!0,forced:o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))},{toPrecision:function(t){return void 0===t?a.call(i(this)):a.call(i(this),t)}})},azxr:function(t,e,n){"use strict";var r=n("4PyY"),o=n("mN5b");t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},bHwr:function(t,e,n){"use strict";var r,o,i,a,s=n("wA6s"),u=n("g9hI"),c=n("ocAm"),f=n("Ew/G"),l=n("K1dl"),h=n("2MGJ"),p=n("8aNu"),d=n("shqn"),v=n("JHhb"),g=n("6XUM"),m=n("Neub"),y=n("SM6+"),b=n("ezU2"),_=n("6urC"),w=n("Rn6E"),k=n("EIBq"),x=n("p82S"),T=n("Ox9q").set,E=n("3xQm"),S=n("7aOP"),O=n("ktmr"),A=n("oB0/"),M=n("pd8B"),P=n("XH/I"),N=n("MkZA"),j=n("m41k"),C=n("D3bo"),R=j("species"),I="Promise",D=P.get,L=P.set,F=P.getterFor(I),z=l,Z=c.TypeError,G=c.document,q=c.process,H=f("fetch"),W=A.f,U=W,X="process"==b(q),Y=!!(G&&G.createEvent&&c.dispatchEvent),B=N(I,(function(){if(_(z)===String(z)){if(66===C)return!0;if(!X&&"function"!=typeof PromiseRejectionEvent)return!0}if(u&&!z.prototype.finally)return!0;if(C>=51&&/native code/.test(z))return!1;var t=z.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[R]=e,!(t.then((function(){}))instanceof e)})),V=B||!k((function(t){z.all(t).catch((function(){}))})),K=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},Q=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;E((function(){for(var o=e.value,i=1==e.state,a=0;r.length>a;){var s,u,c,f=r[a++],l=i?f.ok:f.fail,h=f.resolve,p=f.reject,d=f.domain;try{l?(i||(2===e.rejection&&et(t,e),e.rejection=1),!0===l?s=o:(d&&d.enter(),s=l(o),d&&(d.exit(),c=!0)),s===f.promise?p(Z("Promise-chain cycle")):(u=K(s))?u.call(s,h,p):h(s)):p(o)}catch(v){d&&!c&&d.exit(),p(v)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&$(t,e)}))}},J=function(t,e,n){var r,o;Y?((r=G.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},(o=c["on"+t])?o(r):"unhandledrejection"===t&&O("Unhandled promise rejection",n)},$=function(t,e){T.call(c,(function(){var n,r=e.value;if(tt(e)&&(n=M((function(){X?q.emit("unhandledRejection",r,t):J("unhandledrejection",t,r)})),e.rejection=X||tt(e)?2:1,n.error))throw n.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){T.call(c,(function(){X?q.emit("rejectionHandled",t):J("rejectionhandled",t,e.value)}))},nt=function(t,e,n,r){return function(o){t(e,n,o,r)}},rt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,Q(t,e,!0))},ot=function t(e,n,r,o){if(!n.done){n.done=!0,o&&(n=o);try{if(e===r)throw Z("Promise can't be resolved itself");var i=K(r);i?E((function(){var o={done:!1};try{i.call(r,nt(t,e,o,n),nt(rt,e,o,n))}catch(a){rt(e,o,a,n)}})):(n.value=r,n.state=1,Q(e,n,!1))}catch(a){rt(e,{done:!1},a,n)}}};B&&(z=function(t){y(this,z,I),m(t),r.call(this);var e=D(this);try{t(nt(ot,this,e),nt(rt,this,e))}catch(n){rt(this,e,n)}},(r=function(t){L(this,{type:I,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(z.prototype,{then:function(t,e){var n=F(this),r=W(x(this,z));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=X?q.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Q(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=D(t);this.promise=t,this.resolve=nt(ot,t,e),this.reject=nt(rt,t,e)},A.f=W=function(t){return t===z||t===i?new o(t):U(t)},u||"function"!=typeof l||(a=l.prototype.then,h(l.prototype,"then",(function(t,e){var n=this;return new z((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof H&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return S(z,H.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:B},{Promise:z}),d(z,I,!1,!0),v(I),i=f(I),s({target:I,stat:!0,forced:B},{reject:function(t){var e=W(this);return e.reject.call(void 0,t),e.promise}}),s({target:I,stat:!0,forced:u||B},{resolve:function(t){return S(u&&this===i?z:this,t)}}),s({target:I,stat:!0,forced:V},{all:function(t){var e=this,n=W(e),r=n.resolve,o=n.reject,i=M((function(){var n=m(e.resolve),i=[],a=0,s=1;w(t,(function(t){var u=a++,c=!1;i.push(void 0),s++,n.call(e,t).then((function(t){c||(c=!0,i[u]=t,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=W(e),r=n.reject,o=M((function(){var o=m(e.resolve);w(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},busr:function(t,e){e.f=Object.getOwnPropertySymbols},"c/8x":function(t,e,n){n("94Vg")("asyncIterator")},cJLW:function(t,e,n){var r=n("wA6s"),o=n("T69T");r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n("/Ybd").f})},cZY6:function(t,e,n){var r=n("rG8t");t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},cwa4:function(t,e,n){var r=n("rG8t");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},d8Sw:function(t,e,n){var r=n("rG8t");t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},dI74:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("sup")},{sup:function(){return o(this,"sup","","")}})},dPn5:function(t,e,n){"use strict";var r=n("G7bs").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},erNl:function(t,e,n){var r=n("ezU2");t.exports=Array.isArray||function(t){return"Array"==r(t)}},ezU2:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},fMvl:function(t,e,n){"use strict";var r=n("HSQg"),o=n("F26l"),i=n("hmpk"),a=n("EQZg"),s=n("unYP");r("search",1,(function(t,e,n){return[function(e){var n=i(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var i=o(t),u=String(this),c=i.lastIndex;a(c,0)||(i.lastIndex=0);var f=s(i,u);return a(i.lastIndex,c)||(i.lastIndex=c),null===f?-1:f.index}]}))},g69M:function(t,e,n){var r=n("wA6s"),o=n("rG8t"),i=n("TzEA").f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},g9hI:function(t,e){t.exports=!1},gXAK:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("big")},{big:function(){return o(this,"big","","")}})},gke3:function(t,e,n){"use strict";var r=n("wA6s"),o=n("kk6e").filter,i=n("lRyB"),a=n("w2hq"),s=i("filter"),u=a("filter");r({target:"Array",proto:!0,forced:!s||!u},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},gn9T:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},"hH+7":function(t,e,n){var r=n("ezU2");t.exports=function(t){if("number"!=typeof t&&"Number"!=r(t))throw TypeError("Incorrect invocation");return+t}},"hN/g":function(t,e,n){"use strict";n.r(e),n("N/DB"),n("6dTf"),n("pDpN")},hdsk:function(t,e,n){"use strict";var r,o=n("ocAm"),i=n("8aNu"),a=n("M7Xk"),s=n("wdMf"),u=n("DAme"),c=n("6XUM"),f=n("XH/I").enforce,l=n("yaK9"),h=!o.ActiveXObject&&"ActiveXObject"in o,p=Object.isExtensible,d=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},v=t.exports=s("WeakMap",d,u);if(l&&h){r=u.getConstructor(d,"WeakMap",!0),a.REQUIRED=!0;var g=v.prototype,m=g.delete,y=g.has,b=g.get,_=g.set;i(g,{delete:function(t){if(c(t)&&!p(t)){var e=f(this);return e.frozen||(e.frozen=new r),m.call(this,t)||e.frozen.delete(t)}return m.call(this,t)},has:function(t){if(c(t)&&!p(t)){var e=f(this);return e.frozen||(e.frozen=new r),y.call(this,t)||e.frozen.has(t)}return y.call(this,t)},get:function(t){if(c(t)&&!p(t)){var e=f(this);return e.frozen||(e.frozen=new r),y.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(c(t)&&!p(t)){var n=f(this);n.frozen||(n.frozen=new r),y.call(this,t)?_.call(this,t,e):n.frozen.set(t,e)}else _.call(this,t,e);return this}})}},hmpk:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},i85Z:function(t,e,n){var r=n("U+kB");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},ipMl:function(t,e,n){var r=n("F26l");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(a){var i=t.return;throw void 0!==i&&r(i.call(t)),a}}},jnLS:function(t,e,n){var r=n("hmpk"),o="["+n("xFZC")+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),s=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(i,"")),2&t&&(n=n.replace(a,"")),n}};t.exports={start:s(1),end:s(2),trim:s(3)}},kIOX:function(t,e,n){var r=n("ocAm"),o=n("OjQg"),i=n("nP0K"),a=n("aJMj");for(var s in o){var u=r[s],c=u&&u.prototype;if(c&&c.forEach!==i)try{a(c,"forEach",i)}catch(f){c.forEach=i}}},kP9Y:function(t,e,n){var r=n("wA6s"),o=n("4GtL"),i=n("A1Hp");r({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},kcGo:function(t,e,n){var r=n("wA6s"),o=n("qc/G");r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==o},{toISOString:o})},kk6e:function(t,e,n){var r=n("tcQx"),o=n("tUdv"),i=n("VCQ8"),a=n("xpLY"),s=n("JafA"),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,f=4==t,l=6==t,h=5==t||l;return function(p,d,v,g){for(var m,y,b=i(p),_=o(b),w=r(d,v,3),k=a(_.length),x=0,T=g||s,E=e?T(p,k):n?T(p,0):void 0;k>x;x++)if((h||x in _)&&(y=w(m=_[x],x,b),t))if(e)E[x]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:u.call(E,m)}else if(f)return!1;return l?-1:c||f?f:E}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},kpca:function(t,e,n){var r=n("wA6s"),o=n("Nvxz"),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return o(t)&&i(t)<=9007199254740991}})},ktmr:function(t,e,n){var r=n("ocAm");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},lPAZ:function(t,e,n){n("8ydS"),n("DGHb"),n("kcGo"),n("n43T"),n("Y5OV");var r=n("E7aN");t.exports=r.Date},lRyB:function(t,e,n){var r=n("rG8t"),o=n("m41k"),i=n("D3bo"),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},m2tE:function(t,e,n){var r=n("wA6s"),o=n("IBH3");r({target:"Array",stat:!0,forced:!n("EIBq")((function(t){Array.from(t)}))},{from:o})},m41k:function(t,e,n){var r=n("ocAm"),o=n("yIiL"),i=n("OG5q"),a=n("SDMg"),s=n("U+kB"),u=n("i85Z"),c=o("wks"),f=r.Symbol,l=u?f:f&&f.withoutSetter||a;t.exports=function(t){return i(c,t)||(c[t]=s&&i(f,t)?f[t]:l("Symbol."+t)),c[t]}},mA9f:function(t,e,n){n("wA6s")({target:"Function",proto:!0},{bind:n("E8Ab")})},mN5b:function(t,e,n){var r=n("4PyY"),o=n("ezU2"),i=n("m41k")("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},mRIq:function(t,e,n){"use strict";n.r(e),n("LRWt"),n("mA9f"),n("MjoC"),n("3vMK"),n("RCvO"),n("cJLW"),n("EntM"),n("znfk"),n("A7hN"),n("wqfI"),n("g69M"),n("IzYO"),n("+5Eg"),n("WLa2"),n("KMug"),n("QVG+"),n("wVAr"),n("nuqZ"),n("u5Nv"),n("WnNu"),n("NX+v"),n("F4rZ"),n("wZP2"),n("m2tE"),n("BcWx"),n("ntzx"),n("6q6p"),n("sQrk"),n("6fhQ"),n("v5if"),n("FU1i"),n("gke3"),n("XEin"),n("FeI/"),n("Q4jj"),n("IQbc"),n("6lQQ"),n("Xm88"),n("kP9Y"),n("DscF"),n("6CEi"),n("Jt/z"),n("rH3X"),n("r8F+"),n("IPby"),n("s1IR"),n("tkWj"),n("tNyX"),n("vipS"),n("L4l2"),n("BaTD"),n("oatR"),n("QUoj"),n("gXAK"),n("4axp"),n("Yu3F"),n("J4zY"),n("WKvG"),n("W0ke"),n("zTQA"),n("WEX0"),n("qpIG"),n("VmbE"),n("4Kt7"),n("dI74"),n("K1Z7"),n("S3Yw"),n("fMvl"),n("PmIt"),n("PbJR"),n("Ay+M"),n("qaQR"),n("tXU5"),n("lPAZ"),n("T4tC"),n("Rj+b"),n("pWza"),n("vRoz"),n("hdsk"),n("ViWx"),n("kIOX"),n("riHj"),n("bHwr"),n("8CeQ"),n("pnjC")},"n/2t":function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},n1Kw:function(t,e,n){var r=n("wA6s"),o=n("rG8t"),i=n("pn4C"),a=Math.abs,s=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){return a(t=+t)<1?(i(t)-i(-t))/2:(s(t-1)-s(-t-1))*(u/2)}})},n43T:function(t,e,n){var r=n("2MGJ"),o=Date.prototype,i=o.toString,a=o.getTime;new Date(NaN)+""!="Invalid Date"&&r(o,"toString",(function(){var t=a.call(this);return t==t?i.call(this):"Invalid Date"}))},nIH4:function(t,e,n){"use strict";var r=n("/Ybd").f,o=n("2RDa"),i=n("8aNu"),a=n("tcQx"),s=n("SM6+"),u=n("Rn6E"),c=n("WijE"),f=n("JHhb"),l=n("T69T"),h=n("M7Xk").fastKey,p=n("XH/I"),d=p.set,v=p.getterFor;t.exports={getConstructor:function(t,e,n,c){var f=t((function(t,r){s(t,f,e),d(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&u(r,t[c],t,n)})),p=v(e),g=function(t,e,n){var r,o,i=p(t),a=m(t,e);return a?a.value=n:(i.last=a={index:o=h(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),l?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},m=function(t,e){var n,r=p(t),o=h(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(f.prototype,{clear:function(){for(var t=p(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=p(this),n=m(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),l?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=p(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!m(this,t)}}),i(f.prototype,n?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),l&&r(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=v(e),i=v(r);c(t,e,(function(t,e){d(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(e)}}},nP0K:function(t,e,n){"use strict";var r=n("kk6e").forEach,o=n("6CJb"),i=n("w2hq"),a=o("forEach"),s=i("forEach");t.exports=a&&s?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},ntzx:function(t,e,n){"use strict";var r=n("wA6s"),o=n("tUdv"),i=n("EMtK"),a=n("6CJb"),s=[].join,u=o!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(t){return s.call(i(this),void 0===t?",":t)}})},nuqZ:function(t,e,n){var r=n("wA6s"),o=n("KlhL");r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},"oB0/":function(t,e,n){"use strict";var r=n("Neub"),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},oatR:function(t,e,n){"use strict";var r,o=n("wA6s"),i=n("7gGY").f,a=n("xpLY"),s=n("s8qp"),u=n("hmpk"),c=n("0Ds2"),f=n("g9hI"),l="".startsWith,h=Math.min,p=c("startsWith");o({target:"String",proto:!0,forced:!(!f&&!p&&(r=i(String.prototype,"startsWith"),r&&!r.writable)||p)},{startsWith:function(t){var e=String(u(this));s(t);var n=a(h(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return l?l.call(e,r,n):e.slice(n,n+r.length)===r}})},ocAm:function(t,e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},ow8b:function(t,e,n){n("wA6s")({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},p82S:function(t,e,n){var r=n("F26l"),o=n("Neub"),i=n("m41k")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},pDpN:function(t,e,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";!function(t){var e=t.performance;function n(t){e&&e.mark&&e.mark(t)}function r(t,n){e&&e.measure&&e.measure(t,n)}n("Zone");var o=t.__Zone_symbol_prefix||"__zone_symbol__";function i(t){return o+t}var a=!0===t[i("forceDuplicateZoneCheck")];if(t.Zone){if(a||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}var s=function(){function e(t,n){_classCallCheck(this,e),this._parent=t,this._name=n?n.name||"unnamed":"",this._properties=n&&n.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,n)}return _createClass(e,[{key:"get",value:function(t){var e=this.getZoneWith(t);if(e)return e._properties[t]}},{key:"getZoneWith",value:function(t){for(var e=this;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null}},{key:"fork",value:function(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}},{key:"wrap",value:function(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);var n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}}},{key:"run",value:function(t,e,n,r){N={parent:N,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{N=N.parent}}},{key:"runGuarded",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;N={parent:N,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{N=N.parent}}},{key:"runTask",value:function(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||b).name+"; Execution: "+this.name+")");if(t.state!==_||t.type!==A&&t.type!==O){var r=t.state!=x;r&&t._transitionTo(x,k),t.runCount++;var o=j;j=t,N={parent:N,zone:this};try{t.type==O&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{t.state!==_&&t.state!==E&&(t.type==A||t.data&&t.data.isPeriodic?r&&t._transitionTo(k,x):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(_,x,_))),N=N.parent,j=o}}}},{key:"scheduleTask",value:function(t){if(t.zone&&t.zone!==this)for(var e=this;e;){if(e===t.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(t.zone.name));e=e.parent}t._transitionTo(w,_);var n=[];t._zoneDelegates=n,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(r){throw t._transitionTo(E,w,_),this._zoneDelegate.handleError(this,r),r}return t._zoneDelegates===n&&this._updateTaskCount(t,1),t.state==w&&t._transitionTo(k,w),t}},{key:"scheduleMicroTask",value:function(t,e,n,r){return this.scheduleTask(new l(S,t,e,n,r,void 0))}},{key:"scheduleMacroTask",value:function(t,e,n,r,o){return this.scheduleTask(new l(O,t,e,n,r,o))}},{key:"scheduleEventTask",value:function(t,e,n,r,o){return this.scheduleTask(new l(A,t,e,n,r,o))}},{key:"cancelTask",value:function(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||b).name+"; Execution: "+this.name+")");t._transitionTo(T,k,x);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(E,T),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(_,T),t.runCount=0,t}},{key:"_updateTaskCount",value:function(t,e){var n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(var r=0;r0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t})}}]),t}(),l=function(){function e(n,r,o,i,a,s){if(_classCallCheck(this,e),this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=s,!o)throw new Error("callback is not defined");this.callback=o;var u=this;this.invoke=n===A&&i&&i.useG?e.invokeTask:function(){return e.invokeTask.call(t,u,this,arguments)}}return _createClass(e,[{key:"cancelScheduleRequest",value:function(){this._transitionTo(_,w)}},{key:"_transitionTo",value:function(t,e,n){if(this._state!==e&&this._state!==n)throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(t,"', expecting state '").concat(e,"'").concat(n?" or '"+n+"'":"",", was '").concat(this._state,"'."));this._state=t,t==_&&(this._zoneDelegates=null)}},{key:"toString",value:function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}},{key:"toJSON",value:function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}},{key:"zone",get:function(){return this._zone}},{key:"state",get:function(){return this._state}}],[{key:"invokeTask",value:function(t,e,n){t||(t=this),C++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==C&&y(),C--}}}]),e}(),h=i("setTimeout"),p=i("Promise"),d=i("then"),v=[],g=!1;function m(e){if(0===C&&0===v.length)if(u||t[p]&&(u=t[p].resolve(0)),u){var n=u[d];n||(n=u.then),n.call(u,y)}else t[h](y,0);e&&v.push(e)}function y(){if(!g){for(g=!0;v.length;){var t=v;v=[];for(var e=0;e=0;n--)"function"==typeof t[n]&&(t[n]=u(t[n],e+"_"+n));return t}function g(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}var m="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,y=!("nw"in p)&&void 0!==p.process&&"[object process]"==={}.toString.call(p.process),b=!y&&!m&&!(!l||!h.HTMLElement),_=void 0!==p.process&&"[object process]"==={}.toString.call(p.process)&&!m&&!(!l||!h.HTMLElement),w={},k=function(t){if(t=t||p.event){var e=w[t.type];e||(e=w[t.type]=f("ON_PROPERTY"+t.type));var n,r=this||t.target||p,o=r[e];if(b&&r===h&&"error"===t.type){var i=t;!0===(n=o&&o.call(this,i.message,i.filename,i.lineno,i.colno,i.error))&&t.preventDefault()}else null==(n=o&&o.apply(this,arguments))||n||t.preventDefault();return n}};function x(n,r,o){var i=t(n,r);if(!i&&o&&t(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){var a=f("on"+r+"patched");if(!n.hasOwnProperty(a)||!n[a]){delete i.writable,delete i.value;var s=i.get,u=i.set,c=r.substr(2),l=w[c];l||(l=w[c]=f("ON_PROPERTY"+c)),i.set=function(t){var e=this;e||n!==p||(e=p),e&&(e[l]&&e.removeEventListener(c,k),u&&u.apply(e,d),"function"==typeof t?(e[l]=t,e.addEventListener(c,k,!1)):e[l]=null)},i.get=function(){var t=this;if(t||n!==p||(t=p),!t)return null;var e=t[l];if(e)return e;if(s){var o=s&&s.call(this);if(o)return i.set.call(this,o),"function"==typeof t.removeAttribute&&t.removeAttribute(r),o}return null},e(n,r,i),n[a]=!0}}}function T(t,e,n){if(e)for(var r=0;r=0&&"function"==typeof r[i.cbIdx]?c(i.name,r[i.cbIdx],i,o):t.apply(e,r)}}))}function M(t,e){t[f("OriginalDelegate")]=e}var P=!1,N=!1;function j(){try{var t=h.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch(e){}return!1}function C(){if(P)return N;P=!0;try{var t=h.navigator.userAgent;-1===t.indexOf("MSIE ")&&-1===t.indexOf("Trident/")&&-1===t.indexOf("Edge/")||(N=!0)}catch(e){}return N}Zone.__load_patch("toString",(function(t){var e=Function.prototype.toString,n=f("OriginalDelegate"),r=f("Promise"),o=f("Error"),i=function(){if("function"==typeof this){var i=this[n];if(i)return"function"==typeof i?e.call(i):Object.prototype.toString.call(i);if(this===Promise){var a=t[r];if(a)return e.call(a)}if(this===Error){var s=t[o];if(s)return e.call(s)}}return e.call(this)};i[n]=e,Function.prototype.toString=i;var a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}}));var R=!1;if("undefined"!=typeof window)try{var I=Object.defineProperty({},"passive",{get:function(){R=!0}});window.addEventListener("test",I,I),window.removeEventListener("test",I,I)}catch(st){R=!1}var D={useG:!0},L={},F={},z=new RegExp("^"+s+"(\\w+)(true|false)$"),Z=f("propagationStopped");function G(t,e,r){var o=r&&r.add||"addEventListener",i=r&&r.rm||"removeEventListener",a=r&&r.listeners||"eventListeners",u=r&&r.rmAll||"removeAllListeners",c=f(o),l="."+o+":",h=function(t,e,n){if(!t.isRemoved){var r=t.callback;"object"==typeof r&&r.handleEvent&&(t.callback=function(t){return r.handleEvent(t)},t.originalDelegate=r),t.invoke(t,e,[n]);var o=t.options;o&&"object"==typeof o&&o.once&&e[i].call(e,n.type,t.originalDelegate?t.originalDelegate:t.callback,o)}},p=function(e){if(e=e||t.event){var n=this||e.target||t,r=n[L[e.type].false];if(r)if(1===r.length)h(r[0],n,e);else for(var o=r.slice(),i=0;i4&&void 0!==arguments[4]&&arguments[4],u=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(){var c=this||t,f=arguments[0];r&&r.transferEventName&&(f=r.transferEventName(f));var l=arguments[1];if(!l)return e.apply(this,arguments);if(y&&"uncaughtException"===f)return e.apply(this,arguments);var p=!1;if("function"!=typeof l){if(!l.handleEvent)return e.apply(this,arguments);p=!0}if(!v||v(e,l,c,arguments)){var d=arguments[2];if(j)for(var m=0;m0){var o=t.invoke;t.invoke=function(){for(var n=u[e.__symbol__("loadfalse")],i=0;i22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:r(t)-1}:n},pnjC:function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n,r){var o=Object.create((e&&e.prototype instanceof f?e:f).prototype),i=new k(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var f=u(t,e,n);if("normal"===f.type){if(r=n.done?"completed":"suspendedYield",f.arg===c)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(r="completed",n.method="throw",n.arg=f.arg)}}}(t,n,i),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=s;var c={};function f(){}function l(){}function h(){}var p={};p[o]=function(){return this};var d=Object.getPrototypeOf,v=d&&d(d(x([])));v&&v!==e&&n.call(v,o)&&(p=v);var g=h.prototype=f.prototype=Object.create(p);function m(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function y(t){var e;this._invoke=function(r,o){function i(){return new Promise((function(e,i){!function e(r,o,i,a){var s=u(t[r],t,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(f).then((function(t){c.value=t,i(c)}),(function(t){return e("throw",t,i,a)}))}a(s.arg)}(r,o,e,i)}))}return e=e?e.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,c;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;w(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=r}catch(o){Function("r","regeneratorRuntime = r")(r)}},"pz+c":function(t,e){t.exports={}},qaQR:function(t,e,n){n("D+RQ"),n("ZBUp"),n("s5r0"),n("COcp"),n("+IJR"),n("kpca"),n("yI8t"),n("ow8b"),n("5eAq"),n("5zDw"),n("8xKV"),n("ane6");var r=n("E7aN");t.exports=r.Number},"qc/G":function(t,e,n){"use strict";var r=n("rG8t"),o=n("QcXc").start,i=Math.abs,a=Date.prototype,s=a.getTime,u=a.toISOString;t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=u.call(new Date(-5e13-1))}))||!r((function(){u.call(new Date(NaN))}))?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+o(i(t),n?6:4,0)+"-"+o(this.getUTCMonth()+1,2,0)+"-"+o(this.getUTCDate(),2,0)+"T"+o(this.getUTCHours(),2,0)+":"+o(this.getUTCMinutes(),2,0)+":"+o(this.getUTCSeconds(),2,0)+"."+o(e,3,0)+"Z"}:u},qjkP:function(t,e,n){"use strict";var r,o,i=n("x0kV"),a=n("JkSk"),s=RegExp.prototype.exec,u=String.prototype.replace,c=s,f=(o=/b*/g,s.call(r=/a/,"a"),s.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),l=a.UNSUPPORTED_Y||a.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(f||h||l)&&(c=function(t){var e,n,r,o,a=this,c=l&&a.sticky,p=i.call(a),d=a.source,v=0,g=t;return c&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),g=String(t).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(d="(?: "+d+")",g=" "+g,v++),n=new RegExp("^(?:"+d+")",p)),h&&(n=new RegExp("^"+d+"$(?!\\s)",p)),f&&(e=a.lastIndex),r=s.call(c?n:a,g),c?r?(r.input=r.input.slice(v),r[0]=r[0].slice(v),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:f&&r&&(a.lastIndex=a.global?r.index+r[0].length:e),h&&r&&r.length>1&&u.call(r[0],n,(function(){for(o=1;oa;){if(e=+arguments[a++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?i(e):i(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},rCRE:function(t,e,n){"use strict";var r=n("EMtK"),o=n("vDBE"),i=n("xpLY"),a=n("6CJb"),s=n("w2hq"),u=Math.min,c=[].lastIndexOf,f=!!c&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf"),h=s("indexOf",{ACCESSORS:!0,1:0});t.exports=!f&&l&&h?c:function(t){if(f)return c.apply(this,arguments)||0;var e=r(this),n=i(e.length),a=n-1;for(arguments.length>1&&(a=u(a,o(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}},rG8t:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},rH3X:function(t,e,n){"use strict";var r=n("EMtK"),o=n("A1Hp"),i=n("pz+c"),a=n("XH/I"),s=n("WijE"),u=a.set,c=a.getterFor("Array Iterator");t.exports=s(Array,"Array",(function(t,e){u(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=c(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},riHj:function(t,e,n){var r=n("ocAm"),o=n("OjQg"),i=n("rH3X"),a=n("aJMj"),s=n("m41k"),u=s("iterator"),c=s("toStringTag"),f=i.values;for(var l in o){var h=r[l],p=h&&h.prototype;if(p){if(p[u]!==f)try{a(p,u,f)}catch(v){p[u]=f}if(p[c]||a(p,c,l),o[l])for(var d in i)if(p[d]!==i[d])try{a(p,d,i[d])}catch(v){p[d]=i[d]}}}},rwGd:function(t,e,n){var r=n("rG8t"),o=n("xFZC");t.exports=function(t){return r((function(){return!!o[t]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[t]()||o[t].name!==t}))}},s1IR:function(t,e,n){"use strict";var r=n("wA6s"),o=n("jnLS").trim;r({target:"String",proto:!0,forced:n("rwGd")("trim")},{trim:function(){return o(this)}})},s5r0:function(t,e,n){n("wA6s")({target:"Number",stat:!0},{isFinite:n("Yg8j")})},s8qp:function(t,e,n){var r=n("1p6F");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},sQrk:function(t,e,n){"use strict";var r=n("wA6s"),o=n("7Oj1"),i=n("vDBE"),a=n("xpLY"),s=n("VCQ8"),u=n("JafA"),c=n("DYg9"),f=n("lRyB"),l=n("w2hq"),h=f("splice"),p=l("splice",{ACCESSORS:!0,0:0,1:2}),d=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!h||!p},{splice:function(t,e){var n,r,f,l,h,p,g=s(this),m=a(g.length),y=o(t,m),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=m-y):(n=b-2,r=v(d(i(e),0),m-y)),m+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(f=u(g,r),l=0;lm-r+n;l--)delete g[l-1]}else if(n>r)for(l=m-r;l>y;l--)p=l+n-1,(h=l+r-1)in g?g[p]=g[h]:delete g[p];for(l=0;l=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},tuHh:function(t,e,n){var r=n("T/Kj");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},u5Nv:function(t,e,n){n("wA6s")({target:"Object",stat:!0},{is:n("EQZg")})},uKyN:function(t,e,n){n("94Vg")("species")},uSMZ:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},unYP:function(t,e,n){var r=n("ezU2"),o=n("qjkP");t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},uoca:function(t,e,n){var r=n("hmpk"),o=/"/g;t.exports=function(t,e,n,i){var a=String(r(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(i).replace(o,""")+'"'),s+">"+a+""}},v5if:function(t,e,n){"use strict";var r=n("wA6s"),o=n("nP0K");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},vDBE:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},vRoz:function(t,e,n){"use strict";var r=n("wdMf"),o=n("nIH4");t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},vVmn:function(t,e,n){var r=n("OG5q"),o=n("EMtK"),i=n("OXtp").indexOf,a=n("yQMY");t.exports=function(t,e){var n,s=o(t),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~i(c,n)||c.push(n));return c}},vZCr:function(t,e,n){var r=n("ocAm"),o=n("jnLS").trim,i=n("xFZC"),a=r.parseFloat,s=1/a(i+"-0")!=-1/0;t.exports=s?function(t){var e=o(String(t)),n=a(e);return 0===n&&"-"==e.charAt(0)?-0:n}:a},vipS:function(t,e,n){"use strict";var r,o=n("wA6s"),i=n("7gGY").f,a=n("xpLY"),s=n("s8qp"),u=n("hmpk"),c=n("0Ds2"),f=n("g9hI"),l="".endsWith,h=Math.min,p=c("endsWith");o({target:"String",proto:!0,forced:!(!f&&!p&&(r=i(String.prototype,"endsWith"),r&&!r.writable)||p)},{endsWith:function(t){var e=String(u(this));s(t);var n=arguments.length>1?arguments[1]:void 0,r=a(e.length),o=void 0===n?r:h(a(n),r),i=String(t);return l?l.call(e,i,o):e.slice(o-i.length,o)===i}})},vyNX:function(t,e,n){var r=n("Neub"),o=n("VCQ8"),i=n("tUdv"),a=n("xpLY"),s=function(t){return function(e,n,s,u){r(n);var c=o(e),f=i(c),l=a(c.length),h=t?l-1:0,p=t?-1:1;if(s<2)for(;;){if(h in f){u=f[h],h+=p;break}if(h+=p,t?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;t?h>=0:l>h;h+=p)h in f&&(u=n(u,f[h],h,c));return u}};t.exports={left:s(!1),right:s(!0)}},w2hq:function(t,e,n){var r=n("T69T"),o=n("rG8t"),i=n("OG5q"),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(i(s,t))return s[t];e||(e={});var n=[][t],c=!!i(e,"ACCESSORS")&&e.ACCESSORS,f=i(e,0)?e[0]:u,l=i(e,1)?e[1]:void 0;return s[t]=!!n&&!o((function(){if(c&&!r)return!0;var t={length:-1};c?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,f,l)}))}},w4Hq:function(t,e,n){"use strict";var r=n("VCQ8"),o=n("7Oj1"),i=n("xpLY");t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:o(u,n);c>s;)e[s++]=t;return e}},wA6s:function(t,e,n){var r=n("ocAm"),o=n("7gGY").f,i=n("aJMj"),a=n("2MGJ"),s=n("Fqhe"),u=n("NIlc"),c=n("MkZA");t.exports=function(t,e){var n,f,l,h,p,d=t.target,v=t.global,g=t.stat;if(n=v?r:g?r[d]||s(d,{}):(r[d]||{}).prototype)for(f in e){if(h=e[f],l=t.noTargetGet?(p=o(n,f))&&p.value:n[f],!c(v?f:d+(g?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;u(h,l)}(t.sham||l&&l.sham)&&i(h,"sham",!0),a(n,f,h,t)}}},wIVT:function(t,e,n){var r=n("OG5q"),o=n("VCQ8"),i=n("/AsP"),a=n("cwa4"),s=i("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},wVAr:function(t,e,n){var r=n("wA6s"),o=n("rG8t"),i=n("6XUM"),a=Object.isExtensible;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isExtensible:function(t){return!!i(t)&&(!a||a(t))}})},wZP2:function(t,e,n){n("wA6s")({target:"Array",stat:!0},{isArray:n("erNl")})},wdMf:function(t,e,n){"use strict";var r=n("wA6s"),o=n("ocAm"),i=n("MkZA"),a=n("2MGJ"),s=n("M7Xk"),u=n("Rn6E"),c=n("SM6+"),f=n("6XUM"),l=n("rG8t"),h=n("EIBq"),p=n("shqn"),d=n("K6ZX");t.exports=function(t,e,n){var v=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),m=v?"set":"add",y=o[t],b=y&&y.prototype,_=y,w={},k=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!f(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!f(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(i(t,"function"!=typeof y||!(g||b.forEach&&!l((function(){(new y).entries().next()})))))_=n.getConstructor(e,t,v,m),s.REQUIRED=!0;else if(i(t,!0)){var x=new _,T=x[m](g?{}:-0,1)!=x,E=l((function(){x.has(1)})),S=h((function(t){new y(t)})),O=!g&&l((function(){for(var t=new y,e=5;e--;)t[m](e,e);return!t.has(-0)}));S||((_=e((function(e,n){c(e,_,t);var r=d(new y,e,_);return null!=n&&u(n,r[m],r,v),r}))).prototype=b,b.constructor=_),(E||O)&&(k("delete"),k("has"),v&&k("get")),(O||T)&&k(m),g&&b.clear&&delete b.clear}return w[t]=_,r({global:!0,forced:_!=y},w),p(_,t),g||n.setStrong(_,t,v),_}},wqfI:function(t,e,n){var r=n("wA6s"),o=n("VCQ8"),i=n("ZRqE");r({target:"Object",stat:!0,forced:n("rG8t")((function(){i(1)}))},{keys:function(t){return i(o(t))}})},x0kV:function(t,e,n){"use strict";var r=n("F26l");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},xFZC:function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},xpLY:function(t,e,n){var r=n("vDBE"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},yI8t:function(t,e,n){n("wA6s")({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},yIiL:function(t,e,n){var r=n("g9hI"),o=n("KBkW");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},yQMY:function(t,e){t.exports={}},yaK9:function(t,e,n){var r=n("ocAm"),o=n("6urC"),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},zTQA:function(t,e,n){"use strict";var r=n("wA6s"),o=n("uoca");r({target:"String",proto:!0,forced:n("d8Sw")("italics")},{italics:function(){return o(this,"i","","")}})},znfk:function(t,e,n){var r=n("wA6s"),o=n("rG8t"),i=n("EMtK"),a=n("7gGY").f,s=n("T69T"),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})}},[[1,0]]]); \ No newline at end of file diff --git a/backend/public/runtime-es2015.51eb65ccb364332a182d.js b/backend/public/runtime-es2015.51eb65ccb364332a182d.js new file mode 100644 index 0000000..bb3ca79 --- /dev/null +++ b/backend/public/runtime-es2015.51eb65ccb364332a182d.js @@ -0,0 +1 @@ +!function(e){function r(r){for(var n,a,i=r[0],c=r[1],l=r[2],p=0,s=[];p.mat-calendar-body-selected{background-color:rgba(63,81,181,.4)}.mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#ff4081}.mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(255,64,129,.4)}.mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#f44336}.mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(244,67,54,.4)}.mat-datepicker-toggle-active{color:#3f51b5}.mat-datepicker-toggle-active.mat-accent{color:#ff4081}.mat-datepicker-toggle-active.mat-warn{color:#f44336}.mat-form-field.mat-focused .mat-form-field-label{color:#3f51b5}.mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#ff4081}.mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#f44336}.mat-focused .mat-form-field-required-marker{color:#ff4081}.mat-form-field.mat-focused .mat-form-field-ripple{background-color:#3f51b5}.mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#ff4081}.mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#f44336}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix:after{color:#3f51b5}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix:after{color:#ff4081}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix:after,.mat-form-field.mat-form-field-invalid .mat-form-field-label,.mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent,.mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#f44336}.mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#f44336}.mat-error{color:#f44336}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:#3f51b5}.mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#ff4081}.mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#f44336}.mat-icon.mat-primary{color:#3f51b5}.mat-icon.mat-accent{color:#ff4081}.mat-icon.mat-warn{color:#f44336}.mat-input-element{caret-color:#3f51b5}.mat-accent .mat-input-element{caret-color:#ff4081}.mat-form-field-invalid .mat-input-element,.mat-warn .mat-input-element{caret-color:#f44336}.mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix:after{color:#f44336}.mat-progress-bar-background{fill:#c5cae9}.mat-progress-bar-buffer{background-color:#c5cae9}.mat-progress-bar-fill:after{background-color:#3f51b5}.mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#ff80ab}.mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#ff80ab}.mat-progress-bar.mat-accent .mat-progress-bar-fill:after{background-color:#ff4081}.mat-progress-bar.mat-warn .mat-progress-bar-fill:after{background-color:#f44336}.mat-progress-spinner circle,.mat-spinner circle{stroke:#3f51b5}.mat-progress-spinner.mat-accent circle,.mat-spinner.mat-accent circle{stroke:#ff4081}.mat-progress-spinner.mat-warn circle,.mat-spinner.mat-warn circle{stroke:#f44336}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#3f51b5}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-primary .mat-radio-inner-circle,.mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:#3f51b5}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff4081}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-accent .mat-radio-inner-circle,.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#ff4081}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#f44336}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-warn .mat-radio-inner-circle,.mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#f44336}.mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#3f51b5}.mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#ff4081}.mat-form-field.mat-focused.mat-warn .mat-select-arrow,.mat-form-field .mat-select.mat-select-invalid .mat-select-arrow{color:#f44336}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#ff4081}.mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:rgba(255,64,129,.54)}.mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#ff4081}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:#3f51b5}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:rgba(63,81,181,.54)}.mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element{background-color:#3f51b5}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#f44336}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:rgba(244,67,54,.54)}.mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#f44336}.mat-primary .mat-slider-thumb,.mat-primary .mat-slider-thumb-label,.mat-primary .mat-slider-track-fill{background-color:#3f51b5}.mat-accent .mat-slider-thumb,.mat-accent .mat-slider-thumb-label,.mat-accent .mat-slider-track-fill{background-color:#ff4081}.mat-warn .mat-slider-thumb,.mat-warn .mat-slider-thumb-label,.mat-warn .mat-slider-track-fill{background-color:#f44336}.mat-slider-focus-ring{background-color:rgba(255,64,129,.2)}.mat-step-header .mat-step-icon-selected,.mat-step-header .mat-step-icon-state-done,.mat-step-header .mat-step-icon-state-edit{background-color:#3f51b5}.mat-step-header .mat-step-icon-state-error,.mat-step-header .mat-step-label.mat-step-label-error{color:#f44336}.mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(197,202,233,.3)}.mat-tab-group.mat-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#3f51b5}.mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,128,171,.3)}.mat-tab-group.mat-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#ff4081}.mat-tab-group.mat-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#f44336}.mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(197,202,233,.3)}.mat-tab-group.mat-background-primary .mat-tab-header,.mat-tab-group.mat-background-primary .mat-tab-header-pagination,.mat-tab-group.mat-background-primary .mat-tab-links,.mat-tab-nav-bar.mat-background-primary .mat-tab-header,.mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-primary .mat-tab-links{background-color:#3f51b5}.mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,128,171,.3)}.mat-tab-group.mat-background-accent .mat-tab-header,.mat-tab-group.mat-background-accent .mat-tab-header-pagination,.mat-tab-group.mat-background-accent .mat-tab-links,.mat-tab-nav-bar.mat-background-accent .mat-tab-header,.mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-accent .mat-tab-links{background-color:#ff4081}.mat-tab-group.mat-background-warn .mat-tab-header,.mat-tab-group.mat-background-warn .mat-tab-header-pagination,.mat-tab-group.mat-background-warn .mat-tab-links,.mat-tab-nav-bar.mat-background-warn .mat-tab-header,.mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-warn .mat-tab-links{background-color:#f44336}.mat-toolbar.mat-primary{background:#3f51b5}.mat-toolbar.mat-accent{background:#ff4081}.mat-toolbar.mat-warn{background:#f44336}.mat-simple-snackbar-action{color:#ff4081}body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.mat-ripple-element{background-color:rgba(0,0,0,.1)}.mat-option{color:rgba(0,0,0,.87)}.mat-option.mat-active,.mat-option.mat-selected:not(.mat-option-multiple):not(.mat-option-disabled),.mat-option:focus:not(.mat-option-disabled),.mat-option:hover:not(.mat-option-disabled){background:rgba(0,0,0,.04)}.mat-option.mat-active{color:rgba(0,0,0,.87)}.mat-option.mat-option-disabled{color:rgba(0,0,0,.38)}.mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:#0288d1}.mat-accent .mat-option.mat-selected:not(.mat-option-disabled){color:#1976d2}.mat-warn .mat-option.mat-selected:not(.mat-option-disabled){color:#d32f2f}.mat-optgroup-label{color:rgba(0,0,0,.54)}.mat-optgroup-disabled .mat-optgroup-label{color:rgba(0,0,0,.38)}.mat-pseudo-checkbox{color:rgba(0,0,0,.54)}.mat-pseudo-checkbox:after{color:#fafafa}.mat-pseudo-checkbox-disabled{color:#b0b0b0}.mat-primary .mat-pseudo-checkbox-checked,.mat-primary .mat-pseudo-checkbox-indeterminate{background:#0288d1}.mat-accent .mat-pseudo-checkbox-checked,.mat-accent .mat-pseudo-checkbox-indeterminate,.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-indeterminate{background:#1976d2}.mat-warn .mat-pseudo-checkbox-checked,.mat-warn .mat-pseudo-checkbox-indeterminate{background:#d32f2f}.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background:#b0b0b0}.mat-elevation-z0{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-elevation-z1{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.mat-elevation-z2{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-elevation-z3{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.mat-elevation-z4{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-elevation-z5{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12)}.mat-elevation-z6{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-elevation-z7{box-shadow:0 4px 5px -2px rgba(0,0,0,.2),0 7px 10px 1px rgba(0,0,0,.14),0 2px 16px 1px rgba(0,0,0,.12)}.mat-elevation-z8{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-elevation-z9{box-shadow:0 5px 6px -3px rgba(0,0,0,.2),0 9px 12px 1px rgba(0,0,0,.14),0 3px 16px 2px rgba(0,0,0,.12)}.mat-elevation-z10{box-shadow:0 6px 6px -3px rgba(0,0,0,.2),0 10px 14px 1px rgba(0,0,0,.14),0 4px 18px 3px rgba(0,0,0,.12)}.mat-elevation-z11{box-shadow:0 6px 7px -4px rgba(0,0,0,.2),0 11px 15px 1px rgba(0,0,0,.14),0 4px 20px 3px rgba(0,0,0,.12)}.mat-elevation-z12{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-elevation-z13{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 13px 19px 2px rgba(0,0,0,.14),0 5px 24px 4px rgba(0,0,0,.12)}.mat-elevation-z14{box-shadow:0 7px 9px -4px rgba(0,0,0,.2),0 14px 21px 2px rgba(0,0,0,.14),0 5px 26px 4px rgba(0,0,0,.12)}.mat-elevation-z15{box-shadow:0 8px 9px -5px rgba(0,0,0,.2),0 15px 22px 2px rgba(0,0,0,.14),0 6px 28px 5px rgba(0,0,0,.12)}.mat-elevation-z16{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-elevation-z17{box-shadow:0 8px 11px -5px rgba(0,0,0,.2),0 17px 26px 2px rgba(0,0,0,.14),0 6px 32px 5px rgba(0,0,0,.12)}.mat-elevation-z18{box-shadow:0 9px 11px -5px rgba(0,0,0,.2),0 18px 28px 2px rgba(0,0,0,.14),0 7px 34px 6px rgba(0,0,0,.12)}.mat-elevation-z19{box-shadow:0 9px 12px -6px rgba(0,0,0,.2),0 19px 29px 2px rgba(0,0,0,.14),0 7px 36px 6px rgba(0,0,0,.12)}.mat-elevation-z20{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 20px 31px 3px rgba(0,0,0,.14),0 8px 38px 7px rgba(0,0,0,.12)}.mat-elevation-z21{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 21px 33px 3px rgba(0,0,0,.14),0 8px 40px 7px rgba(0,0,0,.12)}.mat-elevation-z22{box-shadow:0 10px 14px -6px rgba(0,0,0,.2),0 22px 35px 3px rgba(0,0,0,.14),0 8px 42px 7px rgba(0,0,0,.12)}.mat-elevation-z23{box-shadow:0 11px 14px -7px rgba(0,0,0,.2),0 23px 36px 3px rgba(0,0,0,.14),0 9px 44px 8px rgba(0,0,0,.12)}.mat-elevation-z24{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.mat-app-background{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-autocomplete-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover){background:#fff}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover):not(.mat-option-disabled){color:rgba(0,0,0,.87)}.mat-badge-content{color:#fff;background:#0288d1}.cdk-high-contrast-active .mat-badge-content{outline:1px solid;border-radius:0}.mat-badge-accent .mat-badge-content{background:#1976d2;color:#fff}.mat-badge-warn .mat-badge-content{color:#fff;background:#d32f2f}.mat-badge{position:relative}.mat-badge-hidden .mat-badge-content{display:none}.mat-badge-disabled .mat-badge-content{background:#b9b9b9;color:rgba(0,0,0,.38)}.mat-badge-content{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform .2s ease-in-out;transform:scale(.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}.mat-badge-content._mat-animation-noopable,.ng-animate-disabled .mat-badge-content{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:16px;height:16px;line-height:16px}.mat-badge-small.mat-badge-above .mat-badge-content{top:-8px}.mat-badge-small.mat-badge-below .mat-badge-content{bottom:-8px}.mat-badge-small.mat-badge-before .mat-badge-content{left:-16px}[dir=rtl] .mat-badge-small.mat-badge-before .mat-badge-content{left:auto;right:-16px}.mat-badge-small.mat-badge-after .mat-badge-content{right:-16px}[dir=rtl] .mat-badge-small.mat-badge-after .mat-badge-content{right:auto;left:-16px}.mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-8px}.mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-8px}.mat-badge-medium .mat-badge-content{width:22px;height:22px;line-height:22px}.mat-badge-medium.mat-badge-above .mat-badge-content{top:-11px}.mat-badge-medium.mat-badge-below .mat-badge-content{bottom:-11px}.mat-badge-medium.mat-badge-before .mat-badge-content{left:-22px}[dir=rtl] .mat-badge-medium.mat-badge-before .mat-badge-content{left:auto;right:-22px}.mat-badge-medium.mat-badge-after .mat-badge-content{right:-22px}[dir=rtl] .mat-badge-medium.mat-badge-after .mat-badge-content{right:auto;left:-22px}.mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-11px}.mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-11px}.mat-badge-large .mat-badge-content{width:28px;height:28px;line-height:28px}.mat-badge-large.mat-badge-above .mat-badge-content{top:-14px}.mat-badge-large.mat-badge-below .mat-badge-content{bottom:-14px}.mat-badge-large.mat-badge-before .mat-badge-content{left:-28px}[dir=rtl] .mat-badge-large.mat-badge-before .mat-badge-content{left:auto;right:-28px}.mat-badge-large.mat-badge-after .mat-badge-content{right:-28px}[dir=rtl] .mat-badge-large.mat-badge-after .mat-badge-content{right:auto;left:-28px}.mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-14px}.mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-14px}.mat-bottom-sheet-container{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.mat-button,.mat-icon-button,.mat-stroked-button{color:inherit;background:transparent}.mat-button.mat-primary,.mat-icon-button.mat-primary,.mat-stroked-button.mat-primary{color:#0288d1}.mat-button.mat-accent,.mat-icon-button.mat-accent,.mat-stroked-button.mat-accent{color:#1976d2}.mat-button.mat-warn,.mat-icon-button.mat-warn,.mat-stroked-button.mat-warn{color:#d32f2f}.mat-button.mat-accent[disabled],.mat-button.mat-primary[disabled],.mat-button.mat-warn[disabled],.mat-button[disabled][disabled],.mat-icon-button.mat-accent[disabled],.mat-icon-button.mat-primary[disabled],.mat-icon-button.mat-warn[disabled],.mat-icon-button[disabled][disabled],.mat-stroked-button.mat-accent[disabled],.mat-stroked-button.mat-primary[disabled],.mat-stroked-button.mat-warn[disabled],.mat-stroked-button[disabled][disabled]{color:rgba(0,0,0,.26)}.mat-button.mat-primary .mat-button-focus-overlay,.mat-icon-button.mat-primary .mat-button-focus-overlay,.mat-stroked-button.mat-primary .mat-button-focus-overlay{background-color:#0288d1}.mat-button.mat-accent .mat-button-focus-overlay,.mat-icon-button.mat-accent .mat-button-focus-overlay,.mat-stroked-button.mat-accent .mat-button-focus-overlay{background-color:#1976d2}.mat-button.mat-warn .mat-button-focus-overlay,.mat-icon-button.mat-warn .mat-button-focus-overlay,.mat-stroked-button.mat-warn .mat-button-focus-overlay{background-color:#d32f2f}.mat-button[disabled] .mat-button-focus-overlay,.mat-icon-button[disabled] .mat-button-focus-overlay,.mat-stroked-button[disabled] .mat-button-focus-overlay{background-color:transparent}.mat-button .mat-ripple-element,.mat-icon-button .mat-ripple-element,.mat-stroked-button .mat-ripple-element{opacity:.1;background-color:currentColor}.mat-button-focus-overlay{background:#000}.mat-stroked-button:not([disabled]){border-color:rgba(0,0,0,.12)}.mat-fab,.mat-flat-button,.mat-mini-fab,.mat-raised-button{color:rgba(0,0,0,.87);background-color:#fff}.mat-fab.mat-accent,.mat-fab.mat-primary,.mat-fab.mat-warn,.mat-flat-button.mat-accent,.mat-flat-button.mat-primary,.mat-flat-button.mat-warn,.mat-mini-fab.mat-accent,.mat-mini-fab.mat-primary,.mat-mini-fab.mat-warn,.mat-raised-button.mat-accent,.mat-raised-button.mat-primary,.mat-raised-button.mat-warn{color:#fff}.mat-fab.mat-accent[disabled],.mat-fab.mat-primary[disabled],.mat-fab.mat-warn[disabled],.mat-fab[disabled][disabled],.mat-flat-button.mat-accent[disabled],.mat-flat-button.mat-primary[disabled],.mat-flat-button.mat-warn[disabled],.mat-flat-button[disabled][disabled],.mat-mini-fab.mat-accent[disabled],.mat-mini-fab.mat-primary[disabled],.mat-mini-fab.mat-warn[disabled],.mat-mini-fab[disabled][disabled],.mat-raised-button.mat-accent[disabled],.mat-raised-button.mat-primary[disabled],.mat-raised-button.mat-warn[disabled],.mat-raised-button[disabled][disabled]{color:rgba(0,0,0,.26)}.mat-fab.mat-primary,.mat-flat-button.mat-primary,.mat-mini-fab.mat-primary,.mat-raised-button.mat-primary{background-color:#0288d1}.mat-fab.mat-accent,.mat-flat-button.mat-accent,.mat-mini-fab.mat-accent,.mat-raised-button.mat-accent{background-color:#1976d2}.mat-fab.mat-warn,.mat-flat-button.mat-warn,.mat-mini-fab.mat-warn,.mat-raised-button.mat-warn{background-color:#d32f2f}.mat-fab.mat-accent[disabled],.mat-fab.mat-primary[disabled],.mat-fab.mat-warn[disabled],.mat-fab[disabled][disabled],.mat-flat-button.mat-accent[disabled],.mat-flat-button.mat-primary[disabled],.mat-flat-button.mat-warn[disabled],.mat-flat-button[disabled][disabled],.mat-mini-fab.mat-accent[disabled],.mat-mini-fab.mat-primary[disabled],.mat-mini-fab.mat-warn[disabled],.mat-mini-fab[disabled][disabled],.mat-raised-button.mat-accent[disabled],.mat-raised-button.mat-primary[disabled],.mat-raised-button.mat-warn[disabled],.mat-raised-button[disabled][disabled]{background-color:rgba(0,0,0,.12)}.mat-fab.mat-accent .mat-ripple-element,.mat-fab.mat-primary .mat-ripple-element,.mat-fab.mat-warn .mat-ripple-element,.mat-flat-button.mat-accent .mat-ripple-element,.mat-flat-button.mat-primary .mat-ripple-element,.mat-flat-button.mat-warn .mat-ripple-element,.mat-mini-fab.mat-accent .mat-ripple-element,.mat-mini-fab.mat-primary .mat-ripple-element,.mat-mini-fab.mat-warn .mat-ripple-element,.mat-raised-button.mat-accent .mat-ripple-element,.mat-raised-button.mat-primary .mat-ripple-element,.mat-raised-button.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-flat-button:not([class*=mat-elevation-z]),.mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-raised-button:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-raised-button[disabled]:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-fab:not([class*=mat-elevation-z]),.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]),.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab[disabled]:not([class*=mat-elevation-z]),.mat-mini-fab[disabled]:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-button-toggle-group,.mat-button-toggle-standalone{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{box-shadow:none}.mat-button-toggle{color:rgba(0,0,0,.38)}.mat-button-toggle .mat-button-toggle-focus-overlay{background-color:rgba(0,0,0,.12)}.mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87);background:#fff}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:#000}.mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:1px solid rgba(0,0,0,.12)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:none;border-top:1px solid rgba(0,0,0,.12)}.mat-button-toggle-checked{background-color:#e0e0e0;color:rgba(0,0,0,.54)}.mat-button-toggle-checked.mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87)}.mat-button-toggle-disabled{color:rgba(0,0,0,.26);background-color:#eee}.mat-button-toggle-disabled.mat-button-toggle-appearance-standard{background:#fff}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:#bdbdbd}.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{border:1px solid rgba(0,0,0,.12)}.mat-card{background:#fff;color:rgba(0,0,0,.87)}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.mat-card.mat-card-flat:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-card-subtitle{color:rgba(0,0,0,.54)}.mat-checkbox-frame{border-color:rgba(0,0,0,.54)}.mat-checkbox-checkmark{fill:#fafafa}.mat-checkbox-checkmark-path{stroke:#fafafa!important}.mat-checkbox-mixedmark{background-color:#fafafa}.mat-checkbox-checked.mat-primary .mat-checkbox-background,.mat-checkbox-indeterminate.mat-primary .mat-checkbox-background{background-color:#0288d1}.mat-checkbox-checked.mat-accent .mat-checkbox-background,.mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#1976d2}.mat-checkbox-checked.mat-warn .mat-checkbox-background,.mat-checkbox-indeterminate.mat-warn .mat-checkbox-background{background-color:#d32f2f}.mat-checkbox-disabled.mat-checkbox-checked .mat-checkbox-background,.mat-checkbox-disabled.mat-checkbox-indeterminate .mat-checkbox-background{background-color:#b0b0b0}.mat-checkbox-disabled:not(.mat-checkbox-checked) .mat-checkbox-frame{border-color:#b0b0b0}.mat-checkbox-disabled .mat-checkbox-label{color:rgba(0,0,0,.54)}.mat-checkbox .mat-ripple-element{background-color:#000}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element{background:#0288d1}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element{background:#1976d2}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element{background:#d32f2f}.mat-chip.mat-standard-chip{background-color:#e0e0e0;color:rgba(0,0,0,.87)}.mat-chip.mat-standard-chip .mat-chip-remove{color:rgba(0,0,0,.87);opacity:.4}.mat-chip.mat-standard-chip:not(.mat-chip-disabled):active{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.mat-chip.mat-standard-chip:not(.mat-chip-disabled) .mat-chip-remove:hover{opacity:.54}.mat-chip.mat-standard-chip.mat-chip-disabled{opacity:.4}.mat-chip.mat-standard-chip:after{background:#000}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary{background-color:#0288d1;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn{background-color:#d32f2f;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent{background-color:#1976d2;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-table{background:#fff}.mat-table-sticky,.mat-table tbody,.mat-table tfoot,.mat-table thead,[mat-footer-row],[mat-header-row],[mat-row],mat-footer-row,mat-header-row,mat-row{background:inherit}mat-footer-row,mat-header-row,mat-row,td.mat-cell,td.mat-footer-cell,th.mat-header-cell{border-bottom-color:rgba(0,0,0,.12)}.mat-header-cell{color:rgba(0,0,0,.54)}.mat-cell,.mat-footer-cell{color:rgba(0,0,0,.87)}.mat-calendar-arrow{border-top-color:rgba(0,0,0,.54)}.mat-datepicker-content .mat-calendar-next-button,.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-toggle{color:rgba(0,0,0,.54)}.mat-calendar-table-header{color:rgba(0,0,0,.38)}.mat-calendar-table-header-divider:after{background:rgba(0,0,0,.12)}.mat-calendar-body-label{color:rgba(0,0,0,.54)}.mat-calendar-body-cell-content{color:rgba(0,0,0,.87);border-color:transparent}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){color:rgba(0,0,0,.38)}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:rgba(0,0,0,.04)}.mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:rgba(0,0,0,.38)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:rgba(0,0,0,.18)}.mat-calendar-body-selected{background-color:#0288d1;color:#fff}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(2,136,209,.4)}.mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);background-color:#fff;color:rgba(0,0,0,.87)}.mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#1976d2;color:#fff}.mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(25,118,210,.4)}.mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#d32f2f;color:#fff}.mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(211,47,47,.4)}.mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content-touch{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-datepicker-toggle-active{color:#0288d1}.mat-datepicker-toggle-active.mat-accent{color:#1976d2}.mat-datepicker-toggle-active.mat-warn{color:#d32f2f}.mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.mat-divider{border-top-color:rgba(0,0,0,.12)}.mat-divider-vertical{border-right-color:rgba(0,0,0,.12)}.mat-expansion-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-action-row{border-top-color:rgba(0,0,0,.12)}.mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]),.mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true]),.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:rgba(0,0,0,.04)}@media (hover:none){.mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#fff}}.mat-expansion-panel-header-title{color:rgba(0,0,0,.87)}.mat-expansion-indicator:after,.mat-expansion-panel-header-description{color:rgba(0,0,0,.54)}.mat-expansion-panel-header[aria-disabled=true]{color:rgba(0,0,0,.26)}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title{color:inherit}.mat-form-field-label,.mat-hint{color:rgba(0,0,0,.6)}.mat-form-field.mat-focused .mat-form-field-label{color:#0288d1}.mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#1976d2}.mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#d32f2f}.mat-focused .mat-form-field-required-marker{color:#1976d2}.mat-form-field-ripple{background-color:rgba(0,0,0,.87)}.mat-form-field.mat-focused .mat-form-field-ripple{background-color:#0288d1}.mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#1976d2}.mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#d32f2f}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix:after{color:#0288d1}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix:after{color:#1976d2}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix:after,.mat-form-field.mat-form-field-invalid .mat-form-field-label,.mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent,.mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#d32f2f}.mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#d32f2f}.mat-error{color:#d32f2f}.mat-form-field-appearance-legacy .mat-form-field-label,.mat-form-field-appearance-legacy .mat-hint{color:rgba(0,0,0,.54)}.mat-form-field-appearance-legacy .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-standard .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-fill .mat-form-field-flex{background-color:rgba(0,0,0,.04)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:rgba(0,0,0,.02)}.mat-form-field-appearance-fill .mat-form-field-underline:before{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline:before{background-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline{color:rgba(0,0,0,.12)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{color:rgba(0,0,0,.87)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:#0288d1}.mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#1976d2}.mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#d32f2f}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:rgba(0,0,0,.06)}.mat-icon.mat-primary{color:#0288d1}.mat-icon.mat-accent{color:#1976d2}.mat-icon.mat-warn{color:#d32f2f}.mat-form-field-type-mat-native-select .mat-form-field-infix:after{color:rgba(0,0,0,.54)}.mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix:after,.mat-input-element:disabled{color:rgba(0,0,0,.38)}.mat-input-element{caret-color:#0288d1}.mat-input-element::-ms-input-placeholder{color:rgba(0,0,0,.42)}.mat-input-element::placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-moz-placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,.42)}.mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,.42)}.mat-accent .mat-input-element{caret-color:#1976d2}.mat-form-field-invalid .mat-input-element,.mat-warn .mat-input-element{caret-color:#d32f2f}.mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix:after{color:#d32f2f}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{color:rgba(0,0,0,.87)}.mat-list-base .mat-subheader{color:rgba(0,0,0,.54)}.mat-list-item-disabled{background-color:#eee}.mat-action-list .mat-list-item:focus,.mat-action-list .mat-list-item:hover,.mat-list-option:focus,.mat-list-option:hover,.mat-nav-list .mat-list-item:focus,.mat-nav-list .mat-list-item:hover{background:rgba(0,0,0,.04)}.mat-list-single-selected-option,.mat-list-single-selected-option:focus,.mat-list-single-selected-option:hover{background:rgba(0,0,0,.12)}.mat-menu-panel{background:#fff}.mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-menu-item{background:transparent;color:rgba(0,0,0,.87)}.mat-menu-item[disabled],.mat-menu-item[disabled]:after{color:rgba(0,0,0,.38)}.mat-menu-item-submenu-trigger:after,.mat-menu-item .mat-icon-no-color{color:rgba(0,0,0,.54)}.mat-menu-item-highlighted:not([disabled]),.mat-menu-item.cdk-keyboard-focused:not([disabled]),.mat-menu-item.cdk-program-focused:not([disabled]),.mat-menu-item:hover:not([disabled]){background:rgba(0,0,0,.04)}.mat-paginator{background:#fff}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{color:rgba(0,0,0,.54)}.mat-paginator-decrement,.mat-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.mat-paginator-first,.mat-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.mat-icon-button[disabled] .mat-paginator-decrement,.mat-icon-button[disabled] .mat-paginator-first,.mat-icon-button[disabled] .mat-paginator-increment,.mat-icon-button[disabled] .mat-paginator-last{border-color:rgba(0,0,0,.38)}.mat-progress-bar-background{fill:#b3e5fc}.mat-progress-bar-buffer{background-color:#b3e5fc}.mat-progress-bar-fill:after{background-color:#0288d1}.mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#bbdefb}.mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#bbdefb}.mat-progress-bar.mat-accent .mat-progress-bar-fill:after{background-color:#1976d2}.mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#ffcdd2}.mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#ffcdd2}.mat-progress-bar.mat-warn .mat-progress-bar-fill:after{background-color:#d32f2f}.mat-progress-spinner circle,.mat-spinner circle{stroke:#0288d1}.mat-progress-spinner.mat-accent circle,.mat-spinner.mat-accent circle{stroke:#1976d2}.mat-progress-spinner.mat-warn circle,.mat-spinner.mat-warn circle{stroke:#d32f2f}.mat-radio-outer-circle{border-color:rgba(0,0,0,.54)}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#0288d1}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-primary .mat-radio-inner-circle,.mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:#0288d1}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#1976d2}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-accent .mat-radio-inner-circle,.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#1976d2}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#d32f2f}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-warn .mat-radio-inner-circle,.mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#d32f2f}.mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-outer-circle,.mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:rgba(0,0,0,.38)}.mat-radio-button.mat-radio-disabled .mat-radio-inner-circle,.mat-radio-button.mat-radio-disabled .mat-radio-ripple .mat-ripple-element{background-color:rgba(0,0,0,.38)}.mat-radio-button.mat-radio-disabled .mat-radio-label-content{color:rgba(0,0,0,.38)}.mat-radio-button .mat-ripple-element{background-color:#000}.mat-select-value{color:rgba(0,0,0,.87)}.mat-select-placeholder{color:rgba(0,0,0,.42)}.mat-select-disabled .mat-select-value{color:rgba(0,0,0,.38)}.mat-select-arrow{color:rgba(0,0,0,.54)}.mat-select-panel{background:#fff}.mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(0,0,0,.12)}.mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#0288d1}.mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#1976d2}.mat-form-field.mat-focused.mat-warn .mat-select-arrow,.mat-form-field .mat-select.mat-select-invalid .mat-select-arrow{color:#d32f2f}.mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:rgba(0,0,0,.38)}.mat-drawer-container{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-drawer{color:rgba(0,0,0,.87)}.mat-drawer,.mat-drawer.mat-drawer-push{background-color:#fff}.mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-drawer-side{border-right:1px solid rgba(0,0,0,.12)}.mat-drawer-side.mat-drawer-end,[dir=rtl] .mat-drawer-side{border-left:1px solid rgba(0,0,0,.12);border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.mat-drawer-backdrop.mat-drawer-shown{background-color:rgba(0,0,0,.6)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#1976d2}.mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:rgba(25,118,210,.54)}.mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#1976d2}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:#0288d1}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:rgba(2,136,209,.54)}.mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element{background-color:#0288d1}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#d32f2f}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:rgba(211,47,47,.54)}.mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#d32f2f}.mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:#000}.mat-slide-toggle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);background-color:#fafafa}.mat-slide-toggle-bar{background-color:rgba(0,0,0,.38)}.mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-primary .mat-slider-thumb,.mat-primary .mat-slider-thumb-label,.mat-primary .mat-slider-track-fill{background-color:#0288d1}.mat-primary .mat-slider-thumb-label-text{color:#fff}.mat-accent .mat-slider-thumb,.mat-accent .mat-slider-thumb-label,.mat-accent .mat-slider-track-fill{background-color:#1976d2}.mat-accent .mat-slider-thumb-label-text{color:#fff}.mat-warn .mat-slider-thumb,.mat-warn .mat-slider-thumb-label,.mat-warn .mat-slider-track-fill{background-color:#d32f2f}.mat-warn .mat-slider-thumb-label-text{color:#fff}.mat-slider-focus-ring{background-color:rgba(25,118,210,.2)}.cdk-focused .mat-slider-track-background,.mat-slider:hover .mat-slider-track-background{background-color:rgba(0,0,0,.38)}.mat-slider-disabled .mat-slider-thumb,.mat-slider-disabled .mat-slider-track-background,.mat-slider-disabled .mat-slider-track-fill,.mat-slider-disabled:hover .mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-slider-min-value .mat-slider-focus-ring{background-color:rgba(0,0,0,.12)}.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:rgba(0,0,0,.87)}.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:rgba(0,0,0,.26)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:rgba(0,0,0,.26);background-color:transparent}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb{border-color:rgba(0,0,0,.38)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb{border-color:rgba(0,0,0,.26)}.mat-slider-has-ticks .mat-slider-wrapper:after{border-color:rgba(0,0,0,.7)}.mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(180deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused,.mat-step-header:hover{background-color:rgba(0,0,0,.04)}@media (hover:none){.mat-step-header:hover{background:none}}.mat-step-header .mat-step-label,.mat-step-header .mat-step-optional{color:rgba(0,0,0,.54)}.mat-step-header .mat-step-icon{background-color:rgba(0,0,0,.54);color:#fff}.mat-step-header .mat-step-icon-selected,.mat-step-header .mat-step-icon-state-done,.mat-step-header .mat-step-icon-state-edit{background-color:#0288d1;color:#fff}.mat-step-header .mat-step-icon-state-error{background-color:transparent;color:#d32f2f}.mat-step-header .mat-step-label.mat-step-label-active{color:rgba(0,0,0,.87)}.mat-step-header .mat-step-label.mat-step-label-error{color:#d32f2f}.mat-stepper-horizontal,.mat-stepper-vertical{background-color:#fff}.mat-stepper-vertical-line:before{border-left-color:rgba(0,0,0,.12)}.mat-horizontal-stepper-header:after,.mat-horizontal-stepper-header:before,.mat-stepper-horizontal-line{border-top-color:rgba(0,0,0,.12)}.mat-sort-header-arrow{color:#757575}.mat-tab-header,.mat-tab-nav-bar{border-bottom:1px solid rgba(0,0,0,.12)}.mat-tab-group-inverted-header .mat-tab-header,.mat-tab-group-inverted-header .mat-tab-nav-bar{border-top:1px solid rgba(0,0,0,.12);border-bottom:none}.mat-tab-label,.mat-tab-link{color:rgba(0,0,0,.87)}.mat-tab-label.mat-tab-disabled,.mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.38)}.mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.38)}.mat-tab-group[class*=mat-background-] .mat-tab-header,.mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(179,229,252,.3)}.mat-tab-group.mat-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#0288d1}.mat-tab-group.mat-primary.mat-background-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(187,222,251,.3)}.mat-tab-group.mat-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#1976d2}.mat-tab-group.mat-accent.mat-background-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.mat-tab-group.mat-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#d32f2f}.mat-tab-group.mat-warn.mat-background-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(179,229,252,.3)}.mat-tab-group.mat-background-primary .mat-tab-header,.mat-tab-group.mat-background-primary .mat-tab-header-pagination,.mat-tab-group.mat-background-primary .mat-tab-links,.mat-tab-nav-bar.mat-background-primary .mat-tab-header,.mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-primary .mat-tab-links{background-color:#0288d1}.mat-tab-group.mat-background-primary .mat-tab-label,.mat-tab-group.mat-background-primary .mat-tab-link,.mat-tab-nav-bar.mat-background-primary .mat-tab-label,.mat-tab-nav-bar.mat-background-primary .mat-tab-link{color:#fff}.mat-tab-group.mat-background-primary .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-primary .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-primary .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination-chevron{border-color:#fff}.mat-tab-group.mat-background-primary .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-primary .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(187,222,251,.3)}.mat-tab-group.mat-background-accent .mat-tab-header,.mat-tab-group.mat-background-accent .mat-tab-header-pagination,.mat-tab-group.mat-background-accent .mat-tab-links,.mat-tab-nav-bar.mat-background-accent .mat-tab-header,.mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-accent .mat-tab-links{background-color:#1976d2}.mat-tab-group.mat-background-accent .mat-tab-label,.mat-tab-group.mat-background-accent .mat-tab-link,.mat-tab-nav-bar.mat-background-accent .mat-tab-label,.mat-tab-nav-bar.mat-background-accent .mat-tab-link{color:#fff}.mat-tab-group.mat-background-accent .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-accent .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-accent .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination-chevron{border-color:#fff}.mat-tab-group.mat-background-accent .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-accent .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.mat-tab-group.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.mat-tab-group.mat-background-warn .mat-tab-header,.mat-tab-group.mat-background-warn .mat-tab-header-pagination,.mat-tab-group.mat-background-warn .mat-tab-links,.mat-tab-nav-bar.mat-background-warn .mat-tab-header,.mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-warn .mat-tab-links{background-color:#d32f2f}.mat-tab-group.mat-background-warn .mat-tab-label,.mat-tab-group.mat-background-warn .mat-tab-link,.mat-tab-nav-bar.mat-background-warn .mat-tab-label,.mat-tab-nav-bar.mat-background-warn .mat-tab-link{color:#fff}.mat-tab-group.mat-background-warn .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-warn .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-warn .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination-chevron{border-color:#fff}.mat-tab-group.mat-background-warn .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-warn .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.mat-toolbar{background:#f5f5f5;color:rgba(0,0,0,.87)}.mat-toolbar.mat-primary{background:#0288d1;color:#fff}.mat-toolbar.mat-accent{background:#1976d2;color:#fff}.mat-toolbar.mat-warn{background:#d32f2f;color:#fff}.mat-toolbar .mat-focused .mat-form-field-ripple,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-form-field-underline{background-color:currentColor}.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-select-value{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-tooltip{background:rgba(97,97,97,.9)}.mat-tree{background:#fff}.mat-nested-tree-node,.mat-tree-node{color:rgba(0,0,0,.87)}.mat-snack-bar-container{color:hsla(0,0%,100%,.7);background:#323232;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-simple-snackbar-action{color:#1976d2}.dark-theme .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.dark-theme .mat-option{color:#fff}.dark-theme .mat-option.mat-selected:not(.mat-option-multiple):not(.mat-option-disabled),.dark-theme .mat-option:focus:not(.mat-option-disabled),.dark-theme .mat-option:hover:not(.mat-option-disabled){background:hsla(0,0%,100%,.04)}.dark-theme .mat-option.mat-active{background:hsla(0,0%,100%,.04);color:#fff}.dark-theme .mat-option.mat-option-disabled{color:hsla(0,0%,100%,.5)}.dark-theme .mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:#3f51b5}.dark-theme .mat-accent .mat-option.mat-selected:not(.mat-option-disabled){color:#2196f3}.dark-theme .mat-warn .mat-option.mat-selected:not(.mat-option-disabled){color:#ff5722}.dark-theme .mat-optgroup-label{color:hsla(0,0%,100%,.7)}.dark-theme .mat-optgroup-disabled .mat-optgroup-label{color:hsla(0,0%,100%,.5)}.dark-theme .mat-pseudo-checkbox{color:hsla(0,0%,100%,.7)}.dark-theme .mat-pseudo-checkbox:after{color:#303030}.dark-theme .mat-pseudo-checkbox-disabled{color:#686868}.dark-theme .mat-primary .mat-pseudo-checkbox-checked,.dark-theme .mat-primary .mat-pseudo-checkbox-indeterminate{background:#3f51b5}.dark-theme .mat-accent .mat-pseudo-checkbox-checked,.dark-theme .mat-accent .mat-pseudo-checkbox-indeterminate,.dark-theme .mat-pseudo-checkbox-checked,.dark-theme .mat-pseudo-checkbox-indeterminate{background:#2196f3}.dark-theme .mat-warn .mat-pseudo-checkbox-checked,.dark-theme .mat-warn .mat-pseudo-checkbox-indeterminate{background:#ff5722}.dark-theme .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.dark-theme .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background:#686868}.dark-theme .mat-elevation-z0{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.dark-theme .mat-elevation-z1{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.dark-theme .mat-elevation-z2{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.dark-theme .mat-elevation-z3{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.dark-theme .mat-elevation-z4{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.dark-theme .mat-elevation-z5{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12)}.dark-theme .mat-elevation-z6{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.dark-theme .mat-elevation-z7{box-shadow:0 4px 5px -2px rgba(0,0,0,.2),0 7px 10px 1px rgba(0,0,0,.14),0 2px 16px 1px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z8{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z9{box-shadow:0 5px 6px -3px rgba(0,0,0,.2),0 9px 12px 1px rgba(0,0,0,.14),0 3px 16px 2px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z10{box-shadow:0 6px 6px -3px rgba(0,0,0,.2),0 10px 14px 1px rgba(0,0,0,.14),0 4px 18px 3px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z11{box-shadow:0 6px 7px -4px rgba(0,0,0,.2),0 11px 15px 1px rgba(0,0,0,.14),0 4px 20px 3px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z12{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z13{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 13px 19px 2px rgba(0,0,0,.14),0 5px 24px 4px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z14{box-shadow:0 7px 9px -4px rgba(0,0,0,.2),0 14px 21px 2px rgba(0,0,0,.14),0 5px 26px 4px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z15{box-shadow:0 8px 9px -5px rgba(0,0,0,.2),0 15px 22px 2px rgba(0,0,0,.14),0 6px 28px 5px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z16{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z17{box-shadow:0 8px 11px -5px rgba(0,0,0,.2),0 17px 26px 2px rgba(0,0,0,.14),0 6px 32px 5px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z18{box-shadow:0 9px 11px -5px rgba(0,0,0,.2),0 18px 28px 2px rgba(0,0,0,.14),0 7px 34px 6px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z19{box-shadow:0 9px 12px -6px rgba(0,0,0,.2),0 19px 29px 2px rgba(0,0,0,.14),0 7px 36px 6px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z20{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 20px 31px 3px rgba(0,0,0,.14),0 8px 38px 7px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z21{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 21px 33px 3px rgba(0,0,0,.14),0 8px 40px 7px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z22{box-shadow:0 10px 14px -6px rgba(0,0,0,.2),0 22px 35px 3px rgba(0,0,0,.14),0 8px 42px 7px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z23{box-shadow:0 11px 14px -7px rgba(0,0,0,.2),0 23px 36px 3px rgba(0,0,0,.14),0 9px 44px 8px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z24{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.dark-theme.mat-app-background,.dark-theme .mat-app-background{background-color:#303030;color:#fff}.dark-theme .mat-autocomplete-panel{background:#424242;color:#fff}.dark-theme .mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.dark-theme .mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover){background:#424242}.dark-theme .mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover):not(.mat-option-disabled){color:#fff}.dark-theme .mat-badge-content{color:#fff;background:#3f51b5}.cdk-high-contrast-active .dark-theme .mat-badge-content{outline:1px solid;border-radius:0}.dark-theme .mat-badge-accent .mat-badge-content{background:#2196f3;color:#fff}.dark-theme .mat-badge-warn .mat-badge-content{color:#fff;background:#ff5722}.dark-theme .mat-badge{position:relative}.dark-theme .mat-badge-hidden .mat-badge-content{display:none}.dark-theme .mat-badge-disabled .mat-badge-content{background:#6e6e6e;color:hsla(0,0%,100%,.5)}.dark-theme .mat-badge-content{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform .2s ease-in-out;transform:scale(.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}.dark-theme .mat-badge-content._mat-animation-noopable,.dark-theme .ng-animate-disabled .mat-badge-content{transition:none}.dark-theme .mat-badge-content.mat-badge-active{transform:none}.dark-theme .mat-badge-small .mat-badge-content{width:16px;height:16px;line-height:16px}.dark-theme .mat-badge-small.mat-badge-above .mat-badge-content{top:-8px}.dark-theme .mat-badge-small.mat-badge-below .mat-badge-content{bottom:-8px}.dark-theme .mat-badge-small.mat-badge-before .mat-badge-content{left:-16px}[dir=rtl] .dark-theme .mat-badge-small.mat-badge-before .mat-badge-content{left:auto;right:-16px}.dark-theme .mat-badge-small.mat-badge-after .mat-badge-content{right:-16px}[dir=rtl] .dark-theme .mat-badge-small.mat-badge-after .mat-badge-content{right:auto;left:-16px}.dark-theme .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-8px}[dir=rtl] .dark-theme .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-8px}.dark-theme .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-8px}[dir=rtl] .dark-theme .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-8px}.dark-theme .mat-badge-medium .mat-badge-content{width:22px;height:22px;line-height:22px}.dark-theme .mat-badge-medium.mat-badge-above .mat-badge-content{top:-11px}.dark-theme .mat-badge-medium.mat-badge-below .mat-badge-content{bottom:-11px}.dark-theme .mat-badge-medium.mat-badge-before .mat-badge-content{left:-22px}[dir=rtl] .dark-theme .mat-badge-medium.mat-badge-before .mat-badge-content{left:auto;right:-22px}.dark-theme .mat-badge-medium.mat-badge-after .mat-badge-content{right:-22px}[dir=rtl] .dark-theme .mat-badge-medium.mat-badge-after .mat-badge-content{right:auto;left:-22px}.dark-theme .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-11px}[dir=rtl] .dark-theme .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-11px}.dark-theme .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-11px}[dir=rtl] .dark-theme .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-11px}.dark-theme .mat-badge-large .mat-badge-content{width:28px;height:28px;line-height:28px}.dark-theme .mat-badge-large.mat-badge-above .mat-badge-content{top:-14px}.dark-theme .mat-badge-large.mat-badge-below .mat-badge-content{bottom:-14px}.dark-theme .mat-badge-large.mat-badge-before .mat-badge-content{left:-28px}[dir=rtl] .dark-theme .mat-badge-large.mat-badge-before .mat-badge-content{left:auto;right:-28px}.dark-theme .mat-badge-large.mat-badge-after .mat-badge-content{right:-28px}[dir=rtl] .dark-theme .mat-badge-large.mat-badge-after .mat-badge-content{right:auto;left:-28px}.dark-theme .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-14px}[dir=rtl] .dark-theme .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-14px}.dark-theme .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-14px}[dir=rtl] .dark-theme .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-14px}.dark-theme .mat-bottom-sheet-container{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);background:#424242;color:#fff}.dark-theme .mat-button,.dark-theme .mat-icon-button,.dark-theme .mat-stroked-button{color:inherit;background:transparent}.dark-theme .mat-button.mat-primary,.dark-theme .mat-icon-button.mat-primary,.dark-theme .mat-stroked-button.mat-primary{color:#3f51b5}.dark-theme .mat-button.mat-accent,.dark-theme .mat-icon-button.mat-accent,.dark-theme .mat-stroked-button.mat-accent{color:#2196f3}.dark-theme .mat-button.mat-warn,.dark-theme .mat-icon-button.mat-warn,.dark-theme .mat-stroked-button.mat-warn{color:#ff5722}.dark-theme .mat-button.mat-accent[disabled],.dark-theme .mat-button.mat-primary[disabled],.dark-theme .mat-button.mat-warn[disabled],.dark-theme .mat-button[disabled][disabled],.dark-theme .mat-icon-button.mat-accent[disabled],.dark-theme .mat-icon-button.mat-primary[disabled],.dark-theme .mat-icon-button.mat-warn[disabled],.dark-theme .mat-icon-button[disabled][disabled],.dark-theme .mat-stroked-button.mat-accent[disabled],.dark-theme .mat-stroked-button.mat-primary[disabled],.dark-theme .mat-stroked-button.mat-warn[disabled],.dark-theme .mat-stroked-button[disabled][disabled]{color:hsla(0,0%,100%,.3)}.dark-theme .mat-button.mat-primary .mat-button-focus-overlay,.dark-theme .mat-icon-button.mat-primary .mat-button-focus-overlay,.dark-theme .mat-stroked-button.mat-primary .mat-button-focus-overlay{background-color:#3f51b5}.dark-theme .mat-button.mat-accent .mat-button-focus-overlay,.dark-theme .mat-icon-button.mat-accent .mat-button-focus-overlay,.dark-theme .mat-stroked-button.mat-accent .mat-button-focus-overlay{background-color:#2196f3}.dark-theme .mat-button.mat-warn .mat-button-focus-overlay,.dark-theme .mat-icon-button.mat-warn .mat-button-focus-overlay,.dark-theme .mat-stroked-button.mat-warn .mat-button-focus-overlay{background-color:#ff5722}.dark-theme .mat-button[disabled] .mat-button-focus-overlay,.dark-theme .mat-icon-button[disabled] .mat-button-focus-overlay,.dark-theme .mat-stroked-button[disabled] .mat-button-focus-overlay{background-color:transparent}.dark-theme .mat-button .mat-ripple-element,.dark-theme .mat-icon-button .mat-ripple-element,.dark-theme .mat-stroked-button .mat-ripple-element{opacity:.1;background-color:currentColor}.dark-theme .mat-button-focus-overlay{background:#fff}.dark-theme .mat-stroked-button:not([disabled]){border-color:hsla(0,0%,100%,.12)}.dark-theme .mat-fab,.dark-theme .mat-flat-button,.dark-theme .mat-mini-fab,.dark-theme .mat-raised-button{color:#fff;background-color:#424242}.dark-theme .mat-fab.mat-accent,.dark-theme .mat-fab.mat-primary,.dark-theme .mat-fab.mat-warn,.dark-theme .mat-flat-button.mat-accent,.dark-theme .mat-flat-button.mat-primary,.dark-theme .mat-flat-button.mat-warn,.dark-theme .mat-mini-fab.mat-accent,.dark-theme .mat-mini-fab.mat-primary,.dark-theme .mat-mini-fab.mat-warn,.dark-theme .mat-raised-button.mat-accent,.dark-theme .mat-raised-button.mat-primary,.dark-theme .mat-raised-button.mat-warn{color:#fff}.dark-theme .mat-fab.mat-accent[disabled],.dark-theme .mat-fab.mat-primary[disabled],.dark-theme .mat-fab.mat-warn[disabled],.dark-theme .mat-fab[disabled][disabled],.dark-theme .mat-flat-button.mat-accent[disabled],.dark-theme .mat-flat-button.mat-primary[disabled],.dark-theme .mat-flat-button.mat-warn[disabled],.dark-theme .mat-flat-button[disabled][disabled],.dark-theme .mat-mini-fab.mat-accent[disabled],.dark-theme .mat-mini-fab.mat-primary[disabled],.dark-theme .mat-mini-fab.mat-warn[disabled],.dark-theme .mat-mini-fab[disabled][disabled],.dark-theme .mat-raised-button.mat-accent[disabled],.dark-theme .mat-raised-button.mat-primary[disabled],.dark-theme .mat-raised-button.mat-warn[disabled],.dark-theme .mat-raised-button[disabled][disabled]{color:hsla(0,0%,100%,.3)}.dark-theme .mat-fab.mat-primary,.dark-theme .mat-flat-button.mat-primary,.dark-theme .mat-mini-fab.mat-primary,.dark-theme .mat-raised-button.mat-primary{background-color:#3f51b5}.dark-theme .mat-fab.mat-accent,.dark-theme .mat-flat-button.mat-accent,.dark-theme .mat-mini-fab.mat-accent,.dark-theme .mat-raised-button.mat-accent{background-color:#2196f3}.dark-theme .mat-fab.mat-warn,.dark-theme .mat-flat-button.mat-warn,.dark-theme .mat-mini-fab.mat-warn,.dark-theme .mat-raised-button.mat-warn{background-color:#ff5722}.dark-theme .mat-fab.mat-accent[disabled],.dark-theme .mat-fab.mat-primary[disabled],.dark-theme .mat-fab.mat-warn[disabled],.dark-theme .mat-fab[disabled][disabled],.dark-theme .mat-flat-button.mat-accent[disabled],.dark-theme .mat-flat-button.mat-primary[disabled],.dark-theme .mat-flat-button.mat-warn[disabled],.dark-theme .mat-flat-button[disabled][disabled],.dark-theme .mat-mini-fab.mat-accent[disabled],.dark-theme .mat-mini-fab.mat-primary[disabled],.dark-theme .mat-mini-fab.mat-warn[disabled],.dark-theme .mat-mini-fab[disabled][disabled],.dark-theme .mat-raised-button.mat-accent[disabled],.dark-theme .mat-raised-button.mat-primary[disabled],.dark-theme .mat-raised-button.mat-warn[disabled],.dark-theme .mat-raised-button[disabled][disabled]{background-color:hsla(0,0%,100%,.12)}.dark-theme .mat-fab.mat-accent .mat-ripple-element,.dark-theme .mat-fab.mat-primary .mat-ripple-element,.dark-theme .mat-fab.mat-warn .mat-ripple-element,.dark-theme .mat-flat-button.mat-accent .mat-ripple-element,.dark-theme .mat-flat-button.mat-primary .mat-ripple-element,.dark-theme .mat-flat-button.mat-warn .mat-ripple-element,.dark-theme .mat-mini-fab.mat-accent .mat-ripple-element,.dark-theme .mat-mini-fab.mat-primary .mat-ripple-element,.dark-theme .mat-mini-fab.mat-warn .mat-ripple-element,.dark-theme .mat-raised-button.mat-accent .mat-ripple-element,.dark-theme .mat-raised-button.mat-primary .mat-ripple-element,.dark-theme .mat-raised-button.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.dark-theme .mat-flat-button:not([class*=mat-elevation-z]),.dark-theme .mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.dark-theme .mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.dark-theme .mat-raised-button:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.dark-theme .mat-raised-button[disabled]:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.dark-theme .mat-fab:not([class*=mat-elevation-z]),.dark-theme .mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.dark-theme .mat-fab:not([disabled]):active:not([class*=mat-elevation-z]),.dark-theme .mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.dark-theme .mat-fab[disabled]:not([class*=mat-elevation-z]),.dark-theme .mat-mini-fab[disabled]:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.dark-theme .mat-button-toggle-group,.dark-theme .mat-button-toggle-standalone{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.dark-theme .mat-button-toggle-group-appearance-standard,.dark-theme .mat-button-toggle-standalone.mat-button-toggle-appearance-standard{box-shadow:none}.dark-theme .mat-button-toggle{color:hsla(0,0%,100%,.5)}.dark-theme .mat-button-toggle .mat-button-toggle-focus-overlay{background-color:hsla(0,0%,100%,.12)}.dark-theme .mat-button-toggle-appearance-standard{color:#fff;background:#424242}.dark-theme .mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:#fff}.dark-theme .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:1px solid hsla(0,0%,100%,.12)}.dark-theme [dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:1px solid hsla(0,0%,100%,.12)}.dark-theme .mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:none;border-top:1px solid hsla(0,0%,100%,.12)}.dark-theme .mat-button-toggle-checked{background-color:#212121;color:hsla(0,0%,100%,.7)}.dark-theme .mat-button-toggle-checked.mat-button-toggle-appearance-standard{color:#fff}.dark-theme .mat-button-toggle-disabled{color:hsla(0,0%,100%,.3);background-color:#000}.dark-theme .mat-button-toggle-disabled.mat-button-toggle-appearance-standard{background:#424242}.dark-theme .mat-button-toggle-disabled.mat-button-toggle-checked{background-color:#424242}.dark-theme .mat-button-toggle-group-appearance-standard,.dark-theme .mat-button-toggle-standalone.mat-button-toggle-appearance-standard{border:1px solid hsla(0,0%,100%,.12)}.dark-theme .mat-card{background:#424242;color:#fff}.dark-theme .mat-card:not([class*=mat-elevation-z]){box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.dark-theme .mat-card.mat-card-flat:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.dark-theme .mat-card-subtitle{color:hsla(0,0%,100%,.7)}.dark-theme .mat-checkbox-frame{border-color:hsla(0,0%,100%,.7)}.dark-theme .mat-checkbox-checkmark{fill:#303030}.dark-theme .mat-checkbox-checkmark-path{stroke:#303030!important}.dark-theme .mat-checkbox-mixedmark{background-color:#303030}.dark-theme .mat-checkbox-checked.mat-primary .mat-checkbox-background,.dark-theme .mat-checkbox-indeterminate.mat-primary .mat-checkbox-background{background-color:#3f51b5}.dark-theme .mat-checkbox-checked.mat-accent .mat-checkbox-background,.dark-theme .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#2196f3}.dark-theme .mat-checkbox-checked.mat-warn .mat-checkbox-background,.dark-theme .mat-checkbox-indeterminate.mat-warn .mat-checkbox-background{background-color:#ff5722}.dark-theme .mat-checkbox-disabled.mat-checkbox-checked .mat-checkbox-background,.dark-theme .mat-checkbox-disabled.mat-checkbox-indeterminate .mat-checkbox-background{background-color:#686868}.dark-theme .mat-checkbox-disabled:not(.mat-checkbox-checked) .mat-checkbox-frame{border-color:#686868}.dark-theme .mat-checkbox-disabled .mat-checkbox-label{color:hsla(0,0%,100%,.7)}.dark-theme .mat-checkbox .mat-ripple-element{background-color:#fff}.dark-theme .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element,.dark-theme .mat-checkbox:active:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element{background:#3f51b5}.dark-theme .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element,.dark-theme .mat-checkbox:active:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element{background:#2196f3}.dark-theme .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element,.dark-theme .mat-checkbox:active:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element{background:#ff5722}.dark-theme .mat-chip.mat-standard-chip{background-color:#616161;color:#fff}.dark-theme .mat-chip.mat-standard-chip .mat-chip-remove{color:#fff;opacity:.4}.dark-theme .mat-chip.mat-standard-chip:not(.mat-chip-disabled):active{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.dark-theme .mat-chip.mat-standard-chip:not(.mat-chip-disabled) .mat-chip-remove:hover{opacity:.54}.dark-theme .mat-chip.mat-standard-chip.mat-chip-disabled{opacity:.4}.dark-theme .mat-chip.mat-standard-chip:after{background:#fff}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary{background-color:#3f51b5;color:#fff}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-chip-remove{color:#fff;opacity:.4}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-warn{background-color:#ff5722;color:#fff}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-chip-remove{color:#fff;opacity:.4}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-accent{background-color:#2196f3;color:#fff}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-chip-remove{color:#fff;opacity:.4}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.dark-theme .mat-table{background:#424242}.dark-theme .mat-table-sticky,.dark-theme .mat-table tbody,.dark-theme .mat-table tfoot,.dark-theme .mat-table thead,.dark-theme [mat-footer-row],.dark-theme [mat-header-row],.dark-theme [mat-row],.dark-theme mat-footer-row,.dark-theme mat-header-row,.dark-theme mat-row{background:inherit}.dark-theme mat-footer-row,.dark-theme mat-header-row,.dark-theme mat-row,.dark-theme td.mat-cell,.dark-theme td.mat-footer-cell,.dark-theme th.mat-header-cell{border-bottom-color:hsla(0,0%,100%,.12)}.dark-theme .mat-header-cell{color:hsla(0,0%,100%,.7)}.dark-theme .mat-cell,.dark-theme .mat-footer-cell{color:#fff}.dark-theme .mat-calendar-arrow{border-top-color:#fff}.dark-theme .mat-datepicker-content .mat-calendar-next-button,.dark-theme .mat-datepicker-content .mat-calendar-previous-button,.dark-theme .mat-datepicker-toggle{color:#fff}.dark-theme .mat-calendar-table-header{color:hsla(0,0%,100%,.5)}.dark-theme .mat-calendar-table-header-divider:after{background:hsla(0,0%,100%,.12)}.dark-theme .mat-calendar-body-label{color:hsla(0,0%,100%,.7)}.dark-theme .mat-calendar-body-cell-content{color:#fff;border-color:transparent}.dark-theme .mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){color:hsla(0,0%,100%,.5)}.dark-theme .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.dark-theme .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.dark-theme .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:hsla(0,0%,100%,.04)}.dark-theme .mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:hsla(0,0%,100%,.5)}.dark-theme .mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:hsla(0,0%,100%,.3)}.dark-theme .mat-calendar-body-selected{background-color:#3f51b5;color:#fff}.dark-theme .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(63,81,181,.4)}.dark-theme .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.dark-theme .mat-datepicker-content{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);background-color:#424242;color:#fff}.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#2196f3;color:#fff}.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(33,150,243,.4)}.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#ff5722;color:#fff}.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(255,87,34,.4)}.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.dark-theme .mat-datepicker-content-touch{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.dark-theme .mat-datepicker-toggle-active{color:#3f51b5}.dark-theme .mat-datepicker-toggle-active.mat-accent{color:#2196f3}.dark-theme .mat-datepicker-toggle-active.mat-warn{color:#ff5722}.dark-theme .mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);background:#424242;color:#fff}.dark-theme .mat-divider{border-top-color:hsla(0,0%,100%,.12)}.dark-theme .mat-divider-vertical{border-right-color:hsla(0,0%,100%,.12)}.dark-theme .mat-expansion-panel{background:#424242;color:#fff}.dark-theme .mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.dark-theme .mat-action-row{border-top-color:hsla(0,0%,100%,.12)}.dark-theme .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]),.dark-theme .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true]),.dark-theme .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:hsla(0,0%,100%,.04)}@media (hover:none){.dark-theme .mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#424242}}.dark-theme .mat-expansion-panel-header-title{color:#fff}.dark-theme .mat-expansion-indicator:after,.dark-theme .mat-expansion-panel-header-description{color:hsla(0,0%,100%,.7)}.dark-theme .mat-expansion-panel-header[aria-disabled=true]{color:hsla(0,0%,100%,.3)}.dark-theme .mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description,.dark-theme .mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title{color:inherit}.dark-theme .mat-form-field-label,.dark-theme .mat-hint{color:hsla(0,0%,100%,.7)}.dark-theme .mat-form-field.mat-focused .mat-form-field-label{color:#3f51b5}.dark-theme .mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#2196f3}.dark-theme .mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#ff5722}.dark-theme .mat-focused .mat-form-field-required-marker{color:#2196f3}.dark-theme .mat-form-field-ripple{background-color:#fff}.dark-theme .mat-form-field.mat-focused .mat-form-field-ripple{background-color:#3f51b5}.dark-theme .mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#2196f3}.dark-theme .mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#ff5722}.dark-theme .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix:after{color:#3f51b5}.dark-theme .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix:after{color:#2196f3}.dark-theme .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix:after,.dark-theme .mat-form-field.mat-form-field-invalid .mat-form-field-label,.dark-theme .mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent,.dark-theme .mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#ff5722}.dark-theme .mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.dark-theme .mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#ff5722}.dark-theme .mat-error{color:#ff5722}.dark-theme .mat-form-field-appearance-legacy .mat-form-field-label,.dark-theme .mat-form-field-appearance-legacy .mat-hint{color:hsla(0,0%,100%,.7)}.dark-theme .mat-form-field-appearance-legacy .mat-form-field-underline{background-color:hsla(0,0%,100%,.7)}.dark-theme .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,hsla(0,0%,100%,.7) 0,hsla(0,0%,100%,.7) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.dark-theme .mat-form-field-appearance-standard .mat-form-field-underline{background-color:hsla(0,0%,100%,.7)}.dark-theme .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,hsla(0,0%,100%,.7) 0,hsla(0,0%,100%,.7) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.dark-theme .mat-form-field-appearance-fill .mat-form-field-flex{background-color:hsla(0,0%,100%,.1)}.dark-theme .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:hsla(0,0%,100%,.05)}.dark-theme .mat-form-field-appearance-fill .mat-form-field-underline:before{background-color:hsla(0,0%,100%,.5)}.dark-theme .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:hsla(0,0%,100%,.5)}.dark-theme .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline:before{background-color:transparent}.dark-theme .mat-form-field-appearance-outline .mat-form-field-outline{color:hsla(0,0%,100%,.3)}.dark-theme .mat-form-field-appearance-outline .mat-form-field-outline-thick{color:#fff}.dark-theme .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:#3f51b5}.dark-theme .mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#2196f3}.dark-theme .mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.dark-theme .mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#ff5722}.dark-theme .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:hsla(0,0%,100%,.5)}.dark-theme .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:hsla(0,0%,100%,.15)}.dark-theme .mat-icon.mat-primary{color:#3f51b5}.dark-theme .mat-icon.mat-accent{color:#2196f3}.dark-theme .mat-icon.mat-warn{color:#ff5722}.dark-theme .mat-form-field-type-mat-native-select .mat-form-field-infix:after{color:hsla(0,0%,100%,.7)}.dark-theme .mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix:after,.dark-theme .mat-input-element:disabled{color:hsla(0,0%,100%,.5)}.dark-theme .mat-input-element{caret-color:#3f51b5}.dark-theme .mat-input-element::-ms-input-placeholder{color:hsla(0,0%,100%,.5)}.dark-theme .mat-input-element::placeholder{color:hsla(0,0%,100%,.5)}.dark-theme .mat-input-element::-moz-placeholder{color:hsla(0,0%,100%,.5)}.dark-theme .mat-input-element::-webkit-input-placeholder{color:hsla(0,0%,100%,.5)}.dark-theme .mat-input-element:-ms-input-placeholder{color:hsla(0,0%,100%,.5)}.dark-theme .mat-input-element option{color:rgba(0,0,0,.87)}.dark-theme .mat-input-element option:disabled{color:rgba(0,0,0,.38)}.dark-theme .mat-accent .mat-input-element{caret-color:#2196f3}.dark-theme .mat-form-field-invalid .mat-input-element,.dark-theme .mat-warn .mat-input-element{caret-color:#ff5722}.dark-theme .mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix:after{color:#ff5722}.dark-theme .mat-list-base .mat-list-item,.dark-theme .mat-list-base .mat-list-option{color:#fff}.dark-theme .mat-list-base .mat-subheader{color:hsla(0,0%,100%,.7)}.dark-theme .mat-list-item-disabled{background-color:#000}.dark-theme .mat-action-list .mat-list-item:focus,.dark-theme .mat-action-list .mat-list-item:hover,.dark-theme .mat-list-option:focus,.dark-theme .mat-list-option:hover,.dark-theme .mat-nav-list .mat-list-item:focus,.dark-theme .mat-nav-list .mat-list-item:hover{background:hsla(0,0%,100%,.04)}.dark-theme .mat-list-single-selected-option,.dark-theme .mat-list-single-selected-option:focus,.dark-theme .mat-list-single-selected-option:hover{background:hsla(0,0%,100%,.12)}.dark-theme .mat-menu-panel{background:#424242}.dark-theme .mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.dark-theme .mat-menu-item{background:transparent;color:#fff}.dark-theme .mat-menu-item[disabled],.dark-theme .mat-menu-item[disabled]:after{color:hsla(0,0%,100%,.5)}.dark-theme .mat-menu-item-submenu-trigger:after,.dark-theme .mat-menu-item .mat-icon-no-color{color:#fff}.dark-theme .mat-menu-item-highlighted:not([disabled]),.dark-theme .mat-menu-item.cdk-keyboard-focused:not([disabled]),.dark-theme .mat-menu-item.cdk-program-focused:not([disabled]),.dark-theme .mat-menu-item:hover:not([disabled]){background:hsla(0,0%,100%,.04)}.dark-theme .mat-paginator{background:#424242}.dark-theme .mat-paginator,.dark-theme .mat-paginator-page-size .mat-select-trigger{color:hsla(0,0%,100%,.7)}.dark-theme .mat-paginator-decrement,.dark-theme .mat-paginator-increment{border-top:2px solid #fff;border-right:2px solid #fff}.dark-theme .mat-paginator-first,.dark-theme .mat-paginator-last{border-top:2px solid #fff}.dark-theme .mat-icon-button[disabled] .mat-paginator-decrement,.dark-theme .mat-icon-button[disabled] .mat-paginator-first,.dark-theme .mat-icon-button[disabled] .mat-paginator-increment,.dark-theme .mat-icon-button[disabled] .mat-paginator-last{border-color:hsla(0,0%,100%,.5)}.dark-theme .mat-progress-bar-background{fill:#c5cae9}.dark-theme .mat-progress-bar-buffer{background-color:#c5cae9}.dark-theme .mat-progress-bar-fill:after{background-color:#3f51b5}.dark-theme .mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#bbdefb}.dark-theme .mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#bbdefb}.dark-theme .mat-progress-bar.mat-accent .mat-progress-bar-fill:after{background-color:#2196f3}.dark-theme .mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#ffccbc}.dark-theme .mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#ffccbc}.dark-theme .mat-progress-bar.mat-warn .mat-progress-bar-fill:after{background-color:#ff5722}.dark-theme .mat-progress-spinner circle,.dark-theme .mat-spinner circle{stroke:#3f51b5}.dark-theme .mat-progress-spinner.mat-accent circle,.dark-theme .mat-spinner.mat-accent circle{stroke:#2196f3}.dark-theme .mat-progress-spinner.mat-warn circle,.dark-theme .mat-spinner.mat-warn circle{stroke:#ff5722}.dark-theme .mat-radio-outer-circle{border-color:hsla(0,0%,100%,.7)}.dark-theme .mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#3f51b5}.dark-theme .mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.dark-theme .mat-radio-button.mat-primary .mat-radio-inner-circle,.dark-theme .mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.dark-theme .mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:#3f51b5}.dark-theme .mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#2196f3}.dark-theme .mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.dark-theme .mat-radio-button.mat-accent .mat-radio-inner-circle,.dark-theme .mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.dark-theme .mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#2196f3}.dark-theme .mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#ff5722}.dark-theme .mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.dark-theme .mat-radio-button.mat-warn .mat-radio-inner-circle,.dark-theme .mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.dark-theme .mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#ff5722}.dark-theme .mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-outer-circle,.dark-theme .mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:hsla(0,0%,100%,.5)}.dark-theme .mat-radio-button.mat-radio-disabled .mat-radio-inner-circle,.dark-theme .mat-radio-button.mat-radio-disabled .mat-radio-ripple .mat-ripple-element{background-color:hsla(0,0%,100%,.5)}.dark-theme .mat-radio-button.mat-radio-disabled .mat-radio-label-content{color:hsla(0,0%,100%,.5)}.dark-theme .mat-radio-button .mat-ripple-element{background-color:#fff}.dark-theme .mat-select-value{color:#fff}.dark-theme .mat-select-disabled .mat-select-value,.dark-theme .mat-select-placeholder{color:hsla(0,0%,100%,.5)}.dark-theme .mat-select-arrow{color:hsla(0,0%,100%,.7)}.dark-theme .mat-select-panel{background:#424242}.dark-theme .mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.dark-theme .mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:hsla(0,0%,100%,.12)}.dark-theme .mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#3f51b5}.dark-theme .mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#2196f3}.dark-theme .mat-form-field.mat-focused.mat-warn .mat-select-arrow,.dark-theme .mat-form-field .mat-select.mat-select-invalid .mat-select-arrow{color:#ff5722}.dark-theme .mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:hsla(0,0%,100%,.5)}.dark-theme .mat-drawer-container{background-color:#303030;color:#fff}.dark-theme .mat-drawer{color:#fff}.dark-theme .mat-drawer,.dark-theme .mat-drawer.mat-drawer-push{background-color:#424242}.dark-theme .mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.dark-theme .mat-drawer-side{border-right:1px solid hsla(0,0%,100%,.12)}.dark-theme .mat-drawer-side.mat-drawer-end,.dark-theme [dir=rtl] .mat-drawer-side{border-left:1px solid hsla(0,0%,100%,.12);border-right:none}.dark-theme [dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:1px solid hsla(0,0%,100%,.12)}.dark-theme .mat-drawer-backdrop.mat-drawer-shown{background-color:hsla(0,0%,74.1%,.6)}.dark-theme .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#2196f3}.dark-theme .mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:rgba(33,150,243,.54)}.dark-theme .mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#2196f3}.dark-theme .mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:#3f51b5}.dark-theme .mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:rgba(63,81,181,.54)}.dark-theme .mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element{background-color:#3f51b5}.dark-theme .mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#ff5722}.dark-theme .mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:rgba(255,87,34,.54)}.dark-theme .mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#ff5722}.dark-theme .mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:#fff}.dark-theme .mat-slide-toggle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);background-color:#bdbdbd}.dark-theme .mat-slide-toggle-bar{background-color:hsla(0,0%,100%,.5)}.dark-theme .mat-slider-track-background{background-color:hsla(0,0%,100%,.3)}.dark-theme .mat-primary .mat-slider-thumb,.dark-theme .mat-primary .mat-slider-thumb-label,.dark-theme .mat-primary .mat-slider-track-fill{background-color:#3f51b5}.dark-theme .mat-primary .mat-slider-thumb-label-text{color:#fff}.dark-theme .mat-accent .mat-slider-thumb,.dark-theme .mat-accent .mat-slider-thumb-label,.dark-theme .mat-accent .mat-slider-track-fill{background-color:#2196f3}.dark-theme .mat-accent .mat-slider-thumb-label-text{color:#fff}.dark-theme .mat-warn .mat-slider-thumb,.dark-theme .mat-warn .mat-slider-thumb-label,.dark-theme .mat-warn .mat-slider-track-fill{background-color:#ff5722}.dark-theme .mat-warn .mat-slider-thumb-label-text{color:#fff}.dark-theme .mat-slider-focus-ring{background-color:rgba(33,150,243,.2)}.dark-theme .cdk-focused .mat-slider-track-background,.dark-theme .mat-slider-disabled .mat-slider-thumb,.dark-theme .mat-slider-disabled .mat-slider-track-background,.dark-theme .mat-slider-disabled .mat-slider-track-fill,.dark-theme .mat-slider-disabled:hover .mat-slider-track-background,.dark-theme .mat-slider:hover .mat-slider-track-background{background-color:hsla(0,0%,100%,.3)}.dark-theme .mat-slider-min-value .mat-slider-focus-ring{background-color:hsla(0,0%,100%,.12)}.dark-theme .mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.dark-theme .mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:#fff}.dark-theme .mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.dark-theme .mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:hsla(0,0%,100%,.3)}.dark-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:hsla(0,0%,100%,.3);background-color:transparent}.dark-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb,.dark-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb,.dark-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb,.dark-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb{border-color:hsla(0,0%,100%,.3)}.dark-theme .mat-slider-has-ticks .mat-slider-wrapper:after{border-color:hsla(0,0%,100%,.7)}.dark-theme .mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(90deg,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7) 2px,transparent 0,transparent)}.dark-theme .mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(180deg,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7) 2px,transparent 0,transparent)}.dark-theme .mat-step-header.cdk-keyboard-focused,.dark-theme .mat-step-header.cdk-program-focused,.dark-theme .mat-step-header:hover{background-color:hsla(0,0%,100%,.04)}@media (hover:none){.dark-theme .mat-step-header:hover{background:none}}.dark-theme .mat-step-header .mat-step-label,.dark-theme .mat-step-header .mat-step-optional{color:hsla(0,0%,100%,.7)}.dark-theme .mat-step-header .mat-step-icon{background-color:hsla(0,0%,100%,.7);color:#fff}.dark-theme .mat-step-header .mat-step-icon-selected,.dark-theme .mat-step-header .mat-step-icon-state-done,.dark-theme .mat-step-header .mat-step-icon-state-edit{background-color:#3f51b5;color:#fff}.dark-theme .mat-step-header .mat-step-icon-state-error{background-color:transparent;color:#ff5722}.dark-theme .mat-step-header .mat-step-label.mat-step-label-active{color:#fff}.dark-theme .mat-step-header .mat-step-label.mat-step-label-error{color:#ff5722}.dark-theme .mat-stepper-horizontal,.dark-theme .mat-stepper-vertical{background-color:#424242}.dark-theme .mat-stepper-vertical-line:before{border-left-color:hsla(0,0%,100%,.12)}.dark-theme .mat-horizontal-stepper-header:after,.dark-theme .mat-horizontal-stepper-header:before,.dark-theme .mat-stepper-horizontal-line{border-top-color:hsla(0,0%,100%,.12)}.dark-theme .mat-sort-header-arrow{color:#c6c6c6}.dark-theme .mat-tab-header,.dark-theme .mat-tab-nav-bar{border-bottom:1px solid hsla(0,0%,100%,.12)}.dark-theme .mat-tab-group-inverted-header .mat-tab-header,.dark-theme .mat-tab-group-inverted-header .mat-tab-nav-bar{border-top:1px solid hsla(0,0%,100%,.12);border-bottom:none}.dark-theme .mat-tab-label,.dark-theme .mat-tab-link{color:#fff}.dark-theme .mat-tab-label.mat-tab-disabled,.dark-theme .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.5)}.dark-theme .mat-tab-header-pagination-chevron{border-color:#fff}.dark-theme .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.5)}.dark-theme .mat-tab-group[class*=mat-background-] .mat-tab-header,.dark-theme .mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.dark-theme .mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(197,202,233,.3)}.dark-theme .mat-tab-group.mat-primary .mat-ink-bar,.dark-theme .mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#3f51b5}.dark-theme .mat-tab-group.mat-primary.mat-background-primary .mat-ink-bar,.dark-theme .mat-tab-nav-bar.mat-primary.mat-background-primary .mat-ink-bar{background-color:#fff}.dark-theme .mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(187,222,251,.3)}.dark-theme .mat-tab-group.mat-accent .mat-ink-bar,.dark-theme .mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#2196f3}.dark-theme .mat-tab-group.mat-accent.mat-background-accent .mat-ink-bar,.dark-theme .mat-tab-nav-bar.mat-accent.mat-background-accent .mat-ink-bar{background-color:#fff}.dark-theme .mat-tab-group.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,204,188,.3)}.dark-theme .mat-tab-group.mat-warn .mat-ink-bar,.dark-theme .mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#ff5722}.dark-theme .mat-tab-group.mat-warn.mat-background-warn .mat-ink-bar,.dark-theme .mat-tab-nav-bar.mat-warn.mat-background-warn .mat-ink-bar{background-color:#fff}.dark-theme .mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(197,202,233,.3)}.dark-theme .mat-tab-group.mat-background-primary .mat-tab-header,.dark-theme .mat-tab-group.mat-background-primary .mat-tab-header-pagination,.dark-theme .mat-tab-group.mat-background-primary .mat-tab-links,.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-header,.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination,.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-links{background-color:#3f51b5}.dark-theme .mat-tab-group.mat-background-primary .mat-tab-label,.dark-theme .mat-tab-group.mat-background-primary .mat-tab-link,.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-label,.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-link{color:#fff}.dark-theme .mat-tab-group.mat-background-primary .mat-tab-label.mat-tab-disabled,.dark-theme .mat-tab-group.mat-background-primary .mat-tab-link.mat-tab-disabled,.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-label.mat-tab-disabled,.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.dark-theme .mat-tab-group.mat-background-primary .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination-chevron{border-color:#fff}.dark-theme .mat-tab-group.mat-background-primary .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.dark-theme .mat-tab-group.mat-background-primary .mat-ripple-element,.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.dark-theme .mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(187,222,251,.3)}.dark-theme .mat-tab-group.mat-background-accent .mat-tab-header,.dark-theme .mat-tab-group.mat-background-accent .mat-tab-header-pagination,.dark-theme .mat-tab-group.mat-background-accent .mat-tab-links,.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-header,.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination,.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-links{background-color:#2196f3}.dark-theme .mat-tab-group.mat-background-accent .mat-tab-label,.dark-theme .mat-tab-group.mat-background-accent .mat-tab-link,.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-label,.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-link{color:#fff}.dark-theme .mat-tab-group.mat-background-accent .mat-tab-label.mat-tab-disabled,.dark-theme .mat-tab-group.mat-background-accent .mat-tab-link.mat-tab-disabled,.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-label.mat-tab-disabled,.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.dark-theme .mat-tab-group.mat-background-accent .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination-chevron{border-color:#fff}.dark-theme .mat-tab-group.mat-background-accent .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.dark-theme .mat-tab-group.mat-background-accent .mat-ripple-element,.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.dark-theme .mat-tab-group.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,204,188,.3)}.dark-theme .mat-tab-group.mat-background-warn .mat-tab-header,.dark-theme .mat-tab-group.mat-background-warn .mat-tab-header-pagination,.dark-theme .mat-tab-group.mat-background-warn .mat-tab-links,.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-header,.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination,.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-links{background-color:#ff5722}.dark-theme .mat-tab-group.mat-background-warn .mat-tab-label,.dark-theme .mat-tab-group.mat-background-warn .mat-tab-link,.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-label,.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-link{color:#fff}.dark-theme .mat-tab-group.mat-background-warn .mat-tab-label.mat-tab-disabled,.dark-theme .mat-tab-group.mat-background-warn .mat-tab-link.mat-tab-disabled,.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-label.mat-tab-disabled,.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.dark-theme .mat-tab-group.mat-background-warn .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination-chevron{border-color:#fff}.dark-theme .mat-tab-group.mat-background-warn .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.dark-theme .mat-tab-group.mat-background-warn .mat-ripple-element,.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.dark-theme .mat-toolbar{background:#212121;color:#fff}.dark-theme .mat-toolbar.mat-primary{background:#3f51b5;color:#fff}.dark-theme .mat-toolbar.mat-accent{background:#2196f3;color:#fff}.dark-theme .mat-toolbar.mat-warn{background:#ff5722;color:#fff}.dark-theme .mat-toolbar .mat-focused .mat-form-field-ripple,.dark-theme .mat-toolbar .mat-form-field-ripple,.dark-theme .mat-toolbar .mat-form-field-underline{background-color:currentColor}.dark-theme .mat-toolbar .mat-focused .mat-form-field-label,.dark-theme .mat-toolbar .mat-form-field-label,.dark-theme .mat-toolbar .mat-form-field.mat-focused .mat-select-arrow,.dark-theme .mat-toolbar .mat-select-arrow,.dark-theme .mat-toolbar .mat-select-value{color:inherit}.dark-theme .mat-toolbar .mat-input-element{caret-color:currentColor}.dark-theme .mat-tooltip{background:rgba(97,97,97,.9)}.dark-theme .mat-tree{background:#424242}.dark-theme .mat-nested-tree-node,.dark-theme .mat-tree-node{color:#fff}.dark-theme .mat-snack-bar-container{color:rgba(0,0,0,.87);background:#fafafa;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.dark-theme .mat-simple-snackbar-action{color:inherit}.light-theme .mat-ripple-element{background-color:rgba(0,0,0,.1)}.light-theme .mat-option{color:rgba(0,0,0,.87)}.light-theme .mat-option.mat-selected:not(.mat-option-multiple):not(.mat-option-disabled),.light-theme .mat-option:focus:not(.mat-option-disabled),.light-theme .mat-option:hover:not(.mat-option-disabled){background:rgba(0,0,0,.04)}.light-theme .mat-option.mat-active{background:rgba(0,0,0,.04);color:rgba(0,0,0,.87)}.light-theme .mat-option.mat-option-disabled{color:rgba(0,0,0,.38)}.light-theme .mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:#eee}.light-theme .mat-accent .mat-option.mat-selected:not(.mat-option-disabled){color:#bcaaa4}.light-theme .mat-warn .mat-option.mat-selected:not(.mat-option-disabled){color:#ffab91}.light-theme .mat-optgroup-label{color:rgba(0,0,0,.54)}.light-theme .mat-optgroup-disabled .mat-optgroup-label{color:rgba(0,0,0,.38)}.light-theme .mat-pseudo-checkbox{color:rgba(0,0,0,.54)}.light-theme .mat-pseudo-checkbox:after{color:#fafafa}.light-theme .mat-pseudo-checkbox-disabled{color:#b0b0b0}.light-theme .mat-primary .mat-pseudo-checkbox-checked,.light-theme .mat-primary .mat-pseudo-checkbox-indeterminate{background:#eee}.light-theme .mat-accent .mat-pseudo-checkbox-checked,.light-theme .mat-accent .mat-pseudo-checkbox-indeterminate,.light-theme .mat-pseudo-checkbox-checked,.light-theme .mat-pseudo-checkbox-indeterminate{background:#bcaaa4}.light-theme .mat-warn .mat-pseudo-checkbox-checked,.light-theme .mat-warn .mat-pseudo-checkbox-indeterminate{background:#ffab91}.light-theme .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.light-theme .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background:#b0b0b0}.light-theme .mat-elevation-z0{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.light-theme .mat-elevation-z1{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.light-theme .mat-elevation-z2{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.light-theme .mat-elevation-z3{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.light-theme .mat-elevation-z4{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.light-theme .mat-elevation-z5{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12)}.light-theme .mat-elevation-z6{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.light-theme .mat-elevation-z7{box-shadow:0 4px 5px -2px rgba(0,0,0,.2),0 7px 10px 1px rgba(0,0,0,.14),0 2px 16px 1px rgba(0,0,0,.12)}.light-theme .mat-elevation-z8{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.light-theme .mat-elevation-z9{box-shadow:0 5px 6px -3px rgba(0,0,0,.2),0 9px 12px 1px rgba(0,0,0,.14),0 3px 16px 2px rgba(0,0,0,.12)}.light-theme .mat-elevation-z10{box-shadow:0 6px 6px -3px rgba(0,0,0,.2),0 10px 14px 1px rgba(0,0,0,.14),0 4px 18px 3px rgba(0,0,0,.12)}.light-theme .mat-elevation-z11{box-shadow:0 6px 7px -4px rgba(0,0,0,.2),0 11px 15px 1px rgba(0,0,0,.14),0 4px 20px 3px rgba(0,0,0,.12)}.light-theme .mat-elevation-z12{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.light-theme .mat-elevation-z13{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 13px 19px 2px rgba(0,0,0,.14),0 5px 24px 4px rgba(0,0,0,.12)}.light-theme .mat-elevation-z14{box-shadow:0 7px 9px -4px rgba(0,0,0,.2),0 14px 21px 2px rgba(0,0,0,.14),0 5px 26px 4px rgba(0,0,0,.12)}.light-theme .mat-elevation-z15{box-shadow:0 8px 9px -5px rgba(0,0,0,.2),0 15px 22px 2px rgba(0,0,0,.14),0 6px 28px 5px rgba(0,0,0,.12)}.light-theme .mat-elevation-z16{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.light-theme .mat-elevation-z17{box-shadow:0 8px 11px -5px rgba(0,0,0,.2),0 17px 26px 2px rgba(0,0,0,.14),0 6px 32px 5px rgba(0,0,0,.12)}.light-theme .mat-elevation-z18{box-shadow:0 9px 11px -5px rgba(0,0,0,.2),0 18px 28px 2px rgba(0,0,0,.14),0 7px 34px 6px rgba(0,0,0,.12)}.light-theme .mat-elevation-z19{box-shadow:0 9px 12px -6px rgba(0,0,0,.2),0 19px 29px 2px rgba(0,0,0,.14),0 7px 36px 6px rgba(0,0,0,.12)}.light-theme .mat-elevation-z20{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 20px 31px 3px rgba(0,0,0,.14),0 8px 38px 7px rgba(0,0,0,.12)}.light-theme .mat-elevation-z21{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 21px 33px 3px rgba(0,0,0,.14),0 8px 40px 7px rgba(0,0,0,.12)}.light-theme .mat-elevation-z22{box-shadow:0 10px 14px -6px rgba(0,0,0,.2),0 22px 35px 3px rgba(0,0,0,.14),0 8px 42px 7px rgba(0,0,0,.12)}.light-theme .mat-elevation-z23{box-shadow:0 11px 14px -7px rgba(0,0,0,.2),0 23px 36px 3px rgba(0,0,0,.14),0 9px 44px 8px rgba(0,0,0,.12)}.light-theme .mat-elevation-z24{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.light-theme.mat-app-background,.light-theme .mat-app-background{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-theme-loaded-marker{display:none}.light-theme .mat-autocomplete-panel{background:#fff;color:rgba(0,0,0,.87)}.light-theme .mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.light-theme .mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover){background:#fff}.light-theme .mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover):not(.mat-option-disabled){color:rgba(0,0,0,.87)}.light-theme .mat-badge-content{color:rgba(0,0,0,.87);background:#eee}.cdk-high-contrast-active .light-theme .mat-badge-content{outline:1px solid;border-radius:0}.light-theme .mat-badge-accent .mat-badge-content{background:#bcaaa4;color:rgba(0,0,0,.87)}.light-theme .mat-badge-warn .mat-badge-content{color:rgba(0,0,0,.87);background:#ffab91}.light-theme .mat-badge{position:relative}.light-theme .mat-badge-hidden .mat-badge-content{display:none}.light-theme .mat-badge-disabled .mat-badge-content{background:#b9b9b9;color:rgba(0,0,0,.38)}.light-theme .mat-badge-content{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform .2s ease-in-out;transform:scale(.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}.light-theme .mat-badge-content._mat-animation-noopable,.light-theme .ng-animate-disabled .mat-badge-content{transition:none}.light-theme .mat-badge-content.mat-badge-active{transform:none}.light-theme .mat-badge-small .mat-badge-content{width:16px;height:16px;line-height:16px}.light-theme .mat-badge-small.mat-badge-above .mat-badge-content{top:-8px}.light-theme .mat-badge-small.mat-badge-below .mat-badge-content{bottom:-8px}.light-theme .mat-badge-small.mat-badge-before .mat-badge-content{left:-16px}[dir=rtl] .light-theme .mat-badge-small.mat-badge-before .mat-badge-content{left:auto;right:-16px}.light-theme .mat-badge-small.mat-badge-after .mat-badge-content{right:-16px}[dir=rtl] .light-theme .mat-badge-small.mat-badge-after .mat-badge-content{right:auto;left:-16px}.light-theme .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-8px}[dir=rtl] .light-theme .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-8px}.light-theme .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-8px}[dir=rtl] .light-theme .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-8px}.light-theme .mat-badge-medium .mat-badge-content{width:22px;height:22px;line-height:22px}.light-theme .mat-badge-medium.mat-badge-above .mat-badge-content{top:-11px}.light-theme .mat-badge-medium.mat-badge-below .mat-badge-content{bottom:-11px}.light-theme .mat-badge-medium.mat-badge-before .mat-badge-content{left:-22px}[dir=rtl] .light-theme .mat-badge-medium.mat-badge-before .mat-badge-content{left:auto;right:-22px}.light-theme .mat-badge-medium.mat-badge-after .mat-badge-content{right:-22px}[dir=rtl] .light-theme .mat-badge-medium.mat-badge-after .mat-badge-content{right:auto;left:-22px}.light-theme .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-11px}[dir=rtl] .light-theme .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-11px}.light-theme .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-11px}[dir=rtl] .light-theme .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-11px}.light-theme .mat-badge-large .mat-badge-content{width:28px;height:28px;line-height:28px}.light-theme .mat-badge-large.mat-badge-above .mat-badge-content{top:-14px}.light-theme .mat-badge-large.mat-badge-below .mat-badge-content{bottom:-14px}.light-theme .mat-badge-large.mat-badge-before .mat-badge-content{left:-28px}[dir=rtl] .light-theme .mat-badge-large.mat-badge-before .mat-badge-content{left:auto;right:-28px}.light-theme .mat-badge-large.mat-badge-after .mat-badge-content{right:-28px}[dir=rtl] .light-theme .mat-badge-large.mat-badge-after .mat-badge-content{right:auto;left:-28px}.light-theme .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-14px}[dir=rtl] .light-theme .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-14px}.light-theme .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-14px}[dir=rtl] .light-theme .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-14px}.light-theme .mat-bottom-sheet-container{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.light-theme .mat-button,.light-theme .mat-icon-button,.light-theme .mat-stroked-button{color:inherit;background:transparent}.light-theme .mat-button.mat-primary,.light-theme .mat-icon-button.mat-primary,.light-theme .mat-stroked-button.mat-primary{color:#eee}.light-theme .mat-button.mat-accent,.light-theme .mat-icon-button.mat-accent,.light-theme .mat-stroked-button.mat-accent{color:#bcaaa4}.light-theme .mat-button.mat-warn,.light-theme .mat-icon-button.mat-warn,.light-theme .mat-stroked-button.mat-warn{color:#ffab91}.light-theme .mat-button.mat-accent[disabled],.light-theme .mat-button.mat-primary[disabled],.light-theme .mat-button.mat-warn[disabled],.light-theme .mat-button[disabled][disabled],.light-theme .mat-icon-button.mat-accent[disabled],.light-theme .mat-icon-button.mat-primary[disabled],.light-theme .mat-icon-button.mat-warn[disabled],.light-theme .mat-icon-button[disabled][disabled],.light-theme .mat-stroked-button.mat-accent[disabled],.light-theme .mat-stroked-button.mat-primary[disabled],.light-theme .mat-stroked-button.mat-warn[disabled],.light-theme .mat-stroked-button[disabled][disabled]{color:rgba(0,0,0,.26)}.light-theme .mat-button.mat-primary .mat-button-focus-overlay,.light-theme .mat-icon-button.mat-primary .mat-button-focus-overlay,.light-theme .mat-stroked-button.mat-primary .mat-button-focus-overlay{background-color:#eee}.light-theme .mat-button.mat-accent .mat-button-focus-overlay,.light-theme .mat-icon-button.mat-accent .mat-button-focus-overlay,.light-theme .mat-stroked-button.mat-accent .mat-button-focus-overlay{background-color:#bcaaa4}.light-theme .mat-button.mat-warn .mat-button-focus-overlay,.light-theme .mat-icon-button.mat-warn .mat-button-focus-overlay,.light-theme .mat-stroked-button.mat-warn .mat-button-focus-overlay{background-color:#ffab91}.light-theme .mat-button[disabled] .mat-button-focus-overlay,.light-theme .mat-icon-button[disabled] .mat-button-focus-overlay,.light-theme .mat-stroked-button[disabled] .mat-button-focus-overlay{background-color:transparent}.light-theme .mat-button .mat-ripple-element,.light-theme .mat-icon-button .mat-ripple-element,.light-theme .mat-stroked-button .mat-ripple-element{opacity:.1;background-color:currentColor}.light-theme .mat-button-focus-overlay{background:#000}.light-theme .mat-stroked-button:not([disabled]){border-color:rgba(0,0,0,.12)}.light-theme .mat-fab,.light-theme .mat-flat-button,.light-theme .mat-mini-fab,.light-theme .mat-raised-button{color:rgba(0,0,0,.87);background-color:#fff}.light-theme .mat-fab.mat-accent,.light-theme .mat-fab.mat-primary,.light-theme .mat-fab.mat-warn,.light-theme .mat-flat-button.mat-accent,.light-theme .mat-flat-button.mat-primary,.light-theme .mat-flat-button.mat-warn,.light-theme .mat-mini-fab.mat-accent,.light-theme .mat-mini-fab.mat-primary,.light-theme .mat-mini-fab.mat-warn,.light-theme .mat-raised-button.mat-accent,.light-theme .mat-raised-button.mat-primary,.light-theme .mat-raised-button.mat-warn{color:rgba(0,0,0,.87)}.light-theme .mat-fab.mat-accent[disabled],.light-theme .mat-fab.mat-primary[disabled],.light-theme .mat-fab.mat-warn[disabled],.light-theme .mat-fab[disabled][disabled],.light-theme .mat-flat-button.mat-accent[disabled],.light-theme .mat-flat-button.mat-primary[disabled],.light-theme .mat-flat-button.mat-warn[disabled],.light-theme .mat-flat-button[disabled][disabled],.light-theme .mat-mini-fab.mat-accent[disabled],.light-theme .mat-mini-fab.mat-primary[disabled],.light-theme .mat-mini-fab.mat-warn[disabled],.light-theme .mat-mini-fab[disabled][disabled],.light-theme .mat-raised-button.mat-accent[disabled],.light-theme .mat-raised-button.mat-primary[disabled],.light-theme .mat-raised-button.mat-warn[disabled],.light-theme .mat-raised-button[disabled][disabled]{color:rgba(0,0,0,.26)}.light-theme .mat-fab.mat-primary,.light-theme .mat-flat-button.mat-primary,.light-theme .mat-mini-fab.mat-primary,.light-theme .mat-raised-button.mat-primary{background-color:#eee}.light-theme .mat-fab.mat-accent,.light-theme .mat-flat-button.mat-accent,.light-theme .mat-mini-fab.mat-accent,.light-theme .mat-raised-button.mat-accent{background-color:#bcaaa4}.light-theme .mat-fab.mat-warn,.light-theme .mat-flat-button.mat-warn,.light-theme .mat-mini-fab.mat-warn,.light-theme .mat-raised-button.mat-warn{background-color:#ffab91}.light-theme .mat-fab.mat-accent[disabled],.light-theme .mat-fab.mat-primary[disabled],.light-theme .mat-fab.mat-warn[disabled],.light-theme .mat-fab[disabled][disabled],.light-theme .mat-flat-button.mat-accent[disabled],.light-theme .mat-flat-button.mat-primary[disabled],.light-theme .mat-flat-button.mat-warn[disabled],.light-theme .mat-flat-button[disabled][disabled],.light-theme .mat-mini-fab.mat-accent[disabled],.light-theme .mat-mini-fab.mat-primary[disabled],.light-theme .mat-mini-fab.mat-warn[disabled],.light-theme .mat-mini-fab[disabled][disabled],.light-theme .mat-raised-button.mat-accent[disabled],.light-theme .mat-raised-button.mat-primary[disabled],.light-theme .mat-raised-button.mat-warn[disabled],.light-theme .mat-raised-button[disabled][disabled]{background-color:rgba(0,0,0,.12)}.light-theme .mat-fab.mat-accent .mat-ripple-element,.light-theme .mat-fab.mat-primary .mat-ripple-element,.light-theme .mat-fab.mat-warn .mat-ripple-element,.light-theme .mat-flat-button.mat-accent .mat-ripple-element,.light-theme .mat-flat-button.mat-primary .mat-ripple-element,.light-theme .mat-flat-button.mat-warn .mat-ripple-element,.light-theme .mat-mini-fab.mat-accent .mat-ripple-element,.light-theme .mat-mini-fab.mat-primary .mat-ripple-element,.light-theme .mat-mini-fab.mat-warn .mat-ripple-element,.light-theme .mat-raised-button.mat-accent .mat-ripple-element,.light-theme .mat-raised-button.mat-primary .mat-ripple-element,.light-theme .mat-raised-button.mat-warn .mat-ripple-element{background-color:rgba(0,0,0,.1)}.light-theme .mat-flat-button:not([class*=mat-elevation-z]),.light-theme .mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.light-theme .mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.light-theme .mat-raised-button:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.light-theme .mat-raised-button[disabled]:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.light-theme .mat-fab:not([class*=mat-elevation-z]),.light-theme .mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.light-theme .mat-fab:not([disabled]):active:not([class*=mat-elevation-z]),.light-theme .mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.light-theme .mat-fab[disabled]:not([class*=mat-elevation-z]),.light-theme .mat-mini-fab[disabled]:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.light-theme .mat-button-toggle-group,.light-theme .mat-button-toggle-standalone{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.light-theme .mat-button-toggle-group-appearance-standard,.light-theme .mat-button-toggle-standalone.mat-button-toggle-appearance-standard{box-shadow:none}.light-theme .mat-button-toggle{color:rgba(0,0,0,.38)}.light-theme .mat-button-toggle .mat-button-toggle-focus-overlay{background-color:rgba(0,0,0,.12)}.light-theme .mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87);background:#fff}.light-theme .mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:#000}.light-theme .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:1px solid rgba(0,0,0,.12)}.light-theme [dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.light-theme .mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:none;border-top:1px solid rgba(0,0,0,.12)}.light-theme .mat-button-toggle-checked{background-color:#e0e0e0;color:rgba(0,0,0,.54)}.light-theme .mat-button-toggle-checked.mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87)}.light-theme .mat-button-toggle-disabled{color:rgba(0,0,0,.26);background-color:#eee}.light-theme .mat-button-toggle-disabled.mat-button-toggle-appearance-standard{background:#fff}.light-theme .mat-button-toggle-disabled.mat-button-toggle-checked{background-color:#bdbdbd}.light-theme .mat-button-toggle-group-appearance-standard,.light-theme .mat-button-toggle-standalone.mat-button-toggle-appearance-standard{border:1px solid rgba(0,0,0,.12)}.light-theme .mat-card{background:#fff;color:rgba(0,0,0,.87)}.light-theme .mat-card:not([class*=mat-elevation-z]){box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.light-theme .mat-card.mat-card-flat:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.light-theme .mat-card-subtitle{color:rgba(0,0,0,.54)}.light-theme .mat-checkbox-frame{border-color:rgba(0,0,0,.54)}.light-theme .mat-checkbox-checkmark{fill:#fafafa}.light-theme .mat-checkbox-checkmark-path{stroke:#fafafa!important}.light-theme .mat-checkbox-mixedmark{background-color:#fafafa}.light-theme .mat-checkbox-checked.mat-primary .mat-checkbox-background,.light-theme .mat-checkbox-indeterminate.mat-primary .mat-checkbox-background{background-color:#eee}.light-theme .mat-checkbox-checked.mat-accent .mat-checkbox-background,.light-theme .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#bcaaa4}.light-theme .mat-checkbox-checked.mat-warn .mat-checkbox-background,.light-theme .mat-checkbox-indeterminate.mat-warn .mat-checkbox-background{background-color:#ffab91}.light-theme .mat-checkbox-disabled.mat-checkbox-checked .mat-checkbox-background,.light-theme .mat-checkbox-disabled.mat-checkbox-indeterminate .mat-checkbox-background{background-color:#b0b0b0}.light-theme .mat-checkbox-disabled:not(.mat-checkbox-checked) .mat-checkbox-frame{border-color:#b0b0b0}.light-theme .mat-checkbox-disabled .mat-checkbox-label{color:rgba(0,0,0,.54)}.light-theme .mat-checkbox .mat-ripple-element{background-color:#000}.light-theme .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element,.light-theme .mat-checkbox:active:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element{background:#eee}.light-theme .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element,.light-theme .mat-checkbox:active:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element{background:#bcaaa4}.light-theme .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element,.light-theme .mat-checkbox:active:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element{background:#ffab91}.light-theme .mat-chip.mat-standard-chip{background-color:#e0e0e0;color:rgba(0,0,0,.87)}.light-theme .mat-chip.mat-standard-chip .mat-chip-remove{color:rgba(0,0,0,.87);opacity:.4}.light-theme .mat-chip.mat-standard-chip:not(.mat-chip-disabled):active{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.light-theme .mat-chip.mat-standard-chip:not(.mat-chip-disabled) .mat-chip-remove:hover{opacity:.54}.light-theme .mat-chip.mat-standard-chip.mat-chip-disabled{opacity:.4}.light-theme .mat-chip.mat-standard-chip:after{background:#000}.light-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary{background-color:#eee;color:rgba(0,0,0,.87)}.light-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-chip-remove{color:rgba(0,0,0,.87);opacity:.4}.light-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-ripple-element{background-color:rgba(0,0,0,.1)}.light-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-warn{background-color:#ffab91;color:rgba(0,0,0,.87)}.light-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-chip-remove{color:rgba(0,0,0,.87);opacity:.4}.light-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-ripple-element{background-color:rgba(0,0,0,.1)}.light-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-accent{background-color:#bcaaa4;color:rgba(0,0,0,.87)}.light-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-chip-remove{color:rgba(0,0,0,.87);opacity:.4}.light-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-ripple-element{background-color:rgba(0,0,0,.1)}.light-theme .mat-table{background:#fff}.light-theme .mat-table-sticky,.light-theme .mat-table tbody,.light-theme .mat-table tfoot,.light-theme .mat-table thead,.light-theme [mat-footer-row],.light-theme [mat-header-row],.light-theme [mat-row],.light-theme mat-footer-row,.light-theme mat-header-row,.light-theme mat-row{background:inherit}.light-theme mat-footer-row,.light-theme mat-header-row,.light-theme mat-row,.light-theme td.mat-cell,.light-theme td.mat-footer-cell,.light-theme th.mat-header-cell{border-bottom-color:rgba(0,0,0,.12)}.light-theme .mat-header-cell{color:rgba(0,0,0,.54)}.light-theme .mat-cell,.light-theme .mat-footer-cell{color:rgba(0,0,0,.87)}.light-theme .mat-calendar-arrow{border-top-color:rgba(0,0,0,.54)}.light-theme .mat-datepicker-content .mat-calendar-next-button,.light-theme .mat-datepicker-content .mat-calendar-previous-button,.light-theme .mat-datepicker-toggle{color:rgba(0,0,0,.54)}.light-theme .mat-calendar-table-header{color:rgba(0,0,0,.38)}.light-theme .mat-calendar-table-header-divider:after{background:rgba(0,0,0,.12)}.light-theme .mat-calendar-body-label{color:rgba(0,0,0,.54)}.light-theme .mat-calendar-body-cell-content{color:rgba(0,0,0,.87);border-color:transparent}.light-theme .mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){color:rgba(0,0,0,.38)}.light-theme .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.light-theme .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.light-theme .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:rgba(0,0,0,.04)}.light-theme .mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:rgba(0,0,0,.38)}.light-theme .mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:rgba(0,0,0,.18)}.light-theme .mat-calendar-body-selected{background-color:#eee;color:rgba(0,0,0,.87)}.light-theme .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:hsla(0,0%,93.3%,.4)}.light-theme .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px rgba(0,0,0,.87)}.light-theme .mat-datepicker-content{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);background-color:#fff;color:rgba(0,0,0,.87)}.light-theme .mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#bcaaa4;color:rgba(0,0,0,.87)}.light-theme .mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(188,170,164,.4)}.light-theme .mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px rgba(0,0,0,.87)}.light-theme .mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#ffab91;color:rgba(0,0,0,.87)}.light-theme .mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(255,171,145,.4)}.light-theme .mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px rgba(0,0,0,.87)}.light-theme .mat-datepicker-content-touch{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.light-theme .mat-datepicker-toggle-active{color:#eee}.light-theme .mat-datepicker-toggle-active.mat-accent{color:#bcaaa4}.light-theme .mat-datepicker-toggle-active.mat-warn{color:#ffab91}.light-theme .mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.light-theme .mat-divider{border-top-color:rgba(0,0,0,.12)}.light-theme .mat-divider-vertical{border-right-color:rgba(0,0,0,.12)}.light-theme .mat-expansion-panel{background:#fff;color:rgba(0,0,0,.87)}.light-theme .mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.light-theme .mat-action-row{border-top-color:rgba(0,0,0,.12)}.light-theme .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]),.light-theme .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true]),.light-theme .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:rgba(0,0,0,.04)}@media (hover:none){.light-theme .mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#fff}}.light-theme .mat-expansion-panel-header-title{color:rgba(0,0,0,.87)}.light-theme .mat-expansion-indicator:after,.light-theme .mat-expansion-panel-header-description{color:rgba(0,0,0,.54)}.light-theme .mat-expansion-panel-header[aria-disabled=true]{color:rgba(0,0,0,.26)}.light-theme .mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description,.light-theme .mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title{color:inherit}.light-theme .mat-form-field-label,.light-theme .mat-hint{color:rgba(0,0,0,.6)}.light-theme .mat-form-field.mat-focused .mat-form-field-label{color:#eee}.light-theme .mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#bcaaa4}.light-theme .mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#ffab91}.light-theme .mat-focused .mat-form-field-required-marker{color:#bcaaa4}.light-theme .mat-form-field-ripple{background-color:rgba(0,0,0,.87)}.light-theme .mat-form-field.mat-focused .mat-form-field-ripple{background-color:#eee}.light-theme .mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#bcaaa4}.light-theme .mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#ffab91}.light-theme .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix:after{color:#eee}.light-theme .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix:after{color:#bcaaa4}.light-theme .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix:after,.light-theme .mat-form-field.mat-form-field-invalid .mat-form-field-label,.light-theme .mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent,.light-theme .mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#ffab91}.light-theme .mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.light-theme .mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#ffab91}.light-theme .mat-error{color:#ffab91}.light-theme .mat-form-field-appearance-legacy .mat-form-field-label,.light-theme .mat-form-field-appearance-legacy .mat-hint{color:rgba(0,0,0,.54)}.light-theme .mat-form-field-appearance-legacy .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.light-theme .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.light-theme .mat-form-field-appearance-standard .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.light-theme .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.light-theme .mat-form-field-appearance-fill .mat-form-field-flex{background-color:rgba(0,0,0,.04)}.light-theme .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:rgba(0,0,0,.02)}.light-theme .mat-form-field-appearance-fill .mat-form-field-underline:before{background-color:rgba(0,0,0,.42)}.light-theme .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.light-theme .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline:before{background-color:transparent}.light-theme .mat-form-field-appearance-outline .mat-form-field-outline{color:rgba(0,0,0,.12)}.light-theme .mat-form-field-appearance-outline .mat-form-field-outline-thick{color:rgba(0,0,0,.87)}.light-theme .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:#eee}.light-theme .mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#bcaaa4}.light-theme .mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.light-theme .mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#ffab91}.light-theme .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.light-theme .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:rgba(0,0,0,.06)}.light-theme .mat-icon.mat-primary{color:#eee}.light-theme .mat-icon.mat-accent{color:#bcaaa4}.light-theme .mat-icon.mat-warn{color:#ffab91}.light-theme .mat-form-field-type-mat-native-select .mat-form-field-infix:after{color:rgba(0,0,0,.54)}.light-theme .mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix:after,.light-theme .mat-input-element:disabled{color:rgba(0,0,0,.38)}.light-theme .mat-input-element{caret-color:#eee}.light-theme .mat-input-element::-ms-input-placeholder{color:rgba(0,0,0,.42)}.light-theme .mat-input-element::placeholder{color:rgba(0,0,0,.42)}.light-theme .mat-input-element::-moz-placeholder{color:rgba(0,0,0,.42)}.light-theme .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,.42)}.light-theme .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,.42)}.light-theme .mat-accent .mat-input-element{caret-color:#bcaaa4}.light-theme .mat-form-field-invalid .mat-input-element,.light-theme .mat-warn .mat-input-element{caret-color:#ffab91}.light-theme .mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix:after{color:#ffab91}.light-theme .mat-list-base .mat-list-item,.light-theme .mat-list-base .mat-list-option{color:rgba(0,0,0,.87)}.light-theme .mat-list-base .mat-subheader{color:rgba(0,0,0,.54)}.light-theme .mat-list-item-disabled{background-color:#eee}.light-theme .mat-action-list .mat-list-item:focus,.light-theme .mat-action-list .mat-list-item:hover,.light-theme .mat-list-option:focus,.light-theme .mat-list-option:hover,.light-theme .mat-nav-list .mat-list-item:focus,.light-theme .mat-nav-list .mat-list-item:hover{background:rgba(0,0,0,.04)}.light-theme .mat-list-single-selected-option,.light-theme .mat-list-single-selected-option:focus,.light-theme .mat-list-single-selected-option:hover{background:rgba(0,0,0,.12)}.light-theme .mat-menu-panel{background:#fff}.light-theme .mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.light-theme .mat-menu-item{background:transparent;color:rgba(0,0,0,.87)}.light-theme .mat-menu-item[disabled],.light-theme .mat-menu-item[disabled]:after{color:rgba(0,0,0,.38)}.light-theme .mat-menu-item-submenu-trigger:after,.light-theme .mat-menu-item .mat-icon-no-color{color:rgba(0,0,0,.54)}.light-theme .mat-menu-item-highlighted:not([disabled]),.light-theme .mat-menu-item.cdk-keyboard-focused:not([disabled]),.light-theme .mat-menu-item.cdk-program-focused:not([disabled]),.light-theme .mat-menu-item:hover:not([disabled]){background:rgba(0,0,0,.04)}.light-theme .mat-paginator{background:#fff}.light-theme .mat-paginator,.light-theme .mat-paginator-page-size .mat-select-trigger{color:rgba(0,0,0,.54)}.light-theme .mat-paginator-decrement,.light-theme .mat-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.light-theme .mat-paginator-first,.light-theme .mat-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.light-theme .mat-icon-button[disabled] .mat-paginator-decrement,.light-theme .mat-icon-button[disabled] .mat-paginator-first,.light-theme .mat-icon-button[disabled] .mat-paginator-increment,.light-theme .mat-icon-button[disabled] .mat-paginator-last{border-color:rgba(0,0,0,.38)}.light-theme .mat-progress-bar-background{fill:#9e9e9e}.light-theme .mat-progress-bar-buffer{background-color:#9e9e9e}.light-theme .mat-progress-bar-fill:after{background-color:#eee}.light-theme .mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#d7ccc8}.light-theme .mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#d7ccc8}.light-theme .mat-progress-bar.mat-accent .mat-progress-bar-fill:after{background-color:#bcaaa4}.light-theme .mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#ffccbc}.light-theme .mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#ffccbc}.light-theme .mat-progress-bar.mat-warn .mat-progress-bar-fill:after{background-color:#ffab91}.light-theme .mat-progress-spinner circle,.light-theme .mat-spinner circle{stroke:#eee}.light-theme .mat-progress-spinner.mat-accent circle,.light-theme .mat-spinner.mat-accent circle{stroke:#bcaaa4}.light-theme .mat-progress-spinner.mat-warn circle,.light-theme .mat-spinner.mat-warn circle{stroke:#ffab91}.light-theme .mat-radio-outer-circle{border-color:rgba(0,0,0,.54)}.light-theme .mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#eee}.light-theme .mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.light-theme .mat-radio-button.mat-primary .mat-radio-inner-circle,.light-theme .mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.light-theme .mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:#eee}.light-theme .mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#bcaaa4}.light-theme .mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.light-theme .mat-radio-button.mat-accent .mat-radio-inner-circle,.light-theme .mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.light-theme .mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#bcaaa4}.light-theme .mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#ffab91}.light-theme .mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.light-theme .mat-radio-button.mat-warn .mat-radio-inner-circle,.light-theme .mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.light-theme .mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#ffab91}.light-theme .mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-outer-circle,.light-theme .mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:rgba(0,0,0,.38)}.light-theme .mat-radio-button.mat-radio-disabled .mat-radio-inner-circle,.light-theme .mat-radio-button.mat-radio-disabled .mat-radio-ripple .mat-ripple-element{background-color:rgba(0,0,0,.38)}.light-theme .mat-radio-button.mat-radio-disabled .mat-radio-label-content{color:rgba(0,0,0,.38)}.light-theme .mat-radio-button .mat-ripple-element{background-color:#000}.light-theme .mat-select-value{color:rgba(0,0,0,.87)}.light-theme .mat-select-placeholder{color:rgba(0,0,0,.42)}.light-theme .mat-select-disabled .mat-select-value{color:rgba(0,0,0,.38)}.light-theme .mat-select-arrow{color:rgba(0,0,0,.54)}.light-theme .mat-select-panel{background:#fff}.light-theme .mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.light-theme .mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(0,0,0,.12)}.light-theme .mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#eee}.light-theme .mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#bcaaa4}.light-theme .mat-form-field.mat-focused.mat-warn .mat-select-arrow,.light-theme .mat-form-field .mat-select.mat-select-invalid .mat-select-arrow{color:#ffab91}.light-theme .mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:rgba(0,0,0,.38)}.light-theme .mat-drawer-container{background-color:#fafafa;color:rgba(0,0,0,.87)}.light-theme .mat-drawer{background-color:#fff;color:rgba(0,0,0,.87)}.light-theme .mat-drawer.mat-drawer-push{background-color:#fff}.light-theme .mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.light-theme .mat-drawer-side{border-right:1px solid rgba(0,0,0,.12)}.light-theme .mat-drawer-side.mat-drawer-end,.light-theme [dir=rtl] .mat-drawer-side{border-left:1px solid rgba(0,0,0,.12);border-right:none}.light-theme [dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.light-theme .mat-drawer-backdrop.mat-drawer-shown{background-color:rgba(0,0,0,.6)}.light-theme .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#bcaaa4}.light-theme .mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:rgba(188,170,164,.54)}.light-theme .mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#bcaaa4}.light-theme .mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:#eee}.light-theme .mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:hsla(0,0%,93.3%,.54)}.light-theme .mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element{background-color:#eee}.light-theme .mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#ffab91}.light-theme .mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:rgba(255,171,145,.54)}.light-theme .mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#ffab91}.light-theme .mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:#000}.light-theme .mat-slide-toggle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);background-color:#fafafa}.light-theme .mat-slide-toggle-bar{background-color:rgba(0,0,0,.38)}.light-theme .mat-slider-track-background{background-color:rgba(0,0,0,.26)}.light-theme .mat-primary .mat-slider-thumb,.light-theme .mat-primary .mat-slider-thumb-label,.light-theme .mat-primary .mat-slider-track-fill{background-color:#eee}.light-theme .mat-primary .mat-slider-thumb-label-text{color:rgba(0,0,0,.87)}.light-theme .mat-accent .mat-slider-thumb,.light-theme .mat-accent .mat-slider-thumb-label,.light-theme .mat-accent .mat-slider-track-fill{background-color:#bcaaa4}.light-theme .mat-accent .mat-slider-thumb-label-text{color:rgba(0,0,0,.87)}.light-theme .mat-warn .mat-slider-thumb,.light-theme .mat-warn .mat-slider-thumb-label,.light-theme .mat-warn .mat-slider-track-fill{background-color:#ffab91}.light-theme .mat-warn .mat-slider-thumb-label-text{color:rgba(0,0,0,.87)}.light-theme .mat-slider-focus-ring{background-color:rgba(188,170,164,.2)}.light-theme .cdk-focused .mat-slider-track-background,.light-theme .mat-slider:hover .mat-slider-track-background{background-color:rgba(0,0,0,.38)}.light-theme .mat-slider-disabled .mat-slider-thumb,.light-theme .mat-slider-disabled .mat-slider-track-background,.light-theme .mat-slider-disabled .mat-slider-track-fill,.light-theme .mat-slider-disabled:hover .mat-slider-track-background{background-color:rgba(0,0,0,.26)}.light-theme .mat-slider-min-value .mat-slider-focus-ring{background-color:rgba(0,0,0,.12)}.light-theme .mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.light-theme .mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:rgba(0,0,0,.87)}.light-theme .mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.light-theme .mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:rgba(0,0,0,.26)}.light-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:rgba(0,0,0,.26);background-color:transparent}.light-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb,.light-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb{border-color:rgba(0,0,0,.38)}.light-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb,.light-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb{border-color:rgba(0,0,0,.26)}.light-theme .mat-slider-has-ticks .mat-slider-wrapper:after{border-color:rgba(0,0,0,.7)}.light-theme .mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.light-theme .mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(180deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.light-theme .mat-step-header.cdk-keyboard-focused,.light-theme .mat-step-header.cdk-program-focused,.light-theme .mat-step-header:hover{background-color:rgba(0,0,0,.04)}@media (hover:none){.light-theme .mat-step-header:hover{background:none}}.light-theme .mat-step-header .mat-step-label,.light-theme .mat-step-header .mat-step-optional{color:rgba(0,0,0,.54)}.light-theme .mat-step-header .mat-step-icon{background-color:rgba(0,0,0,.54);color:rgba(0,0,0,.87)}.light-theme .mat-step-header .mat-step-icon-selected,.light-theme .mat-step-header .mat-step-icon-state-done,.light-theme .mat-step-header .mat-step-icon-state-edit{background-color:#eee;color:rgba(0,0,0,.87)}.light-theme .mat-step-header .mat-step-icon-state-error{background-color:transparent;color:#ffab91}.light-theme .mat-step-header .mat-step-label.mat-step-label-active{color:rgba(0,0,0,.87)}.light-theme .mat-step-header .mat-step-label.mat-step-label-error{color:#ffab91}.light-theme .mat-stepper-horizontal,.light-theme .mat-stepper-vertical{background-color:#fff}.light-theme .mat-stepper-vertical-line:before{border-left-color:rgba(0,0,0,.12)}.light-theme .mat-horizontal-stepper-header:after,.light-theme .mat-horizontal-stepper-header:before,.light-theme .mat-stepper-horizontal-line{border-top-color:rgba(0,0,0,.12)}.light-theme .mat-sort-header-arrow{color:#757575}.light-theme .mat-tab-header,.light-theme .mat-tab-nav-bar{border-bottom:1px solid rgba(0,0,0,.12)}.light-theme .mat-tab-group-inverted-header .mat-tab-header,.light-theme .mat-tab-group-inverted-header .mat-tab-nav-bar{border-top:1px solid rgba(0,0,0,.12);border-bottom:none}.light-theme .mat-tab-label,.light-theme .mat-tab-link{color:rgba(0,0,0,.87)}.light-theme .mat-tab-label.mat-tab-disabled,.light-theme .mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.38)}.light-theme .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.light-theme .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.38)}.light-theme .mat-tab-group[class*=mat-background-] .mat-tab-header,.light-theme .mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.light-theme .mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:hsla(0,0%,62%,.3)}.light-theme .mat-tab-group.mat-primary .mat-ink-bar,.light-theme .mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#eee}.light-theme .mat-tab-group.mat-primary.mat-background-primary .mat-ink-bar,.light-theme .mat-tab-nav-bar.mat-primary.mat-background-primary .mat-ink-bar{background-color:rgba(0,0,0,.87)}.light-theme .mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(215,204,200,.3)}.light-theme .mat-tab-group.mat-accent .mat-ink-bar,.light-theme .mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#bcaaa4}.light-theme .mat-tab-group.mat-accent.mat-background-accent .mat-ink-bar,.light-theme .mat-tab-nav-bar.mat-accent.mat-background-accent .mat-ink-bar{background-color:rgba(0,0,0,.87)}.light-theme .mat-tab-group.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,204,188,.3)}.light-theme .mat-tab-group.mat-warn .mat-ink-bar,.light-theme .mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#ffab91}.light-theme .mat-tab-group.mat-warn.mat-background-warn .mat-ink-bar,.light-theme .mat-tab-nav-bar.mat-warn.mat-background-warn .mat-ink-bar{background-color:rgba(0,0,0,.87)}.light-theme .mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:hsla(0,0%,62%,.3)}.light-theme .mat-tab-group.mat-background-primary .mat-tab-header,.light-theme .mat-tab-group.mat-background-primary .mat-tab-header-pagination,.light-theme .mat-tab-group.mat-background-primary .mat-tab-links,.light-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-header,.light-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination,.light-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-links{background-color:#eee}.light-theme .mat-tab-group.mat-background-primary .mat-tab-label,.light-theme .mat-tab-group.mat-background-primary .mat-tab-link,.light-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-label,.light-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-link{color:rgba(0,0,0,.87)}.light-theme .mat-tab-group.mat-background-primary .mat-tab-label.mat-tab-disabled,.light-theme .mat-tab-group.mat-background-primary .mat-tab-link.mat-tab-disabled,.light-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-label.mat-tab-disabled,.light-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.4)}.light-theme .mat-tab-group.mat-background-primary .mat-tab-header-pagination-chevron,.light-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.light-theme .mat-tab-group.mat-background-primary .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.light-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.4)}.light-theme .mat-tab-group.mat-background-primary .mat-ripple-element,.light-theme .mat-tab-nav-bar.mat-background-primary .mat-ripple-element{background-color:rgba(0,0,0,.12)}.light-theme .mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(215,204,200,.3)}.light-theme .mat-tab-group.mat-background-accent .mat-tab-header,.light-theme .mat-tab-group.mat-background-accent .mat-tab-header-pagination,.light-theme .mat-tab-group.mat-background-accent .mat-tab-links,.light-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-header,.light-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination,.light-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-links{background-color:#bcaaa4}.light-theme .mat-tab-group.mat-background-accent .mat-tab-label,.light-theme .mat-tab-group.mat-background-accent .mat-tab-link,.light-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-label,.light-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-link{color:rgba(0,0,0,.87)}.light-theme .mat-tab-group.mat-background-accent .mat-tab-label.mat-tab-disabled,.light-theme .mat-tab-group.mat-background-accent .mat-tab-link.mat-tab-disabled,.light-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-label.mat-tab-disabled,.light-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.4)}.light-theme .mat-tab-group.mat-background-accent .mat-tab-header-pagination-chevron,.light-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.light-theme .mat-tab-group.mat-background-accent .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.light-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.4)}.light-theme .mat-tab-group.mat-background-accent .mat-ripple-element,.light-theme .mat-tab-nav-bar.mat-background-accent .mat-ripple-element{background-color:rgba(0,0,0,.12)}.light-theme .mat-tab-group.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-group.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.light-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,204,188,.3)}.light-theme .mat-tab-group.mat-background-warn .mat-tab-header,.light-theme .mat-tab-group.mat-background-warn .mat-tab-header-pagination,.light-theme .mat-tab-group.mat-background-warn .mat-tab-links,.light-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-header,.light-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination,.light-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-links{background-color:#ffab91}.light-theme .mat-tab-group.mat-background-warn .mat-tab-label,.light-theme .mat-tab-group.mat-background-warn .mat-tab-link,.light-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-label,.light-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-link{color:rgba(0,0,0,.87)}.light-theme .mat-tab-group.mat-background-warn .mat-tab-label.mat-tab-disabled,.light-theme .mat-tab-group.mat-background-warn .mat-tab-link.mat-tab-disabled,.light-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-label.mat-tab-disabled,.light-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.4)}.light-theme .mat-tab-group.mat-background-warn .mat-tab-header-pagination-chevron,.light-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.light-theme .mat-tab-group.mat-background-warn .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.light-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.4)}.light-theme .mat-tab-group.mat-background-warn .mat-ripple-element,.light-theme .mat-tab-nav-bar.mat-background-warn .mat-ripple-element{background-color:rgba(0,0,0,.12)}.light-theme .mat-toolbar{background:#f5f5f5;color:rgba(0,0,0,.87)}.light-theme .mat-toolbar.mat-primary{background:#eee;color:rgba(0,0,0,.87)}.light-theme .mat-toolbar.mat-accent{background:#bcaaa4;color:rgba(0,0,0,.87)}.light-theme .mat-toolbar.mat-warn{background:#ffab91;color:rgba(0,0,0,.87)}.light-theme .mat-toolbar .mat-focused .mat-form-field-ripple,.light-theme .mat-toolbar .mat-form-field-ripple,.light-theme .mat-toolbar .mat-form-field-underline{background-color:currentColor}.light-theme .mat-toolbar .mat-focused .mat-form-field-label,.light-theme .mat-toolbar .mat-form-field-label,.light-theme .mat-toolbar .mat-form-field.mat-focused .mat-select-arrow,.light-theme .mat-toolbar .mat-select-arrow,.light-theme .mat-toolbar .mat-select-value{color:inherit}.light-theme .mat-toolbar .mat-input-element{caret-color:currentColor}.light-theme .mat-tooltip{background:rgba(97,97,97,.9)}.light-theme .mat-tree{background:#fff}.light-theme .mat-nested-tree-node,.light-theme .mat-tree-node{color:rgba(0,0,0,.87)}.light-theme .mat-snack-bar-container{color:hsla(0,0%,100%,.7);background:#323232;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.light-theme .mat-simple-snackbar-action{color:#bcaaa4}.no-outline{outline:none}.mat-badge-content{font-weight:600;font-size:12px;font-family:Roboto,Helvetica Neue,sans-serif}.mat-badge-small .mat-badge-content{font-size:9px}.mat-badge-large .mat-badge-content{font-size:24px}.mat-h1,.mat-headline,.mat-typography h1{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-title,.mat-typography h2{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3,.mat-subheading-2,.mat-typography h3{font:400 16px/28px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4,.mat-subheading-1,.mat-typography h4{font:400 15px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5,.mat-typography h5{font:400 11.62px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-h6,.mat-typography h6{font:400 9.38px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-body-2,.mat-body-strong{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body,.mat-body-1,.mat-typography{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body-1 p,.mat-body p,.mat-typography p{margin:0 0 12px}.mat-caption,.mat-small{font:400 12px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-display-4,.mat-typography .mat-display-4{font:300 112px/112px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3,.mat-typography .mat-display-3{font:400 56px/56px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2,.mat-typography .mat-display-2{font:400 45px/48px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1,.mat-typography .mat-display-1{font:400 34px/40px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button,.mat-stroked-button{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-button-toggle,.mat-card{font-family:Roboto,Helvetica Neue,sans-serif}.mat-card-title{font-size:24px;font-weight:500}.mat-card-header .mat-card-title{font-size:20px}.mat-card-content,.mat-card-subtitle{font-size:14px}.mat-checkbox{font-family:Roboto,Helvetica Neue,sans-serif}.mat-checkbox-layout .mat-checkbox-label{line-height:24px}.mat-chip{font-size:14px;font-weight:500}.mat-chip .mat-chip-remove.mat-icon,.mat-chip .mat-chip-trailing-icon.mat-icon{font-size:18px}.mat-table{font-family:Roboto,Helvetica Neue,sans-serif}.mat-header-cell{font-size:12px;font-weight:500}.mat-cell,.mat-footer-cell{font-size:14px}.mat-calendar{font-family:Roboto,Helvetica Neue,sans-serif}.mat-calendar-body{font-size:13px}.mat-calendar-body-label,.mat-calendar-period-button{font-size:14px;font-weight:500}.mat-calendar-table-header th{font-size:11px;font-weight:400}.mat-dialog-title{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-expansion-panel-header{font-family:Roboto,Helvetica Neue,sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field-wrapper{padding-bottom:1.34375em}.mat-form-field-prefix .mat-icon,.mat-form-field-suffix .mat-icon{font-size:150%;line-height:1.125}.mat-form-field-prefix .mat-icon-button,.mat-form-field-suffix .mat-icon-button{height:1.5em;width:1.5em}.mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-suffix .mat-icon-button .mat-icon{height:1.125em;line-height:1.125}.mat-form-field-infix{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper{top:-.84375em;padding-top:.84375em}.mat-form-field-label{top:1.34375em}.mat-form-field-underline{bottom:1.34375em}.mat-form-field-subscript-wrapper{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.79167em)}.mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:1.25em}.mat-form-field-appearance-legacy .mat-form-field-infix{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy .mat-form-field-label{top:1.28125em}.mat-form-field-appearance-legacy .mat-form-field-underline{bottom:1.25em}.mat-form-field-appearance-legacy .mat-form-field-subscript-wrapper{margin-top:.5416666667em;top:calc(100% - 1.66667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill .mat-form-field-infix{padding:.25em 0 .75em}.mat-form-field-appearance-fill .mat-form-field-label{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-fill.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline .mat-form-field-infix{padding:1em 0}.mat-form-field-appearance-outline .mat-form-field-label{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-outline.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-footer,.mat-grid-tile-header{font-size:14px}.mat-grid-tile-footer .mat-line,.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2),.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:12px}input.mat-input-element{margin-top:-.0625em}.mat-menu-item{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px}.mat-radio-button,.mat-select{font-family:Roboto,Helvetica Neue,sans-serif}.mat-select-trigger{height:1.125em}.mat-slide-toggle-content,.mat-slider-thumb-label-text{font-family:Roboto,Helvetica Neue,sans-serif}.mat-slider-thumb-label-text{font-size:12px;font-weight:500}.mat-stepper-horizontal,.mat-stepper-vertical{font-family:Roboto,Helvetica Neue,sans-serif}.mat-step-label{font-size:14px;font-weight:400}.mat-step-sub-label-error{font-weight:400}.mat-step-label-error{font-size:14px}.mat-step-label-selected{font-size:14px;font-weight:500}.mat-tab-group,.mat-tab-label,.mat-tab-link{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tab-label,.mat-tab-link{font-size:14px;font-weight:500}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0}.mat-tooltip{font-family:Roboto,Helvetica Neue,sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item,.mat-list-option{font-family:Roboto,Helvetica Neue,sans-serif}.mat-list-base .mat-list-item{font-size:16px}.mat-list-base .mat-list-item .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base .mat-list-item .mat-line:nth-child(n+2){font-size:14px}.mat-list-base .mat-list-option{font-size:16px}.mat-list-base .mat-list-option .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base .mat-list-option .mat-line:nth-child(n+2){font-size:14px}.mat-list-base .mat-subheader{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense] .mat-list-item{font-size:12px}.mat-list-base[dense] .mat-list-item .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense] .mat-list-item .mat-line:nth-child(n+2),.mat-list-base[dense] .mat-list-option{font-size:12px}.mat-list-base[dense] .mat-list-option .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense] .mat-list-option .mat-line:nth-child(n+2){font-size:12px}.mat-list-base[dense] .mat-subheader{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-option{font-family:Roboto,Helvetica Neue,sans-serif;font-size:16px}.mat-optgroup-label{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-simple-snackbar{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px}.mat-simple-snackbar-action{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree{font-family:Roboto,Helvetica Neue,sans-serif}.mat-nested-tree-node,.mat-tree-node{font-weight:400;font-size:14px}.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper,.cdk-overlay-pane{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{pointer-events:auto;box-sizing:border-box;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}@media screen and (-ms-high-contrast:active){.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop,.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}@keyframes cdk-text-field-autofill-start{ + /*!*/}@keyframes cdk-text-field-autofill-end{ + /*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{-webkit-animation:cdk-text-field-autofill-start 0s 1ms;animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){-webkit-animation:cdk-text-field-autofill-end 0s 1ms;animation:cdk-text-field-autofill-end 0s 1ms}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{height:auto!important;overflow:hidden!important;padding:2px 0!important;box-sizing:content-box!important}.centered{margin:0 auto;left:50%;top:50%} \ No newline at end of file